configure 581 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for GNU Offloading and Multi Processing Runtime Library 1.0.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  159. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  160. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  161. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  162. PATH=/empty FPATH=/empty; export PATH FPATH
  163. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  164. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  165. test \$(( 1 + 1 )) = 2 || exit 1"
  166. if (eval "$as_required") 2>/dev/null; then :
  167. as_have_required=yes
  168. else
  169. as_have_required=no
  170. fi
  171. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  172. else
  173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  174. as_found=false
  175. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  176. do
  177. IFS=$as_save_IFS
  178. test -z "$as_dir" && as_dir=.
  179. as_found=:
  180. case $as_dir in #(
  181. /*)
  182. for as_base in sh bash ksh sh5; do
  183. # Try only shells that exist, to save several forks.
  184. as_shell=$as_dir/$as_base
  185. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  186. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  187. CONFIG_SHELL=$as_shell as_have_required=yes
  188. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. break 2
  190. fi
  191. fi
  192. done;;
  193. esac
  194. as_found=false
  195. done
  196. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  197. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  198. CONFIG_SHELL=$SHELL as_have_required=yes
  199. fi; }
  200. IFS=$as_save_IFS
  201. if test "x$CONFIG_SHELL" != x; then :
  202. # We cannot yet assume a decent shell, so we have to provide a
  203. # neutralization value for shells without unset; and this also
  204. # works around shells that cannot unset nonexistent variables.
  205. BASH_ENV=/dev/null
  206. ENV=/dev/null
  207. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  208. export CONFIG_SHELL
  209. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  210. fi
  211. if test x$as_have_required = xno; then :
  212. $as_echo "$0: This script requires a shell more modern than all"
  213. $as_echo "$0: the shells that I found on your system."
  214. if test x${ZSH_VERSION+set} = xset ; then
  215. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  216. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  217. else
  218. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  219. $0: including any error possibly output before this
  220. $0: message. Then install a modern shell, or manually run
  221. $0: the script under such a shell if you do have one."
  222. fi
  223. exit 1
  224. fi
  225. fi
  226. fi
  227. SHELL=${CONFIG_SHELL-/bin/sh}
  228. export SHELL
  229. # Unset more variables known to interfere with behavior of common tools.
  230. CLICOLOR_FORCE= GREP_OPTIONS=
  231. unset CLICOLOR_FORCE GREP_OPTIONS
  232. ## --------------------- ##
  233. ## M4sh Shell Functions. ##
  234. ## --------------------- ##
  235. # as_fn_unset VAR
  236. # ---------------
  237. # Portably unset VAR.
  238. as_fn_unset ()
  239. {
  240. { eval $1=; unset $1;}
  241. }
  242. as_unset=as_fn_unset
  243. # as_fn_set_status STATUS
  244. # -----------------------
  245. # Set $? to STATUS, without forking.
  246. as_fn_set_status ()
  247. {
  248. return $1
  249. } # as_fn_set_status
  250. # as_fn_exit STATUS
  251. # -----------------
  252. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  253. as_fn_exit ()
  254. {
  255. set +e
  256. as_fn_set_status $1
  257. exit $1
  258. } # as_fn_exit
  259. # as_fn_mkdir_p
  260. # -------------
  261. # Create "$as_dir" as a directory, including parents if necessary.
  262. as_fn_mkdir_p ()
  263. {
  264. case $as_dir in #(
  265. -*) as_dir=./$as_dir;;
  266. esac
  267. test -d "$as_dir" || eval $as_mkdir_p || {
  268. as_dirs=
  269. while :; do
  270. case $as_dir in #(
  271. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  272. *) as_qdir=$as_dir;;
  273. esac
  274. as_dirs="'$as_qdir' $as_dirs"
  275. as_dir=`$as_dirname -- "$as_dir" ||
  276. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  277. X"$as_dir" : 'X\(//\)[^/]' \| \
  278. X"$as_dir" : 'X\(//\)$' \| \
  279. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  280. $as_echo X"$as_dir" |
  281. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)[^/].*/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\/\)$/{
  290. s//\1/
  291. q
  292. }
  293. /^X\(\/\).*/{
  294. s//\1/
  295. q
  296. }
  297. s/.*/./; q'`
  298. test -d "$as_dir" && break
  299. done
  300. test -z "$as_dirs" || eval "mkdir $as_dirs"
  301. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  302. } # as_fn_mkdir_p
  303. # as_fn_append VAR VALUE
  304. # ----------------------
  305. # Append the text in VALUE to the end of the definition contained in VAR. Take
  306. # advantage of any shell optimizations that allow amortized linear growth over
  307. # repeated appends, instead of the typical quadratic growth present in naive
  308. # implementations.
  309. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  310. eval 'as_fn_append ()
  311. {
  312. eval $1+=\$2
  313. }'
  314. else
  315. as_fn_append ()
  316. {
  317. eval $1=\$$1\$2
  318. }
  319. fi # as_fn_append
  320. # as_fn_arith ARG...
  321. # ------------------
  322. # Perform arithmetic evaluation on the ARGs, and store the result in the
  323. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  324. # must be portable across $(()) and expr.
  325. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  326. eval 'as_fn_arith ()
  327. {
  328. as_val=$(( $* ))
  329. }'
  330. else
  331. as_fn_arith ()
  332. {
  333. as_val=`expr "$@" || test $? -eq 1`
  334. }
  335. fi # as_fn_arith
  336. # as_fn_error ERROR [LINENO LOG_FD]
  337. # ---------------------------------
  338. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  339. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  340. # script with status $?, using 1 if that was 0.
  341. as_fn_error ()
  342. {
  343. as_status=$?; test $as_status -eq 0 && as_status=1
  344. if test "$3"; then
  345. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  346. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  347. fi
  348. $as_echo "$as_me: error: $1" >&2
  349. as_fn_exit $as_status
  350. } # as_fn_error
  351. if expr a : '\(a\)' >/dev/null 2>&1 &&
  352. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  353. as_expr=expr
  354. else
  355. as_expr=false
  356. fi
  357. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  358. as_basename=basename
  359. else
  360. as_basename=false
  361. fi
  362. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  363. as_dirname=dirname
  364. else
  365. as_dirname=false
  366. fi
  367. as_me=`$as_basename -- "$0" ||
  368. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  369. X"$0" : 'X\(//\)$' \| \
  370. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  371. $as_echo X/"$0" |
  372. sed '/^.*\/\([^/][^/]*\)\/*$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\/\)$/{
  377. s//\1/
  378. q
  379. }
  380. /^X\/\(\/\).*/{
  381. s//\1/
  382. q
  383. }
  384. s/.*/./; q'`
  385. # Avoid depending upon Character Ranges.
  386. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  387. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  388. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  389. as_cr_digits='0123456789'
  390. as_cr_alnum=$as_cr_Letters$as_cr_digits
  391. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  392. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  393. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  394. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  395. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  396. sed -n '
  397. p
  398. /[$]LINENO/=
  399. ' <$as_myself |
  400. sed '
  401. s/[$]LINENO.*/&-/
  402. t lineno
  403. b
  404. :lineno
  405. N
  406. :loop
  407. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  408. t loop
  409. s/-\n.*//
  410. ' >$as_me.lineno &&
  411. chmod +x "$as_me.lineno" ||
  412. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  413. # Don't try to exec as it changes $[0], causing all sort of problems
  414. # (the dirname of $[0] is not the place where we might find the
  415. # original and so on. Autoconf is especially sensitive to this).
  416. . "./$as_me.lineno"
  417. # Exit status is that of the last command.
  418. exit
  419. }
  420. ECHO_C= ECHO_N= ECHO_T=
  421. case `echo -n x` in #(((((
  422. -n*)
  423. case `echo 'xy\c'` in
  424. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  425. xy) ECHO_C='\c';;
  426. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  427. ECHO_T=' ';;
  428. esac;;
  429. *)
  430. ECHO_N='-n';;
  431. esac
  432. rm -f conf$$ conf$$.exe conf$$.file
  433. if test -d conf$$.dir; then
  434. rm -f conf$$.dir/conf$$.file
  435. else
  436. rm -f conf$$.dir
  437. mkdir conf$$.dir 2>/dev/null
  438. fi
  439. if (echo >conf$$.file) 2>/dev/null; then
  440. if ln -s conf$$.file conf$$ 2>/dev/null; then
  441. as_ln_s='ln -s'
  442. # ... but there are two gotchas:
  443. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  444. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  445. # In both cases, we have to default to `cp -p'.
  446. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  447. as_ln_s='cp -p'
  448. elif ln conf$$.file conf$$ 2>/dev/null; then
  449. as_ln_s=ln
  450. else
  451. as_ln_s='cp -p'
  452. fi
  453. else
  454. as_ln_s='cp -p'
  455. fi
  456. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  457. rmdir conf$$.dir 2>/dev/null
  458. if mkdir -p . 2>/dev/null; then
  459. as_mkdir_p='mkdir -p "$as_dir"'
  460. else
  461. test -d ./-p && rmdir ./-p
  462. as_mkdir_p=false
  463. fi
  464. if test -x / >/dev/null 2>&1; then
  465. as_test_x='test -x'
  466. else
  467. if ls -dL / >/dev/null 2>&1; then
  468. as_ls_L_option=L
  469. else
  470. as_ls_L_option=
  471. fi
  472. as_test_x='
  473. eval sh -c '\''
  474. if test -d "$1"; then
  475. test -d "$1/.";
  476. else
  477. case $1 in #(
  478. -*)set "./$1";;
  479. esac;
  480. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  481. ???[sx]*):;;*)false;;esac;fi
  482. '\'' sh
  483. '
  484. fi
  485. as_executable_p=$as_test_x
  486. # Sed expression to map a string onto a valid CPP name.
  487. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  488. # Sed expression to map a string onto a valid variable name.
  489. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  490. SHELL=${CONFIG_SHELL-/bin/sh}
  491. exec 7<&0 </dev/null 6>&1
  492. # Name of the host.
  493. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  494. # so uname gets run too.
  495. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  496. #
  497. # Initializations.
  498. #
  499. ac_default_prefix=/usr/local
  500. ac_clean_files=
  501. ac_config_libobj_dir=.
  502. LIBOBJS=
  503. cross_compiling=no
  504. subdirs=
  505. MFLAGS=
  506. MAKEFLAGS=
  507. # Identity of this package.
  508. PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
  509. PACKAGE_TARNAME='libgomp'
  510. PACKAGE_VERSION='1.0'
  511. PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
  512. PACKAGE_BUGREPORT=''
  513. PACKAGE_URL='http://www.gnu.org/software/libgomp/'
  514. # Factoring default headers for most tests.
  515. ac_includes_default="\
  516. #include <stdio.h>
  517. #ifdef HAVE_SYS_TYPES_H
  518. # include <sys/types.h>
  519. #endif
  520. #ifdef HAVE_SYS_STAT_H
  521. # include <sys/stat.h>
  522. #endif
  523. #ifdef STDC_HEADERS
  524. # include <stdlib.h>
  525. # include <stddef.h>
  526. #else
  527. # ifdef HAVE_STDLIB_H
  528. # include <stdlib.h>
  529. # endif
  530. #endif
  531. #ifdef HAVE_STRING_H
  532. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  533. # include <memory.h>
  534. # endif
  535. # include <string.h>
  536. #endif
  537. #ifdef HAVE_STRINGS_H
  538. # include <strings.h>
  539. #endif
  540. #ifdef HAVE_INTTYPES_H
  541. # include <inttypes.h>
  542. #endif
  543. #ifdef HAVE_STDINT_H
  544. # include <stdint.h>
  545. #endif
  546. #ifdef HAVE_UNISTD_H
  547. # include <unistd.h>
  548. #endif"
  549. ac_subst_vars='am__EXEEXT_FALSE
  550. am__EXEEXT_TRUE
  551. LTLIBOBJS
  552. LIBOBJS
  553. OMP_NEST_LOCK_25_KIND
  554. OMP_LOCK_25_KIND
  555. OMP_NEST_LOCK_25_ALIGN
  556. OMP_NEST_LOCK_25_SIZE
  557. OMP_LOCK_25_ALIGN
  558. OMP_LOCK_25_SIZE
  559. OMP_NEST_LOCK_KIND
  560. OMP_LOCK_KIND
  561. OMP_NEST_LOCK_ALIGN
  562. OMP_NEST_LOCK_SIZE
  563. OMP_LOCK_ALIGN
  564. OMP_LOCK_SIZE
  565. USE_FORTRAN_FALSE
  566. USE_FORTRAN_TRUE
  567. link_gomp
  568. XLDFLAGS
  569. XCFLAGS
  570. config_path
  571. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
  572. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
  573. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
  574. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
  575. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
  576. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
  577. OPT_LDFLAGS
  578. SECTION_LDFLAGS
  579. PLUGIN_NVPTX_FALSE
  580. PLUGIN_NVPTX_TRUE
  581. offload_additional_lib_paths
  582. offload_additional_options
  583. PLUGIN_NVPTX_LIBS
  584. PLUGIN_NVPTX_LDFLAGS
  585. PLUGIN_NVPTX_CPPFLAGS
  586. PLUGIN_NVPTX
  587. CUDA_DRIVER_LIB
  588. CUDA_DRIVER_INCLUDE
  589. offload_targets
  590. libtool_VERSION
  591. ac_ct_FC
  592. FCFLAGS
  593. FC
  594. MAINT
  595. MAINTAINER_MODE_FALSE
  596. MAINTAINER_MODE_TRUE
  597. enable_static
  598. enable_shared
  599. lt_host_flags
  600. CPP
  601. OTOOL64
  602. OTOOL
  603. LIPO
  604. NMEDIT
  605. DSYMUTIL
  606. OBJDUMP
  607. LN_S
  608. NM
  609. ac_ct_DUMPBIN
  610. DUMPBIN
  611. LD
  612. FGREP
  613. EGREP
  614. GREP
  615. SED
  616. LIBTOOL
  617. BUILD_INFO_FALSE
  618. BUILD_INFO_TRUE
  619. PERL
  620. RANLIB
  621. AR
  622. am__fastdepCC_FALSE
  623. am__fastdepCC_TRUE
  624. CCDEPMODE
  625. AMDEPBACKSLASH
  626. AMDEP_FALSE
  627. AMDEP_TRUE
  628. am__quote
  629. am__include
  630. DEPDIR
  631. OBJEXT
  632. EXEEXT
  633. ac_ct_CC
  634. CPPFLAGS
  635. LDFLAGS
  636. CFLAGS
  637. CC
  638. toolexeclibdir
  639. toolexecdir
  640. multi_basedir
  641. am__untar
  642. am__tar
  643. AMTAR
  644. am__leading_dot
  645. SET_MAKE
  646. AWK
  647. mkdir_p
  648. MKDIR_P
  649. INSTALL_STRIP_PROGRAM
  650. STRIP
  651. install_sh
  652. MAKEINFO
  653. AUTOHEADER
  654. AUTOMAKE
  655. AUTOCONF
  656. ACLOCAL
  657. VERSION
  658. PACKAGE
  659. CYGPATH_W
  660. am__isrc
  661. INSTALL_DATA
  662. INSTALL_SCRIPT
  663. INSTALL_PROGRAM
  664. target_os
  665. target_vendor
  666. target_cpu
  667. target
  668. host_os
  669. host_vendor
  670. host_cpu
  671. host
  672. build_os
  673. build_vendor
  674. build_cpu
  675. build
  676. GENINSRC_FALSE
  677. GENINSRC_TRUE
  678. target_alias
  679. host_alias
  680. build_alias
  681. LIBS
  682. ECHO_T
  683. ECHO_N
  684. ECHO_C
  685. DEFS
  686. mandir
  687. localedir
  688. libdir
  689. psdir
  690. pdfdir
  691. dvidir
  692. htmldir
  693. infodir
  694. docdir
  695. oldincludedir
  696. includedir
  697. localstatedir
  698. sharedstatedir
  699. sysconfdir
  700. datadir
  701. datarootdir
  702. libexecdir
  703. sbindir
  704. bindir
  705. program_transform_name
  706. prefix
  707. exec_prefix
  708. PACKAGE_URL
  709. PACKAGE_BUGREPORT
  710. PACKAGE_STRING
  711. PACKAGE_VERSION
  712. PACKAGE_TARNAME
  713. PACKAGE_NAME
  714. PATH_SEPARATOR
  715. SHELL'
  716. ac_subst_files=''
  717. ac_user_opts='
  718. enable_option_checking
  719. enable_version_specific_runtime_libs
  720. enable_generated_files_in_srcdir
  721. enable_multilib
  722. enable_dependency_tracking
  723. enable_shared
  724. enable_static
  725. with_pic
  726. enable_fast_install
  727. with_gnu_ld
  728. enable_libtool_lock
  729. enable_maintainer_mode
  730. with_cuda_driver
  731. with_cuda_driver_include
  732. with_cuda_driver_lib
  733. enable_linux_futex
  734. enable_tls
  735. enable_symvers
  736. '
  737. ac_precious_vars='build_alias
  738. host_alias
  739. target_alias
  740. CPP
  741. CPPFLAGS
  742. FC
  743. FCFLAGS
  744. LDFLAGS
  745. LIBS'
  746. # Initialize some variables set by options.
  747. ac_init_help=
  748. ac_init_version=false
  749. ac_unrecognized_opts=
  750. ac_unrecognized_sep=
  751. # The variables have the same names as the options, with
  752. # dashes changed to underlines.
  753. cache_file=/dev/null
  754. exec_prefix=NONE
  755. no_create=
  756. no_recursion=
  757. prefix=NONE
  758. program_prefix=NONE
  759. program_suffix=NONE
  760. program_transform_name=s,x,x,
  761. silent=
  762. site=
  763. srcdir=
  764. verbose=
  765. x_includes=NONE
  766. x_libraries=NONE
  767. # Installation directory options.
  768. # These are left unexpanded so users can "make install exec_prefix=/foo"
  769. # and all the variables that are supposed to be based on exec_prefix
  770. # by default will actually change.
  771. # Use braces instead of parens because sh, perl, etc. also accept them.
  772. # (The list follows the same order as the GNU Coding Standards.)
  773. bindir='${exec_prefix}/bin'
  774. sbindir='${exec_prefix}/sbin'
  775. libexecdir='${exec_prefix}/libexec'
  776. datarootdir='${prefix}/share'
  777. datadir='${datarootdir}'
  778. sysconfdir='${prefix}/etc'
  779. sharedstatedir='${prefix}/com'
  780. localstatedir='${prefix}/var'
  781. includedir='${prefix}/include'
  782. oldincludedir='/usr/include'
  783. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  784. infodir='${datarootdir}/info'
  785. htmldir='${docdir}'
  786. dvidir='${docdir}'
  787. pdfdir='${docdir}'
  788. psdir='${docdir}'
  789. libdir='${exec_prefix}/lib'
  790. localedir='${datarootdir}/locale'
  791. mandir='${datarootdir}/man'
  792. ac_prev=
  793. ac_dashdash=
  794. for ac_option
  795. do
  796. # If the previous option needs an argument, assign it.
  797. if test -n "$ac_prev"; then
  798. eval $ac_prev=\$ac_option
  799. ac_prev=
  800. continue
  801. fi
  802. case $ac_option in
  803. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=\$ac_optarg ;;
  874. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  875. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  876. | --exec | --exe | --ex)
  877. ac_prev=exec_prefix ;;
  878. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  879. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  880. | --exec=* | --exe=* | --ex=*)
  881. exec_prefix=$ac_optarg ;;
  882. -gas | --gas | --ga | --g)
  883. # Obsolete; use --with-gas.
  884. with_gas=yes ;;
  885. -help | --help | --hel | --he | -h)
  886. ac_init_help=long ;;
  887. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  888. ac_init_help=recursive ;;
  889. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  890. ac_init_help=short ;;
  891. -host | --host | --hos | --ho)
  892. ac_prev=host_alias ;;
  893. -host=* | --host=* | --hos=* | --ho=*)
  894. host_alias=$ac_optarg ;;
  895. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  896. ac_prev=htmldir ;;
  897. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  898. | --ht=*)
  899. htmldir=$ac_optarg ;;
  900. -includedir | --includedir | --includedi | --included | --include \
  901. | --includ | --inclu | --incl | --inc)
  902. ac_prev=includedir ;;
  903. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  904. | --includ=* | --inclu=* | --incl=* | --inc=*)
  905. includedir=$ac_optarg ;;
  906. -infodir | --infodir | --infodi | --infod | --info | --inf)
  907. ac_prev=infodir ;;
  908. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  909. infodir=$ac_optarg ;;
  910. -libdir | --libdir | --libdi | --libd)
  911. ac_prev=libdir ;;
  912. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  913. libdir=$ac_optarg ;;
  914. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  915. | --libexe | --libex | --libe)
  916. ac_prev=libexecdir ;;
  917. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  918. | --libexe=* | --libex=* | --libe=*)
  919. libexecdir=$ac_optarg ;;
  920. -localedir | --localedir | --localedi | --localed | --locale)
  921. ac_prev=localedir ;;
  922. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  923. localedir=$ac_optarg ;;
  924. -localstatedir | --localstatedir | --localstatedi | --localstated \
  925. | --localstate | --localstat | --localsta | --localst | --locals)
  926. ac_prev=localstatedir ;;
  927. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  928. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  929. localstatedir=$ac_optarg ;;
  930. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  931. ac_prev=mandir ;;
  932. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  933. mandir=$ac_optarg ;;
  934. -nfp | --nfp | --nf)
  935. # Obsolete; use --without-fp.
  936. with_fp=no ;;
  937. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  938. | --no-cr | --no-c | -n)
  939. no_create=yes ;;
  940. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  941. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  942. no_recursion=yes ;;
  943. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  944. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  945. | --oldin | --oldi | --old | --ol | --o)
  946. ac_prev=oldincludedir ;;
  947. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  948. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  949. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  950. oldincludedir=$ac_optarg ;;
  951. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  952. ac_prev=prefix ;;
  953. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  954. prefix=$ac_optarg ;;
  955. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  956. | --program-pre | --program-pr | --program-p)
  957. ac_prev=program_prefix ;;
  958. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  959. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  960. program_prefix=$ac_optarg ;;
  961. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962. | --program-suf | --program-su | --program-s)
  963. ac_prev=program_suffix ;;
  964. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966. program_suffix=$ac_optarg ;;
  967. -program-transform-name | --program-transform-name \
  968. | --program-transform-nam | --program-transform-na \
  969. | --program-transform-n | --program-transform- \
  970. | --program-transform | --program-transfor \
  971. | --program-transfo | --program-transf \
  972. | --program-trans | --program-tran \
  973. | --progr-tra | --program-tr | --program-t)
  974. ac_prev=program_transform_name ;;
  975. -program-transform-name=* | --program-transform-name=* \
  976. | --program-transform-nam=* | --program-transform-na=* \
  977. | --program-transform-n=* | --program-transform-=* \
  978. | --program-transform=* | --program-transfor=* \
  979. | --program-transfo=* | --program-transf=* \
  980. | --program-trans=* | --program-tran=* \
  981. | --progr-tra=* | --program-tr=* | --program-t=*)
  982. program_transform_name=$ac_optarg ;;
  983. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  984. ac_prev=pdfdir ;;
  985. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  986. pdfdir=$ac_optarg ;;
  987. -psdir | --psdir | --psdi | --psd | --ps)
  988. ac_prev=psdir ;;
  989. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  990. psdir=$ac_optarg ;;
  991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  992. | -silent | --silent | --silen | --sile | --sil)
  993. silent=yes ;;
  994. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. ac_prev=sbindir ;;
  996. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. | --sbi=* | --sb=*)
  998. sbindir=$ac_optarg ;;
  999. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1000. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1001. | --sharedst | --shareds | --shared | --share | --shar \
  1002. | --sha | --sh)
  1003. ac_prev=sharedstatedir ;;
  1004. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1005. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1006. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1007. | --sha=* | --sh=*)
  1008. sharedstatedir=$ac_optarg ;;
  1009. -site | --site | --sit)
  1010. ac_prev=site ;;
  1011. -site=* | --site=* | --sit=*)
  1012. site=$ac_optarg ;;
  1013. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1014. ac_prev=srcdir ;;
  1015. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1016. srcdir=$ac_optarg ;;
  1017. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1018. | --syscon | --sysco | --sysc | --sys | --sy)
  1019. ac_prev=sysconfdir ;;
  1020. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1021. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1022. sysconfdir=$ac_optarg ;;
  1023. -target | --target | --targe | --targ | --tar | --ta | --t)
  1024. ac_prev=target_alias ;;
  1025. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1026. target_alias=$ac_optarg ;;
  1027. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1028. verbose=yes ;;
  1029. -version | --version | --versio | --versi | --vers | -V)
  1030. ac_init_version=: ;;
  1031. -with-* | --with-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=\$ac_optarg ;;
  1046. -without-* | --without-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=no ;;
  1061. --x)
  1062. # Obsolete; use --with-x.
  1063. with_x=yes ;;
  1064. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1065. | --x-incl | --x-inc | --x-in | --x-i)
  1066. ac_prev=x_includes ;;
  1067. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1068. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1069. x_includes=$ac_optarg ;;
  1070. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1071. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1072. ac_prev=x_libraries ;;
  1073. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1074. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1075. x_libraries=$ac_optarg ;;
  1076. -*) as_fn_error "unrecognized option: \`$ac_option'
  1077. Try \`$0 --help' for more information."
  1078. ;;
  1079. *=*)
  1080. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1081. # Reject names that are not valid shell variable names.
  1082. case $ac_envvar in #(
  1083. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1084. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1085. esac
  1086. eval $ac_envvar=\$ac_optarg
  1087. export $ac_envvar ;;
  1088. *)
  1089. # FIXME: should be removed in autoconf 3.0.
  1090. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1091. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1093. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1094. ;;
  1095. esac
  1096. done
  1097. if test -n "$ac_prev"; then
  1098. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1099. as_fn_error "missing argument to $ac_option"
  1100. fi
  1101. if test -n "$ac_unrecognized_opts"; then
  1102. case $enable_option_checking in
  1103. no) ;;
  1104. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1105. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1106. esac
  1107. fi
  1108. # Check all directory arguments for consistency.
  1109. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1110. datadir sysconfdir sharedstatedir localstatedir includedir \
  1111. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1112. libdir localedir mandir
  1113. do
  1114. eval ac_val=\$$ac_var
  1115. # Remove trailing slashes.
  1116. case $ac_val in
  1117. */ )
  1118. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1119. eval $ac_var=\$ac_val;;
  1120. esac
  1121. # Be sure to have absolute directory names.
  1122. case $ac_val in
  1123. [\\/$]* | ?:[\\/]* ) continue;;
  1124. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1125. esac
  1126. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1139. If a cross compiler is detected then cross compile mode will be used." >&2
  1140. elif test "x$build_alias" != "x$host_alias"; then
  1141. cross_compiling=yes
  1142. fi
  1143. fi
  1144. ac_tool_prefix=
  1145. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1146. test "$silent" = yes && exec 6>/dev/null
  1147. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1148. ac_ls_di=`ls -di .` &&
  1149. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1150. as_fn_error "working directory cannot be determined"
  1151. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1152. as_fn_error "pwd does not report name of working directory"
  1153. # Find the source files, if location was not specified.
  1154. if test -z "$srcdir"; then
  1155. ac_srcdir_defaulted=yes
  1156. # Try the directory containing this script, then the parent directory.
  1157. ac_confdir=`$as_dirname -- "$as_myself" ||
  1158. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1159. X"$as_myself" : 'X\(//\)[^/]' \| \
  1160. X"$as_myself" : 'X\(//\)$' \| \
  1161. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1162. $as_echo X"$as_myself" |
  1163. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1164. s//\1/
  1165. q
  1166. }
  1167. /^X\(\/\/\)[^/].*/{
  1168. s//\1/
  1169. q
  1170. }
  1171. /^X\(\/\/\)$/{
  1172. s//\1/
  1173. q
  1174. }
  1175. /^X\(\/\).*/{
  1176. s//\1/
  1177. q
  1178. }
  1179. s/.*/./; q'`
  1180. srcdir=$ac_confdir
  1181. if test ! -r "$srcdir/$ac_unique_file"; then
  1182. srcdir=..
  1183. fi
  1184. else
  1185. ac_srcdir_defaulted=no
  1186. fi
  1187. if test ! -r "$srcdir/$ac_unique_file"; then
  1188. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1189. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1190. fi
  1191. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1192. ac_abs_confdir=`(
  1193. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1194. pwd)`
  1195. # When building in place, set srcdir=.
  1196. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1197. srcdir=.
  1198. fi
  1199. # Remove unnecessary trailing slashes from srcdir.
  1200. # Double slashes in file names in object file debugging info
  1201. # mess up M-x gdb in Emacs.
  1202. case $srcdir in
  1203. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1204. esac
  1205. for ac_var in $ac_precious_vars; do
  1206. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_env_${ac_var}_value=\$${ac_var}
  1208. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1209. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1210. done
  1211. #
  1212. # Report the --help message.
  1213. #
  1214. if test "$ac_init_help" = "long"; then
  1215. # Omit some internal or obsolete options to make the list less imposing.
  1216. # This message is too long to be a string in the A/UX 3.1 sh.
  1217. cat <<_ACEOF
  1218. \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
  1219. Usage: $0 [OPTION]... [VAR=VALUE]...
  1220. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1221. VAR=VALUE. See below for descriptions of some of the useful variables.
  1222. Defaults for the options are specified in brackets.
  1223. Configuration:
  1224. -h, --help display this help and exit
  1225. --help=short display options specific to this package
  1226. --help=recursive display the short help of all the included packages
  1227. -V, --version display version information and exit
  1228. -q, --quiet, --silent do not print \`checking...' messages
  1229. --cache-file=FILE cache test results in FILE [disabled]
  1230. -C, --config-cache alias for \`--cache-file=config.cache'
  1231. -n, --no-create do not create output files
  1232. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1233. Installation directories:
  1234. --prefix=PREFIX install architecture-independent files in PREFIX
  1235. [$ac_default_prefix]
  1236. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1237. [PREFIX]
  1238. By default, \`make install' will install all the files in
  1239. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1240. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1241. for instance \`--prefix=\$HOME'.
  1242. For better control, use the options below.
  1243. Fine tuning of the installation directories:
  1244. --bindir=DIR user executables [EPREFIX/bin]
  1245. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1246. --libexecdir=DIR program executables [EPREFIX/libexec]
  1247. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1248. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1249. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1250. --libdir=DIR object code libraries [EPREFIX/lib]
  1251. --includedir=DIR C header files [PREFIX/include]
  1252. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1253. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1254. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1255. --infodir=DIR info documentation [DATAROOTDIR/info]
  1256. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1257. --mandir=DIR man documentation [DATAROOTDIR/man]
  1258. --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
  1259. --htmldir=DIR html documentation [DOCDIR]
  1260. --dvidir=DIR dvi documentation [DOCDIR]
  1261. --pdfdir=DIR pdf documentation [DOCDIR]
  1262. --psdir=DIR ps documentation [DOCDIR]
  1263. _ACEOF
  1264. cat <<\_ACEOF
  1265. Program names:
  1266. --program-prefix=PREFIX prepend PREFIX to installed program names
  1267. --program-suffix=SUFFIX append SUFFIX to installed program names
  1268. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1269. System types:
  1270. --build=BUILD configure for building on BUILD [guessed]
  1271. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1272. --target=TARGET configure for building compilers for TARGET [HOST]
  1273. _ACEOF
  1274. fi
  1275. if test -n "$ac_init_help"; then
  1276. case $ac_init_help in
  1277. short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
  1278. esac
  1279. cat <<\_ACEOF
  1280. Optional Features:
  1281. --disable-option-checking ignore unrecognized --enable/--with options
  1282. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1283. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1284. --enable-version-specific-runtime-libs
  1285. Specify that runtime libraries should be installed
  1286. in a compiler-specific directory [default=no]
  1287. --enable-generated-files-in-srcdir
  1288. put copies of generated files in source dir intended
  1289. for creating source tarballs for users without
  1290. texinfo bison or flex. [default=no]
  1291. --enable-multilib build many library versions (default)
  1292. --disable-dependency-tracking speeds up one-time build
  1293. --enable-dependency-tracking do not reject slow dependency extractors
  1294. --enable-shared[=PKGS] build shared libraries [default=yes]
  1295. --enable-static[=PKGS] build static libraries [default=yes]
  1296. --enable-fast-install[=PKGS]
  1297. optimize for fast installation [default=yes]
  1298. --disable-libtool-lock avoid locking (might break parallel builds)
  1299. --enable-maintainer-mode enable make rules and dependencies not useful
  1300. (and sometimes confusing) to the casual installer
  1301. --enable-linux-futex use the Linux futex system call [default=default]
  1302. --enable-tls Use thread-local storage [default=yes]
  1303. --enable-symvers=STYLE enables symbol versioning of the shared library
  1304. [default=yes]
  1305. Optional Packages:
  1306. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1307. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1308. --with-pic try to use only PIC/non-PIC objects [default=use
  1309. both]
  1310. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1311. --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
  1312. package. Equivalent to
  1313. --with-cuda-driver-include=PATH/include plus
  1314. --with-cuda-driver-lib=PATH/lib
  1315. --with-cuda-driver-include=PATH
  1316. specify directory for installed CUDA driver include
  1317. files
  1318. --with-cuda-driver-lib=PATH
  1319. specify directory for the installed CUDA driver
  1320. library
  1321. Some influential environment variables:
  1322. CC C compiler command
  1323. CFLAGS C compiler flags
  1324. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1325. nonstandard directory <lib dir>
  1326. LIBS libraries to pass to the linker, e.g. -l<library>
  1327. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1328. you have headers in a nonstandard directory <include dir>
  1329. CPP C preprocessor
  1330. FC Fortran compiler command
  1331. FCFLAGS Fortran compiler flags
  1332. Use these variables to override the choices made by `configure' or to help
  1333. it to find libraries and programs with nonstandard names/locations.
  1334. Report bugs to the package provider.
  1335. GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
  1336. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1337. _ACEOF
  1338. ac_status=$?
  1339. fi
  1340. if test "$ac_init_help" = "recursive"; then
  1341. # If there are subdirs, report their specific --help.
  1342. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1343. test -d "$ac_dir" ||
  1344. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1345. continue
  1346. ac_builddir=.
  1347. case "$ac_dir" in
  1348. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1349. *)
  1350. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1351. # A ".." for each directory in $ac_dir_suffix.
  1352. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1353. case $ac_top_builddir_sub in
  1354. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1355. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1356. esac ;;
  1357. esac
  1358. ac_abs_top_builddir=$ac_pwd
  1359. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1360. # for backward compatibility:
  1361. ac_top_builddir=$ac_top_build_prefix
  1362. case $srcdir in
  1363. .) # We are building in place.
  1364. ac_srcdir=.
  1365. ac_top_srcdir=$ac_top_builddir_sub
  1366. ac_abs_top_srcdir=$ac_pwd ;;
  1367. [\\/]* | ?:[\\/]* ) # Absolute name.
  1368. ac_srcdir=$srcdir$ac_dir_suffix;
  1369. ac_top_srcdir=$srcdir
  1370. ac_abs_top_srcdir=$srcdir ;;
  1371. *) # Relative name.
  1372. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1373. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1374. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1375. esac
  1376. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1377. cd "$ac_dir" || { ac_status=$?; continue; }
  1378. # Check for guested configure.
  1379. if test -f "$ac_srcdir/configure.gnu"; then
  1380. echo &&
  1381. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1382. elif test -f "$ac_srcdir/configure"; then
  1383. echo &&
  1384. $SHELL "$ac_srcdir/configure" --help=recursive
  1385. else
  1386. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1387. fi || ac_status=$?
  1388. cd "$ac_pwd" || { ac_status=$?; break; }
  1389. done
  1390. fi
  1391. test -n "$ac_init_help" && exit $ac_status
  1392. if $ac_init_version; then
  1393. cat <<\_ACEOF
  1394. GNU Offloading and Multi Processing Runtime Library configure 1.0
  1395. generated by GNU Autoconf 2.64
  1396. Copyright (C) 2009 Free Software Foundation, Inc.
  1397. This configure script is free software; the Free Software Foundation
  1398. gives unlimited permission to copy, distribute and modify it.
  1399. _ACEOF
  1400. exit
  1401. fi
  1402. ## ------------------------ ##
  1403. ## Autoconf initialization. ##
  1404. ## ------------------------ ##
  1405. # ac_fn_c_try_compile LINENO
  1406. # --------------------------
  1407. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1408. ac_fn_c_try_compile ()
  1409. {
  1410. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1411. rm -f conftest.$ac_objext
  1412. if { { ac_try="$ac_compile"
  1413. case "(($ac_try" in
  1414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1415. *) ac_try_echo=$ac_try;;
  1416. esac
  1417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1418. $as_echo "$ac_try_echo"; } >&5
  1419. (eval "$ac_compile") 2>conftest.err
  1420. ac_status=$?
  1421. if test -s conftest.err; then
  1422. grep -v '^ *+' conftest.err >conftest.er1
  1423. cat conftest.er1 >&5
  1424. mv -f conftest.er1 conftest.err
  1425. fi
  1426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1427. test $ac_status = 0; } && {
  1428. test -z "$ac_c_werror_flag" ||
  1429. test ! -s conftest.err
  1430. } && test -s conftest.$ac_objext; then :
  1431. ac_retval=0
  1432. else
  1433. $as_echo "$as_me: failed program was:" >&5
  1434. sed 's/^/| /' conftest.$ac_ext >&5
  1435. ac_retval=1
  1436. fi
  1437. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1438. return $ac_retval
  1439. } # ac_fn_c_try_compile
  1440. # ac_fn_c_try_link LINENO
  1441. # -----------------------
  1442. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1443. ac_fn_c_try_link ()
  1444. {
  1445. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1446. rm -f conftest.$ac_objext conftest$ac_exeext
  1447. if { { ac_try="$ac_link"
  1448. case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_link") 2>conftest.err
  1455. ac_status=$?
  1456. if test -s conftest.err; then
  1457. grep -v '^ *+' conftest.err >conftest.er1
  1458. cat conftest.er1 >&5
  1459. mv -f conftest.er1 conftest.err
  1460. fi
  1461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1462. test $ac_status = 0; } && {
  1463. test -z "$ac_c_werror_flag" ||
  1464. test ! -s conftest.err
  1465. } && test -s conftest$ac_exeext && {
  1466. test "$cross_compiling" = yes ||
  1467. $as_test_x conftest$ac_exeext
  1468. }; then :
  1469. ac_retval=0
  1470. else
  1471. $as_echo "$as_me: failed program was:" >&5
  1472. sed 's/^/| /' conftest.$ac_ext >&5
  1473. ac_retval=1
  1474. fi
  1475. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1476. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1477. # interfere with the next link command; also delete a directory that is
  1478. # left behind by Apple's compiler. We do this before executing the actions.
  1479. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1480. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1481. return $ac_retval
  1482. } # ac_fn_c_try_link
  1483. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1484. # -------------------------------------------------------
  1485. # Tests whether HEADER exists and can be compiled using the include files in
  1486. # INCLUDES, setting the cache variable VAR accordingly.
  1487. ac_fn_c_check_header_compile ()
  1488. {
  1489. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1493. $as_echo_n "(cached) " >&6
  1494. else
  1495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1496. /* end confdefs.h. */
  1497. $4
  1498. #include <$2>
  1499. _ACEOF
  1500. if ac_fn_c_try_compile "$LINENO"; then :
  1501. eval "$3=yes"
  1502. else
  1503. eval "$3=no"
  1504. fi
  1505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1506. fi
  1507. eval ac_res=\$$3
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1509. $as_echo "$ac_res" >&6; }
  1510. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1511. } # ac_fn_c_check_header_compile
  1512. # ac_fn_c_try_cpp LINENO
  1513. # ----------------------
  1514. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1515. ac_fn_c_try_cpp ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1519. case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1526. ac_status=$?
  1527. if test -s conftest.err; then
  1528. grep -v '^ *+' conftest.err >conftest.er1
  1529. cat conftest.er1 >&5
  1530. mv -f conftest.er1 conftest.err
  1531. fi
  1532. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1533. test $ac_status = 0; } >/dev/null && {
  1534. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1535. test ! -s conftest.err
  1536. }; then :
  1537. ac_retval=0
  1538. else
  1539. $as_echo "$as_me: failed program was:" >&5
  1540. sed 's/^/| /' conftest.$ac_ext >&5
  1541. ac_retval=1
  1542. fi
  1543. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1544. return $ac_retval
  1545. } # ac_fn_c_try_cpp
  1546. # ac_fn_c_try_run LINENO
  1547. # ----------------------
  1548. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1549. # that executables *can* be run.
  1550. ac_fn_c_try_run ()
  1551. {
  1552. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1553. if { { ac_try="$ac_link"
  1554. case "(($ac_try" in
  1555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1556. *) ac_try_echo=$ac_try;;
  1557. esac
  1558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1559. $as_echo "$ac_try_echo"; } >&5
  1560. (eval "$ac_link") 2>&5
  1561. ac_status=$?
  1562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1563. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1564. { { case "(($ac_try" in
  1565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1566. *) ac_try_echo=$ac_try;;
  1567. esac
  1568. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1569. $as_echo "$ac_try_echo"; } >&5
  1570. (eval "$ac_try") 2>&5
  1571. ac_status=$?
  1572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573. test $ac_status = 0; }; }; then :
  1574. ac_retval=0
  1575. else
  1576. $as_echo "$as_me: program exited with status $ac_status" >&5
  1577. $as_echo "$as_me: failed program was:" >&5
  1578. sed 's/^/| /' conftest.$ac_ext >&5
  1579. ac_retval=$ac_status
  1580. fi
  1581. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1582. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1583. return $ac_retval
  1584. } # ac_fn_c_try_run
  1585. # ac_fn_c_check_func LINENO FUNC VAR
  1586. # ----------------------------------
  1587. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1588. ac_fn_c_check_func ()
  1589. {
  1590. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1592. $as_echo_n "checking for $2... " >&6; }
  1593. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1594. $as_echo_n "(cached) " >&6
  1595. else
  1596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1597. /* end confdefs.h. */
  1598. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1599. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1600. #define $2 innocuous_$2
  1601. /* System header to define __stub macros and hopefully few prototypes,
  1602. which can conflict with char $2 (); below.
  1603. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1604. <limits.h> exists even on freestanding compilers. */
  1605. #ifdef __STDC__
  1606. # include <limits.h>
  1607. #else
  1608. # include <assert.h>
  1609. #endif
  1610. #undef $2
  1611. /* Override any GCC internal prototype to avoid an error.
  1612. Use char because int might match the return type of a GCC
  1613. builtin and then its argument prototype would still apply. */
  1614. #ifdef __cplusplus
  1615. extern "C"
  1616. #endif
  1617. char $2 ();
  1618. /* The GNU C library defines this for functions which it implements
  1619. to always fail with ENOSYS. Some functions are actually named
  1620. something starting with __ and the normal name is an alias. */
  1621. #if defined __stub_$2 || defined __stub___$2
  1622. choke me
  1623. #endif
  1624. int
  1625. main ()
  1626. {
  1627. return $2 ();
  1628. ;
  1629. return 0;
  1630. }
  1631. _ACEOF
  1632. if ac_fn_c_try_link "$LINENO"; then :
  1633. eval "$3=yes"
  1634. else
  1635. eval "$3=no"
  1636. fi
  1637. rm -f core conftest.err conftest.$ac_objext \
  1638. conftest$ac_exeext conftest.$ac_ext
  1639. fi
  1640. eval ac_res=\$$3
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. $as_echo "$ac_res" >&6; }
  1643. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1644. } # ac_fn_c_check_func
  1645. # ac_fn_fc_try_compile LINENO
  1646. # ---------------------------
  1647. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1648. ac_fn_fc_try_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. rm -f conftest.$ac_objext
  1652. if { { ac_try="$ac_compile"
  1653. case "(($ac_try" in
  1654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1655. *) ac_try_echo=$ac_try;;
  1656. esac
  1657. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1658. $as_echo "$ac_try_echo"; } >&5
  1659. (eval "$ac_compile") 2>conftest.err
  1660. ac_status=$?
  1661. if test -s conftest.err; then
  1662. grep -v '^ *+' conftest.err >conftest.er1
  1663. cat conftest.er1 >&5
  1664. mv -f conftest.er1 conftest.err
  1665. fi
  1666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667. test $ac_status = 0; } && {
  1668. test -z "$ac_fc_werror_flag" ||
  1669. test ! -s conftest.err
  1670. } && test -s conftest.$ac_objext; then :
  1671. ac_retval=0
  1672. else
  1673. $as_echo "$as_me: failed program was:" >&5
  1674. sed 's/^/| /' conftest.$ac_ext >&5
  1675. ac_retval=1
  1676. fi
  1677. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1678. return $ac_retval
  1679. } # ac_fn_fc_try_compile
  1680. # ac_fn_fc_try_link LINENO
  1681. # ------------------------
  1682. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1683. ac_fn_fc_try_link ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. rm -f conftest.$ac_objext conftest$ac_exeext
  1687. if { { ac_try="$ac_link"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_link") 2>conftest.err
  1695. ac_status=$?
  1696. if test -s conftest.err; then
  1697. grep -v '^ *+' conftest.err >conftest.er1
  1698. cat conftest.er1 >&5
  1699. mv -f conftest.er1 conftest.err
  1700. fi
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } && {
  1703. test -z "$ac_fc_werror_flag" ||
  1704. test ! -s conftest.err
  1705. } && test -s conftest$ac_exeext && {
  1706. test "$cross_compiling" = yes ||
  1707. $as_test_x conftest$ac_exeext
  1708. }; then :
  1709. ac_retval=0
  1710. else
  1711. $as_echo "$as_me: failed program was:" >&5
  1712. sed 's/^/| /' conftest.$ac_ext >&5
  1713. ac_retval=1
  1714. fi
  1715. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1716. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1717. # interfere with the next link command; also delete a directory that is
  1718. # left behind by Apple's compiler. We do this before executing the actions.
  1719. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1720. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1721. return $ac_retval
  1722. } # ac_fn_fc_try_link
  1723. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1724. # -------------------------------------------------------
  1725. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1726. # the include files in INCLUDES and setting the cache variable VAR
  1727. # accordingly.
  1728. ac_fn_c_check_header_mongrel ()
  1729. {
  1730. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1731. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1733. $as_echo_n "checking for $2... " >&6; }
  1734. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1735. $as_echo_n "(cached) " >&6
  1736. fi
  1737. eval ac_res=\$$3
  1738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1739. $as_echo "$ac_res" >&6; }
  1740. else
  1741. # Is the header compilable?
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1743. $as_echo_n "checking $2 usability... " >&6; }
  1744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1745. /* end confdefs.h. */
  1746. $4
  1747. #include <$2>
  1748. _ACEOF
  1749. if ac_fn_c_try_compile "$LINENO"; then :
  1750. ac_header_compiler=yes
  1751. else
  1752. ac_header_compiler=no
  1753. fi
  1754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1756. $as_echo "$ac_header_compiler" >&6; }
  1757. # Is the header present?
  1758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1759. $as_echo_n "checking $2 presence... " >&6; }
  1760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1761. /* end confdefs.h. */
  1762. #include <$2>
  1763. _ACEOF
  1764. if ac_fn_c_try_cpp "$LINENO"; then :
  1765. ac_header_preproc=yes
  1766. else
  1767. ac_header_preproc=no
  1768. fi
  1769. rm -f conftest.err conftest.$ac_ext
  1770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1771. $as_echo "$ac_header_preproc" >&6; }
  1772. # So? What about this header?
  1773. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1774. yes:no: )
  1775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1776. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1778. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1779. ;;
  1780. no:yes:* )
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1782. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1784. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1786. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1788. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1790. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1791. ;;
  1792. esac
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1794. $as_echo_n "checking for $2... " >&6; }
  1795. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1796. $as_echo_n "(cached) " >&6
  1797. else
  1798. eval "$3=\$ac_header_compiler"
  1799. fi
  1800. eval ac_res=\$$3
  1801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1802. $as_echo "$ac_res" >&6; }
  1803. fi
  1804. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1805. } # ac_fn_c_check_header_mongrel
  1806. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1807. # -------------------------------------------
  1808. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1809. # variable VAR accordingly.
  1810. ac_fn_c_check_type ()
  1811. {
  1812. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1814. $as_echo_n "checking for $2... " >&6; }
  1815. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1816. $as_echo_n "(cached) " >&6
  1817. else
  1818. eval "$3=no"
  1819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1820. /* end confdefs.h. */
  1821. $4
  1822. int
  1823. main ()
  1824. {
  1825. if (sizeof ($2))
  1826. return 0;
  1827. ;
  1828. return 0;
  1829. }
  1830. _ACEOF
  1831. if ac_fn_c_try_compile "$LINENO"; then :
  1832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1833. /* end confdefs.h. */
  1834. $4
  1835. int
  1836. main ()
  1837. {
  1838. if (sizeof (($2)))
  1839. return 0;
  1840. ;
  1841. return 0;
  1842. }
  1843. _ACEOF
  1844. if ac_fn_c_try_compile "$LINENO"; then :
  1845. else
  1846. eval "$3=yes"
  1847. fi
  1848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1849. fi
  1850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1851. fi
  1852. eval ac_res=\$$3
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1854. $as_echo "$ac_res" >&6; }
  1855. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1856. } # ac_fn_c_check_type
  1857. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1858. # --------------------------------------------
  1859. # Tries to find the compile-time value of EXPR in a program that includes
  1860. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1861. # computed
  1862. ac_fn_c_compute_int ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. if test "$cross_compiling" = yes; then
  1866. # Depending upon the size, compute the lo and hi bounds.
  1867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1868. /* end confdefs.h. */
  1869. $4
  1870. int
  1871. main ()
  1872. {
  1873. static int test_array [1 - 2 * !(($2) >= 0)];
  1874. test_array [0] = 0
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. ac_lo=0 ac_mid=0
  1881. while :; do
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. $4
  1885. int
  1886. main ()
  1887. {
  1888. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1889. test_array [0] = 0
  1890. ;
  1891. return 0;
  1892. }
  1893. _ACEOF
  1894. if ac_fn_c_try_compile "$LINENO"; then :
  1895. ac_hi=$ac_mid; break
  1896. else
  1897. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1898. if test $ac_lo -le $ac_mid; then
  1899. ac_lo= ac_hi=
  1900. break
  1901. fi
  1902. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1903. fi
  1904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1905. done
  1906. else
  1907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1908. /* end confdefs.h. */
  1909. $4
  1910. int
  1911. main ()
  1912. {
  1913. static int test_array [1 - 2 * !(($2) < 0)];
  1914. test_array [0] = 0
  1915. ;
  1916. return 0;
  1917. }
  1918. _ACEOF
  1919. if ac_fn_c_try_compile "$LINENO"; then :
  1920. ac_hi=-1 ac_mid=-1
  1921. while :; do
  1922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1923. /* end confdefs.h. */
  1924. $4
  1925. int
  1926. main ()
  1927. {
  1928. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1929. test_array [0] = 0
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. if ac_fn_c_try_compile "$LINENO"; then :
  1935. ac_lo=$ac_mid; break
  1936. else
  1937. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1938. if test $ac_mid -le $ac_hi; then
  1939. ac_lo= ac_hi=
  1940. break
  1941. fi
  1942. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1943. fi
  1944. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1945. done
  1946. else
  1947. ac_lo= ac_hi=
  1948. fi
  1949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1950. fi
  1951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1952. # Binary search between lo and hi bounds.
  1953. while test "x$ac_lo" != "x$ac_hi"; do
  1954. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1956. /* end confdefs.h. */
  1957. $4
  1958. int
  1959. main ()
  1960. {
  1961. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1962. test_array [0] = 0
  1963. ;
  1964. return 0;
  1965. }
  1966. _ACEOF
  1967. if ac_fn_c_try_compile "$LINENO"; then :
  1968. ac_hi=$ac_mid
  1969. else
  1970. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1971. fi
  1972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1973. done
  1974. case $ac_lo in #((
  1975. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1976. '') ac_retval=1 ;;
  1977. esac
  1978. else
  1979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1980. /* end confdefs.h. */
  1981. $4
  1982. static long int longval () { return $2; }
  1983. static unsigned long int ulongval () { return $2; }
  1984. #include <stdio.h>
  1985. #include <stdlib.h>
  1986. int
  1987. main ()
  1988. {
  1989. FILE *f = fopen ("conftest.val", "w");
  1990. if (! f)
  1991. return 1;
  1992. if (($2) < 0)
  1993. {
  1994. long int i = longval ();
  1995. if (i != ($2))
  1996. return 1;
  1997. fprintf (f, "%ld", i);
  1998. }
  1999. else
  2000. {
  2001. unsigned long int i = ulongval ();
  2002. if (i != ($2))
  2003. return 1;
  2004. fprintf (f, "%lu", i);
  2005. }
  2006. /* Do not output a trailing newline, as this causes \r\n confusion
  2007. on some platforms. */
  2008. return ferror (f) || fclose (f) != 0;
  2009. ;
  2010. return 0;
  2011. }
  2012. _ACEOF
  2013. if ac_fn_c_try_run "$LINENO"; then :
  2014. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2015. else
  2016. ac_retval=1
  2017. fi
  2018. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2019. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2020. rm -f conftest.val
  2021. fi
  2022. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2023. return $ac_retval
  2024. } # ac_fn_c_compute_int
  2025. cat >config.log <<_ACEOF
  2026. This file contains any messages produced by compilers while
  2027. running configure, to aid debugging if configure makes a mistake.
  2028. It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
  2029. generated by GNU Autoconf 2.64. Invocation command line was
  2030. $ $0 $@
  2031. _ACEOF
  2032. exec 5>>config.log
  2033. {
  2034. cat <<_ASUNAME
  2035. ## --------- ##
  2036. ## Platform. ##
  2037. ## --------- ##
  2038. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2039. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2040. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2041. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2042. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2043. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2044. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2045. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2046. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2047. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2048. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2049. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2050. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2051. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2052. _ASUNAME
  2053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2054. for as_dir in $PATH
  2055. do
  2056. IFS=$as_save_IFS
  2057. test -z "$as_dir" && as_dir=.
  2058. $as_echo "PATH: $as_dir"
  2059. done
  2060. IFS=$as_save_IFS
  2061. } >&5
  2062. cat >&5 <<_ACEOF
  2063. ## ----------- ##
  2064. ## Core tests. ##
  2065. ## ----------- ##
  2066. _ACEOF
  2067. # Keep a trace of the command line.
  2068. # Strip out --no-create and --no-recursion so they do not pile up.
  2069. # Strip out --silent because we don't want to record it for future runs.
  2070. # Also quote any args containing shell meta-characters.
  2071. # Make two passes to allow for proper duplicate-argument suppression.
  2072. ac_configure_args=
  2073. ac_configure_args0=
  2074. ac_configure_args1=
  2075. ac_must_keep_next=false
  2076. for ac_pass in 1 2
  2077. do
  2078. for ac_arg
  2079. do
  2080. case $ac_arg in
  2081. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2083. | -silent | --silent | --silen | --sile | --sil)
  2084. continue ;;
  2085. *\'*)
  2086. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2087. esac
  2088. case $ac_pass in
  2089. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2090. 2)
  2091. as_fn_append ac_configure_args1 " '$ac_arg'"
  2092. if test $ac_must_keep_next = true; then
  2093. ac_must_keep_next=false # Got value, back to normal.
  2094. else
  2095. case $ac_arg in
  2096. *=* | --config-cache | -C | -disable-* | --disable-* \
  2097. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2098. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2099. | -with-* | --with-* | -without-* | --without-* | --x)
  2100. case "$ac_configure_args0 " in
  2101. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2102. esac
  2103. ;;
  2104. -* ) ac_must_keep_next=true ;;
  2105. esac
  2106. fi
  2107. as_fn_append ac_configure_args " '$ac_arg'"
  2108. ;;
  2109. esac
  2110. done
  2111. done
  2112. { ac_configure_args0=; unset ac_configure_args0;}
  2113. { ac_configure_args1=; unset ac_configure_args1;}
  2114. # When interrupted or exit'd, cleanup temporary files, and complete
  2115. # config.log. We remove comments because anyway the quotes in there
  2116. # would cause problems or look ugly.
  2117. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2118. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2119. trap 'exit_status=$?
  2120. # Save into config.log some information that might help in debugging.
  2121. {
  2122. echo
  2123. cat <<\_ASBOX
  2124. ## ---------------- ##
  2125. ## Cache variables. ##
  2126. ## ---------------- ##
  2127. _ASBOX
  2128. echo
  2129. # The following way of writing the cache mishandles newlines in values,
  2130. (
  2131. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2132. eval ac_val=\$$ac_var
  2133. case $ac_val in #(
  2134. *${as_nl}*)
  2135. case $ac_var in #(
  2136. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2137. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2138. esac
  2139. case $ac_var in #(
  2140. _ | IFS | as_nl) ;; #(
  2141. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2142. *) { eval $ac_var=; unset $ac_var;} ;;
  2143. esac ;;
  2144. esac
  2145. done
  2146. (set) 2>&1 |
  2147. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2148. *${as_nl}ac_space=\ *)
  2149. sed -n \
  2150. "s/'\''/'\''\\\\'\'''\''/g;
  2151. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2152. ;; #(
  2153. *)
  2154. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2155. ;;
  2156. esac |
  2157. sort
  2158. )
  2159. echo
  2160. cat <<\_ASBOX
  2161. ## ----------------- ##
  2162. ## Output variables. ##
  2163. ## ----------------- ##
  2164. _ASBOX
  2165. echo
  2166. for ac_var in $ac_subst_vars
  2167. do
  2168. eval ac_val=\$$ac_var
  2169. case $ac_val in
  2170. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2171. esac
  2172. $as_echo "$ac_var='\''$ac_val'\''"
  2173. done | sort
  2174. echo
  2175. if test -n "$ac_subst_files"; then
  2176. cat <<\_ASBOX
  2177. ## ------------------- ##
  2178. ## File substitutions. ##
  2179. ## ------------------- ##
  2180. _ASBOX
  2181. echo
  2182. for ac_var in $ac_subst_files
  2183. do
  2184. eval ac_val=\$$ac_var
  2185. case $ac_val in
  2186. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2187. esac
  2188. $as_echo "$ac_var='\''$ac_val'\''"
  2189. done | sort
  2190. echo
  2191. fi
  2192. if test -s confdefs.h; then
  2193. cat <<\_ASBOX
  2194. ## ----------- ##
  2195. ## confdefs.h. ##
  2196. ## ----------- ##
  2197. _ASBOX
  2198. echo
  2199. cat confdefs.h
  2200. echo
  2201. fi
  2202. test "$ac_signal" != 0 &&
  2203. $as_echo "$as_me: caught signal $ac_signal"
  2204. $as_echo "$as_me: exit $exit_status"
  2205. } >&5
  2206. rm -f core *.core core.conftest.* &&
  2207. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2208. exit $exit_status
  2209. ' 0
  2210. for ac_signal in 1 2 13 15; do
  2211. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2212. done
  2213. ac_signal=0
  2214. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2215. rm -f -r conftest* confdefs.h
  2216. $as_echo "/* confdefs.h */" > confdefs.h
  2217. # Predefined preprocessor variables.
  2218. cat >>confdefs.h <<_ACEOF
  2219. #define PACKAGE_NAME "$PACKAGE_NAME"
  2220. _ACEOF
  2221. cat >>confdefs.h <<_ACEOF
  2222. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2223. _ACEOF
  2224. cat >>confdefs.h <<_ACEOF
  2225. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2226. _ACEOF
  2227. cat >>confdefs.h <<_ACEOF
  2228. #define PACKAGE_STRING "$PACKAGE_STRING"
  2229. _ACEOF
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2232. _ACEOF
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_URL "$PACKAGE_URL"
  2235. _ACEOF
  2236. # Let the site file select an alternate cache file if it wants to.
  2237. # Prefer an explicitly selected file to automatically selected ones.
  2238. ac_site_file1=NONE
  2239. ac_site_file2=NONE
  2240. if test -n "$CONFIG_SITE"; then
  2241. ac_site_file1=$CONFIG_SITE
  2242. elif test "x$prefix" != xNONE; then
  2243. ac_site_file1=$prefix/share/config.site
  2244. ac_site_file2=$prefix/etc/config.site
  2245. else
  2246. ac_site_file1=$ac_default_prefix/share/config.site
  2247. ac_site_file2=$ac_default_prefix/etc/config.site
  2248. fi
  2249. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2250. do
  2251. test "x$ac_site_file" = xNONE && continue
  2252. if test -r "$ac_site_file"; then
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2254. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2255. sed 's/^/| /' "$ac_site_file" >&5
  2256. . "$ac_site_file"
  2257. fi
  2258. done
  2259. if test -r "$cache_file"; then
  2260. # Some versions of bash will fail to source /dev/null (special
  2261. # files actually), so we avoid doing that.
  2262. if test -f "$cache_file"; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2264. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2265. case $cache_file in
  2266. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2267. *) . "./$cache_file";;
  2268. esac
  2269. fi
  2270. else
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2272. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2273. >$cache_file
  2274. fi
  2275. # Check that the precious variables saved in the cache have kept the same
  2276. # value.
  2277. ac_cache_corrupted=false
  2278. for ac_var in $ac_precious_vars; do
  2279. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2280. eval ac_new_set=\$ac_env_${ac_var}_set
  2281. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2282. eval ac_new_val=\$ac_env_${ac_var}_value
  2283. case $ac_old_set,$ac_new_set in
  2284. set,)
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2286. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2287. ac_cache_corrupted=: ;;
  2288. ,set)
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2290. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2291. ac_cache_corrupted=: ;;
  2292. ,);;
  2293. *)
  2294. if test "x$ac_old_val" != "x$ac_new_val"; then
  2295. # differences in whitespace do not lead to failure.
  2296. ac_old_val_w=`echo x $ac_old_val`
  2297. ac_new_val_w=`echo x $ac_new_val`
  2298. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2300. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2301. ac_cache_corrupted=:
  2302. else
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2304. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2305. eval $ac_var=\$ac_old_val
  2306. fi
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2308. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2310. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2311. fi;;
  2312. esac
  2313. # Pass precious variables to config.status.
  2314. if test "$ac_new_set" = set; then
  2315. case $ac_new_val in
  2316. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2317. *) ac_arg=$ac_var=$ac_new_val ;;
  2318. esac
  2319. case " $ac_configure_args " in
  2320. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2321. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2322. esac
  2323. fi
  2324. done
  2325. if $ac_cache_corrupted; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2327. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2329. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2330. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2331. fi
  2332. ## -------------------- ##
  2333. ## Main body of script. ##
  2334. ## -------------------- ##
  2335. ac_ext=c
  2336. ac_cpp='$CPP $CPPFLAGS'
  2337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2340. ac_config_headers="$ac_config_headers config.h"
  2341. # -------
  2342. # Options
  2343. # -------
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2345. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2346. # Check whether --enable-version-specific-runtime-libs was given.
  2347. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2348. enableval=$enable_version_specific_runtime_libs;
  2349. case "$enableval" in
  2350. yes|no) ;;
  2351. *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
  2352. esac
  2353. else
  2354. enable_version_specific_runtime_libs=no
  2355. fi
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  2357. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  2358. # We would like our source tree to be readonly. However when releases or
  2359. # pre-releases are generated, the flex/bison generated files as well as the
  2360. # various formats of manuals need to be included along with the rest of the
  2361. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2362. # just that.
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
  2364. $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
  2365. # Check whether --enable-generated-files-in-srcdir was given.
  2366. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2367. enableval=$enable_generated_files_in_srcdir;
  2368. case "$enableval" in
  2369. yes|no) ;;
  2370. *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
  2371. esac
  2372. else
  2373. enable_generated_files_in_srcdir=no
  2374. fi
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2376. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2377. if test "$enable_generated_files_in_srcdir" = yes; then
  2378. GENINSRC_TRUE=
  2379. GENINSRC_FALSE='#'
  2380. else
  2381. GENINSRC_TRUE='#'
  2382. GENINSRC_FALSE=
  2383. fi
  2384. # -------
  2385. # -------
  2386. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2387. #
  2388. # You will slowly go insane if you do not grok the following fact: when
  2389. # building this library, the top-level /target/ becomes the library's /host/.
  2390. #
  2391. # configure then causes --target to default to --host, exactly like any
  2392. # other package using autoconf. Therefore, 'target' and 'host' will
  2393. # always be the same. This makes sense both for native and cross compilers
  2394. # just think about it for a little while. :-)
  2395. #
  2396. # Also, if this library is being configured as part of a cross compiler, the
  2397. # top-level configure script will pass the "real" host as $with_cross_host.
  2398. #
  2399. # Do not delete or change the following two lines. For why, see
  2400. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2401. ac_aux_dir=
  2402. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2403. for ac_t in install-sh install.sh shtool; do
  2404. if test -f "$ac_dir/$ac_t"; then
  2405. ac_aux_dir=$ac_dir
  2406. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2407. break 2
  2408. fi
  2409. done
  2410. done
  2411. if test -z "$ac_aux_dir"; then
  2412. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2413. fi
  2414. # These three variables are undocumented and unsupported,
  2415. # and are intended to be withdrawn in a future Autoconf release.
  2416. # They can cause serious problems if a builder's source tree is in a directory
  2417. # whose full name contains unusual characters.
  2418. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2419. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2420. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2421. # Make sure we can run config.sub.
  2422. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2423. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2425. $as_echo_n "checking build system type... " >&6; }
  2426. if test "${ac_cv_build+set}" = set; then :
  2427. $as_echo_n "(cached) " >&6
  2428. else
  2429. ac_build_alias=$build_alias
  2430. test "x$ac_build_alias" = x &&
  2431. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2432. test "x$ac_build_alias" = x &&
  2433. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2434. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2435. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2436. fi
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2438. $as_echo "$ac_cv_build" >&6; }
  2439. case $ac_cv_build in
  2440. *-*-*) ;;
  2441. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2442. esac
  2443. build=$ac_cv_build
  2444. ac_save_IFS=$IFS; IFS='-'
  2445. set x $ac_cv_build
  2446. shift
  2447. build_cpu=$1
  2448. build_vendor=$2
  2449. shift; shift
  2450. # Remember, the first character of IFS is used to create $*,
  2451. # except with old shells:
  2452. build_os=$*
  2453. IFS=$ac_save_IFS
  2454. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2456. $as_echo_n "checking host system type... " >&6; }
  2457. if test "${ac_cv_host+set}" = set; then :
  2458. $as_echo_n "(cached) " >&6
  2459. else
  2460. if test "x$host_alias" = x; then
  2461. ac_cv_host=$ac_cv_build
  2462. else
  2463. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2464. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2465. fi
  2466. fi
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2468. $as_echo "$ac_cv_host" >&6; }
  2469. case $ac_cv_host in
  2470. *-*-*) ;;
  2471. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2472. esac
  2473. host=$ac_cv_host
  2474. ac_save_IFS=$IFS; IFS='-'
  2475. set x $ac_cv_host
  2476. shift
  2477. host_cpu=$1
  2478. host_vendor=$2
  2479. shift; shift
  2480. # Remember, the first character of IFS is used to create $*,
  2481. # except with old shells:
  2482. host_os=$*
  2483. IFS=$ac_save_IFS
  2484. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2486. $as_echo_n "checking target system type... " >&6; }
  2487. if test "${ac_cv_target+set}" = set; then :
  2488. $as_echo_n "(cached) " >&6
  2489. else
  2490. if test "x$target_alias" = x; then
  2491. ac_cv_target=$ac_cv_host
  2492. else
  2493. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2494. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2495. fi
  2496. fi
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2498. $as_echo "$ac_cv_target" >&6; }
  2499. case $ac_cv_target in
  2500. *-*-*) ;;
  2501. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2502. esac
  2503. target=$ac_cv_target
  2504. ac_save_IFS=$IFS; IFS='-'
  2505. set x $ac_cv_target
  2506. shift
  2507. target_cpu=$1
  2508. target_vendor=$2
  2509. shift; shift
  2510. # Remember, the first character of IFS is used to create $*,
  2511. # except with old shells:
  2512. target_os=$*
  2513. IFS=$ac_save_IFS
  2514. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2515. # The aliases save the names the user supplied, while $host etc.
  2516. # will get canonicalized.
  2517. test -n "$target_alias" &&
  2518. test "$program_prefix$program_suffix$program_transform_name" = \
  2519. NONENONEs,x,x, &&
  2520. program_prefix=${target_alias}-
  2521. target_alias=${target_alias-$host_alias}
  2522. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2523. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2524. # 1.9.0: minimum required version
  2525. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2526. # of other PACKAGE_* variables will, however, and there's nothing
  2527. # we can do about that; they come from AC_INIT).
  2528. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2529. # file in the top srcdir, etc, etc), so stop complaining.
  2530. # no-dist: we don't want 'dist' and related rules.
  2531. # -Wall: turns on all automake warnings...
  2532. # -Wno-portability: ...except this one, since GNU make is required.
  2533. # -Wno-override: ... and this one, since we do want this in testsuite.
  2534. am__api_version='1.11'
  2535. # Find a good install program. We prefer a C program (faster),
  2536. # so one script is as good as another. But avoid the broken or
  2537. # incompatible versions:
  2538. # SysV /etc/install, /usr/sbin/install
  2539. # SunOS /usr/etc/install
  2540. # IRIX /sbin/install
  2541. # AIX /bin/install
  2542. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2543. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2544. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2545. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2546. # OS/2's system install, which has a completely different semantic
  2547. # ./install, which can be erroneously created by make from ./install.sh.
  2548. # Reject install programs that cannot install multiple files.
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2550. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2551. if test -z "$INSTALL"; then
  2552. if test "${ac_cv_path_install+set}" = set; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. # Account for people who put trailing slashes in PATH elements.
  2561. case $as_dir/ in #((
  2562. ./ | .// | /[cC]/* | \
  2563. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2564. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2565. /usr/ucb/* ) ;;
  2566. *)
  2567. # OSF1 and SCO ODT 3.0 have their own names for install.
  2568. # Don't use installbsd from OSF since it installs stuff as root
  2569. # by default.
  2570. for ac_prog in ginstall scoinst install; do
  2571. for ac_exec_ext in '' $ac_executable_extensions; do
  2572. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2573. if test $ac_prog = install &&
  2574. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2575. # AIX install. It has an incompatible calling convention.
  2576. :
  2577. elif test $ac_prog = install &&
  2578. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2579. # program-specific install script used by HP pwplus--don't use.
  2580. :
  2581. else
  2582. rm -rf conftest.one conftest.two conftest.dir
  2583. echo one > conftest.one
  2584. echo two > conftest.two
  2585. mkdir conftest.dir
  2586. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2587. test -s conftest.one && test -s conftest.two &&
  2588. test -s conftest.dir/conftest.one &&
  2589. test -s conftest.dir/conftest.two
  2590. then
  2591. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2592. break 3
  2593. fi
  2594. fi
  2595. fi
  2596. done
  2597. done
  2598. ;;
  2599. esac
  2600. done
  2601. IFS=$as_save_IFS
  2602. rm -rf conftest.one conftest.two conftest.dir
  2603. fi
  2604. if test "${ac_cv_path_install+set}" = set; then
  2605. INSTALL=$ac_cv_path_install
  2606. else
  2607. # As a last resort, use the slow shell script. Don't cache a
  2608. # value for INSTALL within a source directory, because that will
  2609. # break other packages using the cache if that directory is
  2610. # removed, or if the value is a relative name.
  2611. INSTALL=$ac_install_sh
  2612. fi
  2613. fi
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2615. $as_echo "$INSTALL" >&6; }
  2616. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2617. # It thinks the first close brace ends the variable substitution.
  2618. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2619. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2620. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2622. $as_echo_n "checking whether build environment is sane... " >&6; }
  2623. # Just in case
  2624. sleep 1
  2625. echo timestamp > conftest.file
  2626. # Reject unsafe characters in $srcdir or the absolute working directory
  2627. # name. Accept space and tab only in the latter.
  2628. am_lf='
  2629. '
  2630. case `pwd` in
  2631. *[\\\"\#\$\&\'\`$am_lf]*)
  2632. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2633. esac
  2634. case $srcdir in
  2635. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2636. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2637. esac
  2638. # Do `set' in a subshell so we don't clobber the current shell's
  2639. # arguments. Must try -L first in case configure is actually a
  2640. # symlink; some systems play weird games with the mod time of symlinks
  2641. # (eg FreeBSD returns the mod time of the symlink's containing
  2642. # directory).
  2643. if (
  2644. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2645. if test "$*" = "X"; then
  2646. # -L didn't work.
  2647. set X `ls -t "$srcdir/configure" conftest.file`
  2648. fi
  2649. rm -f conftest.file
  2650. if test "$*" != "X $srcdir/configure conftest.file" \
  2651. && test "$*" != "X conftest.file $srcdir/configure"; then
  2652. # If neither matched, then we have a broken ls. This can happen
  2653. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2654. # broken ls alias from the environment. This has actually
  2655. # happened. Such a system could not be considered "sane".
  2656. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2657. alias in your environment" "$LINENO" 5
  2658. fi
  2659. test "$2" = conftest.file
  2660. )
  2661. then
  2662. # Ok.
  2663. :
  2664. else
  2665. as_fn_error "newly created file is older than distributed files!
  2666. Check your system clock" "$LINENO" 5
  2667. fi
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2669. $as_echo "yes" >&6; }
  2670. test "$program_prefix" != NONE &&
  2671. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2672. # Use a double $ so make ignores it.
  2673. test "$program_suffix" != NONE &&
  2674. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2675. # Double any \ or $.
  2676. # By default was `s,x,x', remove it if useless.
  2677. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2678. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2679. # expand $ac_aux_dir to an absolute path
  2680. am_aux_dir=`cd $ac_aux_dir && pwd`
  2681. if test x"${MISSING+set}" != xset; then
  2682. case $am_aux_dir in
  2683. *\ * | *\ *)
  2684. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2685. *)
  2686. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2687. esac
  2688. fi
  2689. # Use eval to expand $SHELL
  2690. if eval "$MISSING --run true"; then
  2691. am_missing_run="$MISSING --run "
  2692. else
  2693. am_missing_run=
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2695. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2696. fi
  2697. if test x"${install_sh}" != xset; then
  2698. case $am_aux_dir in
  2699. *\ * | *\ *)
  2700. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2701. *)
  2702. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2703. esac
  2704. fi
  2705. # Installed binaries are usually stripped using `strip' when the user
  2706. # run `make install-strip'. However `strip' might not be the right
  2707. # tool to use in cross-compilation environments, therefore Automake
  2708. # will honor the `STRIP' environment variable to overrule this program.
  2709. if test "$cross_compiling" != no; then
  2710. if test -n "$ac_tool_prefix"; then
  2711. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2712. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2714. $as_echo_n "checking for $ac_word... " >&6; }
  2715. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. if test -n "$STRIP"; then
  2719. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2720. else
  2721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2722. for as_dir in $PATH
  2723. do
  2724. IFS=$as_save_IFS
  2725. test -z "$as_dir" && as_dir=.
  2726. for ac_exec_ext in '' $ac_executable_extensions; do
  2727. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2728. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2730. break 2
  2731. fi
  2732. done
  2733. done
  2734. IFS=$as_save_IFS
  2735. fi
  2736. fi
  2737. STRIP=$ac_cv_prog_STRIP
  2738. if test -n "$STRIP"; then
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2740. $as_echo "$STRIP" >&6; }
  2741. else
  2742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2743. $as_echo "no" >&6; }
  2744. fi
  2745. fi
  2746. if test -z "$ac_cv_prog_STRIP"; then
  2747. ac_ct_STRIP=$STRIP
  2748. # Extract the first word of "strip", so it can be a program name with args.
  2749. set dummy strip; ac_word=$2
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2751. $as_echo_n "checking for $ac_word... " >&6; }
  2752. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2753. $as_echo_n "(cached) " >&6
  2754. else
  2755. if test -n "$ac_ct_STRIP"; then
  2756. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2757. else
  2758. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2759. for as_dir in $PATH
  2760. do
  2761. IFS=$as_save_IFS
  2762. test -z "$as_dir" && as_dir=.
  2763. for ac_exec_ext in '' $ac_executable_extensions; do
  2764. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2765. ac_cv_prog_ac_ct_STRIP="strip"
  2766. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2767. break 2
  2768. fi
  2769. done
  2770. done
  2771. IFS=$as_save_IFS
  2772. fi
  2773. fi
  2774. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2775. if test -n "$ac_ct_STRIP"; then
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2777. $as_echo "$ac_ct_STRIP" >&6; }
  2778. else
  2779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2780. $as_echo "no" >&6; }
  2781. fi
  2782. if test "x$ac_ct_STRIP" = x; then
  2783. STRIP=":"
  2784. else
  2785. case $cross_compiling:$ac_tool_warned in
  2786. yes:)
  2787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2788. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2789. ac_tool_warned=yes ;;
  2790. esac
  2791. STRIP=$ac_ct_STRIP
  2792. fi
  2793. else
  2794. STRIP="$ac_cv_prog_STRIP"
  2795. fi
  2796. fi
  2797. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2799. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2800. if test -z "$MKDIR_P"; then
  2801. if test "${ac_cv_path_mkdir+set}" = set; then :
  2802. $as_echo_n "(cached) " >&6
  2803. else
  2804. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2805. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2806. do
  2807. IFS=$as_save_IFS
  2808. test -z "$as_dir" && as_dir=.
  2809. for ac_prog in mkdir gmkdir; do
  2810. for ac_exec_ext in '' $ac_executable_extensions; do
  2811. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2812. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2813. 'mkdir (GNU coreutils) '* | \
  2814. 'mkdir (coreutils) '* | \
  2815. 'mkdir (fileutils) '4.1*)
  2816. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2817. break 3;;
  2818. esac
  2819. done
  2820. done
  2821. done
  2822. IFS=$as_save_IFS
  2823. fi
  2824. if test "${ac_cv_path_mkdir+set}" = set; then
  2825. MKDIR_P="$ac_cv_path_mkdir -p"
  2826. else
  2827. # As a last resort, use the slow shell script. Don't cache a
  2828. # value for MKDIR_P within a source directory, because that will
  2829. # break other packages using the cache if that directory is
  2830. # removed, or if the value is a relative name.
  2831. test -d ./--version && rmdir ./--version
  2832. MKDIR_P="$ac_install_sh -d"
  2833. fi
  2834. fi
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2836. $as_echo "$MKDIR_P" >&6; }
  2837. mkdir_p="$MKDIR_P"
  2838. case $mkdir_p in
  2839. [\\/$]* | ?:[\\/]*) ;;
  2840. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2841. esac
  2842. for ac_prog in gawk mawk nawk awk
  2843. do
  2844. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2845. set dummy $ac_prog; ac_word=$2
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2847. $as_echo_n "checking for $ac_word... " >&6; }
  2848. if test "${ac_cv_prog_AWK+set}" = set; then :
  2849. $as_echo_n "(cached) " >&6
  2850. else
  2851. if test -n "$AWK"; then
  2852. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2853. else
  2854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2855. for as_dir in $PATH
  2856. do
  2857. IFS=$as_save_IFS
  2858. test -z "$as_dir" && as_dir=.
  2859. for ac_exec_ext in '' $ac_executable_extensions; do
  2860. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2861. ac_cv_prog_AWK="$ac_prog"
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2863. break 2
  2864. fi
  2865. done
  2866. done
  2867. IFS=$as_save_IFS
  2868. fi
  2869. fi
  2870. AWK=$ac_cv_prog_AWK
  2871. if test -n "$AWK"; then
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2873. $as_echo "$AWK" >&6; }
  2874. else
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2876. $as_echo "no" >&6; }
  2877. fi
  2878. test -n "$AWK" && break
  2879. done
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2881. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2882. set x ${MAKE-make}
  2883. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2884. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2885. $as_echo_n "(cached) " >&6
  2886. else
  2887. cat >conftest.make <<\_ACEOF
  2888. SHELL = /bin/sh
  2889. all:
  2890. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2891. _ACEOF
  2892. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2893. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2894. *@@@%%%=?*=@@@%%%*)
  2895. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2896. *)
  2897. eval ac_cv_prog_make_${ac_make}_set=no;;
  2898. esac
  2899. rm -f conftest.make
  2900. fi
  2901. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2903. $as_echo "yes" >&6; }
  2904. SET_MAKE=
  2905. else
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2907. $as_echo "no" >&6; }
  2908. SET_MAKE="MAKE=${MAKE-make}"
  2909. fi
  2910. rm -rf .tst 2>/dev/null
  2911. mkdir .tst 2>/dev/null
  2912. if test -d .tst; then
  2913. am__leading_dot=.
  2914. else
  2915. am__leading_dot=_
  2916. fi
  2917. rmdir .tst 2>/dev/null
  2918. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2919. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2920. # is not polluted with repeated "-I."
  2921. am__isrc=' -I$(srcdir)'
  2922. # test to see if srcdir already configured
  2923. if test -f $srcdir/config.status; then
  2924. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2925. fi
  2926. fi
  2927. # test whether we have cygpath
  2928. if test -z "$CYGPATH_W"; then
  2929. if (cygpath --version) >/dev/null 2>/dev/null; then
  2930. CYGPATH_W='cygpath -w'
  2931. else
  2932. CYGPATH_W=echo
  2933. fi
  2934. fi
  2935. # Define the identity of the package.
  2936. PACKAGE='libgomp'
  2937. VERSION='1.0'
  2938. cat >>confdefs.h <<_ACEOF
  2939. #define PACKAGE "$PACKAGE"
  2940. _ACEOF
  2941. cat >>confdefs.h <<_ACEOF
  2942. #define VERSION "$VERSION"
  2943. _ACEOF
  2944. # Some tools Automake needs.
  2945. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2946. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2947. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2948. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2949. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2950. # We need awk for the "check" target. The system "awk" is bad on
  2951. # some platforms.
  2952. # Always define AMTAR for backward compatibility.
  2953. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2954. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2955. # Default to --enable-multilib
  2956. # Check whether --enable-multilib was given.
  2957. if test "${enable_multilib+set}" = set; then :
  2958. enableval=$enable_multilib; case "$enableval" in
  2959. yes) multilib=yes ;;
  2960. no) multilib=no ;;
  2961. *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2962. esac
  2963. else
  2964. multilib=yes
  2965. fi
  2966. # We may get other options which we leave undocumented:
  2967. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2968. # See config-ml.in if you want the gory details.
  2969. if test "$srcdir" = "."; then
  2970. if test "$with_target_subdir" != "."; then
  2971. multi_basedir="$srcdir/$with_multisrctop../.."
  2972. else
  2973. multi_basedir="$srcdir/$with_multisrctop.."
  2974. fi
  2975. else
  2976. multi_basedir="$srcdir/.."
  2977. fi
  2978. # Even if the default multilib is not a cross compilation,
  2979. # it may be that some of the other multilibs are.
  2980. if test $cross_compiling = no && test $multilib = yes \
  2981. && test "x${with_multisubdir}" != x ; then
  2982. cross_compiling=maybe
  2983. fi
  2984. ac_config_commands="$ac_config_commands default-1"
  2985. # Calculate toolexeclibdir
  2986. # Also toolexecdir, though it's only used in toolexeclibdir
  2987. case ${enable_version_specific_runtime_libs} in
  2988. yes)
  2989. # Need the gcc compiler version to know where to install libraries
  2990. # and header files if --enable-version-specific-runtime-libs option
  2991. # is selected.
  2992. toolexecdir='$(libdir)/gcc/$(target_alias)'
  2993. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  2994. ;;
  2995. no)
  2996. if test -n "$with_cross_host" &&
  2997. test x"$with_cross_host" != x"no"; then
  2998. # Install a library built with a cross compiler in tooldir, not libdir.
  2999. toolexecdir='$(exec_prefix)/$(target_alias)'
  3000. toolexeclibdir='$(toolexecdir)/lib'
  3001. else
  3002. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3003. toolexeclibdir='$(libdir)'
  3004. fi
  3005. multi_os_directory=`$CC -print-multi-os-directory`
  3006. case $multi_os_directory in
  3007. .) ;; # Avoid trailing /.
  3008. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3009. esac
  3010. ;;
  3011. esac
  3012. # Check the compiler.
  3013. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3014. # We must force CC to /not/ be precious variables; otherwise
  3015. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3016. # As a side effect, we have to subst CFLAGS ourselves.
  3017. ac_ext=c
  3018. ac_cpp='$CPP $CPPFLAGS'
  3019. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3020. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3021. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3022. if test -n "$ac_tool_prefix"; then
  3023. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3024. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3026. $as_echo_n "checking for $ac_word... " >&6; }
  3027. if test "${ac_cv_prog_CC+set}" = set; then :
  3028. $as_echo_n "(cached) " >&6
  3029. else
  3030. if test -n "$CC"; then
  3031. ac_cv_prog_CC="$CC" # Let the user override the test.
  3032. else
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036. IFS=$as_save_IFS
  3037. test -z "$as_dir" && as_dir=.
  3038. for ac_exec_ext in '' $ac_executable_extensions; do
  3039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3040. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3042. break 2
  3043. fi
  3044. done
  3045. done
  3046. IFS=$as_save_IFS
  3047. fi
  3048. fi
  3049. CC=$ac_cv_prog_CC
  3050. if test -n "$CC"; then
  3051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3052. $as_echo "$CC" >&6; }
  3053. else
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3055. $as_echo "no" >&6; }
  3056. fi
  3057. fi
  3058. if test -z "$ac_cv_prog_CC"; then
  3059. ac_ct_CC=$CC
  3060. # Extract the first word of "gcc", so it can be a program name with args.
  3061. set dummy gcc; ac_word=$2
  3062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3063. $as_echo_n "checking for $ac_word... " >&6; }
  3064. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3065. $as_echo_n "(cached) " >&6
  3066. else
  3067. if test -n "$ac_ct_CC"; then
  3068. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3069. else
  3070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3071. for as_dir in $PATH
  3072. do
  3073. IFS=$as_save_IFS
  3074. test -z "$as_dir" && as_dir=.
  3075. for ac_exec_ext in '' $ac_executable_extensions; do
  3076. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3077. ac_cv_prog_ac_ct_CC="gcc"
  3078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3079. break 2
  3080. fi
  3081. done
  3082. done
  3083. IFS=$as_save_IFS
  3084. fi
  3085. fi
  3086. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3087. if test -n "$ac_ct_CC"; then
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3089. $as_echo "$ac_ct_CC" >&6; }
  3090. else
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3092. $as_echo "no" >&6; }
  3093. fi
  3094. if test "x$ac_ct_CC" = x; then
  3095. CC=""
  3096. else
  3097. case $cross_compiling:$ac_tool_warned in
  3098. yes:)
  3099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3100. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3101. ac_tool_warned=yes ;;
  3102. esac
  3103. CC=$ac_ct_CC
  3104. fi
  3105. else
  3106. CC="$ac_cv_prog_CC"
  3107. fi
  3108. if test -z "$CC"; then
  3109. if test -n "$ac_tool_prefix"; then
  3110. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3111. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3113. $as_echo_n "checking for $ac_word... " >&6; }
  3114. if test "${ac_cv_prog_CC+set}" = set; then :
  3115. $as_echo_n "(cached) " >&6
  3116. else
  3117. if test -n "$CC"; then
  3118. ac_cv_prog_CC="$CC" # Let the user override the test.
  3119. else
  3120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3121. for as_dir in $PATH
  3122. do
  3123. IFS=$as_save_IFS
  3124. test -z "$as_dir" && as_dir=.
  3125. for ac_exec_ext in '' $ac_executable_extensions; do
  3126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3127. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3128. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3129. break 2
  3130. fi
  3131. done
  3132. done
  3133. IFS=$as_save_IFS
  3134. fi
  3135. fi
  3136. CC=$ac_cv_prog_CC
  3137. if test -n "$CC"; then
  3138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3139. $as_echo "$CC" >&6; }
  3140. else
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3142. $as_echo "no" >&6; }
  3143. fi
  3144. fi
  3145. fi
  3146. if test -z "$CC"; then
  3147. # Extract the first word of "cc", so it can be a program name with args.
  3148. set dummy cc; ac_word=$2
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3150. $as_echo_n "checking for $ac_word... " >&6; }
  3151. if test "${ac_cv_prog_CC+set}" = set; then :
  3152. $as_echo_n "(cached) " >&6
  3153. else
  3154. if test -n "$CC"; then
  3155. ac_cv_prog_CC="$CC" # Let the user override the test.
  3156. else
  3157. ac_prog_rejected=no
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3165. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3166. ac_prog_rejected=yes
  3167. continue
  3168. fi
  3169. ac_cv_prog_CC="cc"
  3170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3171. break 2
  3172. fi
  3173. done
  3174. done
  3175. IFS=$as_save_IFS
  3176. if test $ac_prog_rejected = yes; then
  3177. # We found a bogon in the path, so make sure we never use it.
  3178. set dummy $ac_cv_prog_CC
  3179. shift
  3180. if test $# != 0; then
  3181. # We chose a different compiler from the bogus one.
  3182. # However, it has the same basename, so the bogon will be chosen
  3183. # first if we set CC to just the basename; use the full file name.
  3184. shift
  3185. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3186. fi
  3187. fi
  3188. fi
  3189. fi
  3190. CC=$ac_cv_prog_CC
  3191. if test -n "$CC"; then
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3193. $as_echo "$CC" >&6; }
  3194. else
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3196. $as_echo "no" >&6; }
  3197. fi
  3198. fi
  3199. if test -z "$CC"; then
  3200. if test -n "$ac_tool_prefix"; then
  3201. for ac_prog in cl.exe
  3202. do
  3203. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3204. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3206. $as_echo_n "checking for $ac_word... " >&6; }
  3207. if test "${ac_cv_prog_CC+set}" = set; then :
  3208. $as_echo_n "(cached) " >&6
  3209. else
  3210. if test -n "$CC"; then
  3211. ac_cv_prog_CC="$CC" # Let the user override the test.
  3212. else
  3213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3214. for as_dir in $PATH
  3215. do
  3216. IFS=$as_save_IFS
  3217. test -z "$as_dir" && as_dir=.
  3218. for ac_exec_ext in '' $ac_executable_extensions; do
  3219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3220. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3222. break 2
  3223. fi
  3224. done
  3225. done
  3226. IFS=$as_save_IFS
  3227. fi
  3228. fi
  3229. CC=$ac_cv_prog_CC
  3230. if test -n "$CC"; then
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3232. $as_echo "$CC" >&6; }
  3233. else
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3235. $as_echo "no" >&6; }
  3236. fi
  3237. test -n "$CC" && break
  3238. done
  3239. fi
  3240. if test -z "$CC"; then
  3241. ac_ct_CC=$CC
  3242. for ac_prog in cl.exe
  3243. do
  3244. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3245. set dummy $ac_prog; ac_word=$2
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3247. $as_echo_n "checking for $ac_word... " >&6; }
  3248. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. if test -n "$ac_ct_CC"; then
  3252. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3253. else
  3254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3255. for as_dir in $PATH
  3256. do
  3257. IFS=$as_save_IFS
  3258. test -z "$as_dir" && as_dir=.
  3259. for ac_exec_ext in '' $ac_executable_extensions; do
  3260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3261. ac_cv_prog_ac_ct_CC="$ac_prog"
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. fi
  3269. fi
  3270. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3271. if test -n "$ac_ct_CC"; then
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3273. $as_echo "$ac_ct_CC" >&6; }
  3274. else
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3276. $as_echo "no" >&6; }
  3277. fi
  3278. test -n "$ac_ct_CC" && break
  3279. done
  3280. if test "x$ac_ct_CC" = x; then
  3281. CC=""
  3282. else
  3283. case $cross_compiling:$ac_tool_warned in
  3284. yes:)
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3286. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3287. ac_tool_warned=yes ;;
  3288. esac
  3289. CC=$ac_ct_CC
  3290. fi
  3291. fi
  3292. fi
  3293. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3294. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3295. as_fn_error "no acceptable C compiler found in \$PATH
  3296. See \`config.log' for more details." "$LINENO" 5; }
  3297. # Provide some information about the compiler.
  3298. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3299. set X $ac_compile
  3300. ac_compiler=$2
  3301. for ac_option in --version -v -V -qversion; do
  3302. { { ac_try="$ac_compiler $ac_option >&5"
  3303. case "(($ac_try" in
  3304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3305. *) ac_try_echo=$ac_try;;
  3306. esac
  3307. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3308. $as_echo "$ac_try_echo"; } >&5
  3309. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3310. ac_status=$?
  3311. if test -s conftest.err; then
  3312. sed '10a\
  3313. ... rest of stderr output deleted ...
  3314. 10q' conftest.err >conftest.er1
  3315. cat conftest.er1 >&5
  3316. rm -f conftest.er1 conftest.err
  3317. fi
  3318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3319. test $ac_status = 0; }
  3320. done
  3321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3322. /* end confdefs.h. */
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. ac_clean_files_save=$ac_clean_files
  3331. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3332. # Try to create an executable without -o first, disregard a.out.
  3333. # It will help us diagnose broken compilers, and finding out an intuition
  3334. # of exeext.
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3336. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3337. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3338. # The possible output files:
  3339. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3340. ac_rmfiles=
  3341. for ac_file in $ac_files
  3342. do
  3343. case $ac_file in
  3344. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3345. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3346. esac
  3347. done
  3348. rm -f $ac_rmfiles
  3349. if { { ac_try="$ac_link_default"
  3350. case "(($ac_try" in
  3351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3352. *) ac_try_echo=$ac_try;;
  3353. esac
  3354. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3355. $as_echo "$ac_try_echo"; } >&5
  3356. (eval "$ac_link_default") 2>&5
  3357. ac_status=$?
  3358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3359. test $ac_status = 0; }; then :
  3360. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3361. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3362. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3363. # so that the user can short-circuit this test for compilers unknown to
  3364. # Autoconf.
  3365. for ac_file in $ac_files ''
  3366. do
  3367. test -f "$ac_file" || continue
  3368. case $ac_file in
  3369. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3370. ;;
  3371. [ab].out )
  3372. # We found the default executable, but exeext='' is most
  3373. # certainly right.
  3374. break;;
  3375. *.* )
  3376. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3377. then :; else
  3378. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3379. fi
  3380. # We set ac_cv_exeext here because the later test for it is not
  3381. # safe: cross compilers may not add the suffix if given an `-o'
  3382. # argument, so we may need to know it at that point already.
  3383. # Even if this section looks crufty: it has the advantage of
  3384. # actually working.
  3385. break;;
  3386. * )
  3387. break;;
  3388. esac
  3389. done
  3390. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3391. else
  3392. ac_file=''
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3395. $as_echo "$ac_file" >&6; }
  3396. if test -z "$ac_file"; then :
  3397. $as_echo "$as_me: failed program was:" >&5
  3398. sed 's/^/| /' conftest.$ac_ext >&5
  3399. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3400. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3401. { as_fn_set_status 77
  3402. as_fn_error "C compiler cannot create executables
  3403. See \`config.log' for more details." "$LINENO" 5; }; }
  3404. fi
  3405. ac_exeext=$ac_cv_exeext
  3406. # Check that the compiler produces executables we can run. If not, either
  3407. # the compiler is broken, or we cross compile.
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3409. $as_echo_n "checking whether the C compiler works... " >&6; }
  3410. # If not cross compiling, check that we can run a simple program.
  3411. if test "$cross_compiling" != yes; then
  3412. if { ac_try='./$ac_file'
  3413. { { case "(($ac_try" in
  3414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3415. *) ac_try_echo=$ac_try;;
  3416. esac
  3417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3418. $as_echo "$ac_try_echo"; } >&5
  3419. (eval "$ac_try") 2>&5
  3420. ac_status=$?
  3421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3422. test $ac_status = 0; }; }; then
  3423. cross_compiling=no
  3424. else
  3425. if test "$cross_compiling" = maybe; then
  3426. cross_compiling=yes
  3427. else
  3428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3430. as_fn_error "cannot run C compiled programs.
  3431. If you meant to cross compile, use \`--host'.
  3432. See \`config.log' for more details." "$LINENO" 5; }
  3433. fi
  3434. fi
  3435. fi
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3437. $as_echo "yes" >&6; }
  3438. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3439. ac_clean_files=$ac_clean_files_save
  3440. # Check that the compiler produces executables we can run. If not, either
  3441. # the compiler is broken, or we cross compile.
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3443. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3445. $as_echo "$cross_compiling" >&6; }
  3446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3447. $as_echo_n "checking for suffix of executables... " >&6; }
  3448. if { { ac_try="$ac_link"
  3449. case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3454. $as_echo "$ac_try_echo"; } >&5
  3455. (eval "$ac_link") 2>&5
  3456. ac_status=$?
  3457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3458. test $ac_status = 0; }; then :
  3459. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3460. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3461. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3462. # `rm'.
  3463. for ac_file in conftest.exe conftest conftest.*; do
  3464. test -f "$ac_file" || continue
  3465. case $ac_file in
  3466. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3467. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3468. break;;
  3469. * ) break;;
  3470. esac
  3471. done
  3472. else
  3473. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3474. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3475. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3476. See \`config.log' for more details." "$LINENO" 5; }
  3477. fi
  3478. rm -f conftest$ac_cv_exeext
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3480. $as_echo "$ac_cv_exeext" >&6; }
  3481. rm -f conftest.$ac_ext
  3482. EXEEXT=$ac_cv_exeext
  3483. ac_exeext=$EXEEXT
  3484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3485. $as_echo_n "checking for suffix of object files... " >&6; }
  3486. if test "${ac_cv_objext+set}" = set; then :
  3487. $as_echo_n "(cached) " >&6
  3488. else
  3489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3490. /* end confdefs.h. */
  3491. int
  3492. main ()
  3493. {
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. rm -f conftest.o conftest.obj
  3499. if { { ac_try="$ac_compile"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3505. $as_echo "$ac_try_echo"; } >&5
  3506. (eval "$ac_compile") 2>&5
  3507. ac_status=$?
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3509. test $ac_status = 0; }; then :
  3510. for ac_file in conftest.o conftest.obj conftest.*; do
  3511. test -f "$ac_file" || continue;
  3512. case $ac_file in
  3513. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3514. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3515. break;;
  3516. esac
  3517. done
  3518. else
  3519. $as_echo "$as_me: failed program was:" >&5
  3520. sed 's/^/| /' conftest.$ac_ext >&5
  3521. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3522. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3523. as_fn_error "cannot compute suffix of object files: cannot compile
  3524. See \`config.log' for more details." "$LINENO" 5; }
  3525. fi
  3526. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3527. fi
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3529. $as_echo "$ac_cv_objext" >&6; }
  3530. OBJEXT=$ac_cv_objext
  3531. ac_objext=$OBJEXT
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3533. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3534. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3535. $as_echo_n "(cached) " >&6
  3536. else
  3537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3538. /* end confdefs.h. */
  3539. int
  3540. main ()
  3541. {
  3542. #ifndef __GNUC__
  3543. choke me
  3544. #endif
  3545. ;
  3546. return 0;
  3547. }
  3548. _ACEOF
  3549. if ac_fn_c_try_compile "$LINENO"; then :
  3550. ac_compiler_gnu=yes
  3551. else
  3552. ac_compiler_gnu=no
  3553. fi
  3554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3555. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3556. fi
  3557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3558. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3559. if test $ac_compiler_gnu = yes; then
  3560. GCC=yes
  3561. else
  3562. GCC=
  3563. fi
  3564. ac_test_CFLAGS=${CFLAGS+set}
  3565. ac_save_CFLAGS=$CFLAGS
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3567. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3568. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3569. $as_echo_n "(cached) " >&6
  3570. else
  3571. ac_save_c_werror_flag=$ac_c_werror_flag
  3572. ac_c_werror_flag=yes
  3573. ac_cv_prog_cc_g=no
  3574. CFLAGS="-g"
  3575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3576. /* end confdefs.h. */
  3577. int
  3578. main ()
  3579. {
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. if ac_fn_c_try_compile "$LINENO"; then :
  3585. ac_cv_prog_cc_g=yes
  3586. else
  3587. CFLAGS=""
  3588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3589. /* end confdefs.h. */
  3590. int
  3591. main ()
  3592. {
  3593. ;
  3594. return 0;
  3595. }
  3596. _ACEOF
  3597. if ac_fn_c_try_compile "$LINENO"; then :
  3598. else
  3599. ac_c_werror_flag=$ac_save_c_werror_flag
  3600. CFLAGS="-g"
  3601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3602. /* end confdefs.h. */
  3603. int
  3604. main ()
  3605. {
  3606. ;
  3607. return 0;
  3608. }
  3609. _ACEOF
  3610. if ac_fn_c_try_compile "$LINENO"; then :
  3611. ac_cv_prog_cc_g=yes
  3612. fi
  3613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3614. fi
  3615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3616. fi
  3617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3618. ac_c_werror_flag=$ac_save_c_werror_flag
  3619. fi
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3621. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3622. if test "$ac_test_CFLAGS" = set; then
  3623. CFLAGS=$ac_save_CFLAGS
  3624. elif test $ac_cv_prog_cc_g = yes; then
  3625. if test "$GCC" = yes; then
  3626. CFLAGS="-g -O2"
  3627. else
  3628. CFLAGS="-g"
  3629. fi
  3630. else
  3631. if test "$GCC" = yes; then
  3632. CFLAGS="-O2"
  3633. else
  3634. CFLAGS=
  3635. fi
  3636. fi
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3638. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3639. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. ac_cv_prog_cc_c89=no
  3643. ac_save_CC=$CC
  3644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3645. /* end confdefs.h. */
  3646. #include <stdarg.h>
  3647. #include <stdio.h>
  3648. #include <sys/types.h>
  3649. #include <sys/stat.h>
  3650. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3651. struct buf { int x; };
  3652. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3653. static char *e (p, i)
  3654. char **p;
  3655. int i;
  3656. {
  3657. return p[i];
  3658. }
  3659. static char *f (char * (*g) (char **, int), char **p, ...)
  3660. {
  3661. char *s;
  3662. va_list v;
  3663. va_start (v,p);
  3664. s = g (p, va_arg (v,int));
  3665. va_end (v);
  3666. return s;
  3667. }
  3668. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3669. function prototypes and stuff, but not '\xHH' hex character constants.
  3670. These don't provoke an error unfortunately, instead are silently treated
  3671. as 'x'. The following induces an error, until -std is added to get
  3672. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3673. array size at least. It's necessary to write '\x00'==0 to get something
  3674. that's true only with -std. */
  3675. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3676. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3677. inside strings and character constants. */
  3678. #define FOO(x) 'x'
  3679. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3680. int test (int i, double x);
  3681. struct s1 {int (*f) (int a);};
  3682. struct s2 {int (*f) (double a);};
  3683. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3684. int argc;
  3685. char **argv;
  3686. int
  3687. main ()
  3688. {
  3689. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3695. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3696. do
  3697. CC="$ac_save_CC $ac_arg"
  3698. if ac_fn_c_try_compile "$LINENO"; then :
  3699. ac_cv_prog_cc_c89=$ac_arg
  3700. fi
  3701. rm -f core conftest.err conftest.$ac_objext
  3702. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3703. done
  3704. rm -f conftest.$ac_ext
  3705. CC=$ac_save_CC
  3706. fi
  3707. # AC_CACHE_VAL
  3708. case "x$ac_cv_prog_cc_c89" in
  3709. x)
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3711. $as_echo "none needed" >&6; } ;;
  3712. xno)
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3714. $as_echo "unsupported" >&6; } ;;
  3715. *)
  3716. CC="$CC $ac_cv_prog_cc_c89"
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3718. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3719. esac
  3720. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3721. fi
  3722. ac_ext=c
  3723. ac_cpp='$CPP $CPPFLAGS'
  3724. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3725. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3726. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3727. DEPDIR="${am__leading_dot}deps"
  3728. ac_config_commands="$ac_config_commands depfiles"
  3729. am_make=${MAKE-make}
  3730. cat > confinc << 'END'
  3731. am__doit:
  3732. @echo this is the am__doit target
  3733. .PHONY: am__doit
  3734. END
  3735. # If we don't find an include directive, just comment out the code.
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3737. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3738. am__include="#"
  3739. am__quote=
  3740. _am_result=none
  3741. # First try GNU make style include.
  3742. echo "include confinc" > confmf
  3743. # Ignore all kinds of additional output from `make'.
  3744. case `$am_make -s -f confmf 2> /dev/null` in #(
  3745. *the\ am__doit\ target*)
  3746. am__include=include
  3747. am__quote=
  3748. _am_result=GNU
  3749. ;;
  3750. esac
  3751. # Now try BSD make style include.
  3752. if test "$am__include" = "#"; then
  3753. echo '.include "confinc"' > confmf
  3754. case `$am_make -s -f confmf 2> /dev/null` in #(
  3755. *the\ am__doit\ target*)
  3756. am__include=.include
  3757. am__quote="\""
  3758. _am_result=BSD
  3759. ;;
  3760. esac
  3761. fi
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3763. $as_echo "$_am_result" >&6; }
  3764. rm -f confinc confmf
  3765. # Check whether --enable-dependency-tracking was given.
  3766. if test "${enable_dependency_tracking+set}" = set; then :
  3767. enableval=$enable_dependency_tracking;
  3768. fi
  3769. if test "x$enable_dependency_tracking" != xno; then
  3770. am_depcomp="$ac_aux_dir/depcomp"
  3771. AMDEPBACKSLASH='\'
  3772. fi
  3773. if test "x$enable_dependency_tracking" != xno; then
  3774. AMDEP_TRUE=
  3775. AMDEP_FALSE='#'
  3776. else
  3777. AMDEP_TRUE='#'
  3778. AMDEP_FALSE=
  3779. fi
  3780. depcc="$CC" am_compiler_list=
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3782. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3783. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3784. $as_echo_n "(cached) " >&6
  3785. else
  3786. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3787. # We make a subdir and do the tests there. Otherwise we can end up
  3788. # making bogus files that we don't know about and never remove. For
  3789. # instance it was reported that on HP-UX the gcc test will end up
  3790. # making a dummy file named `D' -- because `-MD' means `put the output
  3791. # in D'.
  3792. mkdir conftest.dir
  3793. # Copy depcomp to subdir because otherwise we won't find it if we're
  3794. # using a relative directory.
  3795. cp "$am_depcomp" conftest.dir
  3796. cd conftest.dir
  3797. # We will build objects and dependencies in a subdirectory because
  3798. # it helps to detect inapplicable dependency modes. For instance
  3799. # both Tru64's cc and ICC support -MD to output dependencies as a
  3800. # side effect of compilation, but ICC will put the dependencies in
  3801. # the current directory while Tru64 will put them in the object
  3802. # directory.
  3803. mkdir sub
  3804. am_cv_CC_dependencies_compiler_type=none
  3805. if test "$am_compiler_list" = ""; then
  3806. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3807. fi
  3808. am__universal=false
  3809. case " $depcc " in #(
  3810. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3811. esac
  3812. for depmode in $am_compiler_list; do
  3813. # Setup a source with many dependencies, because some compilers
  3814. # like to wrap large dependency lists on column 80 (with \), and
  3815. # we should not choose a depcomp mode which is confused by this.
  3816. #
  3817. # We need to recreate these files for each test, as the compiler may
  3818. # overwrite some of them when testing with obscure command lines.
  3819. # This happens at least with the AIX C compiler.
  3820. : > sub/conftest.c
  3821. for i in 1 2 3 4 5 6; do
  3822. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3823. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3824. # Solaris 8's {/usr,}/bin/sh.
  3825. touch sub/conftst$i.h
  3826. done
  3827. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3828. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3829. # mode. It turns out that the SunPro C++ compiler does not properly
  3830. # handle `-M -o', and we need to detect this. Also, some Intel
  3831. # versions had trouble with output in subdirs
  3832. am__obj=sub/conftest.${OBJEXT-o}
  3833. am__minus_obj="-o $am__obj"
  3834. case $depmode in
  3835. gcc)
  3836. # This depmode causes a compiler race in universal mode.
  3837. test "$am__universal" = false || continue
  3838. ;;
  3839. nosideeffect)
  3840. # after this tag, mechanisms are not by side-effect, so they'll
  3841. # only be used when explicitly requested
  3842. if test "x$enable_dependency_tracking" = xyes; then
  3843. continue
  3844. else
  3845. break
  3846. fi
  3847. ;;
  3848. msvisualcpp | msvcmsys)
  3849. # This compiler won't grok `-c -o', but also, the minuso test has
  3850. # not run yet. These depmodes are late enough in the game, and
  3851. # so weak that their functioning should not be impacted.
  3852. am__obj=conftest.${OBJEXT-o}
  3853. am__minus_obj=
  3854. ;;
  3855. none) break ;;
  3856. esac
  3857. if depmode=$depmode \
  3858. source=sub/conftest.c object=$am__obj \
  3859. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3860. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3861. >/dev/null 2>conftest.err &&
  3862. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3863. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3864. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3865. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3866. # icc doesn't choke on unknown options, it will just issue warnings
  3867. # or remarks (even with -Werror). So we grep stderr for any message
  3868. # that says an option was ignored or not supported.
  3869. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3870. # icc: Command line warning: ignoring option '-M'; no argument required
  3871. # The diagnosis changed in icc 8.0:
  3872. # icc: Command line remark: option '-MP' not supported
  3873. if (grep 'ignoring option' conftest.err ||
  3874. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3875. am_cv_CC_dependencies_compiler_type=$depmode
  3876. break
  3877. fi
  3878. fi
  3879. done
  3880. cd ..
  3881. rm -rf conftest.dir
  3882. else
  3883. am_cv_CC_dependencies_compiler_type=none
  3884. fi
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3887. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3888. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3889. if
  3890. test "x$enable_dependency_tracking" != xno \
  3891. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3892. am__fastdepCC_TRUE=
  3893. am__fastdepCC_FALSE='#'
  3894. else
  3895. am__fastdepCC_TRUE='#'
  3896. am__fastdepCC_FALSE=
  3897. fi
  3898. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  3899. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  3900. # in both places for now and restore CFLAGS at the end of config.
  3901. save_CFLAGS="$CFLAGS"
  3902. # Add -Wall -Werror if we are using GCC.
  3903. if test "x$GCC" = "xyes"; then
  3904. XCFLAGS="$XCFLAGS -Wall -Werror"
  3905. fi
  3906. # Find other programs we need.
  3907. if test -n "$ac_tool_prefix"; then
  3908. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3909. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3911. $as_echo_n "checking for $ac_word... " >&6; }
  3912. if test "${ac_cv_prog_AR+set}" = set; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. if test -n "$AR"; then
  3916. ac_cv_prog_AR="$AR" # Let the user override the test.
  3917. else
  3918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3919. for as_dir in $PATH
  3920. do
  3921. IFS=$as_save_IFS
  3922. test -z "$as_dir" && as_dir=.
  3923. for ac_exec_ext in '' $ac_executable_extensions; do
  3924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3925. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3927. break 2
  3928. fi
  3929. done
  3930. done
  3931. IFS=$as_save_IFS
  3932. fi
  3933. fi
  3934. AR=$ac_cv_prog_AR
  3935. if test -n "$AR"; then
  3936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3937. $as_echo "$AR" >&6; }
  3938. else
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3940. $as_echo "no" >&6; }
  3941. fi
  3942. fi
  3943. if test -z "$ac_cv_prog_AR"; then
  3944. ac_ct_AR=$AR
  3945. # Extract the first word of "ar", so it can be a program name with args.
  3946. set dummy ar; ac_word=$2
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3948. $as_echo_n "checking for $ac_word... " >&6; }
  3949. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  3950. $as_echo_n "(cached) " >&6
  3951. else
  3952. if test -n "$ac_ct_AR"; then
  3953. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3954. else
  3955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3956. for as_dir in $PATH
  3957. do
  3958. IFS=$as_save_IFS
  3959. test -z "$as_dir" && as_dir=.
  3960. for ac_exec_ext in '' $ac_executable_extensions; do
  3961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3962. ac_cv_prog_ac_ct_AR="ar"
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3964. break 2
  3965. fi
  3966. done
  3967. done
  3968. IFS=$as_save_IFS
  3969. fi
  3970. fi
  3971. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3972. if test -n "$ac_ct_AR"; then
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3974. $as_echo "$ac_ct_AR" >&6; }
  3975. else
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3977. $as_echo "no" >&6; }
  3978. fi
  3979. if test "x$ac_ct_AR" = x; then
  3980. AR=""
  3981. else
  3982. case $cross_compiling:$ac_tool_warned in
  3983. yes:)
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3985. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3986. ac_tool_warned=yes ;;
  3987. esac
  3988. AR=$ac_ct_AR
  3989. fi
  3990. else
  3991. AR="$ac_cv_prog_AR"
  3992. fi
  3993. if test -n "$ac_tool_prefix"; then
  3994. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3995. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3997. $as_echo_n "checking for $ac_word... " >&6; }
  3998. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. if test -n "$RANLIB"; then
  4002. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4003. else
  4004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4005. for as_dir in $PATH
  4006. do
  4007. IFS=$as_save_IFS
  4008. test -z "$as_dir" && as_dir=.
  4009. for ac_exec_ext in '' $ac_executable_extensions; do
  4010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4011. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4013. break 2
  4014. fi
  4015. done
  4016. done
  4017. IFS=$as_save_IFS
  4018. fi
  4019. fi
  4020. RANLIB=$ac_cv_prog_RANLIB
  4021. if test -n "$RANLIB"; then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4023. $as_echo "$RANLIB" >&6; }
  4024. else
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4026. $as_echo "no" >&6; }
  4027. fi
  4028. fi
  4029. if test -z "$ac_cv_prog_RANLIB"; then
  4030. ac_ct_RANLIB=$RANLIB
  4031. # Extract the first word of "ranlib", so it can be a program name with args.
  4032. set dummy ranlib; ac_word=$2
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4034. $as_echo_n "checking for $ac_word... " >&6; }
  4035. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. if test -n "$ac_ct_RANLIB"; then
  4039. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4040. else
  4041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4042. for as_dir in $PATH
  4043. do
  4044. IFS=$as_save_IFS
  4045. test -z "$as_dir" && as_dir=.
  4046. for ac_exec_ext in '' $ac_executable_extensions; do
  4047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4048. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4050. break 2
  4051. fi
  4052. done
  4053. done
  4054. IFS=$as_save_IFS
  4055. fi
  4056. fi
  4057. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4058. if test -n "$ac_ct_RANLIB"; then
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4060. $as_echo "$ac_ct_RANLIB" >&6; }
  4061. else
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4063. $as_echo "no" >&6; }
  4064. fi
  4065. if test "x$ac_ct_RANLIB" = x; then
  4066. RANLIB="ranlib-not-found-in-path-error"
  4067. else
  4068. case $cross_compiling:$ac_tool_warned in
  4069. yes:)
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4072. ac_tool_warned=yes ;;
  4073. esac
  4074. RANLIB=$ac_ct_RANLIB
  4075. fi
  4076. else
  4077. RANLIB="$ac_cv_prog_RANLIB"
  4078. fi
  4079. # Extract the first word of "perl", so it can be a program name with args.
  4080. set dummy perl; ac_word=$2
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4082. $as_echo_n "checking for $ac_word... " >&6; }
  4083. if test "${ac_cv_path_PERL+set}" = set; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. case $PERL in
  4087. [\\/]* | ?:[\\/]*)
  4088. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4089. ;;
  4090. *)
  4091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4092. for as_dir in $PATH
  4093. do
  4094. IFS=$as_save_IFS
  4095. test -z "$as_dir" && as_dir=.
  4096. for ac_exec_ext in '' $ac_executable_extensions; do
  4097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4098. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4100. break 2
  4101. fi
  4102. done
  4103. done
  4104. IFS=$as_save_IFS
  4105. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  4106. ;;
  4107. esac
  4108. fi
  4109. PERL=$ac_cv_path_PERL
  4110. if test -n "$PERL"; then
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4112. $as_echo "$PERL" >&6; }
  4113. else
  4114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4115. $as_echo "no" >&6; }
  4116. fi
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4118. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4119. set x ${MAKE-make}
  4120. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4121. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4122. $as_echo_n "(cached) " >&6
  4123. else
  4124. cat >conftest.make <<\_ACEOF
  4125. SHELL = /bin/sh
  4126. all:
  4127. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4128. _ACEOF
  4129. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4130. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4131. *@@@%%%=?*=@@@%%%*)
  4132. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4133. *)
  4134. eval ac_cv_prog_make_${ac_make}_set=no;;
  4135. esac
  4136. rm -f conftest.make
  4137. fi
  4138. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4140. $as_echo "yes" >&6; }
  4141. SET_MAKE=
  4142. else
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4144. $as_echo "no" >&6; }
  4145. SET_MAKE="MAKE=${MAKE-make}"
  4146. fi
  4147. # See if makeinfo has been installed and is modern enough
  4148. # that we can use it.
  4149. # Extract the first word of "makeinfo", so it can be a program name with args.
  4150. set dummy makeinfo; ac_word=$2
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4152. $as_echo_n "checking for $ac_word... " >&6; }
  4153. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  4154. $as_echo_n "(cached) " >&6
  4155. else
  4156. if test -n "$MAKEINFO"; then
  4157. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  4158. else
  4159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4160. for as_dir in $PATH
  4161. do
  4162. IFS=$as_save_IFS
  4163. test -z "$as_dir" && as_dir=.
  4164. for ac_exec_ext in '' $ac_executable_extensions; do
  4165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4166. ac_cv_prog_MAKEINFO="makeinfo"
  4167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4168. break 2
  4169. fi
  4170. done
  4171. done
  4172. IFS=$as_save_IFS
  4173. fi
  4174. fi
  4175. MAKEINFO=$ac_cv_prog_MAKEINFO
  4176. if test -n "$MAKEINFO"; then
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  4178. $as_echo "$MAKEINFO" >&6; }
  4179. else
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4181. $as_echo "no" >&6; }
  4182. fi
  4183. if test -n "$MAKEINFO"; then
  4184. # Found it, now check the version.
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  4186. $as_echo_n "checking for modern makeinfo... " >&6; }
  4187. if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
  4188. $as_echo_n "(cached) " >&6
  4189. else
  4190. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  4191. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  4192. case $ac_prog_version in
  4193. '') gcc_cv_prog_makeinfo_modern=no;;
  4194. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  4195. *) gcc_cv_prog_makeinfo_modern=no;;
  4196. esac
  4197. fi
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  4199. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  4200. else
  4201. gcc_cv_prog_makeinfo_modern=no
  4202. fi
  4203. if test $gcc_cv_prog_makeinfo_modern = no; then
  4204. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  4205. fi
  4206. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  4207. BUILD_INFO_TRUE=
  4208. BUILD_INFO_FALSE='#'
  4209. else
  4210. BUILD_INFO_TRUE='#'
  4211. BUILD_INFO_FALSE=
  4212. fi
  4213. # Configure libtool
  4214. case `pwd` in
  4215. *\ * | *\ *)
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4217. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4218. esac
  4219. macro_version='2.2.7a'
  4220. macro_revision='1.3134'
  4221. ltmain="$ac_aux_dir/ltmain.sh"
  4222. # Backslashify metacharacters that are still active within
  4223. # double-quoted strings.
  4224. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4225. # Same as above, but do not quote variable references.
  4226. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4227. # Sed substitution to delay expansion of an escaped shell variable in a
  4228. # double_quote_subst'ed string.
  4229. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4230. # Sed substitution to delay expansion of an escaped single quote.
  4231. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4232. # Sed substitution to avoid accidental globbing in evaled expressions
  4233. no_glob_subst='s/\*/\\\*/g'
  4234. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4235. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4236. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4238. $as_echo_n "checking how to print strings... " >&6; }
  4239. # Test print first, because it will be a builtin if present.
  4240. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4241. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4242. ECHO='print -r --'
  4243. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4244. ECHO='printf %s\n'
  4245. else
  4246. # Use this function as a fallback that always works.
  4247. func_fallback_echo ()
  4248. {
  4249. eval 'cat <<_LTECHO_EOF
  4250. $1
  4251. _LTECHO_EOF'
  4252. }
  4253. ECHO='func_fallback_echo'
  4254. fi
  4255. # func_echo_all arg...
  4256. # Invoke $ECHO with all args, space-separated.
  4257. func_echo_all ()
  4258. {
  4259. $ECHO ""
  4260. }
  4261. case "$ECHO" in
  4262. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4263. $as_echo "printf" >&6; } ;;
  4264. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4265. $as_echo "print -r" >&6; } ;;
  4266. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4267. $as_echo "cat" >&6; } ;;
  4268. esac
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4270. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4271. if test "${ac_cv_path_SED+set}" = set; then :
  4272. $as_echo_n "(cached) " >&6
  4273. else
  4274. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4275. for ac_i in 1 2 3 4 5 6 7; do
  4276. ac_script="$ac_script$as_nl$ac_script"
  4277. done
  4278. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4279. { ac_script=; unset ac_script;}
  4280. if test -z "$SED"; then
  4281. ac_path_SED_found=false
  4282. # Loop through the user's path and test for each of PROGNAME-LIST
  4283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4284. for as_dir in $PATH
  4285. do
  4286. IFS=$as_save_IFS
  4287. test -z "$as_dir" && as_dir=.
  4288. for ac_prog in sed gsed; do
  4289. for ac_exec_ext in '' $ac_executable_extensions; do
  4290. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4291. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4292. # Check for GNU ac_path_SED and select it if it is found.
  4293. # Check for GNU $ac_path_SED
  4294. case `"$ac_path_SED" --version 2>&1` in
  4295. *GNU*)
  4296. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4297. *)
  4298. ac_count=0
  4299. $as_echo_n 0123456789 >"conftest.in"
  4300. while :
  4301. do
  4302. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4303. mv "conftest.tmp" "conftest.in"
  4304. cp "conftest.in" "conftest.nl"
  4305. $as_echo '' >> "conftest.nl"
  4306. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4307. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4308. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4309. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4310. # Best one so far, save it but keep looking for a better one
  4311. ac_cv_path_SED="$ac_path_SED"
  4312. ac_path_SED_max=$ac_count
  4313. fi
  4314. # 10*(2^10) chars as input seems more than enough
  4315. test $ac_count -gt 10 && break
  4316. done
  4317. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4318. esac
  4319. $ac_path_SED_found && break 3
  4320. done
  4321. done
  4322. done
  4323. IFS=$as_save_IFS
  4324. if test -z "$ac_cv_path_SED"; then
  4325. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4326. fi
  4327. else
  4328. ac_cv_path_SED=$SED
  4329. fi
  4330. fi
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4332. $as_echo "$ac_cv_path_SED" >&6; }
  4333. SED="$ac_cv_path_SED"
  4334. rm -f conftest.sed
  4335. test -z "$SED" && SED=sed
  4336. Xsed="$SED -e 1s/^X//"
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4338. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4339. if test "${ac_cv_path_GREP+set}" = set; then :
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. if test -z "$GREP"; then
  4343. ac_path_GREP_found=false
  4344. # Loop through the user's path and test for each of PROGNAME-LIST
  4345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4346. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4347. do
  4348. IFS=$as_save_IFS
  4349. test -z "$as_dir" && as_dir=.
  4350. for ac_prog in grep ggrep; do
  4351. for ac_exec_ext in '' $ac_executable_extensions; do
  4352. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4353. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4354. # Check for GNU ac_path_GREP and select it if it is found.
  4355. # Check for GNU $ac_path_GREP
  4356. case `"$ac_path_GREP" --version 2>&1` in
  4357. *GNU*)
  4358. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4359. *)
  4360. ac_count=0
  4361. $as_echo_n 0123456789 >"conftest.in"
  4362. while :
  4363. do
  4364. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4365. mv "conftest.tmp" "conftest.in"
  4366. cp "conftest.in" "conftest.nl"
  4367. $as_echo 'GREP' >> "conftest.nl"
  4368. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4369. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4370. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4371. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4372. # Best one so far, save it but keep looking for a better one
  4373. ac_cv_path_GREP="$ac_path_GREP"
  4374. ac_path_GREP_max=$ac_count
  4375. fi
  4376. # 10*(2^10) chars as input seems more than enough
  4377. test $ac_count -gt 10 && break
  4378. done
  4379. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4380. esac
  4381. $ac_path_GREP_found && break 3
  4382. done
  4383. done
  4384. done
  4385. IFS=$as_save_IFS
  4386. if test -z "$ac_cv_path_GREP"; then
  4387. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4388. fi
  4389. else
  4390. ac_cv_path_GREP=$GREP
  4391. fi
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4394. $as_echo "$ac_cv_path_GREP" >&6; }
  4395. GREP="$ac_cv_path_GREP"
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4397. $as_echo_n "checking for egrep... " >&6; }
  4398. if test "${ac_cv_path_EGREP+set}" = set; then :
  4399. $as_echo_n "(cached) " >&6
  4400. else
  4401. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4402. then ac_cv_path_EGREP="$GREP -E"
  4403. else
  4404. if test -z "$EGREP"; then
  4405. ac_path_EGREP_found=false
  4406. # Loop through the user's path and test for each of PROGNAME-LIST
  4407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4408. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4409. do
  4410. IFS=$as_save_IFS
  4411. test -z "$as_dir" && as_dir=.
  4412. for ac_prog in egrep; do
  4413. for ac_exec_ext in '' $ac_executable_extensions; do
  4414. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4415. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4416. # Check for GNU ac_path_EGREP and select it if it is found.
  4417. # Check for GNU $ac_path_EGREP
  4418. case `"$ac_path_EGREP" --version 2>&1` in
  4419. *GNU*)
  4420. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4421. *)
  4422. ac_count=0
  4423. $as_echo_n 0123456789 >"conftest.in"
  4424. while :
  4425. do
  4426. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4427. mv "conftest.tmp" "conftest.in"
  4428. cp "conftest.in" "conftest.nl"
  4429. $as_echo 'EGREP' >> "conftest.nl"
  4430. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4431. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4432. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4433. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4434. # Best one so far, save it but keep looking for a better one
  4435. ac_cv_path_EGREP="$ac_path_EGREP"
  4436. ac_path_EGREP_max=$ac_count
  4437. fi
  4438. # 10*(2^10) chars as input seems more than enough
  4439. test $ac_count -gt 10 && break
  4440. done
  4441. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4442. esac
  4443. $ac_path_EGREP_found && break 3
  4444. done
  4445. done
  4446. done
  4447. IFS=$as_save_IFS
  4448. if test -z "$ac_cv_path_EGREP"; then
  4449. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4450. fi
  4451. else
  4452. ac_cv_path_EGREP=$EGREP
  4453. fi
  4454. fi
  4455. fi
  4456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4457. $as_echo "$ac_cv_path_EGREP" >&6; }
  4458. EGREP="$ac_cv_path_EGREP"
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4460. $as_echo_n "checking for fgrep... " >&6; }
  4461. if test "${ac_cv_path_FGREP+set}" = set; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4465. then ac_cv_path_FGREP="$GREP -F"
  4466. else
  4467. if test -z "$FGREP"; then
  4468. ac_path_FGREP_found=false
  4469. # Loop through the user's path and test for each of PROGNAME-LIST
  4470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4471. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4472. do
  4473. IFS=$as_save_IFS
  4474. test -z "$as_dir" && as_dir=.
  4475. for ac_prog in fgrep; do
  4476. for ac_exec_ext in '' $ac_executable_extensions; do
  4477. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4478. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4479. # Check for GNU ac_path_FGREP and select it if it is found.
  4480. # Check for GNU $ac_path_FGREP
  4481. case `"$ac_path_FGREP" --version 2>&1` in
  4482. *GNU*)
  4483. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4484. *)
  4485. ac_count=0
  4486. $as_echo_n 0123456789 >"conftest.in"
  4487. while :
  4488. do
  4489. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4490. mv "conftest.tmp" "conftest.in"
  4491. cp "conftest.in" "conftest.nl"
  4492. $as_echo 'FGREP' >> "conftest.nl"
  4493. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4494. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4495. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4496. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4497. # Best one so far, save it but keep looking for a better one
  4498. ac_cv_path_FGREP="$ac_path_FGREP"
  4499. ac_path_FGREP_max=$ac_count
  4500. fi
  4501. # 10*(2^10) chars as input seems more than enough
  4502. test $ac_count -gt 10 && break
  4503. done
  4504. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4505. esac
  4506. $ac_path_FGREP_found && break 3
  4507. done
  4508. done
  4509. done
  4510. IFS=$as_save_IFS
  4511. if test -z "$ac_cv_path_FGREP"; then
  4512. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4513. fi
  4514. else
  4515. ac_cv_path_FGREP=$FGREP
  4516. fi
  4517. fi
  4518. fi
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4520. $as_echo "$ac_cv_path_FGREP" >&6; }
  4521. FGREP="$ac_cv_path_FGREP"
  4522. test -z "$GREP" && GREP=grep
  4523. # Check whether --with-gnu-ld was given.
  4524. if test "${with_gnu_ld+set}" = set; then :
  4525. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4526. else
  4527. with_gnu_ld=no
  4528. fi
  4529. ac_prog=ld
  4530. if test "$GCC" = yes; then
  4531. # Check if gcc -print-prog-name=ld gives a path.
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4533. $as_echo_n "checking for ld used by $CC... " >&6; }
  4534. case $host in
  4535. *-*-mingw*)
  4536. # gcc leaves a trailing carriage return which upsets mingw
  4537. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4538. *)
  4539. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4540. esac
  4541. case $ac_prog in
  4542. # Accept absolute paths.
  4543. [\\/]* | ?:[\\/]*)
  4544. re_direlt='/[^/][^/]*/\.\./'
  4545. # Canonicalize the pathname of ld
  4546. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4547. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4548. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4549. done
  4550. test -z "$LD" && LD="$ac_prog"
  4551. ;;
  4552. "")
  4553. # If it fails, then pretend we aren't using GCC.
  4554. ac_prog=ld
  4555. ;;
  4556. *)
  4557. # If it is relative, then search for the first ld in PATH.
  4558. with_gnu_ld=unknown
  4559. ;;
  4560. esac
  4561. elif test "$with_gnu_ld" = yes; then
  4562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4563. $as_echo_n "checking for GNU ld... " >&6; }
  4564. else
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4566. $as_echo_n "checking for non-GNU ld... " >&6; }
  4567. fi
  4568. if test "${lt_cv_path_LD+set}" = set; then :
  4569. $as_echo_n "(cached) " >&6
  4570. else
  4571. if test -z "$LD"; then
  4572. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4573. for ac_dir in $PATH; do
  4574. IFS="$lt_save_ifs"
  4575. test -z "$ac_dir" && ac_dir=.
  4576. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4577. lt_cv_path_LD="$ac_dir/$ac_prog"
  4578. # Check to see if the program is GNU ld. I'd rather use --version,
  4579. # but apparently some variants of GNU ld only accept -v.
  4580. # Break only if it was the GNU/non-GNU ld that we prefer.
  4581. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4582. *GNU* | *'with BFD'*)
  4583. test "$with_gnu_ld" != no && break
  4584. ;;
  4585. *)
  4586. test "$with_gnu_ld" != yes && break
  4587. ;;
  4588. esac
  4589. fi
  4590. done
  4591. IFS="$lt_save_ifs"
  4592. else
  4593. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4594. fi
  4595. fi
  4596. LD="$lt_cv_path_LD"
  4597. if test -n "$LD"; then
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4599. $as_echo "$LD" >&6; }
  4600. else
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4602. $as_echo "no" >&6; }
  4603. fi
  4604. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4606. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4607. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4608. $as_echo_n "(cached) " >&6
  4609. else
  4610. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4611. case `$LD -v 2>&1 </dev/null` in
  4612. *GNU* | *'with BFD'*)
  4613. lt_cv_prog_gnu_ld=yes
  4614. ;;
  4615. *)
  4616. lt_cv_prog_gnu_ld=no
  4617. ;;
  4618. esac
  4619. fi
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4621. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4622. with_gnu_ld=$lt_cv_prog_gnu_ld
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4624. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4625. if test "${lt_cv_path_NM+set}" = set; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. if test -n "$NM"; then
  4629. # Let the user override the test.
  4630. lt_cv_path_NM="$NM"
  4631. else
  4632. lt_nm_to_check="${ac_tool_prefix}nm"
  4633. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4634. lt_nm_to_check="$lt_nm_to_check nm"
  4635. fi
  4636. for lt_tmp_nm in $lt_nm_to_check; do
  4637. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4638. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4639. IFS="$lt_save_ifs"
  4640. test -z "$ac_dir" && ac_dir=.
  4641. tmp_nm="$ac_dir/$lt_tmp_nm"
  4642. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4643. # Check to see if the nm accepts a BSD-compat flag.
  4644. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4645. # nm: unknown option "B" ignored
  4646. # Tru64's nm complains that /dev/null is an invalid object file
  4647. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4648. */dev/null* | *'Invalid file or object type'*)
  4649. lt_cv_path_NM="$tmp_nm -B"
  4650. break
  4651. ;;
  4652. *)
  4653. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4654. */dev/null*)
  4655. lt_cv_path_NM="$tmp_nm -p"
  4656. break
  4657. ;;
  4658. *)
  4659. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4660. continue # so that we can try to find one that supports BSD flags
  4661. ;;
  4662. esac
  4663. ;;
  4664. esac
  4665. fi
  4666. done
  4667. IFS="$lt_save_ifs"
  4668. done
  4669. : ${lt_cv_path_NM=no}
  4670. fi
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4673. $as_echo "$lt_cv_path_NM" >&6; }
  4674. if test "$lt_cv_path_NM" != "no"; then
  4675. NM="$lt_cv_path_NM"
  4676. else
  4677. # Didn't find any BSD compatible name lister, look for dumpbin.
  4678. if test -n "$DUMPBIN"; then :
  4679. # Let the user override the test.
  4680. else
  4681. if test -n "$ac_tool_prefix"; then
  4682. for ac_prog in dumpbin "link -dump"
  4683. do
  4684. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4685. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4687. $as_echo_n "checking for $ac_word... " >&6; }
  4688. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. if test -n "$DUMPBIN"; then
  4692. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4693. else
  4694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4695. for as_dir in $PATH
  4696. do
  4697. IFS=$as_save_IFS
  4698. test -z "$as_dir" && as_dir=.
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4701. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4703. break 2
  4704. fi
  4705. done
  4706. done
  4707. IFS=$as_save_IFS
  4708. fi
  4709. fi
  4710. DUMPBIN=$ac_cv_prog_DUMPBIN
  4711. if test -n "$DUMPBIN"; then
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4713. $as_echo "$DUMPBIN" >&6; }
  4714. else
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4716. $as_echo "no" >&6; }
  4717. fi
  4718. test -n "$DUMPBIN" && break
  4719. done
  4720. fi
  4721. if test -z "$DUMPBIN"; then
  4722. ac_ct_DUMPBIN=$DUMPBIN
  4723. for ac_prog in dumpbin "link -dump"
  4724. do
  4725. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4726. set dummy $ac_prog; ac_word=$2
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4728. $as_echo_n "checking for $ac_word... " >&6; }
  4729. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4730. $as_echo_n "(cached) " >&6
  4731. else
  4732. if test -n "$ac_ct_DUMPBIN"; then
  4733. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4734. else
  4735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4736. for as_dir in $PATH
  4737. do
  4738. IFS=$as_save_IFS
  4739. test -z "$as_dir" && as_dir=.
  4740. for ac_exec_ext in '' $ac_executable_extensions; do
  4741. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4742. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4744. break 2
  4745. fi
  4746. done
  4747. done
  4748. IFS=$as_save_IFS
  4749. fi
  4750. fi
  4751. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4752. if test -n "$ac_ct_DUMPBIN"; then
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4754. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4755. else
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4757. $as_echo "no" >&6; }
  4758. fi
  4759. test -n "$ac_ct_DUMPBIN" && break
  4760. done
  4761. if test "x$ac_ct_DUMPBIN" = x; then
  4762. DUMPBIN=":"
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4768. ac_tool_warned=yes ;;
  4769. esac
  4770. DUMPBIN=$ac_ct_DUMPBIN
  4771. fi
  4772. fi
  4773. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4774. *COFF*)
  4775. DUMPBIN="$DUMPBIN -symbols"
  4776. ;;
  4777. *)
  4778. DUMPBIN=:
  4779. ;;
  4780. esac
  4781. fi
  4782. if test "$DUMPBIN" != ":"; then
  4783. NM="$DUMPBIN"
  4784. fi
  4785. fi
  4786. test -z "$NM" && NM=nm
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4788. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4789. if test "${lt_cv_nm_interface+set}" = set; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. lt_cv_nm_interface="BSD nm"
  4793. echo "int some_variable = 0;" > conftest.$ac_ext
  4794. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4795. (eval "$ac_compile" 2>conftest.err)
  4796. cat conftest.err >&5
  4797. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4798. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4799. cat conftest.err >&5
  4800. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4801. cat conftest.out >&5
  4802. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4803. lt_cv_nm_interface="MS dumpbin"
  4804. fi
  4805. rm -f conftest*
  4806. fi
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4808. $as_echo "$lt_cv_nm_interface" >&6; }
  4809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4810. $as_echo_n "checking whether ln -s works... " >&6; }
  4811. LN_S=$as_ln_s
  4812. if test "$LN_S" = "ln -s"; then
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4814. $as_echo "yes" >&6; }
  4815. else
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4817. $as_echo "no, using $LN_S" >&6; }
  4818. fi
  4819. # find the maximum length of command line arguments
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4821. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4822. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4823. $as_echo_n "(cached) " >&6
  4824. else
  4825. i=0
  4826. teststring="ABCD"
  4827. case $build_os in
  4828. msdosdjgpp*)
  4829. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4830. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4831. # during glob expansion). Even if it were fixed, the result of this
  4832. # check would be larger than it should be.
  4833. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4834. ;;
  4835. gnu*)
  4836. # Under GNU Hurd, this test is not required because there is
  4837. # no limit to the length of command line arguments.
  4838. # Libtool will interpret -1 as no limit whatsoever
  4839. lt_cv_sys_max_cmd_len=-1;
  4840. ;;
  4841. cygwin* | mingw* | cegcc*)
  4842. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4843. # about 5 minutes as the teststring grows exponentially.
  4844. # Worse, since 9x/ME are not pre-emptively multitasking,
  4845. # you end up with a "frozen" computer, even though with patience
  4846. # the test eventually succeeds (with a max line length of 256k).
  4847. # Instead, let's just punt: use the minimum linelength reported by
  4848. # all of the supported platforms: 8192 (on NT/2K/XP).
  4849. lt_cv_sys_max_cmd_len=8192;
  4850. ;;
  4851. mint*)
  4852. # On MiNT this can take a long time and run out of memory.
  4853. lt_cv_sys_max_cmd_len=8192;
  4854. ;;
  4855. amigaos*)
  4856. # On AmigaOS with pdksh, this test takes hours, literally.
  4857. # So we just punt and use a minimum line length of 8192.
  4858. lt_cv_sys_max_cmd_len=8192;
  4859. ;;
  4860. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4861. # This has been around since 386BSD, at least. Likely further.
  4862. if test -x /sbin/sysctl; then
  4863. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4864. elif test -x /usr/sbin/sysctl; then
  4865. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4866. else
  4867. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4868. fi
  4869. # And add a safety zone
  4870. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4871. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4872. ;;
  4873. interix*)
  4874. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4875. lt_cv_sys_max_cmd_len=196608
  4876. ;;
  4877. osf*)
  4878. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4879. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4880. # nice to cause kernel panics so lets avoid the loop below.
  4881. # First set a reasonable default.
  4882. lt_cv_sys_max_cmd_len=16384
  4883. #
  4884. if test -x /sbin/sysconfig; then
  4885. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4886. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4887. esac
  4888. fi
  4889. ;;
  4890. sco3.2v5*)
  4891. lt_cv_sys_max_cmd_len=102400
  4892. ;;
  4893. sysv5* | sco5v6* | sysv4.2uw2*)
  4894. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4895. if test -n "$kargmax"; then
  4896. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4897. else
  4898. lt_cv_sys_max_cmd_len=32768
  4899. fi
  4900. ;;
  4901. *)
  4902. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4903. if test -n "$lt_cv_sys_max_cmd_len"; then
  4904. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4905. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4906. else
  4907. # Make teststring a little bigger before we do anything with it.
  4908. # a 1K string should be a reasonable start.
  4909. for i in 1 2 3 4 5 6 7 8 ; do
  4910. teststring=$teststring$teststring
  4911. done
  4912. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4913. # If test is not a shell built-in, we'll probably end up computing a
  4914. # maximum length that is only half of the actual maximum length, but
  4915. # we can't tell.
  4916. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4917. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4918. test $i != 17 # 1/2 MB should be enough
  4919. do
  4920. i=`expr $i + 1`
  4921. teststring=$teststring$teststring
  4922. done
  4923. # Only check the string length outside the loop.
  4924. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4925. teststring=
  4926. # Add a significant safety factor because C++ compilers can tack on
  4927. # massive amounts of additional arguments before passing them to the
  4928. # linker. It appears as though 1/2 is a usable value.
  4929. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4930. fi
  4931. ;;
  4932. esac
  4933. fi
  4934. if test -n $lt_cv_sys_max_cmd_len ; then
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4936. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4937. else
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4939. $as_echo "none" >&6; }
  4940. fi
  4941. max_cmd_len=$lt_cv_sys_max_cmd_len
  4942. : ${CP="cp -f"}
  4943. : ${MV="mv -f"}
  4944. : ${RM="rm -f"}
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4946. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4947. # Try some XSI features
  4948. xsi_shell=no
  4949. ( _lt_dummy="a/b/c"
  4950. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4951. = c,a/b,, \
  4952. && eval 'test $(( 1 + 1 )) -eq 2 \
  4953. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4954. && xsi_shell=yes
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4956. $as_echo "$xsi_shell" >&6; }
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4958. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4959. lt_shell_append=no
  4960. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4961. >/dev/null 2>&1 \
  4962. && lt_shell_append=yes
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4964. $as_echo "$lt_shell_append" >&6; }
  4965. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4966. lt_unset=unset
  4967. else
  4968. lt_unset=false
  4969. fi
  4970. # test EBCDIC or ASCII
  4971. case `echo X|tr X '\101'` in
  4972. A) # ASCII based system
  4973. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4974. lt_SP2NL='tr \040 \012'
  4975. lt_NL2SP='tr \015\012 \040\040'
  4976. ;;
  4977. *) # EBCDIC based system
  4978. lt_SP2NL='tr \100 \n'
  4979. lt_NL2SP='tr \r\n \100\100'
  4980. ;;
  4981. esac
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4983. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4984. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4985. $as_echo_n "(cached) " >&6
  4986. else
  4987. lt_cv_ld_reload_flag='-r'
  4988. fi
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4990. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4991. reload_flag=$lt_cv_ld_reload_flag
  4992. case $reload_flag in
  4993. "" | " "*) ;;
  4994. *) reload_flag=" $reload_flag" ;;
  4995. esac
  4996. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4997. case $host_os in
  4998. darwin*)
  4999. if test "$GCC" = yes; then
  5000. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5001. else
  5002. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5003. fi
  5004. ;;
  5005. esac
  5006. if test -n "$ac_tool_prefix"; then
  5007. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5008. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5010. $as_echo_n "checking for $ac_word... " >&6; }
  5011. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  5012. $as_echo_n "(cached) " >&6
  5013. else
  5014. if test -n "$OBJDUMP"; then
  5015. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5016. else
  5017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5018. for as_dir in $PATH
  5019. do
  5020. IFS=$as_save_IFS
  5021. test -z "$as_dir" && as_dir=.
  5022. for ac_exec_ext in '' $ac_executable_extensions; do
  5023. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5024. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5026. break 2
  5027. fi
  5028. done
  5029. done
  5030. IFS=$as_save_IFS
  5031. fi
  5032. fi
  5033. OBJDUMP=$ac_cv_prog_OBJDUMP
  5034. if test -n "$OBJDUMP"; then
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5036. $as_echo "$OBJDUMP" >&6; }
  5037. else
  5038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5039. $as_echo "no" >&6; }
  5040. fi
  5041. fi
  5042. if test -z "$ac_cv_prog_OBJDUMP"; then
  5043. ac_ct_OBJDUMP=$OBJDUMP
  5044. # Extract the first word of "objdump", so it can be a program name with args.
  5045. set dummy objdump; ac_word=$2
  5046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5047. $as_echo_n "checking for $ac_word... " >&6; }
  5048. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  5049. $as_echo_n "(cached) " >&6
  5050. else
  5051. if test -n "$ac_ct_OBJDUMP"; then
  5052. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5053. else
  5054. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5055. for as_dir in $PATH
  5056. do
  5057. IFS=$as_save_IFS
  5058. test -z "$as_dir" && as_dir=.
  5059. for ac_exec_ext in '' $ac_executable_extensions; do
  5060. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5061. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5062. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5063. break 2
  5064. fi
  5065. done
  5066. done
  5067. IFS=$as_save_IFS
  5068. fi
  5069. fi
  5070. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5071. if test -n "$ac_ct_OBJDUMP"; then
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5073. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5074. else
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5076. $as_echo "no" >&6; }
  5077. fi
  5078. if test "x$ac_ct_OBJDUMP" = x; then
  5079. OBJDUMP="false"
  5080. else
  5081. case $cross_compiling:$ac_tool_warned in
  5082. yes:)
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5084. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5085. ac_tool_warned=yes ;;
  5086. esac
  5087. OBJDUMP=$ac_ct_OBJDUMP
  5088. fi
  5089. else
  5090. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5091. fi
  5092. test -z "$OBJDUMP" && OBJDUMP=objdump
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5094. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5095. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5096. $as_echo_n "(cached) " >&6
  5097. else
  5098. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5099. lt_cv_file_magic_test_file=
  5100. lt_cv_deplibs_check_method='unknown'
  5101. # Need to set the preceding variable on all platforms that support
  5102. # interlibrary dependencies.
  5103. # 'none' -- dependencies not supported.
  5104. # `unknown' -- same as none, but documents that we really don't know.
  5105. # 'pass_all' -- all dependencies passed with no checks.
  5106. # 'test_compile' -- check by making test program.
  5107. # 'file_magic [[regex]]' -- check by looking for files in library path
  5108. # which responds to the $file_magic_cmd with a given extended regex.
  5109. # If you have `file' or equivalent on your system and you're not sure
  5110. # whether `pass_all' will *always* work, you probably want this one.
  5111. case $host_os in
  5112. aix[4-9]*)
  5113. lt_cv_deplibs_check_method=pass_all
  5114. ;;
  5115. beos*)
  5116. lt_cv_deplibs_check_method=pass_all
  5117. ;;
  5118. bsdi[45]*)
  5119. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5120. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5121. lt_cv_file_magic_test_file=/shlib/libc.so
  5122. ;;
  5123. cygwin*)
  5124. # func_win32_libid is a shell function defined in ltmain.sh
  5125. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5126. lt_cv_file_magic_cmd='func_win32_libid'
  5127. ;;
  5128. mingw* | pw32*)
  5129. # Base MSYS/MinGW do not provide the 'file' command needed by
  5130. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5131. # unless we find 'file', for example because we are cross-compiling.
  5132. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5133. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5134. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5135. lt_cv_file_magic_cmd='func_win32_libid'
  5136. else
  5137. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5138. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5139. fi
  5140. ;;
  5141. cegcc*)
  5142. # use the weaker test based on 'objdump'. See mingw*.
  5143. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5144. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5145. ;;
  5146. darwin* | rhapsody*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149. freebsd* | dragonfly*)
  5150. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5151. case $host_cpu in
  5152. i*86 )
  5153. # Not sure whether the presence of OpenBSD here was a mistake.
  5154. # Let's accept both of them until this is cleared up.
  5155. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5156. lt_cv_file_magic_cmd=/usr/bin/file
  5157. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5158. ;;
  5159. esac
  5160. else
  5161. lt_cv_deplibs_check_method=pass_all
  5162. fi
  5163. ;;
  5164. gnu*)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. haiku*)
  5168. lt_cv_deplibs_check_method=pass_all
  5169. ;;
  5170. hpux10.20* | hpux11*)
  5171. lt_cv_file_magic_cmd=/usr/bin/file
  5172. case $host_cpu in
  5173. ia64*)
  5174. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5175. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5176. ;;
  5177. hppa*64*)
  5178. 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]'
  5179. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5180. ;;
  5181. *)
  5182. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5183. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5184. ;;
  5185. esac
  5186. ;;
  5187. interix[3-9]*)
  5188. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5189. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5190. ;;
  5191. irix5* | irix6* | nonstopux*)
  5192. case $LD in
  5193. *-32|*"-32 ") libmagic=32-bit;;
  5194. *-n32|*"-n32 ") libmagic=N32;;
  5195. *-64|*"-64 ") libmagic=64-bit;;
  5196. *) libmagic=never-match;;
  5197. esac
  5198. lt_cv_deplibs_check_method=pass_all
  5199. ;;
  5200. # This must be Linux ELF.
  5201. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5202. lt_cv_deplibs_check_method=pass_all
  5203. ;;
  5204. netbsd*)
  5205. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5206. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5207. else
  5208. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5209. fi
  5210. ;;
  5211. newos6*)
  5212. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5213. lt_cv_file_magic_cmd=/usr/bin/file
  5214. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5215. ;;
  5216. *nto* | *qnx*)
  5217. lt_cv_deplibs_check_method=pass_all
  5218. ;;
  5219. openbsd*)
  5220. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5221. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5222. else
  5223. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5224. fi
  5225. ;;
  5226. osf3* | osf4* | osf5*)
  5227. lt_cv_deplibs_check_method=pass_all
  5228. ;;
  5229. rdos*)
  5230. lt_cv_deplibs_check_method=pass_all
  5231. ;;
  5232. solaris*)
  5233. lt_cv_deplibs_check_method=pass_all
  5234. ;;
  5235. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5236. lt_cv_deplibs_check_method=pass_all
  5237. ;;
  5238. sysv4 | sysv4.3*)
  5239. case $host_vendor in
  5240. motorola)
  5241. 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]'
  5242. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5243. ;;
  5244. ncr)
  5245. lt_cv_deplibs_check_method=pass_all
  5246. ;;
  5247. sequent)
  5248. lt_cv_file_magic_cmd='/bin/file'
  5249. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5250. ;;
  5251. sni)
  5252. lt_cv_file_magic_cmd='/bin/file'
  5253. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5254. lt_cv_file_magic_test_file=/lib/libc.so
  5255. ;;
  5256. siemens)
  5257. lt_cv_deplibs_check_method=pass_all
  5258. ;;
  5259. pc)
  5260. lt_cv_deplibs_check_method=pass_all
  5261. ;;
  5262. esac
  5263. ;;
  5264. tpf*)
  5265. lt_cv_deplibs_check_method=pass_all
  5266. ;;
  5267. esac
  5268. fi
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5270. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5271. file_magic_cmd=$lt_cv_file_magic_cmd
  5272. deplibs_check_method=$lt_cv_deplibs_check_method
  5273. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5274. if test -n "$ac_tool_prefix"; then
  5275. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5276. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5278. $as_echo_n "checking for $ac_word... " >&6; }
  5279. if test "${ac_cv_prog_AR+set}" = set; then :
  5280. $as_echo_n "(cached) " >&6
  5281. else
  5282. if test -n "$AR"; then
  5283. ac_cv_prog_AR="$AR" # Let the user override the test.
  5284. else
  5285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5286. for as_dir in $PATH
  5287. do
  5288. IFS=$as_save_IFS
  5289. test -z "$as_dir" && as_dir=.
  5290. for ac_exec_ext in '' $ac_executable_extensions; do
  5291. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5292. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5294. break 2
  5295. fi
  5296. done
  5297. done
  5298. IFS=$as_save_IFS
  5299. fi
  5300. fi
  5301. AR=$ac_cv_prog_AR
  5302. if test -n "$AR"; then
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5304. $as_echo "$AR" >&6; }
  5305. else
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5307. $as_echo "no" >&6; }
  5308. fi
  5309. fi
  5310. if test -z "$ac_cv_prog_AR"; then
  5311. ac_ct_AR=$AR
  5312. # Extract the first word of "ar", so it can be a program name with args.
  5313. set dummy ar; ac_word=$2
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5315. $as_echo_n "checking for $ac_word... " >&6; }
  5316. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5317. $as_echo_n "(cached) " >&6
  5318. else
  5319. if test -n "$ac_ct_AR"; then
  5320. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5321. else
  5322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5323. for as_dir in $PATH
  5324. do
  5325. IFS=$as_save_IFS
  5326. test -z "$as_dir" && as_dir=.
  5327. for ac_exec_ext in '' $ac_executable_extensions; do
  5328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5329. ac_cv_prog_ac_ct_AR="ar"
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5331. break 2
  5332. fi
  5333. done
  5334. done
  5335. IFS=$as_save_IFS
  5336. fi
  5337. fi
  5338. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5339. if test -n "$ac_ct_AR"; then
  5340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5341. $as_echo "$ac_ct_AR" >&6; }
  5342. else
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5344. $as_echo "no" >&6; }
  5345. fi
  5346. if test "x$ac_ct_AR" = x; then
  5347. AR="false"
  5348. else
  5349. case $cross_compiling:$ac_tool_warned in
  5350. yes:)
  5351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5353. ac_tool_warned=yes ;;
  5354. esac
  5355. AR=$ac_ct_AR
  5356. fi
  5357. else
  5358. AR="$ac_cv_prog_AR"
  5359. fi
  5360. test -z "$AR" && AR=ar
  5361. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5362. if test -n "$ac_tool_prefix"; then
  5363. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5364. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5366. $as_echo_n "checking for $ac_word... " >&6; }
  5367. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. if test -n "$STRIP"; then
  5371. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5372. else
  5373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5374. for as_dir in $PATH
  5375. do
  5376. IFS=$as_save_IFS
  5377. test -z "$as_dir" && as_dir=.
  5378. for ac_exec_ext in '' $ac_executable_extensions; do
  5379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5380. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5382. break 2
  5383. fi
  5384. done
  5385. done
  5386. IFS=$as_save_IFS
  5387. fi
  5388. fi
  5389. STRIP=$ac_cv_prog_STRIP
  5390. if test -n "$STRIP"; then
  5391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5392. $as_echo "$STRIP" >&6; }
  5393. else
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5395. $as_echo "no" >&6; }
  5396. fi
  5397. fi
  5398. if test -z "$ac_cv_prog_STRIP"; then
  5399. ac_ct_STRIP=$STRIP
  5400. # Extract the first word of "strip", so it can be a program name with args.
  5401. set dummy strip; ac_word=$2
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5403. $as_echo_n "checking for $ac_word... " >&6; }
  5404. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5405. $as_echo_n "(cached) " >&6
  5406. else
  5407. if test -n "$ac_ct_STRIP"; then
  5408. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5409. else
  5410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5411. for as_dir in $PATH
  5412. do
  5413. IFS=$as_save_IFS
  5414. test -z "$as_dir" && as_dir=.
  5415. for ac_exec_ext in '' $ac_executable_extensions; do
  5416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5417. ac_cv_prog_ac_ct_STRIP="strip"
  5418. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5419. break 2
  5420. fi
  5421. done
  5422. done
  5423. IFS=$as_save_IFS
  5424. fi
  5425. fi
  5426. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5427. if test -n "$ac_ct_STRIP"; then
  5428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5429. $as_echo "$ac_ct_STRIP" >&6; }
  5430. else
  5431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5432. $as_echo "no" >&6; }
  5433. fi
  5434. if test "x$ac_ct_STRIP" = x; then
  5435. STRIP=":"
  5436. else
  5437. case $cross_compiling:$ac_tool_warned in
  5438. yes:)
  5439. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5440. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5441. ac_tool_warned=yes ;;
  5442. esac
  5443. STRIP=$ac_ct_STRIP
  5444. fi
  5445. else
  5446. STRIP="$ac_cv_prog_STRIP"
  5447. fi
  5448. test -z "$STRIP" && STRIP=:
  5449. if test -n "$ac_tool_prefix"; then
  5450. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5451. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5453. $as_echo_n "checking for $ac_word... " >&6; }
  5454. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5455. $as_echo_n "(cached) " >&6
  5456. else
  5457. if test -n "$RANLIB"; then
  5458. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5459. else
  5460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5461. for as_dir in $PATH
  5462. do
  5463. IFS=$as_save_IFS
  5464. test -z "$as_dir" && as_dir=.
  5465. for ac_exec_ext in '' $ac_executable_extensions; do
  5466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5467. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5468. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5469. break 2
  5470. fi
  5471. done
  5472. done
  5473. IFS=$as_save_IFS
  5474. fi
  5475. fi
  5476. RANLIB=$ac_cv_prog_RANLIB
  5477. if test -n "$RANLIB"; then
  5478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5479. $as_echo "$RANLIB" >&6; }
  5480. else
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5482. $as_echo "no" >&6; }
  5483. fi
  5484. fi
  5485. if test -z "$ac_cv_prog_RANLIB"; then
  5486. ac_ct_RANLIB=$RANLIB
  5487. # Extract the first word of "ranlib", so it can be a program name with args.
  5488. set dummy ranlib; ac_word=$2
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5490. $as_echo_n "checking for $ac_word... " >&6; }
  5491. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5492. $as_echo_n "(cached) " >&6
  5493. else
  5494. if test -n "$ac_ct_RANLIB"; then
  5495. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5496. else
  5497. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5498. for as_dir in $PATH
  5499. do
  5500. IFS=$as_save_IFS
  5501. test -z "$as_dir" && as_dir=.
  5502. for ac_exec_ext in '' $ac_executable_extensions; do
  5503. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5504. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5505. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5506. break 2
  5507. fi
  5508. done
  5509. done
  5510. IFS=$as_save_IFS
  5511. fi
  5512. fi
  5513. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5514. if test -n "$ac_ct_RANLIB"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5516. $as_echo "$ac_ct_RANLIB" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5519. $as_echo "no" >&6; }
  5520. fi
  5521. if test "x$ac_ct_RANLIB" = x; then
  5522. RANLIB=":"
  5523. else
  5524. case $cross_compiling:$ac_tool_warned in
  5525. yes:)
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5528. ac_tool_warned=yes ;;
  5529. esac
  5530. RANLIB=$ac_ct_RANLIB
  5531. fi
  5532. else
  5533. RANLIB="$ac_cv_prog_RANLIB"
  5534. fi
  5535. test -z "$RANLIB" && RANLIB=:
  5536. # Determine commands to create old-style static archives.
  5537. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5538. old_postinstall_cmds='chmod 644 $oldlib'
  5539. old_postuninstall_cmds=
  5540. if test -n "$RANLIB"; then
  5541. case $host_os in
  5542. openbsd*)
  5543. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5544. ;;
  5545. *)
  5546. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5547. ;;
  5548. esac
  5549. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5550. fi
  5551. case $host_os in
  5552. darwin*)
  5553. lock_old_archive_extraction=yes ;;
  5554. *)
  5555. lock_old_archive_extraction=no ;;
  5556. esac
  5557. # If no C compiler was specified, use CC.
  5558. LTCC=${LTCC-"$CC"}
  5559. # If no C compiler flags were specified, use CFLAGS.
  5560. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5561. # Allow CC to be a program name with arguments.
  5562. compiler=$CC
  5563. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5565. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5566. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5567. $as_echo_n "(cached) " >&6
  5568. else
  5569. # These are sane defaults that work on at least a few old systems.
  5570. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5571. # Character class describing NM global symbol codes.
  5572. symcode='[BCDEGRST]'
  5573. # Regexp to match symbols that can be accessed directly from C.
  5574. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5575. # Define system-specific variables.
  5576. case $host_os in
  5577. aix*)
  5578. symcode='[BCDT]'
  5579. ;;
  5580. cygwin* | mingw* | pw32* | cegcc*)
  5581. symcode='[ABCDGISTW]'
  5582. ;;
  5583. hpux*)
  5584. if test "$host_cpu" = ia64; then
  5585. symcode='[ABCDEGRST]'
  5586. fi
  5587. ;;
  5588. irix* | nonstopux*)
  5589. symcode='[BCDEGRST]'
  5590. ;;
  5591. osf*)
  5592. symcode='[BCDEGQRST]'
  5593. ;;
  5594. solaris*)
  5595. symcode='[BDRT]'
  5596. ;;
  5597. sco3.2v5*)
  5598. symcode='[DT]'
  5599. ;;
  5600. sysv4.2uw2*)
  5601. symcode='[DT]'
  5602. ;;
  5603. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5604. symcode='[ABDT]'
  5605. ;;
  5606. sysv4)
  5607. symcode='[DFNSTU]'
  5608. ;;
  5609. esac
  5610. # If we're using GNU nm, then use its standard symbol codes.
  5611. case `$NM -V 2>&1` in
  5612. *GNU* | *'with BFD'*)
  5613. symcode='[ABCDGIRSTW]' ;;
  5614. esac
  5615. # Transform an extracted symbol line into a proper C declaration.
  5616. # Some systems (esp. on ia64) link data and code symbols differently,
  5617. # so use this general approach.
  5618. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5619. # Transform an extracted symbol line into symbol name and symbol address
  5620. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5621. 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'"
  5622. # Handle CRLF in mingw tool chain
  5623. opt_cr=
  5624. case $build_os in
  5625. mingw*)
  5626. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5627. ;;
  5628. esac
  5629. # Try without a prefix underscore, then with it.
  5630. for ac_symprfx in "" "_"; do
  5631. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5632. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5633. # Write the raw and C identifiers.
  5634. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5635. # Fake it for dumpbin and say T for any non-static function
  5636. # and D for any global variable.
  5637. # Also find C++ and __fastcall symbols from MSVC++,
  5638. # which start with @ or ?.
  5639. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5640. " {last_section=section; section=\$ 3};"\
  5641. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5642. " \$ 0!~/External *\|/{next};"\
  5643. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5644. " {if(hide[section]) next};"\
  5645. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5646. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5647. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5648. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5649. " ' prfx=^$ac_symprfx"
  5650. else
  5651. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5652. fi
  5653. # Check to see that the pipe works correctly.
  5654. pipe_works=no
  5655. rm -f conftest*
  5656. cat > conftest.$ac_ext <<_LT_EOF
  5657. #ifdef __cplusplus
  5658. extern "C" {
  5659. #endif
  5660. char nm_test_var;
  5661. void nm_test_func(void);
  5662. void nm_test_func(void){}
  5663. #ifdef __cplusplus
  5664. }
  5665. #endif
  5666. int main(){nm_test_var='a';nm_test_func();return(0);}
  5667. _LT_EOF
  5668. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5669. (eval $ac_compile) 2>&5
  5670. ac_status=$?
  5671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5672. test $ac_status = 0; }; then
  5673. # Now try to grab the symbols.
  5674. nlist=conftest.nm
  5675. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5676. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5677. ac_status=$?
  5678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5679. test $ac_status = 0; } && test -s "$nlist"; then
  5680. # Try sorting and uniquifying the output.
  5681. if sort "$nlist" | uniq > "$nlist"T; then
  5682. mv -f "$nlist"T "$nlist"
  5683. else
  5684. rm -f "$nlist"T
  5685. fi
  5686. # Make sure that we snagged all the symbols we need.
  5687. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5688. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5689. cat <<_LT_EOF > conftest.$ac_ext
  5690. #ifdef __cplusplus
  5691. extern "C" {
  5692. #endif
  5693. _LT_EOF
  5694. # Now generate the symbol file.
  5695. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5696. cat <<_LT_EOF >> conftest.$ac_ext
  5697. /* The mapping between symbol names and symbols. */
  5698. const struct {
  5699. const char *name;
  5700. void *address;
  5701. }
  5702. lt__PROGRAM__LTX_preloaded_symbols[] =
  5703. {
  5704. { "@PROGRAM@", (void *) 0 },
  5705. _LT_EOF
  5706. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5707. cat <<\_LT_EOF >> conftest.$ac_ext
  5708. {0, (void *) 0}
  5709. };
  5710. /* This works around a problem in FreeBSD linker */
  5711. #ifdef FREEBSD_WORKAROUND
  5712. static const void *lt_preloaded_setup() {
  5713. return lt__PROGRAM__LTX_preloaded_symbols;
  5714. }
  5715. #endif
  5716. #ifdef __cplusplus
  5717. }
  5718. #endif
  5719. _LT_EOF
  5720. # Now try linking the two files.
  5721. mv conftest.$ac_objext conftstm.$ac_objext
  5722. lt_save_LIBS="$LIBS"
  5723. lt_save_CFLAGS="$CFLAGS"
  5724. LIBS="conftstm.$ac_objext"
  5725. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5726. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5727. (eval $ac_link) 2>&5
  5728. ac_status=$?
  5729. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5730. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5731. pipe_works=yes
  5732. fi
  5733. LIBS="$lt_save_LIBS"
  5734. CFLAGS="$lt_save_CFLAGS"
  5735. else
  5736. echo "cannot find nm_test_func in $nlist" >&5
  5737. fi
  5738. else
  5739. echo "cannot find nm_test_var in $nlist" >&5
  5740. fi
  5741. else
  5742. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5743. fi
  5744. else
  5745. echo "$progname: failed program was:" >&5
  5746. cat conftest.$ac_ext >&5
  5747. fi
  5748. rm -rf conftest* conftst*
  5749. # Do not use the global_symbol_pipe unless it works.
  5750. if test "$pipe_works" = yes; then
  5751. break
  5752. else
  5753. lt_cv_sys_global_symbol_pipe=
  5754. fi
  5755. done
  5756. fi
  5757. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5758. lt_cv_sys_global_symbol_to_cdecl=
  5759. fi
  5760. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5762. $as_echo "failed" >&6; }
  5763. else
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5765. $as_echo "ok" >&6; }
  5766. fi
  5767. # Check whether --enable-libtool-lock was given.
  5768. if test "${enable_libtool_lock+set}" = set; then :
  5769. enableval=$enable_libtool_lock;
  5770. fi
  5771. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5772. # Some flags need to be propagated to the compiler or linker for good
  5773. # libtool support.
  5774. case $host in
  5775. ia64-*-hpux*)
  5776. # Find out which ABI we are using.
  5777. echo 'int i;' > conftest.$ac_ext
  5778. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5779. (eval $ac_compile) 2>&5
  5780. ac_status=$?
  5781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5782. test $ac_status = 0; }; then
  5783. case `/usr/bin/file conftest.$ac_objext` in
  5784. *ELF-32*)
  5785. HPUX_IA64_MODE="32"
  5786. ;;
  5787. *ELF-64*)
  5788. HPUX_IA64_MODE="64"
  5789. ;;
  5790. esac
  5791. fi
  5792. rm -rf conftest*
  5793. ;;
  5794. *-*-irix6*)
  5795. # Find out which ABI we are using.
  5796. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5797. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5798. (eval $ac_compile) 2>&5
  5799. ac_status=$?
  5800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5801. test $ac_status = 0; }; then
  5802. if test "$lt_cv_prog_gnu_ld" = yes; then
  5803. case `/usr/bin/file conftest.$ac_objext` in
  5804. *32-bit*)
  5805. LD="${LD-ld} -melf32bsmip"
  5806. ;;
  5807. *N32*)
  5808. LD="${LD-ld} -melf32bmipn32"
  5809. ;;
  5810. *64-bit*)
  5811. LD="${LD-ld} -melf64bmip"
  5812. ;;
  5813. esac
  5814. else
  5815. case `/usr/bin/file conftest.$ac_objext` in
  5816. *32-bit*)
  5817. LD="${LD-ld} -32"
  5818. ;;
  5819. *N32*)
  5820. LD="${LD-ld} -n32"
  5821. ;;
  5822. *64-bit*)
  5823. LD="${LD-ld} -64"
  5824. ;;
  5825. esac
  5826. fi
  5827. fi
  5828. rm -rf conftest*
  5829. ;;
  5830. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5831. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5832. # Find out which ABI we are using.
  5833. echo 'int i;' > conftest.$ac_ext
  5834. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5835. (eval $ac_compile) 2>&5
  5836. ac_status=$?
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5838. test $ac_status = 0; }; then
  5839. case `/usr/bin/file conftest.o` in
  5840. *32-bit*)
  5841. case $host in
  5842. x86_64-*kfreebsd*-gnu)
  5843. LD="${LD-ld} -m elf_i386_fbsd"
  5844. ;;
  5845. x86_64-*linux*)
  5846. case `/usr/bin/file conftest.o` in
  5847. *x86-64*)
  5848. LD="${LD-ld} -m elf32_x86_64"
  5849. ;;
  5850. *)
  5851. LD="${LD-ld} -m elf_i386"
  5852. ;;
  5853. esac
  5854. ;;
  5855. powerpc64le-*linux*)
  5856. LD="${LD-ld} -m elf32lppclinux"
  5857. ;;
  5858. powerpc64-*linux*)
  5859. LD="${LD-ld} -m elf32ppclinux"
  5860. ;;
  5861. s390x-*linux*)
  5862. LD="${LD-ld} -m elf_s390"
  5863. ;;
  5864. sparc64-*linux*)
  5865. LD="${LD-ld} -m elf32_sparc"
  5866. ;;
  5867. esac
  5868. ;;
  5869. *64-bit*)
  5870. case $host in
  5871. x86_64-*kfreebsd*-gnu)
  5872. LD="${LD-ld} -m elf_x86_64_fbsd"
  5873. ;;
  5874. x86_64-*linux*)
  5875. LD="${LD-ld} -m elf_x86_64"
  5876. ;;
  5877. powerpcle-*linux*)
  5878. LD="${LD-ld} -m elf64lppc"
  5879. ;;
  5880. powerpc-*linux*)
  5881. LD="${LD-ld} -m elf64ppc"
  5882. ;;
  5883. s390*-*linux*|s390*-*tpf*)
  5884. LD="${LD-ld} -m elf64_s390"
  5885. ;;
  5886. sparc*-*linux*)
  5887. LD="${LD-ld} -m elf64_sparc"
  5888. ;;
  5889. esac
  5890. ;;
  5891. esac
  5892. fi
  5893. rm -rf conftest*
  5894. ;;
  5895. *-*-sco3.2v5*)
  5896. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5897. SAVE_CFLAGS="$CFLAGS"
  5898. CFLAGS="$CFLAGS -belf"
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5900. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5901. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. ac_ext=c
  5905. ac_cpp='$CPP $CPPFLAGS'
  5906. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5907. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5908. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5909. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5910. /* end confdefs.h. */
  5911. int
  5912. main ()
  5913. {
  5914. ;
  5915. return 0;
  5916. }
  5917. _ACEOF
  5918. if ac_fn_c_try_link "$LINENO"; then :
  5919. lt_cv_cc_needs_belf=yes
  5920. else
  5921. lt_cv_cc_needs_belf=no
  5922. fi
  5923. rm -f core conftest.err conftest.$ac_objext \
  5924. conftest$ac_exeext conftest.$ac_ext
  5925. ac_ext=c
  5926. ac_cpp='$CPP $CPPFLAGS'
  5927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5930. fi
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5932. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5933. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5934. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5935. CFLAGS="$SAVE_CFLAGS"
  5936. fi
  5937. ;;
  5938. sparc*-*solaris*)
  5939. # Find out which ABI we are using.
  5940. echo 'int i;' > conftest.$ac_ext
  5941. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5942. (eval $ac_compile) 2>&5
  5943. ac_status=$?
  5944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5945. test $ac_status = 0; }; then
  5946. case `/usr/bin/file conftest.o` in
  5947. *64-bit*)
  5948. case $lt_cv_prog_gnu_ld in
  5949. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5950. *)
  5951. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5952. LD="${LD-ld} -64"
  5953. fi
  5954. ;;
  5955. esac
  5956. ;;
  5957. esac
  5958. fi
  5959. rm -rf conftest*
  5960. ;;
  5961. esac
  5962. need_locks="$enable_libtool_lock"
  5963. case $host_os in
  5964. rhapsody* | darwin*)
  5965. if test -n "$ac_tool_prefix"; then
  5966. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5967. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5969. $as_echo_n "checking for $ac_word... " >&6; }
  5970. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5971. $as_echo_n "(cached) " >&6
  5972. else
  5973. if test -n "$DSYMUTIL"; then
  5974. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5975. else
  5976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5977. for as_dir in $PATH
  5978. do
  5979. IFS=$as_save_IFS
  5980. test -z "$as_dir" && as_dir=.
  5981. for ac_exec_ext in '' $ac_executable_extensions; do
  5982. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5983. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5984. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5985. break 2
  5986. fi
  5987. done
  5988. done
  5989. IFS=$as_save_IFS
  5990. fi
  5991. fi
  5992. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5993. if test -n "$DSYMUTIL"; then
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5995. $as_echo "$DSYMUTIL" >&6; }
  5996. else
  5997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5998. $as_echo "no" >&6; }
  5999. fi
  6000. fi
  6001. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6002. ac_ct_DSYMUTIL=$DSYMUTIL
  6003. # Extract the first word of "dsymutil", so it can be a program name with args.
  6004. set dummy dsymutil; ac_word=$2
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6006. $as_echo_n "checking for $ac_word... " >&6; }
  6007. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. if test -n "$ac_ct_DSYMUTIL"; then
  6011. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6012. else
  6013. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6014. for as_dir in $PATH
  6015. do
  6016. IFS=$as_save_IFS
  6017. test -z "$as_dir" && as_dir=.
  6018. for ac_exec_ext in '' $ac_executable_extensions; do
  6019. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6020. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6021. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6022. break 2
  6023. fi
  6024. done
  6025. done
  6026. IFS=$as_save_IFS
  6027. fi
  6028. fi
  6029. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6030. if test -n "$ac_ct_DSYMUTIL"; then
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6032. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6033. else
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6035. $as_echo "no" >&6; }
  6036. fi
  6037. if test "x$ac_ct_DSYMUTIL" = x; then
  6038. DSYMUTIL=":"
  6039. else
  6040. case $cross_compiling:$ac_tool_warned in
  6041. yes:)
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6043. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6044. ac_tool_warned=yes ;;
  6045. esac
  6046. DSYMUTIL=$ac_ct_DSYMUTIL
  6047. fi
  6048. else
  6049. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6050. fi
  6051. if test -n "$ac_tool_prefix"; then
  6052. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6053. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6055. $as_echo_n "checking for $ac_word... " >&6; }
  6056. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6057. $as_echo_n "(cached) " >&6
  6058. else
  6059. if test -n "$NMEDIT"; then
  6060. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6061. else
  6062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6063. for as_dir in $PATH
  6064. do
  6065. IFS=$as_save_IFS
  6066. test -z "$as_dir" && as_dir=.
  6067. for ac_exec_ext in '' $ac_executable_extensions; do
  6068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6069. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6071. break 2
  6072. fi
  6073. done
  6074. done
  6075. IFS=$as_save_IFS
  6076. fi
  6077. fi
  6078. NMEDIT=$ac_cv_prog_NMEDIT
  6079. if test -n "$NMEDIT"; then
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6081. $as_echo "$NMEDIT" >&6; }
  6082. else
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6084. $as_echo "no" >&6; }
  6085. fi
  6086. fi
  6087. if test -z "$ac_cv_prog_NMEDIT"; then
  6088. ac_ct_NMEDIT=$NMEDIT
  6089. # Extract the first word of "nmedit", so it can be a program name with args.
  6090. set dummy nmedit; ac_word=$2
  6091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6092. $as_echo_n "checking for $ac_word... " >&6; }
  6093. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6094. $as_echo_n "(cached) " >&6
  6095. else
  6096. if test -n "$ac_ct_NMEDIT"; then
  6097. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6098. else
  6099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6100. for as_dir in $PATH
  6101. do
  6102. IFS=$as_save_IFS
  6103. test -z "$as_dir" && as_dir=.
  6104. for ac_exec_ext in '' $ac_executable_extensions; do
  6105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6106. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6108. break 2
  6109. fi
  6110. done
  6111. done
  6112. IFS=$as_save_IFS
  6113. fi
  6114. fi
  6115. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6116. if test -n "$ac_ct_NMEDIT"; then
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6118. $as_echo "$ac_ct_NMEDIT" >&6; }
  6119. else
  6120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6121. $as_echo "no" >&6; }
  6122. fi
  6123. if test "x$ac_ct_NMEDIT" = x; then
  6124. NMEDIT=":"
  6125. else
  6126. case $cross_compiling:$ac_tool_warned in
  6127. yes:)
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6130. ac_tool_warned=yes ;;
  6131. esac
  6132. NMEDIT=$ac_ct_NMEDIT
  6133. fi
  6134. else
  6135. NMEDIT="$ac_cv_prog_NMEDIT"
  6136. fi
  6137. if test -n "$ac_tool_prefix"; then
  6138. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6139. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6141. $as_echo_n "checking for $ac_word... " >&6; }
  6142. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6143. $as_echo_n "(cached) " >&6
  6144. else
  6145. if test -n "$LIPO"; then
  6146. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6147. else
  6148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6149. for as_dir in $PATH
  6150. do
  6151. IFS=$as_save_IFS
  6152. test -z "$as_dir" && as_dir=.
  6153. for ac_exec_ext in '' $ac_executable_extensions; do
  6154. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6155. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6157. break 2
  6158. fi
  6159. done
  6160. done
  6161. IFS=$as_save_IFS
  6162. fi
  6163. fi
  6164. LIPO=$ac_cv_prog_LIPO
  6165. if test -n "$LIPO"; then
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6167. $as_echo "$LIPO" >&6; }
  6168. else
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6170. $as_echo "no" >&6; }
  6171. fi
  6172. fi
  6173. if test -z "$ac_cv_prog_LIPO"; then
  6174. ac_ct_LIPO=$LIPO
  6175. # Extract the first word of "lipo", so it can be a program name with args.
  6176. set dummy lipo; ac_word=$2
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6178. $as_echo_n "checking for $ac_word... " >&6; }
  6179. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6180. $as_echo_n "(cached) " >&6
  6181. else
  6182. if test -n "$ac_ct_LIPO"; then
  6183. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6184. else
  6185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6186. for as_dir in $PATH
  6187. do
  6188. IFS=$as_save_IFS
  6189. test -z "$as_dir" && as_dir=.
  6190. for ac_exec_ext in '' $ac_executable_extensions; do
  6191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6192. ac_cv_prog_ac_ct_LIPO="lipo"
  6193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6194. break 2
  6195. fi
  6196. done
  6197. done
  6198. IFS=$as_save_IFS
  6199. fi
  6200. fi
  6201. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6202. if test -n "$ac_ct_LIPO"; then
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6204. $as_echo "$ac_ct_LIPO" >&6; }
  6205. else
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6207. $as_echo "no" >&6; }
  6208. fi
  6209. if test "x$ac_ct_LIPO" = x; then
  6210. LIPO=":"
  6211. else
  6212. case $cross_compiling:$ac_tool_warned in
  6213. yes:)
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6215. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6216. ac_tool_warned=yes ;;
  6217. esac
  6218. LIPO=$ac_ct_LIPO
  6219. fi
  6220. else
  6221. LIPO="$ac_cv_prog_LIPO"
  6222. fi
  6223. if test -n "$ac_tool_prefix"; then
  6224. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6225. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6227. $as_echo_n "checking for $ac_word... " >&6; }
  6228. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6229. $as_echo_n "(cached) " >&6
  6230. else
  6231. if test -n "$OTOOL"; then
  6232. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6233. else
  6234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6235. for as_dir in $PATH
  6236. do
  6237. IFS=$as_save_IFS
  6238. test -z "$as_dir" && as_dir=.
  6239. for ac_exec_ext in '' $ac_executable_extensions; do
  6240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6241. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6242. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6243. break 2
  6244. fi
  6245. done
  6246. done
  6247. IFS=$as_save_IFS
  6248. fi
  6249. fi
  6250. OTOOL=$ac_cv_prog_OTOOL
  6251. if test -n "$OTOOL"; then
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6253. $as_echo "$OTOOL" >&6; }
  6254. else
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6256. $as_echo "no" >&6; }
  6257. fi
  6258. fi
  6259. if test -z "$ac_cv_prog_OTOOL"; then
  6260. ac_ct_OTOOL=$OTOOL
  6261. # Extract the first word of "otool", so it can be a program name with args.
  6262. set dummy otool; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6266. $as_echo_n "(cached) " >&6
  6267. else
  6268. if test -n "$ac_ct_OTOOL"; then
  6269. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6278. ac_cv_prog_ac_ct_OTOOL="otool"
  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. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6288. if test -n "$ac_ct_OTOOL"; then
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6290. $as_echo "$ac_ct_OTOOL" >&6; }
  6291. else
  6292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6293. $as_echo "no" >&6; }
  6294. fi
  6295. if test "x$ac_ct_OTOOL" = x; then
  6296. OTOOL=":"
  6297. else
  6298. case $cross_compiling:$ac_tool_warned in
  6299. yes:)
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6301. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6302. ac_tool_warned=yes ;;
  6303. esac
  6304. OTOOL=$ac_ct_OTOOL
  6305. fi
  6306. else
  6307. OTOOL="$ac_cv_prog_OTOOL"
  6308. fi
  6309. if test -n "$ac_tool_prefix"; then
  6310. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6311. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6313. $as_echo_n "checking for $ac_word... " >&6; }
  6314. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6315. $as_echo_n "(cached) " >&6
  6316. else
  6317. if test -n "$OTOOL64"; then
  6318. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6319. else
  6320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6321. for as_dir in $PATH
  6322. do
  6323. IFS=$as_save_IFS
  6324. test -z "$as_dir" && as_dir=.
  6325. for ac_exec_ext in '' $ac_executable_extensions; do
  6326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6327. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6329. break 2
  6330. fi
  6331. done
  6332. done
  6333. IFS=$as_save_IFS
  6334. fi
  6335. fi
  6336. OTOOL64=$ac_cv_prog_OTOOL64
  6337. if test -n "$OTOOL64"; then
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6339. $as_echo "$OTOOL64" >&6; }
  6340. else
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6342. $as_echo "no" >&6; }
  6343. fi
  6344. fi
  6345. if test -z "$ac_cv_prog_OTOOL64"; then
  6346. ac_ct_OTOOL64=$OTOOL64
  6347. # Extract the first word of "otool64", so it can be a program name with args.
  6348. set dummy otool64; 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 test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6352. $as_echo_n "(cached) " >&6
  6353. else
  6354. if test -n "$ac_ct_OTOOL64"; then
  6355. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6364. ac_cv_prog_ac_ct_OTOOL64="otool64"
  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. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6374. if test -n "$ac_ct_OTOOL64"; then
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6376. $as_echo "$ac_ct_OTOOL64" >&6; }
  6377. else
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6379. $as_echo "no" >&6; }
  6380. fi
  6381. if test "x$ac_ct_OTOOL64" = x; then
  6382. OTOOL64=":"
  6383. else
  6384. case $cross_compiling:$ac_tool_warned in
  6385. yes:)
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6387. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6388. ac_tool_warned=yes ;;
  6389. esac
  6390. OTOOL64=$ac_ct_OTOOL64
  6391. fi
  6392. else
  6393. OTOOL64="$ac_cv_prog_OTOOL64"
  6394. fi
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6396. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6397. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. lt_cv_apple_cc_single_mod=no
  6401. if test -z "${LT_MULTI_MODULE}"; then
  6402. # By default we will add the -single_module flag. You can override
  6403. # by either setting the environment variable LT_MULTI_MODULE
  6404. # non-empty at configure time, or by adding -multi_module to the
  6405. # link flags.
  6406. rm -rf libconftest.dylib*
  6407. echo "int foo(void){return 1;}" > conftest.c
  6408. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6409. -dynamiclib -Wl,-single_module conftest.c" >&5
  6410. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6411. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6412. _lt_result=$?
  6413. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6414. lt_cv_apple_cc_single_mod=yes
  6415. else
  6416. cat conftest.err >&5
  6417. fi
  6418. rm -rf libconftest.dylib*
  6419. rm -f conftest.*
  6420. fi
  6421. fi
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6423. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6425. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6426. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. lt_cv_ld_exported_symbols_list=no
  6430. save_LDFLAGS=$LDFLAGS
  6431. echo "_main" > conftest.sym
  6432. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6434. /* end confdefs.h. */
  6435. int
  6436. main ()
  6437. {
  6438. ;
  6439. return 0;
  6440. }
  6441. _ACEOF
  6442. if ac_fn_c_try_link "$LINENO"; then :
  6443. lt_cv_ld_exported_symbols_list=yes
  6444. else
  6445. lt_cv_ld_exported_symbols_list=no
  6446. fi
  6447. rm -f core conftest.err conftest.$ac_objext \
  6448. conftest$ac_exeext conftest.$ac_ext
  6449. LDFLAGS="$save_LDFLAGS"
  6450. fi
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6452. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6454. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6455. if test "${lt_cv_ld_force_load+set}" = set; then :
  6456. $as_echo_n "(cached) " >&6
  6457. else
  6458. lt_cv_ld_force_load=no
  6459. cat > conftest.c << _LT_EOF
  6460. int forced_loaded() { return 2;}
  6461. _LT_EOF
  6462. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6463. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6464. echo "$AR cru libconftest.a conftest.o" >&5
  6465. $AR cru libconftest.a conftest.o 2>&5
  6466. cat > conftest.c << _LT_EOF
  6467. int main() { return 0;}
  6468. _LT_EOF
  6469. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6470. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6471. _lt_result=$?
  6472. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6473. lt_cv_ld_force_load=yes
  6474. else
  6475. cat conftest.err >&5
  6476. fi
  6477. rm -f conftest.err libconftest.a conftest conftest.c
  6478. rm -rf conftest.dSYM
  6479. fi
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6481. $as_echo "$lt_cv_ld_force_load" >&6; }
  6482. case $host_os in
  6483. rhapsody* | darwin1.[012])
  6484. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6485. darwin1.*)
  6486. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6487. darwin*) # darwin 5.x on
  6488. # if running on 10.5 or later, the deployment target defaults
  6489. # to the OS version, if on x86, and 10.4, the deployment
  6490. # target defaults to 10.4. Don't you love it?
  6491. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6492. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6493. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6494. 10.[012][,.]*)
  6495. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6496. 10.*)
  6497. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6498. esac
  6499. ;;
  6500. esac
  6501. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6502. _lt_dar_single_mod='$single_module'
  6503. fi
  6504. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6505. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6506. else
  6507. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6508. fi
  6509. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6510. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6511. else
  6512. _lt_dsymutil=
  6513. fi
  6514. ;;
  6515. esac
  6516. ac_ext=c
  6517. ac_cpp='$CPP $CPPFLAGS'
  6518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6522. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6523. # On Suns, sometimes $CPP names a directory.
  6524. if test -n "$CPP" && test -d "$CPP"; then
  6525. CPP=
  6526. fi
  6527. if test -z "$CPP"; then
  6528. if test "${ac_cv_prog_CPP+set}" = set; then :
  6529. $as_echo_n "(cached) " >&6
  6530. else
  6531. # Double quotes because CPP needs to be expanded
  6532. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6533. do
  6534. ac_preproc_ok=false
  6535. for ac_c_preproc_warn_flag in '' yes
  6536. do
  6537. # Use a header file that comes with gcc, so configuring glibc
  6538. # with a fresh cross-compiler works.
  6539. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6540. # <limits.h> exists even on freestanding compilers.
  6541. # On the NeXT, cc -E runs the code through the compiler's parser,
  6542. # not just through cpp. "Syntax error" is here to catch this case.
  6543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6544. /* end confdefs.h. */
  6545. #ifdef __STDC__
  6546. # include <limits.h>
  6547. #else
  6548. # include <assert.h>
  6549. #endif
  6550. Syntax error
  6551. _ACEOF
  6552. if ac_fn_c_try_cpp "$LINENO"; then :
  6553. else
  6554. # Broken: fails on valid input.
  6555. continue
  6556. fi
  6557. rm -f conftest.err conftest.$ac_ext
  6558. # OK, works on sane cases. Now check whether nonexistent headers
  6559. # can be detected and how.
  6560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6561. /* end confdefs.h. */
  6562. #include <ac_nonexistent.h>
  6563. _ACEOF
  6564. if ac_fn_c_try_cpp "$LINENO"; then :
  6565. # Broken: success on invalid input.
  6566. continue
  6567. else
  6568. # Passes both tests.
  6569. ac_preproc_ok=:
  6570. break
  6571. fi
  6572. rm -f conftest.err conftest.$ac_ext
  6573. done
  6574. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6575. rm -f conftest.err conftest.$ac_ext
  6576. if $ac_preproc_ok; then :
  6577. break
  6578. fi
  6579. done
  6580. ac_cv_prog_CPP=$CPP
  6581. fi
  6582. CPP=$ac_cv_prog_CPP
  6583. else
  6584. ac_cv_prog_CPP=$CPP
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6587. $as_echo "$CPP" >&6; }
  6588. ac_preproc_ok=false
  6589. for ac_c_preproc_warn_flag in '' yes
  6590. do
  6591. # Use a header file that comes with gcc, so configuring glibc
  6592. # with a fresh cross-compiler works.
  6593. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6594. # <limits.h> exists even on freestanding compilers.
  6595. # On the NeXT, cc -E runs the code through the compiler's parser,
  6596. # not just through cpp. "Syntax error" is here to catch this case.
  6597. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6598. /* end confdefs.h. */
  6599. #ifdef __STDC__
  6600. # include <limits.h>
  6601. #else
  6602. # include <assert.h>
  6603. #endif
  6604. Syntax error
  6605. _ACEOF
  6606. if ac_fn_c_try_cpp "$LINENO"; then :
  6607. else
  6608. # Broken: fails on valid input.
  6609. continue
  6610. fi
  6611. rm -f conftest.err conftest.$ac_ext
  6612. # OK, works on sane cases. Now check whether nonexistent headers
  6613. # can be detected and how.
  6614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6615. /* end confdefs.h. */
  6616. #include <ac_nonexistent.h>
  6617. _ACEOF
  6618. if ac_fn_c_try_cpp "$LINENO"; then :
  6619. # Broken: success on invalid input.
  6620. continue
  6621. else
  6622. # Passes both tests.
  6623. ac_preproc_ok=:
  6624. break
  6625. fi
  6626. rm -f conftest.err conftest.$ac_ext
  6627. done
  6628. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6629. rm -f conftest.err conftest.$ac_ext
  6630. if $ac_preproc_ok; then :
  6631. else
  6632. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6633. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6634. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6635. See \`config.log' for more details." "$LINENO" 5; }
  6636. fi
  6637. ac_ext=c
  6638. ac_cpp='$CPP $CPPFLAGS'
  6639. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6640. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6641. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6643. $as_echo_n "checking for ANSI C header files... " >&6; }
  6644. if test "${ac_cv_header_stdc+set}" = set; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6648. /* end confdefs.h. */
  6649. #include <stdlib.h>
  6650. #include <stdarg.h>
  6651. #include <string.h>
  6652. #include <float.h>
  6653. int
  6654. main ()
  6655. {
  6656. ;
  6657. return 0;
  6658. }
  6659. _ACEOF
  6660. if ac_fn_c_try_compile "$LINENO"; then :
  6661. ac_cv_header_stdc=yes
  6662. else
  6663. ac_cv_header_stdc=no
  6664. fi
  6665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6666. if test $ac_cv_header_stdc = yes; then
  6667. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6669. /* end confdefs.h. */
  6670. #include <string.h>
  6671. _ACEOF
  6672. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6673. $EGREP "memchr" >/dev/null 2>&1; then :
  6674. else
  6675. ac_cv_header_stdc=no
  6676. fi
  6677. rm -f conftest*
  6678. fi
  6679. if test $ac_cv_header_stdc = yes; then
  6680. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6681. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6682. /* end confdefs.h. */
  6683. #include <stdlib.h>
  6684. _ACEOF
  6685. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6686. $EGREP "free" >/dev/null 2>&1; then :
  6687. else
  6688. ac_cv_header_stdc=no
  6689. fi
  6690. rm -f conftest*
  6691. fi
  6692. if test $ac_cv_header_stdc = yes; then
  6693. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6694. if test "$cross_compiling" = yes; then :
  6695. :
  6696. else
  6697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6698. /* end confdefs.h. */
  6699. #include <ctype.h>
  6700. #include <stdlib.h>
  6701. #if ((' ' & 0x0FF) == 0x020)
  6702. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6703. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6704. #else
  6705. # define ISLOWER(c) \
  6706. (('a' <= (c) && (c) <= 'i') \
  6707. || ('j' <= (c) && (c) <= 'r') \
  6708. || ('s' <= (c) && (c) <= 'z'))
  6709. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6710. #endif
  6711. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6712. int
  6713. main ()
  6714. {
  6715. int i;
  6716. for (i = 0; i < 256; i++)
  6717. if (XOR (islower (i), ISLOWER (i))
  6718. || toupper (i) != TOUPPER (i))
  6719. return 2;
  6720. return 0;
  6721. }
  6722. _ACEOF
  6723. if ac_fn_c_try_run "$LINENO"; then :
  6724. else
  6725. ac_cv_header_stdc=no
  6726. fi
  6727. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6728. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6729. fi
  6730. fi
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6733. $as_echo "$ac_cv_header_stdc" >&6; }
  6734. if test $ac_cv_header_stdc = yes; then
  6735. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6736. fi
  6737. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6738. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6739. inttypes.h stdint.h unistd.h
  6740. do :
  6741. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6742. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6743. "
  6744. eval as_val=\$$as_ac_Header
  6745. if test "x$as_val" = x""yes; then :
  6746. cat >>confdefs.h <<_ACEOF
  6747. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6748. _ACEOF
  6749. fi
  6750. done
  6751. for ac_header in dlfcn.h
  6752. do :
  6753. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6754. "
  6755. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6756. cat >>confdefs.h <<_ACEOF
  6757. #define HAVE_DLFCN_H 1
  6758. _ACEOF
  6759. fi
  6760. done
  6761. # Set options
  6762. enable_dlopen=no
  6763. enable_win32_dll=no
  6764. # Check whether --enable-shared was given.
  6765. if test "${enable_shared+set}" = set; then :
  6766. enableval=$enable_shared; p=${PACKAGE-default}
  6767. case $enableval in
  6768. yes) enable_shared=yes ;;
  6769. no) enable_shared=no ;;
  6770. *)
  6771. enable_shared=no
  6772. # Look at the argument we got. We use all the common list separators.
  6773. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6774. for pkg in $enableval; do
  6775. IFS="$lt_save_ifs"
  6776. if test "X$pkg" = "X$p"; then
  6777. enable_shared=yes
  6778. fi
  6779. done
  6780. IFS="$lt_save_ifs"
  6781. ;;
  6782. esac
  6783. else
  6784. enable_shared=yes
  6785. fi
  6786. # Check whether --enable-static was given.
  6787. if test "${enable_static+set}" = set; then :
  6788. enableval=$enable_static; p=${PACKAGE-default}
  6789. case $enableval in
  6790. yes) enable_static=yes ;;
  6791. no) enable_static=no ;;
  6792. *)
  6793. enable_static=no
  6794. # Look at the argument we got. We use all the common list separators.
  6795. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6796. for pkg in $enableval; do
  6797. IFS="$lt_save_ifs"
  6798. if test "X$pkg" = "X$p"; then
  6799. enable_static=yes
  6800. fi
  6801. done
  6802. IFS="$lt_save_ifs"
  6803. ;;
  6804. esac
  6805. else
  6806. enable_static=yes
  6807. fi
  6808. # Check whether --with-pic was given.
  6809. if test "${with_pic+set}" = set; then :
  6810. withval=$with_pic; pic_mode="$withval"
  6811. else
  6812. pic_mode=default
  6813. fi
  6814. test -z "$pic_mode" && pic_mode=default
  6815. # Check whether --enable-fast-install was given.
  6816. if test "${enable_fast_install+set}" = set; then :
  6817. enableval=$enable_fast_install; p=${PACKAGE-default}
  6818. case $enableval in
  6819. yes) enable_fast_install=yes ;;
  6820. no) enable_fast_install=no ;;
  6821. *)
  6822. enable_fast_install=no
  6823. # Look at the argument we got. We use all the common list separators.
  6824. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6825. for pkg in $enableval; do
  6826. IFS="$lt_save_ifs"
  6827. if test "X$pkg" = "X$p"; then
  6828. enable_fast_install=yes
  6829. fi
  6830. done
  6831. IFS="$lt_save_ifs"
  6832. ;;
  6833. esac
  6834. else
  6835. enable_fast_install=yes
  6836. fi
  6837. # This can be used to rebuild libtool when needed
  6838. LIBTOOL_DEPS="$ltmain"
  6839. # Always use our own libtool.
  6840. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6841. test -z "$LN_S" && LN_S="ln -s"
  6842. if test -n "${ZSH_VERSION+set}" ; then
  6843. setopt NO_GLOB_SUBST
  6844. fi
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6846. $as_echo_n "checking for objdir... " >&6; }
  6847. if test "${lt_cv_objdir+set}" = set; then :
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. rm -f .libs 2>/dev/null
  6851. mkdir .libs 2>/dev/null
  6852. if test -d .libs; then
  6853. lt_cv_objdir=.libs
  6854. else
  6855. # MS-DOS does not allow filenames that begin with a dot.
  6856. lt_cv_objdir=_libs
  6857. fi
  6858. rmdir .libs 2>/dev/null
  6859. fi
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6861. $as_echo "$lt_cv_objdir" >&6; }
  6862. objdir=$lt_cv_objdir
  6863. cat >>confdefs.h <<_ACEOF
  6864. #define LT_OBJDIR "$lt_cv_objdir/"
  6865. _ACEOF
  6866. case $host_os in
  6867. aix3*)
  6868. # AIX sometimes has problems with the GCC collect2 program. For some
  6869. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6870. # vanish in a puff of smoke.
  6871. if test "X${COLLECT_NAMES+set}" != Xset; then
  6872. COLLECT_NAMES=
  6873. export COLLECT_NAMES
  6874. fi
  6875. ;;
  6876. esac
  6877. # Global variables:
  6878. ofile=libtool
  6879. can_build_shared=yes
  6880. # All known linkers require a `.a' archive for static linking (except MSVC,
  6881. # which needs '.lib').
  6882. libext=a
  6883. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6884. old_CC="$CC"
  6885. old_CFLAGS="$CFLAGS"
  6886. # Set sane defaults for various variables
  6887. test -z "$CC" && CC=cc
  6888. test -z "$LTCC" && LTCC=$CC
  6889. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6890. test -z "$LD" && LD=ld
  6891. test -z "$ac_objext" && ac_objext=o
  6892. for cc_temp in $compiler""; do
  6893. case $cc_temp in
  6894. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6895. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6896. \-*) ;;
  6897. *) break;;
  6898. esac
  6899. done
  6900. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6901. # Only perform the check for file, if the check method requires it
  6902. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6903. case $deplibs_check_method in
  6904. file_magic*)
  6905. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6907. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6908. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6909. $as_echo_n "(cached) " >&6
  6910. else
  6911. case $MAGIC_CMD in
  6912. [\\/*] | ?:[\\/]*)
  6913. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6914. ;;
  6915. *)
  6916. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6917. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6918. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6919. for ac_dir in $ac_dummy; do
  6920. IFS="$lt_save_ifs"
  6921. test -z "$ac_dir" && ac_dir=.
  6922. if test -f $ac_dir/${ac_tool_prefix}file; then
  6923. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6924. if test -n "$file_magic_test_file"; then
  6925. case $deplibs_check_method in
  6926. "file_magic "*)
  6927. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6928. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6929. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6930. $EGREP "$file_magic_regex" > /dev/null; then
  6931. :
  6932. else
  6933. cat <<_LT_EOF 1>&2
  6934. *** Warning: the command libtool uses to detect shared libraries,
  6935. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6936. *** The result is that libtool may fail to recognize shared libraries
  6937. *** as such. This will affect the creation of libtool libraries that
  6938. *** depend on shared libraries, but programs linked with such libtool
  6939. *** libraries will work regardless of this problem. Nevertheless, you
  6940. *** may want to report the problem to your system manager and/or to
  6941. *** bug-libtool@gnu.org
  6942. _LT_EOF
  6943. fi ;;
  6944. esac
  6945. fi
  6946. break
  6947. fi
  6948. done
  6949. IFS="$lt_save_ifs"
  6950. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6951. ;;
  6952. esac
  6953. fi
  6954. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6955. if test -n "$MAGIC_CMD"; then
  6956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6957. $as_echo "$MAGIC_CMD" >&6; }
  6958. else
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6960. $as_echo "no" >&6; }
  6961. fi
  6962. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6963. if test -n "$ac_tool_prefix"; then
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6965. $as_echo_n "checking for file... " >&6; }
  6966. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6967. $as_echo_n "(cached) " >&6
  6968. else
  6969. case $MAGIC_CMD in
  6970. [\\/*] | ?:[\\/]*)
  6971. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6972. ;;
  6973. *)
  6974. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6975. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6976. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6977. for ac_dir in $ac_dummy; do
  6978. IFS="$lt_save_ifs"
  6979. test -z "$ac_dir" && ac_dir=.
  6980. if test -f $ac_dir/file; then
  6981. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6982. if test -n "$file_magic_test_file"; then
  6983. case $deplibs_check_method in
  6984. "file_magic "*)
  6985. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6986. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6987. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6988. $EGREP "$file_magic_regex" > /dev/null; then
  6989. :
  6990. else
  6991. cat <<_LT_EOF 1>&2
  6992. *** Warning: the command libtool uses to detect shared libraries,
  6993. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6994. *** The result is that libtool may fail to recognize shared libraries
  6995. *** as such. This will affect the creation of libtool libraries that
  6996. *** depend on shared libraries, but programs linked with such libtool
  6997. *** libraries will work regardless of this problem. Nevertheless, you
  6998. *** may want to report the problem to your system manager and/or to
  6999. *** bug-libtool@gnu.org
  7000. _LT_EOF
  7001. fi ;;
  7002. esac
  7003. fi
  7004. break
  7005. fi
  7006. done
  7007. IFS="$lt_save_ifs"
  7008. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7009. ;;
  7010. esac
  7011. fi
  7012. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7013. if test -n "$MAGIC_CMD"; then
  7014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7015. $as_echo "$MAGIC_CMD" >&6; }
  7016. else
  7017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7018. $as_echo "no" >&6; }
  7019. fi
  7020. else
  7021. MAGIC_CMD=:
  7022. fi
  7023. fi
  7024. fi
  7025. ;;
  7026. esac
  7027. # Use C for the default configuration in the libtool script
  7028. lt_save_CC="$CC"
  7029. ac_ext=c
  7030. ac_cpp='$CPP $CPPFLAGS'
  7031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7034. # Source file extension for C test sources.
  7035. ac_ext=c
  7036. # Object file extension for compiled C test sources.
  7037. objext=o
  7038. objext=$objext
  7039. # Code to be used in simple compile tests
  7040. lt_simple_compile_test_code="int some_variable = 0;"
  7041. # Code to be used in simple link tests
  7042. lt_simple_link_test_code='int main(){return(0);}'
  7043. # If no C compiler was specified, use CC.
  7044. LTCC=${LTCC-"$CC"}
  7045. # If no C compiler flags were specified, use CFLAGS.
  7046. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7047. # Allow CC to be a program name with arguments.
  7048. compiler=$CC
  7049. # Save the default compiler, since it gets overwritten when the other
  7050. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7051. compiler_DEFAULT=$CC
  7052. # save warnings/boilerplate of simple test code
  7053. ac_outfile=conftest.$ac_objext
  7054. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7055. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7056. _lt_compiler_boilerplate=`cat conftest.err`
  7057. $RM conftest*
  7058. ac_outfile=conftest.$ac_objext
  7059. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7060. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7061. _lt_linker_boilerplate=`cat conftest.err`
  7062. $RM -r conftest*
  7063. ## CAVEAT EMPTOR:
  7064. ## There is no encapsulation within the following macros, do not change
  7065. ## the running order or otherwise move them around unless you know exactly
  7066. ## what you are doing...
  7067. if test -n "$compiler"; then
  7068. lt_prog_compiler_no_builtin_flag=
  7069. if test "$GCC" = yes; then
  7070. case $cc_basename in
  7071. nvcc*)
  7072. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7073. *)
  7074. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7075. esac
  7076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7077. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7078. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7079. $as_echo_n "(cached) " >&6
  7080. else
  7081. lt_cv_prog_compiler_rtti_exceptions=no
  7082. ac_outfile=conftest.$ac_objext
  7083. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7084. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7085. # Insert the option either (1) after the last *FLAGS variable, or
  7086. # (2) before a word containing "conftest.", or (3) at the end.
  7087. # Note that $ac_compile itself does not contain backslashes and begins
  7088. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7089. # The option is referenced via a variable to avoid confusing sed.
  7090. lt_compile=`echo "$ac_compile" | $SED \
  7091. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7092. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7093. -e 's:$: $lt_compiler_flag:'`
  7094. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7095. (eval "$lt_compile" 2>conftest.err)
  7096. ac_status=$?
  7097. cat conftest.err >&5
  7098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7099. if (exit $ac_status) && test -s "$ac_outfile"; then
  7100. # The compiler can only warn and ignore the option if not recognized
  7101. # So say no if there are warnings other than the usual output.
  7102. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7103. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7104. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7105. lt_cv_prog_compiler_rtti_exceptions=yes
  7106. fi
  7107. fi
  7108. $RM conftest*
  7109. fi
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7111. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7112. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7113. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7114. else
  7115. :
  7116. fi
  7117. fi
  7118. lt_prog_compiler_wl=
  7119. lt_prog_compiler_pic=
  7120. lt_prog_compiler_static=
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7122. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7123. if test "$GCC" = yes; then
  7124. lt_prog_compiler_wl='-Wl,'
  7125. lt_prog_compiler_static='-static'
  7126. case $host_os in
  7127. aix*)
  7128. # All AIX code is PIC.
  7129. if test "$host_cpu" = ia64; then
  7130. # AIX 5 now supports IA64 processor
  7131. lt_prog_compiler_static='-Bstatic'
  7132. fi
  7133. lt_prog_compiler_pic='-fPIC'
  7134. ;;
  7135. amigaos*)
  7136. case $host_cpu in
  7137. powerpc)
  7138. # see comment about AmigaOS4 .so support
  7139. lt_prog_compiler_pic='-fPIC'
  7140. ;;
  7141. m68k)
  7142. # FIXME: we need at least 68020 code to build shared libraries, but
  7143. # adding the `-m68020' flag to GCC prevents building anything better,
  7144. # like `-m68040'.
  7145. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7146. ;;
  7147. esac
  7148. ;;
  7149. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7150. # PIC is the default for these OSes.
  7151. ;;
  7152. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7153. # This hack is so that the source file can tell whether it is being
  7154. # built for inclusion in a dll (and should export symbols for example).
  7155. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7156. # (--disable-auto-import) libraries
  7157. lt_prog_compiler_pic='-DDLL_EXPORT'
  7158. ;;
  7159. darwin* | rhapsody*)
  7160. # PIC is the default on this platform
  7161. # Common symbols not allowed in MH_DYLIB files
  7162. lt_prog_compiler_pic='-fno-common'
  7163. ;;
  7164. haiku*)
  7165. # PIC is the default for Haiku.
  7166. # The "-static" flag exists, but is broken.
  7167. lt_prog_compiler_static=
  7168. ;;
  7169. hpux*)
  7170. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7171. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7172. # sets the default TLS model and affects inlining.
  7173. case $host_cpu in
  7174. hppa*64*)
  7175. # +Z the default
  7176. ;;
  7177. *)
  7178. lt_prog_compiler_pic='-fPIC'
  7179. ;;
  7180. esac
  7181. ;;
  7182. interix[3-9]*)
  7183. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7184. # Instead, we relocate shared libraries at runtime.
  7185. ;;
  7186. msdosdjgpp*)
  7187. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7188. # on systems that don't support them.
  7189. lt_prog_compiler_can_build_shared=no
  7190. enable_shared=no
  7191. ;;
  7192. *nto* | *qnx*)
  7193. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7194. # it will coredump.
  7195. lt_prog_compiler_pic='-fPIC -shared'
  7196. ;;
  7197. sysv4*MP*)
  7198. if test -d /usr/nec; then
  7199. lt_prog_compiler_pic=-Kconform_pic
  7200. fi
  7201. ;;
  7202. *)
  7203. lt_prog_compiler_pic='-fPIC'
  7204. ;;
  7205. esac
  7206. case $cc_basename in
  7207. nvcc*) # Cuda Compiler Driver 2.2
  7208. lt_prog_compiler_wl='-Xlinker '
  7209. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7210. ;;
  7211. esac
  7212. else
  7213. # PORTME Check for flag to pass linker flags through the system compiler.
  7214. case $host_os in
  7215. aix*)
  7216. lt_prog_compiler_wl='-Wl,'
  7217. if test "$host_cpu" = ia64; then
  7218. # AIX 5 now supports IA64 processor
  7219. lt_prog_compiler_static='-Bstatic'
  7220. else
  7221. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7222. fi
  7223. ;;
  7224. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7225. # This hack is so that the source file can tell whether it is being
  7226. # built for inclusion in a dll (and should export symbols for example).
  7227. lt_prog_compiler_pic='-DDLL_EXPORT'
  7228. ;;
  7229. hpux9* | hpux10* | hpux11*)
  7230. lt_prog_compiler_wl='-Wl,'
  7231. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7232. # not for PA HP-UX.
  7233. case $host_cpu in
  7234. hppa*64*|ia64*)
  7235. # +Z the default
  7236. ;;
  7237. *)
  7238. lt_prog_compiler_pic='+Z'
  7239. ;;
  7240. esac
  7241. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7242. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7243. ;;
  7244. irix5* | irix6* | nonstopux*)
  7245. lt_prog_compiler_wl='-Wl,'
  7246. # PIC (with -KPIC) is the default.
  7247. lt_prog_compiler_static='-non_shared'
  7248. ;;
  7249. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7250. case $cc_basename in
  7251. # old Intel for x86_64 which still supported -KPIC.
  7252. ecc*)
  7253. lt_prog_compiler_wl='-Wl,'
  7254. lt_prog_compiler_pic='-KPIC'
  7255. lt_prog_compiler_static='-static'
  7256. ;;
  7257. # icc used to be incompatible with GCC.
  7258. # ICC 10 doesn't accept -KPIC any more.
  7259. icc* | ifort*)
  7260. lt_prog_compiler_wl='-Wl,'
  7261. lt_prog_compiler_pic='-fPIC'
  7262. lt_prog_compiler_static='-static'
  7263. ;;
  7264. # Lahey Fortran 8.1.
  7265. lf95*)
  7266. lt_prog_compiler_wl='-Wl,'
  7267. lt_prog_compiler_pic='--shared'
  7268. lt_prog_compiler_static='--static'
  7269. ;;
  7270. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7271. # Portland Group compilers (*not* the Pentium gcc compiler,
  7272. # which looks to be a dead project)
  7273. lt_prog_compiler_wl='-Wl,'
  7274. lt_prog_compiler_pic='-fpic'
  7275. lt_prog_compiler_static='-Bstatic'
  7276. ;;
  7277. ccc*)
  7278. lt_prog_compiler_wl='-Wl,'
  7279. # All Alpha code is PIC.
  7280. lt_prog_compiler_static='-non_shared'
  7281. ;;
  7282. xl* | bgxl* | bgf* | mpixl*)
  7283. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7284. lt_prog_compiler_wl='-Wl,'
  7285. lt_prog_compiler_pic='-qpic'
  7286. lt_prog_compiler_static='-qstaticlink'
  7287. ;;
  7288. *)
  7289. case `$CC -V 2>&1 | sed 5q` in
  7290. *Sun\ F* | *Sun*Fortran*)
  7291. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7292. lt_prog_compiler_pic='-KPIC'
  7293. lt_prog_compiler_static='-Bstatic'
  7294. lt_prog_compiler_wl=''
  7295. ;;
  7296. *Sun\ C*)
  7297. # Sun C 5.9
  7298. lt_prog_compiler_pic='-KPIC'
  7299. lt_prog_compiler_static='-Bstatic'
  7300. lt_prog_compiler_wl='-Wl,'
  7301. ;;
  7302. esac
  7303. ;;
  7304. esac
  7305. ;;
  7306. newsos6)
  7307. lt_prog_compiler_pic='-KPIC'
  7308. lt_prog_compiler_static='-Bstatic'
  7309. ;;
  7310. *nto* | *qnx*)
  7311. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7312. # it will coredump.
  7313. lt_prog_compiler_pic='-fPIC -shared'
  7314. ;;
  7315. osf3* | osf4* | osf5*)
  7316. lt_prog_compiler_wl='-Wl,'
  7317. # All OSF/1 code is PIC.
  7318. lt_prog_compiler_static='-non_shared'
  7319. ;;
  7320. rdos*)
  7321. lt_prog_compiler_static='-non_shared'
  7322. ;;
  7323. solaris*)
  7324. lt_prog_compiler_pic='-KPIC'
  7325. lt_prog_compiler_static='-Bstatic'
  7326. case $cc_basename in
  7327. f77* | f90* | f95*)
  7328. lt_prog_compiler_wl='-Qoption ld ';;
  7329. *)
  7330. lt_prog_compiler_wl='-Wl,';;
  7331. esac
  7332. ;;
  7333. sunos4*)
  7334. lt_prog_compiler_wl='-Qoption ld '
  7335. lt_prog_compiler_pic='-PIC'
  7336. lt_prog_compiler_static='-Bstatic'
  7337. ;;
  7338. sysv4 | sysv4.2uw2* | sysv4.3*)
  7339. lt_prog_compiler_wl='-Wl,'
  7340. lt_prog_compiler_pic='-KPIC'
  7341. lt_prog_compiler_static='-Bstatic'
  7342. ;;
  7343. sysv4*MP*)
  7344. if test -d /usr/nec ;then
  7345. lt_prog_compiler_pic='-Kconform_pic'
  7346. lt_prog_compiler_static='-Bstatic'
  7347. fi
  7348. ;;
  7349. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7350. lt_prog_compiler_wl='-Wl,'
  7351. lt_prog_compiler_pic='-KPIC'
  7352. lt_prog_compiler_static='-Bstatic'
  7353. ;;
  7354. unicos*)
  7355. lt_prog_compiler_wl='-Wl,'
  7356. lt_prog_compiler_can_build_shared=no
  7357. ;;
  7358. uts4*)
  7359. lt_prog_compiler_pic='-pic'
  7360. lt_prog_compiler_static='-Bstatic'
  7361. ;;
  7362. *)
  7363. lt_prog_compiler_can_build_shared=no
  7364. ;;
  7365. esac
  7366. fi
  7367. case $host_os in
  7368. # For platforms which do not support PIC, -DPIC is meaningless:
  7369. *djgpp*)
  7370. lt_prog_compiler_pic=
  7371. ;;
  7372. *)
  7373. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7374. ;;
  7375. esac
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7377. $as_echo "$lt_prog_compiler_pic" >&6; }
  7378. #
  7379. # Check to make sure the PIC flag actually works.
  7380. #
  7381. if test -n "$lt_prog_compiler_pic"; then
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7383. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7384. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7385. $as_echo_n "(cached) " >&6
  7386. else
  7387. lt_cv_prog_compiler_pic_works=no
  7388. ac_outfile=conftest.$ac_objext
  7389. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7390. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7391. # Insert the option either (1) after the last *FLAGS variable, or
  7392. # (2) before a word containing "conftest.", or (3) at the end.
  7393. # Note that $ac_compile itself does not contain backslashes and begins
  7394. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7395. # The option is referenced via a variable to avoid confusing sed.
  7396. lt_compile=`echo "$ac_compile" | $SED \
  7397. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7398. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7399. -e 's:$: $lt_compiler_flag:'`
  7400. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7401. (eval "$lt_compile" 2>conftest.err)
  7402. ac_status=$?
  7403. cat conftest.err >&5
  7404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7405. if (exit $ac_status) && test -s "$ac_outfile"; then
  7406. # The compiler can only warn and ignore the option if not recognized
  7407. # So say no if there are warnings other than the usual output.
  7408. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7409. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7410. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7411. lt_cv_prog_compiler_pic_works=yes
  7412. fi
  7413. fi
  7414. $RM conftest*
  7415. fi
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7417. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7418. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7419. case $lt_prog_compiler_pic in
  7420. "" | " "*) ;;
  7421. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7422. esac
  7423. else
  7424. lt_prog_compiler_pic=
  7425. lt_prog_compiler_can_build_shared=no
  7426. fi
  7427. fi
  7428. #
  7429. # Check to make sure the static flag actually works.
  7430. #
  7431. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7433. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7434. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. lt_cv_prog_compiler_static_works=no
  7438. save_LDFLAGS="$LDFLAGS"
  7439. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7440. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7441. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7442. # The linker can only warn and ignore the option if not recognized
  7443. # So say no if there are warnings
  7444. if test -s conftest.err; then
  7445. # Append any errors to the config.log.
  7446. cat conftest.err 1>&5
  7447. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7448. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7449. if diff conftest.exp conftest.er2 >/dev/null; then
  7450. lt_cv_prog_compiler_static_works=yes
  7451. fi
  7452. else
  7453. lt_cv_prog_compiler_static_works=yes
  7454. fi
  7455. fi
  7456. $RM -r conftest*
  7457. LDFLAGS="$save_LDFLAGS"
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7460. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7461. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7462. :
  7463. else
  7464. lt_prog_compiler_static=
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7467. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7468. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7469. $as_echo_n "(cached) " >&6
  7470. else
  7471. lt_cv_prog_compiler_c_o=no
  7472. $RM -r conftest 2>/dev/null
  7473. mkdir conftest
  7474. cd conftest
  7475. mkdir out
  7476. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7477. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7478. # Insert the option either (1) after the last *FLAGS variable, or
  7479. # (2) before a word containing "conftest.", or (3) at the end.
  7480. # Note that $ac_compile itself does not contain backslashes and begins
  7481. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7482. lt_compile=`echo "$ac_compile" | $SED \
  7483. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7484. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7485. -e 's:$: $lt_compiler_flag:'`
  7486. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7487. (eval "$lt_compile" 2>out/conftest.err)
  7488. ac_status=$?
  7489. cat out/conftest.err >&5
  7490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7491. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7492. then
  7493. # The compiler can only warn and ignore the option if not recognized
  7494. # So say no if there are warnings
  7495. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7496. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7497. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7498. lt_cv_prog_compiler_c_o=yes
  7499. fi
  7500. fi
  7501. chmod u+w . 2>&5
  7502. $RM conftest*
  7503. # SGI C++ compiler will create directory out/ii_files/ for
  7504. # template instantiation
  7505. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7506. $RM out/* && rmdir out
  7507. cd ..
  7508. $RM -r conftest
  7509. $RM conftest*
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7512. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7514. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7515. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7516. $as_echo_n "(cached) " >&6
  7517. else
  7518. lt_cv_prog_compiler_c_o=no
  7519. $RM -r conftest 2>/dev/null
  7520. mkdir conftest
  7521. cd conftest
  7522. mkdir out
  7523. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7524. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7525. # Insert the option either (1) after the last *FLAGS variable, or
  7526. # (2) before a word containing "conftest.", or (3) at the end.
  7527. # Note that $ac_compile itself does not contain backslashes and begins
  7528. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7529. lt_compile=`echo "$ac_compile" | $SED \
  7530. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7531. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7532. -e 's:$: $lt_compiler_flag:'`
  7533. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7534. (eval "$lt_compile" 2>out/conftest.err)
  7535. ac_status=$?
  7536. cat out/conftest.err >&5
  7537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7538. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7539. then
  7540. # The compiler can only warn and ignore the option if not recognized
  7541. # So say no if there are warnings
  7542. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7543. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7544. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7545. lt_cv_prog_compiler_c_o=yes
  7546. fi
  7547. fi
  7548. chmod u+w . 2>&5
  7549. $RM conftest*
  7550. # SGI C++ compiler will create directory out/ii_files/ for
  7551. # template instantiation
  7552. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7553. $RM out/* && rmdir out
  7554. cd ..
  7555. $RM -r conftest
  7556. $RM conftest*
  7557. fi
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7559. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7560. hard_links="nottested"
  7561. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7562. # do not overwrite the value of need_locks provided by the user
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7564. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7565. hard_links=yes
  7566. $RM conftest*
  7567. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7568. touch conftest.a
  7569. ln conftest.a conftest.b 2>&5 || hard_links=no
  7570. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7572. $as_echo "$hard_links" >&6; }
  7573. if test "$hard_links" = no; then
  7574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7575. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7576. need_locks=warn
  7577. fi
  7578. else
  7579. need_locks=no
  7580. fi
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7582. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7583. runpath_var=
  7584. allow_undefined_flag=
  7585. always_export_symbols=no
  7586. archive_cmds=
  7587. archive_expsym_cmds=
  7588. compiler_needs_object=no
  7589. enable_shared_with_static_runtimes=no
  7590. export_dynamic_flag_spec=
  7591. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7592. hardcode_automatic=no
  7593. hardcode_direct=no
  7594. hardcode_direct_absolute=no
  7595. hardcode_libdir_flag_spec=
  7596. hardcode_libdir_flag_spec_ld=
  7597. hardcode_libdir_separator=
  7598. hardcode_minus_L=no
  7599. hardcode_shlibpath_var=unsupported
  7600. inherit_rpath=no
  7601. link_all_deplibs=unknown
  7602. module_cmds=
  7603. module_expsym_cmds=
  7604. old_archive_from_new_cmds=
  7605. old_archive_from_expsyms_cmds=
  7606. thread_safe_flag_spec=
  7607. whole_archive_flag_spec=
  7608. # include_expsyms should be a list of space-separated symbols to be *always*
  7609. # included in the symbol list
  7610. include_expsyms=
  7611. # exclude_expsyms can be an extended regexp of symbols to exclude
  7612. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7613. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7614. # as well as any symbol that contains `d'.
  7615. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7616. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7617. # platforms (ab)use it in PIC code, but their linkers get confused if
  7618. # the symbol is explicitly referenced. Since portable code cannot
  7619. # rely on this symbol name, it's probably fine to never include it in
  7620. # preloaded symbol tables.
  7621. # Exclude shared library initialization/finalization symbols.
  7622. extract_expsyms_cmds=
  7623. case $host_os in
  7624. cygwin* | mingw* | pw32* | cegcc*)
  7625. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7626. # When not using gcc, we currently assume that we are using
  7627. # Microsoft Visual C++.
  7628. if test "$GCC" != yes; then
  7629. with_gnu_ld=no
  7630. fi
  7631. ;;
  7632. interix*)
  7633. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7634. with_gnu_ld=yes
  7635. ;;
  7636. openbsd*)
  7637. with_gnu_ld=no
  7638. ;;
  7639. esac
  7640. ld_shlibs=yes
  7641. # On some targets, GNU ld is compatible enough with the native linker
  7642. # that we're better off using the native interface for both.
  7643. lt_use_gnu_ld_interface=no
  7644. if test "$with_gnu_ld" = yes; then
  7645. case $host_os in
  7646. aix*)
  7647. # The AIX port of GNU ld has always aspired to compatibility
  7648. # with the native linker. However, as the warning in the GNU ld
  7649. # block says, versions before 2.19.5* couldn't really create working
  7650. # shared libraries, regardless of the interface used.
  7651. case `$LD -v 2>&1` in
  7652. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7653. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7654. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7655. *)
  7656. lt_use_gnu_ld_interface=yes
  7657. ;;
  7658. esac
  7659. ;;
  7660. *)
  7661. lt_use_gnu_ld_interface=yes
  7662. ;;
  7663. esac
  7664. fi
  7665. if test "$lt_use_gnu_ld_interface" = yes; then
  7666. # If archive_cmds runs LD, not CC, wlarc should be empty
  7667. wlarc='${wl}'
  7668. # Set some defaults for GNU ld with shared library support. These
  7669. # are reset later if shared libraries are not supported. Putting them
  7670. # here allows them to be overridden if necessary.
  7671. runpath_var=LD_RUN_PATH
  7672. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7673. export_dynamic_flag_spec='${wl}--export-dynamic'
  7674. # ancient GNU ld didn't support --whole-archive et. al.
  7675. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7676. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7677. else
  7678. whole_archive_flag_spec=
  7679. fi
  7680. supports_anon_versioning=no
  7681. case `$LD -v 2>&1` in
  7682. *GNU\ gold*) supports_anon_versioning=yes ;;
  7683. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7684. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7685. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7686. *\ 2.11.*) ;; # other 2.11 versions
  7687. *) supports_anon_versioning=yes ;;
  7688. esac
  7689. # See if GNU ld supports shared libraries.
  7690. case $host_os in
  7691. aix[3-9]*)
  7692. # On AIX/PPC, the GNU linker is very broken
  7693. if test "$host_cpu" != ia64; then
  7694. ld_shlibs=no
  7695. cat <<_LT_EOF 1>&2
  7696. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7697. *** to be unable to reliably create shared libraries on AIX.
  7698. *** Therefore, libtool is disabling shared libraries support. If you
  7699. *** really care for shared libraries, you may want to install binutils
  7700. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7701. *** You will then need to restart the configuration process.
  7702. _LT_EOF
  7703. fi
  7704. ;;
  7705. amigaos*)
  7706. case $host_cpu in
  7707. powerpc)
  7708. # see comment about AmigaOS4 .so support
  7709. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7710. archive_expsym_cmds=''
  7711. ;;
  7712. m68k)
  7713. 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)'
  7714. hardcode_libdir_flag_spec='-L$libdir'
  7715. hardcode_minus_L=yes
  7716. ;;
  7717. esac
  7718. ;;
  7719. beos*)
  7720. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7721. allow_undefined_flag=unsupported
  7722. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7723. # support --undefined. This deserves some investigation. FIXME
  7724. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7725. else
  7726. ld_shlibs=no
  7727. fi
  7728. ;;
  7729. cygwin* | mingw* | pw32* | cegcc*)
  7730. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7731. # as there is no search path for DLLs.
  7732. hardcode_libdir_flag_spec='-L$libdir'
  7733. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7734. allow_undefined_flag=unsupported
  7735. always_export_symbols=no
  7736. enable_shared_with_static_runtimes=yes
  7737. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7738. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7739. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7740. # If the export-symbols file already is a .def file (1st line
  7741. # is EXPORTS), use it as is; otherwise, prepend...
  7742. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7743. cp $export_symbols $output_objdir/$soname.def;
  7744. else
  7745. echo EXPORTS > $output_objdir/$soname.def;
  7746. cat $export_symbols >> $output_objdir/$soname.def;
  7747. fi~
  7748. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7749. else
  7750. ld_shlibs=no
  7751. fi
  7752. ;;
  7753. haiku*)
  7754. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7755. link_all_deplibs=yes
  7756. ;;
  7757. interix[3-9]*)
  7758. hardcode_direct=no
  7759. hardcode_shlibpath_var=no
  7760. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7761. export_dynamic_flag_spec='${wl}-E'
  7762. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7763. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7764. # default) and relocated if they conflict, which is a slow very memory
  7765. # consuming and fragmenting process. To avoid this, we pick a random,
  7766. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7767. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7768. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7769. 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'
  7770. ;;
  7771. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7772. tmp_diet=no
  7773. if test "$host_os" = linux-dietlibc; then
  7774. case $cc_basename in
  7775. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7776. esac
  7777. fi
  7778. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7779. && test "$tmp_diet" = no
  7780. then
  7781. tmp_addflag=' $pic_flag'
  7782. tmp_sharedflag='-shared'
  7783. case $cc_basename,$host_cpu in
  7784. pgcc*) # Portland Group C compiler
  7785. 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'
  7786. tmp_addflag=' $pic_flag'
  7787. ;;
  7788. pgf77* | pgf90* | pgf95* | pgfortran*)
  7789. # Portland Group f77 and f90 compilers
  7790. 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'
  7791. tmp_addflag=' $pic_flag -Mnomain' ;;
  7792. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7793. tmp_addflag=' -i_dynamic' ;;
  7794. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7795. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7796. ifc* | ifort*) # Intel Fortran compiler
  7797. tmp_addflag=' -nofor_main' ;;
  7798. lf95*) # Lahey Fortran 8.1
  7799. whole_archive_flag_spec=
  7800. tmp_sharedflag='--shared' ;;
  7801. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7802. tmp_sharedflag='-qmkshrobj'
  7803. tmp_addflag= ;;
  7804. nvcc*) # Cuda Compiler Driver 2.2
  7805. 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'
  7806. compiler_needs_object=yes
  7807. ;;
  7808. esac
  7809. case `$CC -V 2>&1 | sed 5q` in
  7810. *Sun\ C*) # Sun C 5.9
  7811. 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'
  7812. compiler_needs_object=yes
  7813. tmp_sharedflag='-G' ;;
  7814. *Sun\ F*) # Sun Fortran 8.3
  7815. tmp_sharedflag='-G' ;;
  7816. esac
  7817. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7818. if test "x$supports_anon_versioning" = xyes; then
  7819. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7820. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7821. echo "local: *; };" >> $output_objdir/$libname.ver~
  7822. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7823. fi
  7824. case $cc_basename in
  7825. xlf* | bgf* | bgxlf* | mpixlf*)
  7826. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7827. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7828. hardcode_libdir_flag_spec=
  7829. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7830. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7831. if test "x$supports_anon_versioning" = xyes; then
  7832. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7833. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7834. echo "local: *; };" >> $output_objdir/$libname.ver~
  7835. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7836. fi
  7837. ;;
  7838. esac
  7839. else
  7840. ld_shlibs=no
  7841. fi
  7842. ;;
  7843. netbsd*)
  7844. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7845. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7846. wlarc=
  7847. else
  7848. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7849. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7850. fi
  7851. ;;
  7852. solaris*)
  7853. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7854. ld_shlibs=no
  7855. cat <<_LT_EOF 1>&2
  7856. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7857. *** create shared libraries on Solaris systems. Therefore, libtool
  7858. *** is disabling shared libraries support. We urge you to upgrade GNU
  7859. *** binutils to release 2.9.1 or newer. Another option is to modify
  7860. *** your PATH or compiler configuration so that the native linker is
  7861. *** used, and then restart.
  7862. _LT_EOF
  7863. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7864. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7865. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7866. else
  7867. ld_shlibs=no
  7868. fi
  7869. ;;
  7870. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7871. case `$LD -v 2>&1` in
  7872. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7873. ld_shlibs=no
  7874. cat <<_LT_EOF 1>&2
  7875. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7876. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7877. *** is disabling shared libraries support. We urge you to upgrade GNU
  7878. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7879. *** your PATH or compiler configuration so that the native linker is
  7880. *** used, and then restart.
  7881. _LT_EOF
  7882. ;;
  7883. *)
  7884. # For security reasons, it is highly recommended that you always
  7885. # use absolute paths for naming shared libraries, and exclude the
  7886. # DT_RUNPATH tag from executables and libraries. But doing so
  7887. # requires that you compile everything twice, which is a pain.
  7888. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7889. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7890. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7891. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7892. else
  7893. ld_shlibs=no
  7894. fi
  7895. ;;
  7896. esac
  7897. ;;
  7898. sunos4*)
  7899. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7900. wlarc=
  7901. hardcode_direct=yes
  7902. hardcode_shlibpath_var=no
  7903. ;;
  7904. *)
  7905. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7906. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7907. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7908. else
  7909. ld_shlibs=no
  7910. fi
  7911. ;;
  7912. esac
  7913. if test "$ld_shlibs" = no; then
  7914. runpath_var=
  7915. hardcode_libdir_flag_spec=
  7916. export_dynamic_flag_spec=
  7917. whole_archive_flag_spec=
  7918. fi
  7919. else
  7920. # PORTME fill in a description of your system's linker (not GNU ld)
  7921. case $host_os in
  7922. aix3*)
  7923. allow_undefined_flag=unsupported
  7924. always_export_symbols=yes
  7925. 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'
  7926. # Note: this linker hardcodes the directories in LIBPATH if there
  7927. # are no directories specified by -L.
  7928. hardcode_minus_L=yes
  7929. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7930. # Neither direct hardcoding nor static linking is supported with a
  7931. # broken collect2.
  7932. hardcode_direct=unsupported
  7933. fi
  7934. ;;
  7935. aix[4-9]*)
  7936. if test "$host_cpu" = ia64; then
  7937. # On IA64, the linker does run time linking by default, so we don't
  7938. # have to do anything special.
  7939. aix_use_runtimelinking=no
  7940. exp_sym_flag='-Bexport'
  7941. no_entry_flag=""
  7942. else
  7943. # If we're using GNU nm, then we don't want the "-C" option.
  7944. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7945. # Also, AIX nm treats weak defined symbols like other global
  7946. # defined symbols, whereas GNU nm marks them as "W".
  7947. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7948. 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'
  7949. else
  7950. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7951. fi
  7952. aix_use_runtimelinking=no
  7953. # Test if we are trying to use run time linking or normal
  7954. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7955. # need to do runtime linking.
  7956. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7957. for ld_flag in $LDFLAGS; do
  7958. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7959. aix_use_runtimelinking=yes
  7960. break
  7961. fi
  7962. done
  7963. ;;
  7964. esac
  7965. exp_sym_flag='-bexport'
  7966. no_entry_flag='-bnoentry'
  7967. fi
  7968. # When large executables or shared objects are built, AIX ld can
  7969. # have problems creating the table of contents. If linking a library
  7970. # or program results in "error TOC overflow" add -mminimal-toc to
  7971. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7972. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7973. archive_cmds=''
  7974. hardcode_direct=yes
  7975. hardcode_direct_absolute=yes
  7976. hardcode_libdir_separator=':'
  7977. link_all_deplibs=yes
  7978. file_list_spec='${wl}-f,'
  7979. if test "$GCC" = yes; then
  7980. case $host_os in aix4.[012]|aix4.[012].*)
  7981. # We only want to do this on AIX 4.2 and lower, the check
  7982. # below for broken collect2 doesn't work under 4.3+
  7983. collect2name=`${CC} -print-prog-name=collect2`
  7984. if test -f "$collect2name" &&
  7985. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7986. then
  7987. # We have reworked collect2
  7988. :
  7989. else
  7990. # We have old collect2
  7991. hardcode_direct=unsupported
  7992. # It fails to find uninstalled libraries when the uninstalled
  7993. # path is not listed in the libpath. Setting hardcode_minus_L
  7994. # to unsupported forces relinking
  7995. hardcode_minus_L=yes
  7996. hardcode_libdir_flag_spec='-L$libdir'
  7997. hardcode_libdir_separator=
  7998. fi
  7999. ;;
  8000. esac
  8001. shared_flag='-shared'
  8002. if test "$aix_use_runtimelinking" = yes; then
  8003. shared_flag="$shared_flag "'${wl}-G'
  8004. fi
  8005. else
  8006. # not using gcc
  8007. if test "$host_cpu" = ia64; then
  8008. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8009. # chokes on -Wl,-G. The following line is correct:
  8010. shared_flag='-G'
  8011. else
  8012. if test "$aix_use_runtimelinking" = yes; then
  8013. shared_flag='${wl}-G'
  8014. else
  8015. shared_flag='${wl}-bM:SRE'
  8016. fi
  8017. fi
  8018. fi
  8019. export_dynamic_flag_spec='${wl}-bexpall'
  8020. # It seems that -bexpall does not export symbols beginning with
  8021. # underscore (_), so it is better to generate a list of symbols to export.
  8022. always_export_symbols=yes
  8023. if test "$aix_use_runtimelinking" = yes; then
  8024. # Warning - without using the other runtime loading flags (-brtl),
  8025. # -berok will link without error, but may produce a broken library.
  8026. allow_undefined_flag='-berok'
  8027. # Determine the default libpath from the value encoded in an
  8028. # empty executable.
  8029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8030. /* end confdefs.h. */
  8031. int
  8032. main ()
  8033. {
  8034. ;
  8035. return 0;
  8036. }
  8037. _ACEOF
  8038. if ac_fn_c_try_link "$LINENO"; then :
  8039. lt_aix_libpath_sed='
  8040. /Import File Strings/,/^$/ {
  8041. /^0/ {
  8042. s/^0 *\(.*\)$/\1/
  8043. p
  8044. }
  8045. }'
  8046. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8047. # Check for a 64-bit object if we didn't find anything.
  8048. if test -z "$aix_libpath"; then
  8049. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8050. fi
  8051. fi
  8052. rm -f core conftest.err conftest.$ac_objext \
  8053. conftest$ac_exeext conftest.$ac_ext
  8054. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8055. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8056. 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"
  8057. else
  8058. if test "$host_cpu" = ia64; then
  8059. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8060. allow_undefined_flag="-z nodefs"
  8061. 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"
  8062. else
  8063. # Determine the default libpath from the value encoded in an
  8064. # empty executable.
  8065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8066. /* end confdefs.h. */
  8067. int
  8068. main ()
  8069. {
  8070. ;
  8071. return 0;
  8072. }
  8073. _ACEOF
  8074. if ac_fn_c_try_link "$LINENO"; then :
  8075. lt_aix_libpath_sed='
  8076. /Import File Strings/,/^$/ {
  8077. /^0/ {
  8078. s/^0 *\(.*\)$/\1/
  8079. p
  8080. }
  8081. }'
  8082. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8083. # Check for a 64-bit object if we didn't find anything.
  8084. if test -z "$aix_libpath"; then
  8085. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8086. fi
  8087. fi
  8088. rm -f core conftest.err conftest.$ac_objext \
  8089. conftest$ac_exeext conftest.$ac_ext
  8090. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8091. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8092. # Warning - without using the other run time loading flags,
  8093. # -berok will link without error, but may produce a broken library.
  8094. no_undefined_flag=' ${wl}-bernotok'
  8095. allow_undefined_flag=' ${wl}-berok'
  8096. if test "$with_gnu_ld" = yes; then
  8097. # We only use this code for GNU lds that support --whole-archive.
  8098. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8099. else
  8100. # Exported symbols can be pulled into shared objects from archives
  8101. whole_archive_flag_spec='$convenience'
  8102. fi
  8103. archive_cmds_need_lc=yes
  8104. # This is similar to how AIX traditionally builds its shared libraries.
  8105. 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'
  8106. fi
  8107. fi
  8108. ;;
  8109. amigaos*)
  8110. case $host_cpu in
  8111. powerpc)
  8112. # see comment about AmigaOS4 .so support
  8113. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8114. archive_expsym_cmds=''
  8115. ;;
  8116. m68k)
  8117. 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)'
  8118. hardcode_libdir_flag_spec='-L$libdir'
  8119. hardcode_minus_L=yes
  8120. ;;
  8121. esac
  8122. ;;
  8123. bsdi[45]*)
  8124. export_dynamic_flag_spec=-rdynamic
  8125. ;;
  8126. cygwin* | mingw* | pw32* | cegcc*)
  8127. # When not using gcc, we currently assume that we are using
  8128. # Microsoft Visual C++.
  8129. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8130. # no search path for DLLs.
  8131. hardcode_libdir_flag_spec=' '
  8132. allow_undefined_flag=unsupported
  8133. # Tell ltmain to make .lib files, not .a files.
  8134. libext=lib
  8135. # Tell ltmain to make .dll files, not .so files.
  8136. shrext_cmds=".dll"
  8137. # FIXME: Setting linknames here is a bad hack.
  8138. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8139. # The linker will automatically build a .lib file if we build a DLL.
  8140. old_archive_from_new_cmds='true'
  8141. # FIXME: Should let the user specify the lib program.
  8142. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8143. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8144. enable_shared_with_static_runtimes=yes
  8145. ;;
  8146. darwin* | rhapsody*)
  8147. archive_cmds_need_lc=no
  8148. hardcode_direct=no
  8149. hardcode_automatic=yes
  8150. hardcode_shlibpath_var=unsupported
  8151. if test "$lt_cv_ld_force_load" = "yes"; then
  8152. 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\"`'
  8153. else
  8154. whole_archive_flag_spec=''
  8155. fi
  8156. link_all_deplibs=yes
  8157. allow_undefined_flag="$_lt_dar_allow_undefined"
  8158. case $cc_basename in
  8159. ifort*) _lt_dar_can_shared=yes ;;
  8160. *) _lt_dar_can_shared=$GCC ;;
  8161. esac
  8162. if test "$_lt_dar_can_shared" = "yes"; then
  8163. output_verbose_link_cmd=func_echo_all
  8164. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8165. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8166. 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}"
  8167. 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}"
  8168. else
  8169. ld_shlibs=no
  8170. fi
  8171. ;;
  8172. dgux*)
  8173. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8174. hardcode_libdir_flag_spec='-L$libdir'
  8175. hardcode_shlibpath_var=no
  8176. ;;
  8177. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8178. # support. Future versions do this automatically, but an explicit c++rt0.o
  8179. # does not break anything, and helps significantly (at the cost of a little
  8180. # extra space).
  8181. freebsd2.2*)
  8182. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8183. hardcode_libdir_flag_spec='-R$libdir'
  8184. hardcode_direct=yes
  8185. hardcode_shlibpath_var=no
  8186. ;;
  8187. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8188. freebsd2.*)
  8189. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8190. hardcode_direct=yes
  8191. hardcode_minus_L=yes
  8192. hardcode_shlibpath_var=no
  8193. ;;
  8194. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8195. freebsd* | dragonfly*)
  8196. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8197. hardcode_libdir_flag_spec='-R$libdir'
  8198. hardcode_direct=yes
  8199. hardcode_shlibpath_var=no
  8200. ;;
  8201. hpux9*)
  8202. if test "$GCC" = yes; then
  8203. 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'
  8204. else
  8205. 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'
  8206. fi
  8207. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8208. hardcode_libdir_separator=:
  8209. hardcode_direct=yes
  8210. # hardcode_minus_L: Not really in the search PATH,
  8211. # but as the default location of the library.
  8212. hardcode_minus_L=yes
  8213. export_dynamic_flag_spec='${wl}-E'
  8214. ;;
  8215. hpux10*)
  8216. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8217. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8218. else
  8219. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8220. fi
  8221. if test "$with_gnu_ld" = no; then
  8222. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8223. hardcode_libdir_flag_spec_ld='+b $libdir'
  8224. hardcode_libdir_separator=:
  8225. hardcode_direct=yes
  8226. hardcode_direct_absolute=yes
  8227. export_dynamic_flag_spec='${wl}-E'
  8228. # hardcode_minus_L: Not really in the search PATH,
  8229. # but as the default location of the library.
  8230. hardcode_minus_L=yes
  8231. fi
  8232. ;;
  8233. hpux11*)
  8234. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8235. case $host_cpu in
  8236. hppa*64*)
  8237. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8238. ;;
  8239. ia64*)
  8240. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8241. ;;
  8242. *)
  8243. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8244. ;;
  8245. esac
  8246. else
  8247. case $host_cpu in
  8248. hppa*64*)
  8249. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8250. ;;
  8251. ia64*)
  8252. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8253. ;;
  8254. *)
  8255. # Older versions of the 11.00 compiler do not understand -b yet
  8256. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8258. $as_echo_n "checking if $CC understands -b... " >&6; }
  8259. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8260. $as_echo_n "(cached) " >&6
  8261. else
  8262. lt_cv_prog_compiler__b=no
  8263. save_LDFLAGS="$LDFLAGS"
  8264. LDFLAGS="$LDFLAGS -b"
  8265. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8266. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8267. # The linker can only warn and ignore the option if not recognized
  8268. # So say no if there are warnings
  8269. if test -s conftest.err; then
  8270. # Append any errors to the config.log.
  8271. cat conftest.err 1>&5
  8272. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8273. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8274. if diff conftest.exp conftest.er2 >/dev/null; then
  8275. lt_cv_prog_compiler__b=yes
  8276. fi
  8277. else
  8278. lt_cv_prog_compiler__b=yes
  8279. fi
  8280. fi
  8281. $RM -r conftest*
  8282. LDFLAGS="$save_LDFLAGS"
  8283. fi
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8285. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8286. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8287. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8288. else
  8289. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8290. fi
  8291. ;;
  8292. esac
  8293. fi
  8294. if test "$with_gnu_ld" = no; then
  8295. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8296. hardcode_libdir_separator=:
  8297. case $host_cpu in
  8298. hppa*64*|ia64*)
  8299. hardcode_direct=no
  8300. hardcode_shlibpath_var=no
  8301. ;;
  8302. *)
  8303. hardcode_direct=yes
  8304. hardcode_direct_absolute=yes
  8305. export_dynamic_flag_spec='${wl}-E'
  8306. # hardcode_minus_L: Not really in the search PATH,
  8307. # but as the default location of the library.
  8308. hardcode_minus_L=yes
  8309. ;;
  8310. esac
  8311. fi
  8312. ;;
  8313. irix5* | irix6* | nonstopux*)
  8314. if test "$GCC" = yes; then
  8315. 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'
  8316. # Try to use the -exported_symbol ld option, if it does not
  8317. # work, assume that -exports_file does not work either and
  8318. # implicitly export all symbols.
  8319. save_LDFLAGS="$LDFLAGS"
  8320. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8322. /* end confdefs.h. */
  8323. int foo(void) {}
  8324. _ACEOF
  8325. if ac_fn_c_try_link "$LINENO"; then :
  8326. 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'
  8327. fi
  8328. rm -f core conftest.err conftest.$ac_objext \
  8329. conftest$ac_exeext conftest.$ac_ext
  8330. LDFLAGS="$save_LDFLAGS"
  8331. else
  8332. 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'
  8333. 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'
  8334. fi
  8335. archive_cmds_need_lc='no'
  8336. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8337. hardcode_libdir_separator=:
  8338. inherit_rpath=yes
  8339. link_all_deplibs=yes
  8340. ;;
  8341. netbsd*)
  8342. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8343. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8344. else
  8345. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8346. fi
  8347. hardcode_libdir_flag_spec='-R$libdir'
  8348. hardcode_direct=yes
  8349. hardcode_shlibpath_var=no
  8350. ;;
  8351. newsos6)
  8352. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8353. hardcode_direct=yes
  8354. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8355. hardcode_libdir_separator=:
  8356. hardcode_shlibpath_var=no
  8357. ;;
  8358. *nto* | *qnx*)
  8359. ;;
  8360. openbsd*)
  8361. if test -f /usr/libexec/ld.so; then
  8362. hardcode_direct=yes
  8363. hardcode_shlibpath_var=no
  8364. hardcode_direct_absolute=yes
  8365. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8366. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8367. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8368. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8369. export_dynamic_flag_spec='${wl}-E'
  8370. else
  8371. case $host_os in
  8372. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8373. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8374. hardcode_libdir_flag_spec='-R$libdir'
  8375. ;;
  8376. *)
  8377. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8378. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8379. ;;
  8380. esac
  8381. fi
  8382. else
  8383. ld_shlibs=no
  8384. fi
  8385. ;;
  8386. os2*)
  8387. hardcode_libdir_flag_spec='-L$libdir'
  8388. hardcode_minus_L=yes
  8389. allow_undefined_flag=unsupported
  8390. 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'
  8391. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8392. ;;
  8393. osf3*)
  8394. if test "$GCC" = yes; then
  8395. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8396. 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'
  8397. else
  8398. allow_undefined_flag=' -expect_unresolved \*'
  8399. 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'
  8400. fi
  8401. archive_cmds_need_lc='no'
  8402. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8403. hardcode_libdir_separator=:
  8404. ;;
  8405. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8406. if test "$GCC" = yes; then
  8407. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8408. 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'
  8409. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8410. else
  8411. allow_undefined_flag=' -expect_unresolved \*'
  8412. 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'
  8413. 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~
  8414. $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'
  8415. # Both c and cxx compiler support -rpath directly
  8416. hardcode_libdir_flag_spec='-rpath $libdir'
  8417. fi
  8418. archive_cmds_need_lc='no'
  8419. hardcode_libdir_separator=:
  8420. ;;
  8421. solaris*)
  8422. no_undefined_flag=' -z defs'
  8423. if test "$GCC" = yes; then
  8424. wlarc='${wl}'
  8425. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8426. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8427. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8428. else
  8429. case `$CC -V 2>&1` in
  8430. *"Compilers 5.0"*)
  8431. wlarc=''
  8432. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8433. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8434. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8435. ;;
  8436. *)
  8437. wlarc='${wl}'
  8438. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8440. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8441. ;;
  8442. esac
  8443. fi
  8444. hardcode_libdir_flag_spec='-R$libdir'
  8445. hardcode_shlibpath_var=no
  8446. case $host_os in
  8447. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8448. *)
  8449. # The compiler driver will combine and reorder linker options,
  8450. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8451. # but is careful enough not to reorder.
  8452. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8453. if test "$GCC" = yes; then
  8454. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8455. else
  8456. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8457. fi
  8458. ;;
  8459. esac
  8460. link_all_deplibs=yes
  8461. ;;
  8462. sunos4*)
  8463. if test "x$host_vendor" = xsequent; then
  8464. # Use $CC to link under sequent, because it throws in some extra .o
  8465. # files that make .init and .fini sections work.
  8466. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. else
  8468. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8469. fi
  8470. hardcode_libdir_flag_spec='-L$libdir'
  8471. hardcode_direct=yes
  8472. hardcode_minus_L=yes
  8473. hardcode_shlibpath_var=no
  8474. ;;
  8475. sysv4)
  8476. case $host_vendor in
  8477. sni)
  8478. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8479. hardcode_direct=yes # is this really true???
  8480. ;;
  8481. siemens)
  8482. ## LD is ld it makes a PLAMLIB
  8483. ## CC just makes a GrossModule.
  8484. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8485. reload_cmds='$CC -r -o $output$reload_objs'
  8486. hardcode_direct=no
  8487. ;;
  8488. motorola)
  8489. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8490. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8491. ;;
  8492. esac
  8493. runpath_var='LD_RUN_PATH'
  8494. hardcode_shlibpath_var=no
  8495. ;;
  8496. sysv4.3*)
  8497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8498. hardcode_shlibpath_var=no
  8499. export_dynamic_flag_spec='-Bexport'
  8500. ;;
  8501. sysv4*MP*)
  8502. if test -d /usr/nec; then
  8503. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8504. hardcode_shlibpath_var=no
  8505. runpath_var=LD_RUN_PATH
  8506. hardcode_runpath_var=yes
  8507. ld_shlibs=yes
  8508. fi
  8509. ;;
  8510. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8511. no_undefined_flag='${wl}-z,text'
  8512. archive_cmds_need_lc=no
  8513. hardcode_shlibpath_var=no
  8514. runpath_var='LD_RUN_PATH'
  8515. if test "$GCC" = yes; then
  8516. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8517. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8518. else
  8519. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8520. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8521. fi
  8522. ;;
  8523. sysv5* | sco3.2v5* | sco5v6*)
  8524. # Note: We can NOT use -z defs as we might desire, because we do not
  8525. # link with -lc, and that would cause any symbols used from libc to
  8526. # always be unresolved, which means just about no library would
  8527. # ever link correctly. If we're not using GNU ld we use -z text
  8528. # though, which does catch some bad symbols but isn't as heavy-handed
  8529. # as -z defs.
  8530. no_undefined_flag='${wl}-z,text'
  8531. allow_undefined_flag='${wl}-z,nodefs'
  8532. archive_cmds_need_lc=no
  8533. hardcode_shlibpath_var=no
  8534. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8535. hardcode_libdir_separator=':'
  8536. link_all_deplibs=yes
  8537. export_dynamic_flag_spec='${wl}-Bexport'
  8538. runpath_var='LD_RUN_PATH'
  8539. if test "$GCC" = yes; then
  8540. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8541. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8542. else
  8543. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8544. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8545. fi
  8546. ;;
  8547. uts4*)
  8548. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8549. hardcode_libdir_flag_spec='-L$libdir'
  8550. hardcode_shlibpath_var=no
  8551. ;;
  8552. *)
  8553. ld_shlibs=no
  8554. ;;
  8555. esac
  8556. if test x$host_vendor = xsni; then
  8557. case $host in
  8558. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8559. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8560. ;;
  8561. esac
  8562. fi
  8563. fi
  8564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8565. $as_echo "$ld_shlibs" >&6; }
  8566. test "$ld_shlibs" = no && can_build_shared=no
  8567. with_gnu_ld=$with_gnu_ld
  8568. #
  8569. # Do we need to explicitly link libc?
  8570. #
  8571. case "x$archive_cmds_need_lc" in
  8572. x|xyes)
  8573. # Assume -lc should be added
  8574. archive_cmds_need_lc=yes
  8575. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8576. case $archive_cmds in
  8577. *'~'*)
  8578. # FIXME: we may have to deal with multi-command sequences.
  8579. ;;
  8580. '$CC '*)
  8581. # Test whether the compiler implicitly links with -lc since on some
  8582. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8583. # to ld, don't add -lc before -lgcc.
  8584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8585. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8586. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8587. $as_echo_n "(cached) " >&6
  8588. else
  8589. $RM conftest*
  8590. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8591. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8592. (eval $ac_compile) 2>&5
  8593. ac_status=$?
  8594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8595. test $ac_status = 0; } 2>conftest.err; then
  8596. soname=conftest
  8597. lib=conftest
  8598. libobjs=conftest.$ac_objext
  8599. deplibs=
  8600. wl=$lt_prog_compiler_wl
  8601. pic_flag=$lt_prog_compiler_pic
  8602. compiler_flags=-v
  8603. linker_flags=-v
  8604. verstring=
  8605. output_objdir=.
  8606. libname=conftest
  8607. lt_save_allow_undefined_flag=$allow_undefined_flag
  8608. allow_undefined_flag=
  8609. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8610. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8611. ac_status=$?
  8612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8613. test $ac_status = 0; }
  8614. then
  8615. lt_cv_archive_cmds_need_lc=no
  8616. else
  8617. lt_cv_archive_cmds_need_lc=yes
  8618. fi
  8619. allow_undefined_flag=$lt_save_allow_undefined_flag
  8620. else
  8621. cat conftest.err 1>&5
  8622. fi
  8623. $RM conftest*
  8624. fi
  8625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8626. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8627. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8628. ;;
  8629. esac
  8630. fi
  8631. ;;
  8632. esac
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8634. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8635. if test "$GCC" = yes; then
  8636. case $host_os in
  8637. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8638. *) lt_awk_arg="/^libraries:/" ;;
  8639. esac
  8640. case $host_os in
  8641. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8642. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8643. esac
  8644. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8645. case $lt_search_path_spec in
  8646. *\;*)
  8647. # if the path contains ";" then we assume it to be the separator
  8648. # otherwise default to the standard path separator (i.e. ":") - it is
  8649. # assumed that no part of a normal pathname contains ";" but that should
  8650. # okay in the real world where ";" in dirpaths is itself problematic.
  8651. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8652. ;;
  8653. *)
  8654. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8655. ;;
  8656. esac
  8657. # Ok, now we have the path, separated by spaces, we can step through it
  8658. # and add multilib dir if necessary.
  8659. lt_tmp_lt_search_path_spec=
  8660. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8661. for lt_sys_path in $lt_search_path_spec; do
  8662. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8663. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8664. else
  8665. test -d "$lt_sys_path" && \
  8666. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8667. fi
  8668. done
  8669. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8670. BEGIN {RS=" "; FS="/|\n";} {
  8671. lt_foo="";
  8672. lt_count=0;
  8673. for (lt_i = NF; lt_i > 0; lt_i--) {
  8674. if ($lt_i != "" && $lt_i != ".") {
  8675. if ($lt_i == "..") {
  8676. lt_count++;
  8677. } else {
  8678. if (lt_count == 0) {
  8679. lt_foo="/" $lt_i lt_foo;
  8680. } else {
  8681. lt_count--;
  8682. }
  8683. }
  8684. }
  8685. }
  8686. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8687. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8688. }'`
  8689. # AWK program above erroneously prepends '/' to C:/dos/paths
  8690. # for these hosts.
  8691. case $host_os in
  8692. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8693. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8694. esac
  8695. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8696. else
  8697. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8698. fi
  8699. library_names_spec=
  8700. libname_spec='lib$name'
  8701. soname_spec=
  8702. shrext_cmds=".so"
  8703. postinstall_cmds=
  8704. postuninstall_cmds=
  8705. finish_cmds=
  8706. finish_eval=
  8707. shlibpath_var=
  8708. shlibpath_overrides_runpath=unknown
  8709. version_type=none
  8710. dynamic_linker="$host_os ld.so"
  8711. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8712. need_lib_prefix=unknown
  8713. hardcode_into_libs=no
  8714. # when you set need_version to no, make sure it does not cause -set_version
  8715. # flags to be left without arguments
  8716. need_version=unknown
  8717. case $host_os in
  8718. aix3*)
  8719. version_type=linux
  8720. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8721. shlibpath_var=LIBPATH
  8722. # AIX 3 has no versioning support, so we append a major version to the name.
  8723. soname_spec='${libname}${release}${shared_ext}$major'
  8724. ;;
  8725. aix[4-9]*)
  8726. version_type=linux
  8727. need_lib_prefix=no
  8728. need_version=no
  8729. hardcode_into_libs=yes
  8730. if test "$host_cpu" = ia64; then
  8731. # AIX 5 supports IA64
  8732. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8733. shlibpath_var=LD_LIBRARY_PATH
  8734. else
  8735. # With GCC up to 2.95.x, collect2 would create an import file
  8736. # for dependence libraries. The import file would start with
  8737. # the line `#! .'. This would cause the generated library to
  8738. # depend on `.', always an invalid library. This was fixed in
  8739. # development snapshots of GCC prior to 3.0.
  8740. case $host_os in
  8741. aix4 | aix4.[01] | aix4.[01].*)
  8742. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8743. echo ' yes '
  8744. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8745. :
  8746. else
  8747. can_build_shared=no
  8748. fi
  8749. ;;
  8750. esac
  8751. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8752. # soname into executable. Probably we can add versioning support to
  8753. # collect2, so additional links can be useful in future.
  8754. if test "$aix_use_runtimelinking" = yes; then
  8755. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8756. # instead of lib<name>.a to let people know that these are not
  8757. # typical AIX shared libraries.
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8759. else
  8760. # We preserve .a as extension for shared libraries through AIX4.2
  8761. # and later when we are not doing run time linking.
  8762. library_names_spec='${libname}${release}.a $libname.a'
  8763. soname_spec='${libname}${release}${shared_ext}$major'
  8764. fi
  8765. shlibpath_var=LIBPATH
  8766. fi
  8767. ;;
  8768. amigaos*)
  8769. case $host_cpu in
  8770. powerpc)
  8771. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8772. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8774. ;;
  8775. m68k)
  8776. library_names_spec='$libname.ixlibrary $libname.a'
  8777. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8778. 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'
  8779. ;;
  8780. esac
  8781. ;;
  8782. beos*)
  8783. library_names_spec='${libname}${shared_ext}'
  8784. dynamic_linker="$host_os ld.so"
  8785. shlibpath_var=LIBRARY_PATH
  8786. ;;
  8787. bsdi[45]*)
  8788. version_type=linux
  8789. need_version=no
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8791. soname_spec='${libname}${release}${shared_ext}$major'
  8792. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8793. shlibpath_var=LD_LIBRARY_PATH
  8794. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8795. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8796. # the default ld.so.conf also contains /usr/contrib/lib and
  8797. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8798. # libtool to hard-code these into programs
  8799. ;;
  8800. cygwin* | mingw* | pw32* | cegcc*)
  8801. version_type=windows
  8802. shrext_cmds=".dll"
  8803. need_version=no
  8804. need_lib_prefix=no
  8805. case $GCC,$host_os in
  8806. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8807. library_names_spec='$libname.dll.a'
  8808. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8809. postinstall_cmds='base_file=`basename \${file}`~
  8810. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8811. dldir=$destdir/`dirname \$dlpath`~
  8812. test -d \$dldir || mkdir -p \$dldir~
  8813. $install_prog $dir/$dlname \$dldir/$dlname~
  8814. chmod a+x \$dldir/$dlname~
  8815. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8816. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8817. fi'
  8818. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8819. dlpath=$dir/\$dldll~
  8820. $RM \$dlpath'
  8821. shlibpath_overrides_runpath=yes
  8822. case $host_os in
  8823. cygwin*)
  8824. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8825. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8826. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8827. ;;
  8828. mingw* | cegcc*)
  8829. # MinGW DLLs use traditional 'lib' prefix
  8830. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8831. ;;
  8832. pw32*)
  8833. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8834. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8835. ;;
  8836. esac
  8837. ;;
  8838. *)
  8839. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8840. ;;
  8841. esac
  8842. dynamic_linker='Win32 ld.exe'
  8843. # FIXME: first we should search . and the directory the executable is in
  8844. shlibpath_var=PATH
  8845. ;;
  8846. darwin* | rhapsody*)
  8847. dynamic_linker="$host_os dyld"
  8848. version_type=darwin
  8849. need_lib_prefix=no
  8850. need_version=no
  8851. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8852. soname_spec='${libname}${release}${major}$shared_ext'
  8853. shlibpath_overrides_runpath=yes
  8854. shlibpath_var=DYLD_LIBRARY_PATH
  8855. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8856. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8857. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8858. ;;
  8859. dgux*)
  8860. version_type=linux
  8861. need_lib_prefix=no
  8862. need_version=no
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8864. soname_spec='${libname}${release}${shared_ext}$major'
  8865. shlibpath_var=LD_LIBRARY_PATH
  8866. ;;
  8867. freebsd* | dragonfly*)
  8868. # DragonFly does not have aout. When/if they implement a new
  8869. # versioning mechanism, adjust this.
  8870. if test -x /usr/bin/objformat; then
  8871. objformat=`/usr/bin/objformat`
  8872. else
  8873. case $host_os in
  8874. freebsd[23].*) objformat=aout ;;
  8875. *) objformat=elf ;;
  8876. esac
  8877. fi
  8878. version_type=freebsd-$objformat
  8879. case $version_type in
  8880. freebsd-elf*)
  8881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8882. need_version=no
  8883. need_lib_prefix=no
  8884. ;;
  8885. freebsd-*)
  8886. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8887. need_version=yes
  8888. ;;
  8889. esac
  8890. shlibpath_var=LD_LIBRARY_PATH
  8891. case $host_os in
  8892. freebsd2.*)
  8893. shlibpath_overrides_runpath=yes
  8894. ;;
  8895. freebsd3.[01]* | freebsdelf3.[01]*)
  8896. shlibpath_overrides_runpath=yes
  8897. hardcode_into_libs=yes
  8898. ;;
  8899. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8900. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8901. shlibpath_overrides_runpath=no
  8902. hardcode_into_libs=yes
  8903. ;;
  8904. *) # from 4.6 on, and DragonFly
  8905. shlibpath_overrides_runpath=yes
  8906. hardcode_into_libs=yes
  8907. ;;
  8908. esac
  8909. ;;
  8910. gnu*)
  8911. version_type=linux
  8912. need_lib_prefix=no
  8913. need_version=no
  8914. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8915. soname_spec='${libname}${release}${shared_ext}$major'
  8916. shlibpath_var=LD_LIBRARY_PATH
  8917. hardcode_into_libs=yes
  8918. ;;
  8919. haiku*)
  8920. version_type=linux
  8921. need_lib_prefix=no
  8922. need_version=no
  8923. dynamic_linker="$host_os runtime_loader"
  8924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8925. soname_spec='${libname}${release}${shared_ext}$major'
  8926. shlibpath_var=LIBRARY_PATH
  8927. shlibpath_overrides_runpath=yes
  8928. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  8929. hardcode_into_libs=yes
  8930. ;;
  8931. hpux9* | hpux10* | hpux11*)
  8932. # Give a soname corresponding to the major version so that dld.sl refuses to
  8933. # link against other versions.
  8934. version_type=sunos
  8935. need_lib_prefix=no
  8936. need_version=no
  8937. case $host_cpu in
  8938. ia64*)
  8939. shrext_cmds='.so'
  8940. hardcode_into_libs=yes
  8941. dynamic_linker="$host_os dld.so"
  8942. shlibpath_var=LD_LIBRARY_PATH
  8943. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8944. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8945. soname_spec='${libname}${release}${shared_ext}$major'
  8946. if test "X$HPUX_IA64_MODE" = X32; then
  8947. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8948. else
  8949. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8950. fi
  8951. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8952. ;;
  8953. hppa*64*)
  8954. shrext_cmds='.sl'
  8955. hardcode_into_libs=yes
  8956. dynamic_linker="$host_os dld.sl"
  8957. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8958. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8959. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8960. soname_spec='${libname}${release}${shared_ext}$major'
  8961. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8962. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8963. ;;
  8964. *)
  8965. shrext_cmds='.sl'
  8966. dynamic_linker="$host_os dld.sl"
  8967. shlibpath_var=SHLIB_PATH
  8968. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. ;;
  8972. esac
  8973. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8974. postinstall_cmds='chmod 555 $lib'
  8975. # or fails outright, so override atomically:
  8976. install_override_mode=555
  8977. ;;
  8978. interix[3-9]*)
  8979. version_type=linux
  8980. need_lib_prefix=no
  8981. need_version=no
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8983. soname_spec='${libname}${release}${shared_ext}$major'
  8984. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8985. shlibpath_var=LD_LIBRARY_PATH
  8986. shlibpath_overrides_runpath=no
  8987. hardcode_into_libs=yes
  8988. ;;
  8989. irix5* | irix6* | nonstopux*)
  8990. case $host_os in
  8991. nonstopux*) version_type=nonstopux ;;
  8992. *)
  8993. if test "$lt_cv_prog_gnu_ld" = yes; then
  8994. version_type=linux
  8995. else
  8996. version_type=irix
  8997. fi ;;
  8998. esac
  8999. need_lib_prefix=no
  9000. need_version=no
  9001. soname_spec='${libname}${release}${shared_ext}$major'
  9002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9003. case $host_os in
  9004. irix5* | nonstopux*)
  9005. libsuff= shlibsuff=
  9006. ;;
  9007. *)
  9008. case $LD in # libtool.m4 will add one of these switches to LD
  9009. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9010. libsuff= shlibsuff= libmagic=32-bit;;
  9011. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9012. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9013. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9014. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9015. *) libsuff= shlibsuff= libmagic=never-match;;
  9016. esac
  9017. ;;
  9018. esac
  9019. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9020. shlibpath_overrides_runpath=no
  9021. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9022. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9023. hardcode_into_libs=yes
  9024. ;;
  9025. # No shared lib support for Linux oldld, aout, or coff.
  9026. linux*oldld* | linux*aout* | linux*coff*)
  9027. dynamic_linker=no
  9028. ;;
  9029. # This must be Linux ELF.
  9030. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9031. version_type=linux
  9032. need_lib_prefix=no
  9033. need_version=no
  9034. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9035. soname_spec='${libname}${release}${shared_ext}$major'
  9036. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9037. shlibpath_var=LD_LIBRARY_PATH
  9038. shlibpath_overrides_runpath=no
  9039. # Some binutils ld are patched to set DT_RUNPATH
  9040. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9041. $as_echo_n "(cached) " >&6
  9042. else
  9043. lt_cv_shlibpath_overrides_runpath=no
  9044. save_LDFLAGS=$LDFLAGS
  9045. save_libdir=$libdir
  9046. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9047. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9049. /* end confdefs.h. */
  9050. int
  9051. main ()
  9052. {
  9053. ;
  9054. return 0;
  9055. }
  9056. _ACEOF
  9057. if ac_fn_c_try_link "$LINENO"; then :
  9058. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9059. lt_cv_shlibpath_overrides_runpath=yes
  9060. fi
  9061. fi
  9062. rm -f core conftest.err conftest.$ac_objext \
  9063. conftest$ac_exeext conftest.$ac_ext
  9064. LDFLAGS=$save_LDFLAGS
  9065. libdir=$save_libdir
  9066. fi
  9067. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9068. # This implies no fast_install, which is unacceptable.
  9069. # Some rework will be needed to allow for fast_install
  9070. # before this can be enabled.
  9071. hardcode_into_libs=yes
  9072. # Append ld.so.conf contents to the search path
  9073. if test -f /etc/ld.so.conf; then
  9074. 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' ' '`
  9075. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9076. fi
  9077. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9078. # powerpc, because MkLinux only supported shared libraries with the
  9079. # GNU dynamic linker. Since this was broken with cross compilers,
  9080. # most powerpc-linux boxes support dynamic linking these days and
  9081. # people can always --disable-shared, the test was removed, and we
  9082. # assume the GNU/Linux dynamic linker is in use.
  9083. dynamic_linker='GNU/Linux ld.so'
  9084. ;;
  9085. netbsd*)
  9086. version_type=sunos
  9087. need_lib_prefix=no
  9088. need_version=no
  9089. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9091. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9092. dynamic_linker='NetBSD (a.out) ld.so'
  9093. else
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9095. soname_spec='${libname}${release}${shared_ext}$major'
  9096. dynamic_linker='NetBSD ld.elf_so'
  9097. fi
  9098. shlibpath_var=LD_LIBRARY_PATH
  9099. shlibpath_overrides_runpath=yes
  9100. hardcode_into_libs=yes
  9101. ;;
  9102. newsos6)
  9103. version_type=linux
  9104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9105. shlibpath_var=LD_LIBRARY_PATH
  9106. shlibpath_overrides_runpath=yes
  9107. ;;
  9108. *nto* | *qnx*)
  9109. version_type=qnx
  9110. need_lib_prefix=no
  9111. need_version=no
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. soname_spec='${libname}${release}${shared_ext}$major'
  9114. shlibpath_var=LD_LIBRARY_PATH
  9115. shlibpath_overrides_runpath=no
  9116. hardcode_into_libs=yes
  9117. dynamic_linker='ldqnx.so'
  9118. ;;
  9119. openbsd*)
  9120. version_type=sunos
  9121. sys_lib_dlsearch_path_spec="/usr/lib"
  9122. need_lib_prefix=no
  9123. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9124. case $host_os in
  9125. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9126. *) need_version=no ;;
  9127. esac
  9128. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9129. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9130. shlibpath_var=LD_LIBRARY_PATH
  9131. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9132. case $host_os in
  9133. openbsd2.[89] | openbsd2.[89].*)
  9134. shlibpath_overrides_runpath=no
  9135. ;;
  9136. *)
  9137. shlibpath_overrides_runpath=yes
  9138. ;;
  9139. esac
  9140. else
  9141. shlibpath_overrides_runpath=yes
  9142. fi
  9143. ;;
  9144. os2*)
  9145. libname_spec='$name'
  9146. shrext_cmds=".dll"
  9147. need_lib_prefix=no
  9148. library_names_spec='$libname${shared_ext} $libname.a'
  9149. dynamic_linker='OS/2 ld.exe'
  9150. shlibpath_var=LIBPATH
  9151. ;;
  9152. osf3* | osf4* | osf5*)
  9153. version_type=osf
  9154. need_lib_prefix=no
  9155. need_version=no
  9156. soname_spec='${libname}${release}${shared_ext}$major'
  9157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9158. shlibpath_var=LD_LIBRARY_PATH
  9159. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9160. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9161. ;;
  9162. rdos*)
  9163. dynamic_linker=no
  9164. ;;
  9165. solaris*)
  9166. version_type=linux
  9167. need_lib_prefix=no
  9168. need_version=no
  9169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9170. soname_spec='${libname}${release}${shared_ext}$major'
  9171. shlibpath_var=LD_LIBRARY_PATH
  9172. shlibpath_overrides_runpath=yes
  9173. hardcode_into_libs=yes
  9174. # ldd complains unless libraries are executable
  9175. postinstall_cmds='chmod +x $lib'
  9176. ;;
  9177. sunos4*)
  9178. version_type=sunos
  9179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9180. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. shlibpath_overrides_runpath=yes
  9183. if test "$with_gnu_ld" = yes; then
  9184. need_lib_prefix=no
  9185. fi
  9186. need_version=yes
  9187. ;;
  9188. sysv4 | sysv4.3*)
  9189. version_type=linux
  9190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9191. soname_spec='${libname}${release}${shared_ext}$major'
  9192. shlibpath_var=LD_LIBRARY_PATH
  9193. case $host_vendor in
  9194. sni)
  9195. shlibpath_overrides_runpath=no
  9196. need_lib_prefix=no
  9197. runpath_var=LD_RUN_PATH
  9198. ;;
  9199. siemens)
  9200. need_lib_prefix=no
  9201. ;;
  9202. motorola)
  9203. need_lib_prefix=no
  9204. need_version=no
  9205. shlibpath_overrides_runpath=no
  9206. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9207. ;;
  9208. esac
  9209. ;;
  9210. sysv4*MP*)
  9211. if test -d /usr/nec ;then
  9212. version_type=linux
  9213. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9214. soname_spec='$libname${shared_ext}.$major'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. fi
  9217. ;;
  9218. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9219. version_type=freebsd-elf
  9220. need_lib_prefix=no
  9221. need_version=no
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9223. soname_spec='${libname}${release}${shared_ext}$major'
  9224. shlibpath_var=LD_LIBRARY_PATH
  9225. shlibpath_overrides_runpath=yes
  9226. hardcode_into_libs=yes
  9227. if test "$with_gnu_ld" = yes; then
  9228. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9229. else
  9230. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9231. case $host_os in
  9232. sco3.2v5*)
  9233. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9234. ;;
  9235. esac
  9236. fi
  9237. sys_lib_dlsearch_path_spec='/usr/lib'
  9238. ;;
  9239. tpf*)
  9240. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9241. version_type=linux
  9242. need_lib_prefix=no
  9243. need_version=no
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9245. shlibpath_var=LD_LIBRARY_PATH
  9246. shlibpath_overrides_runpath=no
  9247. hardcode_into_libs=yes
  9248. ;;
  9249. uts4*)
  9250. version_type=linux
  9251. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9252. soname_spec='${libname}${release}${shared_ext}$major'
  9253. shlibpath_var=LD_LIBRARY_PATH
  9254. ;;
  9255. *)
  9256. dynamic_linker=no
  9257. ;;
  9258. esac
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9260. $as_echo "$dynamic_linker" >&6; }
  9261. test "$dynamic_linker" = no && can_build_shared=no
  9262. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9263. if test "$GCC" = yes; then
  9264. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9265. fi
  9266. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9267. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9268. fi
  9269. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9270. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9271. fi
  9272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9273. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9274. hardcode_action=
  9275. if test -n "$hardcode_libdir_flag_spec" ||
  9276. test -n "$runpath_var" ||
  9277. test "X$hardcode_automatic" = "Xyes" ; then
  9278. # We can hardcode non-existent directories.
  9279. if test "$hardcode_direct" != no &&
  9280. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9281. # have to relink, otherwise we might link with an installed library
  9282. # when we should be linking with a yet-to-be-installed one
  9283. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9284. test "$hardcode_minus_L" != no; then
  9285. # Linking always hardcodes the temporary library directory.
  9286. hardcode_action=relink
  9287. else
  9288. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9289. hardcode_action=immediate
  9290. fi
  9291. else
  9292. # We cannot hardcode anything, or else we can only hardcode existing
  9293. # directories.
  9294. hardcode_action=unsupported
  9295. fi
  9296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9297. $as_echo "$hardcode_action" >&6; }
  9298. if test "$hardcode_action" = relink ||
  9299. test "$inherit_rpath" = yes; then
  9300. # Fast installation is not supported
  9301. enable_fast_install=no
  9302. elif test "$shlibpath_overrides_runpath" = yes ||
  9303. test "$enable_shared" = no; then
  9304. # Fast installation is not necessary
  9305. enable_fast_install=needless
  9306. fi
  9307. if test "x$enable_dlopen" != xyes; then
  9308. enable_dlopen=unknown
  9309. enable_dlopen_self=unknown
  9310. enable_dlopen_self_static=unknown
  9311. else
  9312. lt_cv_dlopen=no
  9313. lt_cv_dlopen_libs=
  9314. case $host_os in
  9315. beos*)
  9316. lt_cv_dlopen="load_add_on"
  9317. lt_cv_dlopen_libs=
  9318. lt_cv_dlopen_self=yes
  9319. ;;
  9320. mingw* | pw32* | cegcc*)
  9321. lt_cv_dlopen="LoadLibrary"
  9322. lt_cv_dlopen_libs=
  9323. ;;
  9324. cygwin*)
  9325. lt_cv_dlopen="dlopen"
  9326. lt_cv_dlopen_libs=
  9327. ;;
  9328. darwin*)
  9329. # if libdl is installed we need to link against it
  9330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9331. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9332. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9333. $as_echo_n "(cached) " >&6
  9334. else
  9335. ac_check_lib_save_LIBS=$LIBS
  9336. LIBS="-ldl $LIBS"
  9337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9338. /* end confdefs.h. */
  9339. /* Override any GCC internal prototype to avoid an error.
  9340. Use char because int might match the return type of a GCC
  9341. builtin and then its argument prototype would still apply. */
  9342. #ifdef __cplusplus
  9343. extern "C"
  9344. #endif
  9345. char dlopen ();
  9346. int
  9347. main ()
  9348. {
  9349. return dlopen ();
  9350. ;
  9351. return 0;
  9352. }
  9353. _ACEOF
  9354. if ac_fn_c_try_link "$LINENO"; then :
  9355. ac_cv_lib_dl_dlopen=yes
  9356. else
  9357. ac_cv_lib_dl_dlopen=no
  9358. fi
  9359. rm -f core conftest.err conftest.$ac_objext \
  9360. conftest$ac_exeext conftest.$ac_ext
  9361. LIBS=$ac_check_lib_save_LIBS
  9362. fi
  9363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9364. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9365. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9366. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9367. else
  9368. lt_cv_dlopen="dyld"
  9369. lt_cv_dlopen_libs=
  9370. lt_cv_dlopen_self=yes
  9371. fi
  9372. ;;
  9373. *)
  9374. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9375. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9376. lt_cv_dlopen="shl_load"
  9377. else
  9378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9379. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9380. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9381. $as_echo_n "(cached) " >&6
  9382. else
  9383. ac_check_lib_save_LIBS=$LIBS
  9384. LIBS="-ldld $LIBS"
  9385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9386. /* end confdefs.h. */
  9387. /* Override any GCC internal prototype to avoid an error.
  9388. Use char because int might match the return type of a GCC
  9389. builtin and then its argument prototype would still apply. */
  9390. #ifdef __cplusplus
  9391. extern "C"
  9392. #endif
  9393. char shl_load ();
  9394. int
  9395. main ()
  9396. {
  9397. return shl_load ();
  9398. ;
  9399. return 0;
  9400. }
  9401. _ACEOF
  9402. if ac_fn_c_try_link "$LINENO"; then :
  9403. ac_cv_lib_dld_shl_load=yes
  9404. else
  9405. ac_cv_lib_dld_shl_load=no
  9406. fi
  9407. rm -f core conftest.err conftest.$ac_objext \
  9408. conftest$ac_exeext conftest.$ac_ext
  9409. LIBS=$ac_check_lib_save_LIBS
  9410. fi
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9412. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9413. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9414. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9415. else
  9416. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9417. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9418. lt_cv_dlopen="dlopen"
  9419. else
  9420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9421. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9422. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9423. $as_echo_n "(cached) " >&6
  9424. else
  9425. ac_check_lib_save_LIBS=$LIBS
  9426. LIBS="-ldl $LIBS"
  9427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9428. /* end confdefs.h. */
  9429. /* Override any GCC internal prototype to avoid an error.
  9430. Use char because int might match the return type of a GCC
  9431. builtin and then its argument prototype would still apply. */
  9432. #ifdef __cplusplus
  9433. extern "C"
  9434. #endif
  9435. char dlopen ();
  9436. int
  9437. main ()
  9438. {
  9439. return dlopen ();
  9440. ;
  9441. return 0;
  9442. }
  9443. _ACEOF
  9444. if ac_fn_c_try_link "$LINENO"; then :
  9445. ac_cv_lib_dl_dlopen=yes
  9446. else
  9447. ac_cv_lib_dl_dlopen=no
  9448. fi
  9449. rm -f core conftest.err conftest.$ac_objext \
  9450. conftest$ac_exeext conftest.$ac_ext
  9451. LIBS=$ac_check_lib_save_LIBS
  9452. fi
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9454. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9455. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9456. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9457. else
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9459. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9460. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9461. $as_echo_n "(cached) " >&6
  9462. else
  9463. ac_check_lib_save_LIBS=$LIBS
  9464. LIBS="-lsvld $LIBS"
  9465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9466. /* end confdefs.h. */
  9467. /* Override any GCC internal prototype to avoid an error.
  9468. Use char because int might match the return type of a GCC
  9469. builtin and then its argument prototype would still apply. */
  9470. #ifdef __cplusplus
  9471. extern "C"
  9472. #endif
  9473. char dlopen ();
  9474. int
  9475. main ()
  9476. {
  9477. return dlopen ();
  9478. ;
  9479. return 0;
  9480. }
  9481. _ACEOF
  9482. if ac_fn_c_try_link "$LINENO"; then :
  9483. ac_cv_lib_svld_dlopen=yes
  9484. else
  9485. ac_cv_lib_svld_dlopen=no
  9486. fi
  9487. rm -f core conftest.err conftest.$ac_objext \
  9488. conftest$ac_exeext conftest.$ac_ext
  9489. LIBS=$ac_check_lib_save_LIBS
  9490. fi
  9491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9492. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9493. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9494. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9495. else
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9497. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9498. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9499. $as_echo_n "(cached) " >&6
  9500. else
  9501. ac_check_lib_save_LIBS=$LIBS
  9502. LIBS="-ldld $LIBS"
  9503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9504. /* end confdefs.h. */
  9505. /* Override any GCC internal prototype to avoid an error.
  9506. Use char because int might match the return type of a GCC
  9507. builtin and then its argument prototype would still apply. */
  9508. #ifdef __cplusplus
  9509. extern "C"
  9510. #endif
  9511. char dld_link ();
  9512. int
  9513. main ()
  9514. {
  9515. return dld_link ();
  9516. ;
  9517. return 0;
  9518. }
  9519. _ACEOF
  9520. if ac_fn_c_try_link "$LINENO"; then :
  9521. ac_cv_lib_dld_dld_link=yes
  9522. else
  9523. ac_cv_lib_dld_dld_link=no
  9524. fi
  9525. rm -f core conftest.err conftest.$ac_objext \
  9526. conftest$ac_exeext conftest.$ac_ext
  9527. LIBS=$ac_check_lib_save_LIBS
  9528. fi
  9529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9530. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9531. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9532. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9533. fi
  9534. fi
  9535. fi
  9536. fi
  9537. fi
  9538. fi
  9539. ;;
  9540. esac
  9541. if test "x$lt_cv_dlopen" != xno; then
  9542. enable_dlopen=yes
  9543. else
  9544. enable_dlopen=no
  9545. fi
  9546. case $lt_cv_dlopen in
  9547. dlopen)
  9548. save_CPPFLAGS="$CPPFLAGS"
  9549. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9550. save_LDFLAGS="$LDFLAGS"
  9551. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9552. save_LIBS="$LIBS"
  9553. LIBS="$lt_cv_dlopen_libs $LIBS"
  9554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9555. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9556. if test "${lt_cv_dlopen_self+set}" = set; then :
  9557. $as_echo_n "(cached) " >&6
  9558. else
  9559. if test "$cross_compiling" = yes; then :
  9560. lt_cv_dlopen_self=cross
  9561. else
  9562. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9563. lt_status=$lt_dlunknown
  9564. cat > conftest.$ac_ext <<_LT_EOF
  9565. #line 11121 "configure"
  9566. #include "confdefs.h"
  9567. #if HAVE_DLFCN_H
  9568. #include <dlfcn.h>
  9569. #endif
  9570. #include <stdio.h>
  9571. #ifdef RTLD_GLOBAL
  9572. # define LT_DLGLOBAL RTLD_GLOBAL
  9573. #else
  9574. # ifdef DL_GLOBAL
  9575. # define LT_DLGLOBAL DL_GLOBAL
  9576. # else
  9577. # define LT_DLGLOBAL 0
  9578. # endif
  9579. #endif
  9580. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9581. find out it does not work in some platform. */
  9582. #ifndef LT_DLLAZY_OR_NOW
  9583. # ifdef RTLD_LAZY
  9584. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9585. # else
  9586. # ifdef DL_LAZY
  9587. # define LT_DLLAZY_OR_NOW DL_LAZY
  9588. # else
  9589. # ifdef RTLD_NOW
  9590. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9591. # else
  9592. # ifdef DL_NOW
  9593. # define LT_DLLAZY_OR_NOW DL_NOW
  9594. # else
  9595. # define LT_DLLAZY_OR_NOW 0
  9596. # endif
  9597. # endif
  9598. # endif
  9599. # endif
  9600. #endif
  9601. /* When -fvisbility=hidden is used, assume the code has been annotated
  9602. correspondingly for the symbols needed. */
  9603. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9604. void fnord () __attribute__((visibility("default")));
  9605. #endif
  9606. void fnord () { int i=42; }
  9607. int main ()
  9608. {
  9609. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9610. int status = $lt_dlunknown;
  9611. if (self)
  9612. {
  9613. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9614. else
  9615. {
  9616. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9617. else puts (dlerror ());
  9618. }
  9619. /* dlclose (self); */
  9620. }
  9621. else
  9622. puts (dlerror ());
  9623. return status;
  9624. }
  9625. _LT_EOF
  9626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9627. (eval $ac_link) 2>&5
  9628. ac_status=$?
  9629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9630. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9631. (./conftest; exit; ) >&5 2>/dev/null
  9632. lt_status=$?
  9633. case x$lt_status in
  9634. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9635. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9636. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9637. esac
  9638. else :
  9639. # compilation failed
  9640. lt_cv_dlopen_self=no
  9641. fi
  9642. fi
  9643. rm -fr conftest*
  9644. fi
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9646. $as_echo "$lt_cv_dlopen_self" >&6; }
  9647. if test "x$lt_cv_dlopen_self" = xyes; then
  9648. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9650. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9651. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9652. $as_echo_n "(cached) " >&6
  9653. else
  9654. if test "$cross_compiling" = yes; then :
  9655. lt_cv_dlopen_self_static=cross
  9656. else
  9657. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9658. lt_status=$lt_dlunknown
  9659. cat > conftest.$ac_ext <<_LT_EOF
  9660. #line 11227 "configure"
  9661. #include "confdefs.h"
  9662. #if HAVE_DLFCN_H
  9663. #include <dlfcn.h>
  9664. #endif
  9665. #include <stdio.h>
  9666. #ifdef RTLD_GLOBAL
  9667. # define LT_DLGLOBAL RTLD_GLOBAL
  9668. #else
  9669. # ifdef DL_GLOBAL
  9670. # define LT_DLGLOBAL DL_GLOBAL
  9671. # else
  9672. # define LT_DLGLOBAL 0
  9673. # endif
  9674. #endif
  9675. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9676. find out it does not work in some platform. */
  9677. #ifndef LT_DLLAZY_OR_NOW
  9678. # ifdef RTLD_LAZY
  9679. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9680. # else
  9681. # ifdef DL_LAZY
  9682. # define LT_DLLAZY_OR_NOW DL_LAZY
  9683. # else
  9684. # ifdef RTLD_NOW
  9685. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9686. # else
  9687. # ifdef DL_NOW
  9688. # define LT_DLLAZY_OR_NOW DL_NOW
  9689. # else
  9690. # define LT_DLLAZY_OR_NOW 0
  9691. # endif
  9692. # endif
  9693. # endif
  9694. # endif
  9695. #endif
  9696. /* When -fvisbility=hidden is used, assume the code has been annotated
  9697. correspondingly for the symbols needed. */
  9698. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9699. void fnord () __attribute__((visibility("default")));
  9700. #endif
  9701. void fnord () { int i=42; }
  9702. int main ()
  9703. {
  9704. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9705. int status = $lt_dlunknown;
  9706. if (self)
  9707. {
  9708. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9709. else
  9710. {
  9711. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9712. else puts (dlerror ());
  9713. }
  9714. /* dlclose (self); */
  9715. }
  9716. else
  9717. puts (dlerror ());
  9718. return status;
  9719. }
  9720. _LT_EOF
  9721. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9722. (eval $ac_link) 2>&5
  9723. ac_status=$?
  9724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9725. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9726. (./conftest; exit; ) >&5 2>/dev/null
  9727. lt_status=$?
  9728. case x$lt_status in
  9729. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9730. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9731. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9732. esac
  9733. else :
  9734. # compilation failed
  9735. lt_cv_dlopen_self_static=no
  9736. fi
  9737. fi
  9738. rm -fr conftest*
  9739. fi
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9741. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9742. fi
  9743. CPPFLAGS="$save_CPPFLAGS"
  9744. LDFLAGS="$save_LDFLAGS"
  9745. LIBS="$save_LIBS"
  9746. ;;
  9747. esac
  9748. case $lt_cv_dlopen_self in
  9749. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9750. *) enable_dlopen_self=unknown ;;
  9751. esac
  9752. case $lt_cv_dlopen_self_static in
  9753. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9754. *) enable_dlopen_self_static=unknown ;;
  9755. esac
  9756. fi
  9757. striplib=
  9758. old_striplib=
  9759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9760. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9761. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9762. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9763. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9765. $as_echo "yes" >&6; }
  9766. else
  9767. # FIXME - insert some real tests, host_os isn't really good enough
  9768. case $host_os in
  9769. darwin*)
  9770. if test -n "$STRIP" ; then
  9771. striplib="$STRIP -x"
  9772. old_striplib="$STRIP -S"
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9774. $as_echo "yes" >&6; }
  9775. else
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9777. $as_echo "no" >&6; }
  9778. fi
  9779. ;;
  9780. *)
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9782. $as_echo "no" >&6; }
  9783. ;;
  9784. esac
  9785. fi
  9786. # Report which library types will actually be built
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9788. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9790. $as_echo "$can_build_shared" >&6; }
  9791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9792. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9793. test "$can_build_shared" = "no" && enable_shared=no
  9794. # On AIX, shared libraries and static libraries use the same namespace, and
  9795. # are all built from PIC.
  9796. case $host_os in
  9797. aix3*)
  9798. test "$enable_shared" = yes && enable_static=no
  9799. if test -n "$RANLIB"; then
  9800. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9801. postinstall_cmds='$RANLIB $lib'
  9802. fi
  9803. ;;
  9804. aix[4-9]*)
  9805. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9806. test "$enable_shared" = yes && enable_static=no
  9807. fi
  9808. ;;
  9809. esac
  9810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9811. $as_echo "$enable_shared" >&6; }
  9812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9813. $as_echo_n "checking whether to build static libraries... " >&6; }
  9814. # Make sure either enable_shared or enable_static is yes.
  9815. test "$enable_shared" = yes || enable_static=yes
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9817. $as_echo "$enable_static" >&6; }
  9818. fi
  9819. ac_ext=c
  9820. ac_cpp='$CPP $CPPFLAGS'
  9821. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9822. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9823. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9824. CC="$lt_save_CC"
  9825. ac_config_commands="$ac_config_commands libtool"
  9826. # Only expand once:
  9827. case $host in
  9828. *-cygwin* | *-mingw*)
  9829. # 'host' will be top-level target in the case of a target lib,
  9830. # we must compare to with_cross_host to decide if this is a native
  9831. # or cross-compiler and select where to install dlls appropriately.
  9832. if test -n "$with_cross_host" &&
  9833. test x"$with_cross_host" != x"no"; then
  9834. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  9835. else
  9836. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  9837. fi
  9838. ;;
  9839. *)
  9840. lt_host_flags=
  9841. ;;
  9842. esac
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  9844. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  9845. # Check whether --enable-maintainer-mode was given.
  9846. if test "${enable_maintainer_mode+set}" = set; then :
  9847. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  9848. else
  9849. USE_MAINTAINER_MODE=no
  9850. fi
  9851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  9852. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  9853. if test $USE_MAINTAINER_MODE = yes; then
  9854. MAINTAINER_MODE_TRUE=
  9855. MAINTAINER_MODE_FALSE='#'
  9856. else
  9857. MAINTAINER_MODE_TRUE='#'
  9858. MAINTAINER_MODE_FALSE=
  9859. fi
  9860. MAINT=$MAINTAINER_MODE_TRUE
  9861. # Create a spec file, so that compile/link tests don't fail
  9862. test -f libgfortran.spec || touch libgfortran.spec
  9863. FCFLAGS="$FCFLAGS -L."
  9864. # We need gfortran to compile parts of the library
  9865. # We can't use AC_PROG_FC because it expects a fully working gfortran.
  9866. #AC_PROG_FC(gfortran)
  9867. case `echo $GFORTRAN` in
  9868. -* | no* )
  9869. FC=no ;;
  9870. *)
  9871. set dummy $GFORTRAN; ac_word=$2
  9872. if test -x "$ac_word"; then
  9873. FC="$GFORTRAN"
  9874. else
  9875. FC=no
  9876. fi ;;
  9877. esac
  9878. ac_ext=${ac_fc_srcext-f}
  9879. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  9880. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  9881. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  9882. if test -n "$ac_tool_prefix"; then
  9883. for ac_prog in gfortran
  9884. do
  9885. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9886. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9888. $as_echo_n "checking for $ac_word... " >&6; }
  9889. if test "${ac_cv_prog_FC+set}" = set; then :
  9890. $as_echo_n "(cached) " >&6
  9891. else
  9892. if test -n "$FC"; then
  9893. ac_cv_prog_FC="$FC" # Let the user override the test.
  9894. else
  9895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9896. for as_dir in $PATH
  9897. do
  9898. IFS=$as_save_IFS
  9899. test -z "$as_dir" && as_dir=.
  9900. for ac_exec_ext in '' $ac_executable_extensions; do
  9901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9902. ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
  9903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9904. break 2
  9905. fi
  9906. done
  9907. done
  9908. IFS=$as_save_IFS
  9909. fi
  9910. fi
  9911. FC=$ac_cv_prog_FC
  9912. if test -n "$FC"; then
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
  9914. $as_echo "$FC" >&6; }
  9915. else
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9917. $as_echo "no" >&6; }
  9918. fi
  9919. test -n "$FC" && break
  9920. done
  9921. fi
  9922. if test -z "$FC"; then
  9923. ac_ct_FC=$FC
  9924. for ac_prog in gfortran
  9925. do
  9926. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9927. set dummy $ac_prog; ac_word=$2
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9929. $as_echo_n "checking for $ac_word... " >&6; }
  9930. if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
  9931. $as_echo_n "(cached) " >&6
  9932. else
  9933. if test -n "$ac_ct_FC"; then
  9934. ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
  9935. else
  9936. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9937. for as_dir in $PATH
  9938. do
  9939. IFS=$as_save_IFS
  9940. test -z "$as_dir" && as_dir=.
  9941. for ac_exec_ext in '' $ac_executable_extensions; do
  9942. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9943. ac_cv_prog_ac_ct_FC="$ac_prog"
  9944. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9945. break 2
  9946. fi
  9947. done
  9948. done
  9949. IFS=$as_save_IFS
  9950. fi
  9951. fi
  9952. ac_ct_FC=$ac_cv_prog_ac_ct_FC
  9953. if test -n "$ac_ct_FC"; then
  9954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
  9955. $as_echo "$ac_ct_FC" >&6; }
  9956. else
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9958. $as_echo "no" >&6; }
  9959. fi
  9960. test -n "$ac_ct_FC" && break
  9961. done
  9962. if test "x$ac_ct_FC" = x; then
  9963. FC=""
  9964. else
  9965. case $cross_compiling:$ac_tool_warned in
  9966. yes:)
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9969. ac_tool_warned=yes ;;
  9970. esac
  9971. FC=$ac_ct_FC
  9972. fi
  9973. fi
  9974. # Provide some information about the compiler.
  9975. $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
  9976. set X $ac_compile
  9977. ac_compiler=$2
  9978. for ac_option in --version -v -V -qversion; do
  9979. { { ac_try="$ac_compiler $ac_option >&5"
  9980. case "(($ac_try" in
  9981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9982. *) ac_try_echo=$ac_try;;
  9983. esac
  9984. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  9985. $as_echo "$ac_try_echo"; } >&5
  9986. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  9987. ac_status=$?
  9988. if test -s conftest.err; then
  9989. sed '10a\
  9990. ... rest of stderr output deleted ...
  9991. 10q' conftest.err >conftest.er1
  9992. cat conftest.er1 >&5
  9993. rm -f conftest.er1 conftest.err
  9994. fi
  9995. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9996. test $ac_status = 0; }
  9997. done
  9998. rm -f a.out
  9999. # If we don't use `.F' as extension, the preprocessor is not run on the
  10000. # input file. (Note that this only needs to work for GNU compilers.)
  10001. ac_save_ext=$ac_ext
  10002. ac_ext=F
  10003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
  10004. $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
  10005. if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
  10006. $as_echo_n "(cached) " >&6
  10007. else
  10008. cat > conftest.$ac_ext <<_ACEOF
  10009. program main
  10010. #ifndef __GNUC__
  10011. choke me
  10012. #endif
  10013. end
  10014. _ACEOF
  10015. if ac_fn_fc_try_compile "$LINENO"; then :
  10016. ac_compiler_gnu=yes
  10017. else
  10018. ac_compiler_gnu=no
  10019. fi
  10020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10021. ac_cv_fc_compiler_gnu=$ac_compiler_gnu
  10022. fi
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
  10024. $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
  10025. ac_ext=$ac_save_ext
  10026. ac_test_FCFLAGS=${FCFLAGS+set}
  10027. ac_save_FCFLAGS=$FCFLAGS
  10028. FCFLAGS=
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
  10030. $as_echo_n "checking whether $FC accepts -g... " >&6; }
  10031. if test "${ac_cv_prog_fc_g+set}" = set; then :
  10032. $as_echo_n "(cached) " >&6
  10033. else
  10034. FCFLAGS=-g
  10035. cat > conftest.$ac_ext <<_ACEOF
  10036. program main
  10037. end
  10038. _ACEOF
  10039. if ac_fn_fc_try_compile "$LINENO"; then :
  10040. ac_cv_prog_fc_g=yes
  10041. else
  10042. ac_cv_prog_fc_g=no
  10043. fi
  10044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10045. fi
  10046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
  10047. $as_echo "$ac_cv_prog_fc_g" >&6; }
  10048. if test "$ac_test_FCFLAGS" = set; then
  10049. FCFLAGS=$ac_save_FCFLAGS
  10050. elif test $ac_cv_prog_fc_g = yes; then
  10051. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10052. FCFLAGS="-g -O2"
  10053. else
  10054. FCFLAGS="-g"
  10055. fi
  10056. else
  10057. if test "x$ac_cv_fc_compiler_gnu" = xyes; then
  10058. FCFLAGS="-O2"
  10059. else
  10060. FCFLAGS=
  10061. fi
  10062. fi
  10063. ac_ext=c
  10064. ac_cpp='$CPP $CPPFLAGS'
  10065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10068. ac_ext=${ac_fc_srcext-f}
  10069. ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
  10070. ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
  10071. ac_compiler_gnu=$ac_cv_fc_compiler_gnu
  10072. if test -z "$FC" || test "X$FC" = "Xno"; then
  10073. _lt_disable_FC=yes
  10074. fi
  10075. archive_cmds_need_lc_FC=no
  10076. allow_undefined_flag_FC=
  10077. always_export_symbols_FC=no
  10078. archive_expsym_cmds_FC=
  10079. export_dynamic_flag_spec_FC=
  10080. hardcode_direct_FC=no
  10081. hardcode_direct_absolute_FC=no
  10082. hardcode_libdir_flag_spec_FC=
  10083. hardcode_libdir_flag_spec_ld_FC=
  10084. hardcode_libdir_separator_FC=
  10085. hardcode_minus_L_FC=no
  10086. hardcode_automatic_FC=no
  10087. inherit_rpath_FC=no
  10088. module_cmds_FC=
  10089. module_expsym_cmds_FC=
  10090. link_all_deplibs_FC=unknown
  10091. old_archive_cmds_FC=$old_archive_cmds
  10092. reload_flag_FC=$reload_flag
  10093. reload_cmds_FC=$reload_cmds
  10094. no_undefined_flag_FC=
  10095. whole_archive_flag_spec_FC=
  10096. enable_shared_with_static_runtimes_FC=no
  10097. # Source file extension for fc test sources.
  10098. ac_ext=${ac_fc_srcext-f}
  10099. # Object file extension for compiled fc test sources.
  10100. objext=o
  10101. objext_FC=$objext
  10102. # No sense in running all these tests if we already determined that
  10103. # the FC compiler isn't working. Some variables (like enable_shared)
  10104. # are currently assumed to apply to all compilers on this platform,
  10105. # and will be corrupted by setting them based on a non-working compiler.
  10106. if test "$_lt_disable_FC" != yes; then
  10107. # Code to be used in simple compile tests
  10108. lt_simple_compile_test_code="\
  10109. subroutine t
  10110. return
  10111. end
  10112. "
  10113. # Code to be used in simple link tests
  10114. lt_simple_link_test_code="\
  10115. program t
  10116. end
  10117. "
  10118. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10119. # If no C compiler was specified, use CC.
  10120. LTCC=${LTCC-"$CC"}
  10121. # If no C compiler flags were specified, use CFLAGS.
  10122. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10123. # Allow CC to be a program name with arguments.
  10124. compiler=$CC
  10125. # save warnings/boilerplate of simple test code
  10126. ac_outfile=conftest.$ac_objext
  10127. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10128. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10129. _lt_compiler_boilerplate=`cat conftest.err`
  10130. $RM conftest*
  10131. ac_outfile=conftest.$ac_objext
  10132. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10133. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10134. _lt_linker_boilerplate=`cat conftest.err`
  10135. $RM -r conftest*
  10136. # Allow CC to be a program name with arguments.
  10137. lt_save_CC="$CC"
  10138. lt_save_GCC=$GCC
  10139. CC=${FC-"f95"}
  10140. compiler=$CC
  10141. GCC=$ac_cv_fc_compiler_gnu
  10142. compiler_FC=$CC
  10143. for cc_temp in $compiler""; do
  10144. case $cc_temp in
  10145. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10146. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10147. \-*) ;;
  10148. *) break;;
  10149. esac
  10150. done
  10151. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10152. if test -n "$compiler"; then
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10154. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10156. $as_echo "$can_build_shared" >&6; }
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10158. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10159. test "$can_build_shared" = "no" && enable_shared=no
  10160. # On AIX, shared libraries and static libraries use the same namespace, and
  10161. # are all built from PIC.
  10162. case $host_os in
  10163. aix3*)
  10164. test "$enable_shared" = yes && enable_static=no
  10165. if test -n "$RANLIB"; then
  10166. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10167. postinstall_cmds='$RANLIB $lib'
  10168. fi
  10169. ;;
  10170. aix[4-9]*)
  10171. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10172. test "$enable_shared" = yes && enable_static=no
  10173. fi
  10174. ;;
  10175. esac
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10177. $as_echo "$enable_shared" >&6; }
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10179. $as_echo_n "checking whether to build static libraries... " >&6; }
  10180. # Make sure either enable_shared or enable_static is yes.
  10181. test "$enable_shared" = yes || enable_static=yes
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10183. $as_echo "$enable_static" >&6; }
  10184. GCC_FC="$ac_cv_fc_compiler_gnu"
  10185. LD_FC="$LD"
  10186. ## CAVEAT EMPTOR:
  10187. ## There is no encapsulation within the following macros, do not change
  10188. ## the running order or otherwise move them around unless you know exactly
  10189. ## what you are doing...
  10190. # Dependencies to place before and after the object being linked:
  10191. predep_objects_FC=
  10192. postdep_objects_FC=
  10193. predeps_FC=
  10194. postdeps_FC=
  10195. compiler_lib_search_path_FC=
  10196. cat > conftest.$ac_ext <<_LT_EOF
  10197. subroutine foo
  10198. implicit none
  10199. integer a
  10200. a=0
  10201. return
  10202. end
  10203. _LT_EOF
  10204. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10205. (eval $ac_compile) 2>&5
  10206. ac_status=$?
  10207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10208. test $ac_status = 0; }; then
  10209. # Parse the compiler output and extract the necessary
  10210. # objects, libraries and library flags.
  10211. # Sentinel used to keep track of whether or not we are before
  10212. # the conftest object file.
  10213. pre_test_object_deps_done=no
  10214. for p in `eval "$output_verbose_link_cmd"`; do
  10215. case $p in
  10216. -L* | -R* | -l*)
  10217. # Some compilers place space between "-{L,R}" and the path.
  10218. # Remove the space.
  10219. if test $p = "-L" ||
  10220. test $p = "-R"; then
  10221. prev=$p
  10222. continue
  10223. else
  10224. prev=
  10225. fi
  10226. if test "$pre_test_object_deps_done" = no; then
  10227. case $p in
  10228. -L* | -R*)
  10229. # Internal compiler library paths should come after those
  10230. # provided the user. The postdeps already come after the
  10231. # user supplied libs so there is no need to process them.
  10232. if test -z "$compiler_lib_search_path_FC"; then
  10233. compiler_lib_search_path_FC="${prev}${p}"
  10234. else
  10235. compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
  10236. fi
  10237. ;;
  10238. # The "-l" case would never come before the object being
  10239. # linked, so don't bother handling this case.
  10240. esac
  10241. else
  10242. if test -z "$postdeps_FC"; then
  10243. postdeps_FC="${prev}${p}"
  10244. else
  10245. postdeps_FC="${postdeps_FC} ${prev}${p}"
  10246. fi
  10247. fi
  10248. ;;
  10249. *.$objext)
  10250. # This assumes that the test object file only shows up
  10251. # once in the compiler output.
  10252. if test "$p" = "conftest.$objext"; then
  10253. pre_test_object_deps_done=yes
  10254. continue
  10255. fi
  10256. if test "$pre_test_object_deps_done" = no; then
  10257. if test -z "$predep_objects_FC"; then
  10258. predep_objects_FC="$p"
  10259. else
  10260. predep_objects_FC="$predep_objects_FC $p"
  10261. fi
  10262. else
  10263. if test -z "$postdep_objects_FC"; then
  10264. postdep_objects_FC="$p"
  10265. else
  10266. postdep_objects_FC="$postdep_objects_FC $p"
  10267. fi
  10268. fi
  10269. ;;
  10270. *) ;; # Ignore the rest.
  10271. esac
  10272. done
  10273. # Clean up.
  10274. rm -f a.out a.exe
  10275. else
  10276. echo "libtool.m4: error: problem compiling FC test program"
  10277. fi
  10278. $RM -f confest.$objext
  10279. # PORTME: override above test on systems where it is broken
  10280. case " $postdeps_FC " in
  10281. *" -lc "*) archive_cmds_need_lc_FC=no ;;
  10282. esac
  10283. compiler_lib_search_dirs_FC=
  10284. if test -n "${compiler_lib_search_path_FC}"; then
  10285. compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10286. fi
  10287. lt_prog_compiler_wl_FC=
  10288. lt_prog_compiler_pic_FC=
  10289. lt_prog_compiler_static_FC=
  10290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  10291. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  10292. if test "$GCC" = yes; then
  10293. lt_prog_compiler_wl_FC='-Wl,'
  10294. lt_prog_compiler_static_FC='-static'
  10295. case $host_os in
  10296. aix*)
  10297. # All AIX code is PIC.
  10298. if test "$host_cpu" = ia64; then
  10299. # AIX 5 now supports IA64 processor
  10300. lt_prog_compiler_static_FC='-Bstatic'
  10301. fi
  10302. lt_prog_compiler_pic_FC='-fPIC'
  10303. ;;
  10304. amigaos*)
  10305. case $host_cpu in
  10306. powerpc)
  10307. # see comment about AmigaOS4 .so support
  10308. lt_prog_compiler_pic_FC='-fPIC'
  10309. ;;
  10310. m68k)
  10311. # FIXME: we need at least 68020 code to build shared libraries, but
  10312. # adding the `-m68020' flag to GCC prevents building anything better,
  10313. # like `-m68040'.
  10314. lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
  10315. ;;
  10316. esac
  10317. ;;
  10318. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10319. # PIC is the default for these OSes.
  10320. ;;
  10321. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10322. # This hack is so that the source file can tell whether it is being
  10323. # built for inclusion in a dll (and should export symbols for example).
  10324. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10325. # (--disable-auto-import) libraries
  10326. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10327. ;;
  10328. darwin* | rhapsody*)
  10329. # PIC is the default on this platform
  10330. # Common symbols not allowed in MH_DYLIB files
  10331. lt_prog_compiler_pic_FC='-fno-common'
  10332. ;;
  10333. haiku*)
  10334. # PIC is the default for Haiku.
  10335. # The "-static" flag exists, but is broken.
  10336. lt_prog_compiler_static_FC=
  10337. ;;
  10338. hpux*)
  10339. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  10340. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  10341. # sets the default TLS model and affects inlining.
  10342. case $host_cpu in
  10343. hppa*64*)
  10344. # +Z the default
  10345. ;;
  10346. *)
  10347. lt_prog_compiler_pic_FC='-fPIC'
  10348. ;;
  10349. esac
  10350. ;;
  10351. interix[3-9]*)
  10352. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10353. # Instead, we relocate shared libraries at runtime.
  10354. ;;
  10355. msdosdjgpp*)
  10356. # Just because we use GCC doesn't mean we suddenly get shared libraries
  10357. # on systems that don't support them.
  10358. lt_prog_compiler_can_build_shared_FC=no
  10359. enable_shared=no
  10360. ;;
  10361. *nto* | *qnx*)
  10362. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10363. # it will coredump.
  10364. lt_prog_compiler_pic_FC='-fPIC -shared'
  10365. ;;
  10366. sysv4*MP*)
  10367. if test -d /usr/nec; then
  10368. lt_prog_compiler_pic_FC=-Kconform_pic
  10369. fi
  10370. ;;
  10371. *)
  10372. lt_prog_compiler_pic_FC='-fPIC'
  10373. ;;
  10374. esac
  10375. case $cc_basename in
  10376. nvcc*) # Cuda Compiler Driver 2.2
  10377. lt_prog_compiler_wl_FC='-Xlinker '
  10378. lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
  10379. ;;
  10380. esac
  10381. else
  10382. # PORTME Check for flag to pass linker flags through the system compiler.
  10383. case $host_os in
  10384. aix*)
  10385. lt_prog_compiler_wl_FC='-Wl,'
  10386. if test "$host_cpu" = ia64; then
  10387. # AIX 5 now supports IA64 processor
  10388. lt_prog_compiler_static_FC='-Bstatic'
  10389. else
  10390. lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
  10391. fi
  10392. ;;
  10393. mingw* | cygwin* | pw32* | os2* | cegcc*)
  10394. # This hack is so that the source file can tell whether it is being
  10395. # built for inclusion in a dll (and should export symbols for example).
  10396. lt_prog_compiler_pic_FC='-DDLL_EXPORT'
  10397. ;;
  10398. hpux9* | hpux10* | hpux11*)
  10399. lt_prog_compiler_wl_FC='-Wl,'
  10400. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10401. # not for PA HP-UX.
  10402. case $host_cpu in
  10403. hppa*64*|ia64*)
  10404. # +Z the default
  10405. ;;
  10406. *)
  10407. lt_prog_compiler_pic_FC='+Z'
  10408. ;;
  10409. esac
  10410. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10411. lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
  10412. ;;
  10413. irix5* | irix6* | nonstopux*)
  10414. lt_prog_compiler_wl_FC='-Wl,'
  10415. # PIC (with -KPIC) is the default.
  10416. lt_prog_compiler_static_FC='-non_shared'
  10417. ;;
  10418. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10419. case $cc_basename in
  10420. # old Intel for x86_64 which still supported -KPIC.
  10421. ecc*)
  10422. lt_prog_compiler_wl_FC='-Wl,'
  10423. lt_prog_compiler_pic_FC='-KPIC'
  10424. lt_prog_compiler_static_FC='-static'
  10425. ;;
  10426. # icc used to be incompatible with GCC.
  10427. # ICC 10 doesn't accept -KPIC any more.
  10428. icc* | ifort*)
  10429. lt_prog_compiler_wl_FC='-Wl,'
  10430. lt_prog_compiler_pic_FC='-fPIC'
  10431. lt_prog_compiler_static_FC='-static'
  10432. ;;
  10433. # Lahey Fortran 8.1.
  10434. lf95*)
  10435. lt_prog_compiler_wl_FC='-Wl,'
  10436. lt_prog_compiler_pic_FC='--shared'
  10437. lt_prog_compiler_static_FC='--static'
  10438. ;;
  10439. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  10440. # Portland Group compilers (*not* the Pentium gcc compiler,
  10441. # which looks to be a dead project)
  10442. lt_prog_compiler_wl_FC='-Wl,'
  10443. lt_prog_compiler_pic_FC='-fpic'
  10444. lt_prog_compiler_static_FC='-Bstatic'
  10445. ;;
  10446. ccc*)
  10447. lt_prog_compiler_wl_FC='-Wl,'
  10448. # All Alpha code is PIC.
  10449. lt_prog_compiler_static_FC='-non_shared'
  10450. ;;
  10451. xl* | bgxl* | bgf* | mpixl*)
  10452. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  10453. lt_prog_compiler_wl_FC='-Wl,'
  10454. lt_prog_compiler_pic_FC='-qpic'
  10455. lt_prog_compiler_static_FC='-qstaticlink'
  10456. ;;
  10457. *)
  10458. case `$CC -V 2>&1 | sed 5q` in
  10459. *Sun\ F* | *Sun*Fortran*)
  10460. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10461. lt_prog_compiler_pic_FC='-KPIC'
  10462. lt_prog_compiler_static_FC='-Bstatic'
  10463. lt_prog_compiler_wl_FC=''
  10464. ;;
  10465. *Sun\ C*)
  10466. # Sun C 5.9
  10467. lt_prog_compiler_pic_FC='-KPIC'
  10468. lt_prog_compiler_static_FC='-Bstatic'
  10469. lt_prog_compiler_wl_FC='-Wl,'
  10470. ;;
  10471. esac
  10472. ;;
  10473. esac
  10474. ;;
  10475. newsos6)
  10476. lt_prog_compiler_pic_FC='-KPIC'
  10477. lt_prog_compiler_static_FC='-Bstatic'
  10478. ;;
  10479. *nto* | *qnx*)
  10480. # QNX uses GNU C++, but need to define -shared option too, otherwise
  10481. # it will coredump.
  10482. lt_prog_compiler_pic_FC='-fPIC -shared'
  10483. ;;
  10484. osf3* | osf4* | osf5*)
  10485. lt_prog_compiler_wl_FC='-Wl,'
  10486. # All OSF/1 code is PIC.
  10487. lt_prog_compiler_static_FC='-non_shared'
  10488. ;;
  10489. rdos*)
  10490. lt_prog_compiler_static_FC='-non_shared'
  10491. ;;
  10492. solaris*)
  10493. lt_prog_compiler_pic_FC='-KPIC'
  10494. lt_prog_compiler_static_FC='-Bstatic'
  10495. case $cc_basename in
  10496. f77* | f90* | f95*)
  10497. lt_prog_compiler_wl_FC='-Qoption ld ';;
  10498. *)
  10499. lt_prog_compiler_wl_FC='-Wl,';;
  10500. esac
  10501. ;;
  10502. sunos4*)
  10503. lt_prog_compiler_wl_FC='-Qoption ld '
  10504. lt_prog_compiler_pic_FC='-PIC'
  10505. lt_prog_compiler_static_FC='-Bstatic'
  10506. ;;
  10507. sysv4 | sysv4.2uw2* | sysv4.3*)
  10508. lt_prog_compiler_wl_FC='-Wl,'
  10509. lt_prog_compiler_pic_FC='-KPIC'
  10510. lt_prog_compiler_static_FC='-Bstatic'
  10511. ;;
  10512. sysv4*MP*)
  10513. if test -d /usr/nec ;then
  10514. lt_prog_compiler_pic_FC='-Kconform_pic'
  10515. lt_prog_compiler_static_FC='-Bstatic'
  10516. fi
  10517. ;;
  10518. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10519. lt_prog_compiler_wl_FC='-Wl,'
  10520. lt_prog_compiler_pic_FC='-KPIC'
  10521. lt_prog_compiler_static_FC='-Bstatic'
  10522. ;;
  10523. unicos*)
  10524. lt_prog_compiler_wl_FC='-Wl,'
  10525. lt_prog_compiler_can_build_shared_FC=no
  10526. ;;
  10527. uts4*)
  10528. lt_prog_compiler_pic_FC='-pic'
  10529. lt_prog_compiler_static_FC='-Bstatic'
  10530. ;;
  10531. *)
  10532. lt_prog_compiler_can_build_shared_FC=no
  10533. ;;
  10534. esac
  10535. fi
  10536. case $host_os in
  10537. # For platforms which do not support PIC, -DPIC is meaningless:
  10538. *djgpp*)
  10539. lt_prog_compiler_pic_FC=
  10540. ;;
  10541. *)
  10542. lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
  10543. ;;
  10544. esac
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
  10546. $as_echo "$lt_prog_compiler_pic_FC" >&6; }
  10547. #
  10548. # Check to make sure the PIC flag actually works.
  10549. #
  10550. if test -n "$lt_prog_compiler_pic_FC"; then
  10551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
  10552. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
  10553. if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
  10554. $as_echo_n "(cached) " >&6
  10555. else
  10556. lt_cv_prog_compiler_pic_works_FC=no
  10557. ac_outfile=conftest.$ac_objext
  10558. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10559. lt_compiler_flag="$lt_prog_compiler_pic_FC"
  10560. # Insert the option either (1) after the last *FLAGS variable, or
  10561. # (2) before a word containing "conftest.", or (3) at the end.
  10562. # Note that $ac_compile itself does not contain backslashes and begins
  10563. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10564. # The option is referenced via a variable to avoid confusing sed.
  10565. lt_compile=`echo "$ac_compile" | $SED \
  10566. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10567. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10568. -e 's:$: $lt_compiler_flag:'`
  10569. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10570. (eval "$lt_compile" 2>conftest.err)
  10571. ac_status=$?
  10572. cat conftest.err >&5
  10573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10574. if (exit $ac_status) && test -s "$ac_outfile"; then
  10575. # The compiler can only warn and ignore the option if not recognized
  10576. # So say no if there are warnings other than the usual output.
  10577. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  10578. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10579. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  10580. lt_cv_prog_compiler_pic_works_FC=yes
  10581. fi
  10582. fi
  10583. $RM conftest*
  10584. fi
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
  10586. $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
  10587. if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
  10588. case $lt_prog_compiler_pic_FC in
  10589. "" | " "*) ;;
  10590. *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
  10591. esac
  10592. else
  10593. lt_prog_compiler_pic_FC=
  10594. lt_prog_compiler_can_build_shared_FC=no
  10595. fi
  10596. fi
  10597. #
  10598. # Check to make sure the static flag actually works.
  10599. #
  10600. wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
  10601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  10602. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  10603. if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
  10604. $as_echo_n "(cached) " >&6
  10605. else
  10606. lt_cv_prog_compiler_static_works_FC=no
  10607. save_LDFLAGS="$LDFLAGS"
  10608. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  10609. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  10610. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  10611. # The linker can only warn and ignore the option if not recognized
  10612. # So say no if there are warnings
  10613. if test -s conftest.err; then
  10614. # Append any errors to the config.log.
  10615. cat conftest.err 1>&5
  10616. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  10617. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  10618. if diff conftest.exp conftest.er2 >/dev/null; then
  10619. lt_cv_prog_compiler_static_works_FC=yes
  10620. fi
  10621. else
  10622. lt_cv_prog_compiler_static_works_FC=yes
  10623. fi
  10624. fi
  10625. $RM -r conftest*
  10626. LDFLAGS="$save_LDFLAGS"
  10627. fi
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
  10629. $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
  10630. if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
  10631. :
  10632. else
  10633. lt_prog_compiler_static_FC=
  10634. fi
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10636. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10637. if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  10638. $as_echo_n "(cached) " >&6
  10639. else
  10640. lt_cv_prog_compiler_c_o_FC=no
  10641. $RM -r conftest 2>/dev/null
  10642. mkdir conftest
  10643. cd conftest
  10644. mkdir out
  10645. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10646. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10647. # Insert the option either (1) after the last *FLAGS variable, or
  10648. # (2) before a word containing "conftest.", or (3) at the end.
  10649. # Note that $ac_compile itself does not contain backslashes and begins
  10650. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10651. lt_compile=`echo "$ac_compile" | $SED \
  10652. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10653. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10654. -e 's:$: $lt_compiler_flag:'`
  10655. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10656. (eval "$lt_compile" 2>out/conftest.err)
  10657. ac_status=$?
  10658. cat out/conftest.err >&5
  10659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10660. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10661. then
  10662. # The compiler can only warn and ignore the option if not recognized
  10663. # So say no if there are warnings
  10664. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10665. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10666. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10667. lt_cv_prog_compiler_c_o_FC=yes
  10668. fi
  10669. fi
  10670. chmod u+w . 2>&5
  10671. $RM conftest*
  10672. # SGI C++ compiler will create directory out/ii_files/ for
  10673. # template instantiation
  10674. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10675. $RM out/* && rmdir out
  10676. cd ..
  10677. $RM -r conftest
  10678. $RM conftest*
  10679. fi
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10681. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  10683. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  10684. if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
  10685. $as_echo_n "(cached) " >&6
  10686. else
  10687. lt_cv_prog_compiler_c_o_FC=no
  10688. $RM -r conftest 2>/dev/null
  10689. mkdir conftest
  10690. cd conftest
  10691. mkdir out
  10692. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  10693. lt_compiler_flag="-o out/conftest2.$ac_objext"
  10694. # Insert the option either (1) after the last *FLAGS variable, or
  10695. # (2) before a word containing "conftest.", or (3) at the end.
  10696. # Note that $ac_compile itself does not contain backslashes and begins
  10697. # with a dollar sign (not a hyphen), so the echo should work correctly.
  10698. lt_compile=`echo "$ac_compile" | $SED \
  10699. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  10700. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  10701. -e 's:$: $lt_compiler_flag:'`
  10702. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  10703. (eval "$lt_compile" 2>out/conftest.err)
  10704. ac_status=$?
  10705. cat out/conftest.err >&5
  10706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10707. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  10708. then
  10709. # The compiler can only warn and ignore the option if not recognized
  10710. # So say no if there are warnings
  10711. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  10712. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  10713. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  10714. lt_cv_prog_compiler_c_o_FC=yes
  10715. fi
  10716. fi
  10717. chmod u+w . 2>&5
  10718. $RM conftest*
  10719. # SGI C++ compiler will create directory out/ii_files/ for
  10720. # template instantiation
  10721. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  10722. $RM out/* && rmdir out
  10723. cd ..
  10724. $RM -r conftest
  10725. $RM conftest*
  10726. fi
  10727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
  10728. $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
  10729. hard_links="nottested"
  10730. if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
  10731. # do not overwrite the value of need_locks provided by the user
  10732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  10733. $as_echo_n "checking if we can lock with hard links... " >&6; }
  10734. hard_links=yes
  10735. $RM conftest*
  10736. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10737. touch conftest.a
  10738. ln conftest.a conftest.b 2>&5 || hard_links=no
  10739. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  10740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  10741. $as_echo "$hard_links" >&6; }
  10742. if test "$hard_links" = no; then
  10743. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  10744. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  10745. need_locks=warn
  10746. fi
  10747. else
  10748. need_locks=no
  10749. fi
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10751. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10752. runpath_var=
  10753. allow_undefined_flag_FC=
  10754. always_export_symbols_FC=no
  10755. archive_cmds_FC=
  10756. archive_expsym_cmds_FC=
  10757. compiler_needs_object_FC=no
  10758. enable_shared_with_static_runtimes_FC=no
  10759. export_dynamic_flag_spec_FC=
  10760. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10761. hardcode_automatic_FC=no
  10762. hardcode_direct_FC=no
  10763. hardcode_direct_absolute_FC=no
  10764. hardcode_libdir_flag_spec_FC=
  10765. hardcode_libdir_flag_spec_ld_FC=
  10766. hardcode_libdir_separator_FC=
  10767. hardcode_minus_L_FC=no
  10768. hardcode_shlibpath_var_FC=unsupported
  10769. inherit_rpath_FC=no
  10770. link_all_deplibs_FC=unknown
  10771. module_cmds_FC=
  10772. module_expsym_cmds_FC=
  10773. old_archive_from_new_cmds_FC=
  10774. old_archive_from_expsyms_cmds_FC=
  10775. thread_safe_flag_spec_FC=
  10776. whole_archive_flag_spec_FC=
  10777. # include_expsyms should be a list of space-separated symbols to be *always*
  10778. # included in the symbol list
  10779. include_expsyms_FC=
  10780. # exclude_expsyms can be an extended regexp of symbols to exclude
  10781. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10782. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10783. # as well as any symbol that contains `d'.
  10784. exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  10785. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10786. # platforms (ab)use it in PIC code, but their linkers get confused if
  10787. # the symbol is explicitly referenced. Since portable code cannot
  10788. # rely on this symbol name, it's probably fine to never include it in
  10789. # preloaded symbol tables.
  10790. # Exclude shared library initialization/finalization symbols.
  10791. extract_expsyms_cmds=
  10792. case $host_os in
  10793. cygwin* | mingw* | pw32* | cegcc*)
  10794. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10795. # When not using gcc, we currently assume that we are using
  10796. # Microsoft Visual C++.
  10797. if test "$GCC" != yes; then
  10798. with_gnu_ld=no
  10799. fi
  10800. ;;
  10801. interix*)
  10802. # we just hope/assume this is gcc and not c89 (= MSVC++)
  10803. with_gnu_ld=yes
  10804. ;;
  10805. openbsd*)
  10806. with_gnu_ld=no
  10807. ;;
  10808. esac
  10809. ld_shlibs_FC=yes
  10810. # On some targets, GNU ld is compatible enough with the native linker
  10811. # that we're better off using the native interface for both.
  10812. lt_use_gnu_ld_interface=no
  10813. if test "$with_gnu_ld" = yes; then
  10814. case $host_os in
  10815. aix*)
  10816. # The AIX port of GNU ld has always aspired to compatibility
  10817. # with the native linker. However, as the warning in the GNU ld
  10818. # block says, versions before 2.19.5* couldn't really create working
  10819. # shared libraries, regardless of the interface used.
  10820. case `$LD -v 2>&1` in
  10821. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  10822. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  10823. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  10824. *)
  10825. lt_use_gnu_ld_interface=yes
  10826. ;;
  10827. esac
  10828. ;;
  10829. *)
  10830. lt_use_gnu_ld_interface=yes
  10831. ;;
  10832. esac
  10833. fi
  10834. if test "$lt_use_gnu_ld_interface" = yes; then
  10835. # If archive_cmds runs LD, not CC, wlarc should be empty
  10836. wlarc='${wl}'
  10837. # Set some defaults for GNU ld with shared library support. These
  10838. # are reset later if shared libraries are not supported. Putting them
  10839. # here allows them to be overridden if necessary.
  10840. runpath_var=LD_RUN_PATH
  10841. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  10842. export_dynamic_flag_spec_FC='${wl}--export-dynamic'
  10843. # ancient GNU ld didn't support --whole-archive et. al.
  10844. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  10845. whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10846. else
  10847. whole_archive_flag_spec_FC=
  10848. fi
  10849. supports_anon_versioning=no
  10850. case `$LD -v 2>&1` in
  10851. *GNU\ gold*) supports_anon_versioning=yes ;;
  10852. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  10853. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10854. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10855. *\ 2.11.*) ;; # other 2.11 versions
  10856. *) supports_anon_versioning=yes ;;
  10857. esac
  10858. # See if GNU ld supports shared libraries.
  10859. case $host_os in
  10860. aix[3-9]*)
  10861. # On AIX/PPC, the GNU linker is very broken
  10862. if test "$host_cpu" != ia64; then
  10863. ld_shlibs_FC=no
  10864. cat <<_LT_EOF 1>&2
  10865. *** Warning: the GNU linker, at least up to release 2.19, is reported
  10866. *** to be unable to reliably create shared libraries on AIX.
  10867. *** Therefore, libtool is disabling shared libraries support. If you
  10868. *** really care for shared libraries, you may want to install binutils
  10869. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  10870. *** You will then need to restart the configuration process.
  10871. _LT_EOF
  10872. fi
  10873. ;;
  10874. amigaos*)
  10875. case $host_cpu in
  10876. powerpc)
  10877. # see comment about AmigaOS4 .so support
  10878. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10879. archive_expsym_cmds_FC=''
  10880. ;;
  10881. m68k)
  10882. 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)'
  10883. hardcode_libdir_flag_spec_FC='-L$libdir'
  10884. hardcode_minus_L_FC=yes
  10885. ;;
  10886. esac
  10887. ;;
  10888. beos*)
  10889. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10890. allow_undefined_flag_FC=unsupported
  10891. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10892. # support --undefined. This deserves some investigation. FIXME
  10893. archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10894. else
  10895. ld_shlibs_FC=no
  10896. fi
  10897. ;;
  10898. cygwin* | mingw* | pw32* | cegcc*)
  10899. # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
  10900. # as there is no search path for DLLs.
  10901. hardcode_libdir_flag_spec_FC='-L$libdir'
  10902. export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
  10903. allow_undefined_flag_FC=unsupported
  10904. always_export_symbols_FC=no
  10905. enable_shared_with_static_runtimes_FC=yes
  10906. export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  10907. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10908. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10909. # If the export-symbols file already is a .def file (1st line
  10910. # is EXPORTS), use it as is; otherwise, prepend...
  10911. archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10912. cp $export_symbols $output_objdir/$soname.def;
  10913. else
  10914. echo EXPORTS > $output_objdir/$soname.def;
  10915. cat $export_symbols >> $output_objdir/$soname.def;
  10916. fi~
  10917. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10918. else
  10919. ld_shlibs_FC=no
  10920. fi
  10921. ;;
  10922. haiku*)
  10923. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10924. link_all_deplibs_FC=yes
  10925. ;;
  10926. interix[3-9]*)
  10927. hardcode_direct_FC=no
  10928. hardcode_shlibpath_var_FC=no
  10929. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  10930. export_dynamic_flag_spec_FC='${wl}-E'
  10931. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10932. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10933. # default) and relocated if they conflict, which is a slow very memory
  10934. # consuming and fragmenting process. To avoid this, we pick a random,
  10935. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10936. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10937. 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'
  10938. 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'
  10939. ;;
  10940. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  10941. tmp_diet=no
  10942. if test "$host_os" = linux-dietlibc; then
  10943. case $cc_basename in
  10944. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  10945. esac
  10946. fi
  10947. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  10948. && test "$tmp_diet" = no
  10949. then
  10950. tmp_addflag=' $pic_flag'
  10951. tmp_sharedflag='-shared'
  10952. case $cc_basename,$host_cpu in
  10953. pgcc*) # Portland Group C compiler
  10954. 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'
  10955. tmp_addflag=' $pic_flag'
  10956. ;;
  10957. pgf77* | pgf90* | pgf95* | pgfortran*)
  10958. # Portland Group f77 and f90 compilers
  10959. 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'
  10960. tmp_addflag=' $pic_flag -Mnomain' ;;
  10961. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  10962. tmp_addflag=' -i_dynamic' ;;
  10963. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  10964. tmp_addflag=' -i_dynamic -nofor_main' ;;
  10965. ifc* | ifort*) # Intel Fortran compiler
  10966. tmp_addflag=' -nofor_main' ;;
  10967. lf95*) # Lahey Fortran 8.1
  10968. whole_archive_flag_spec_FC=
  10969. tmp_sharedflag='--shared' ;;
  10970. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  10971. tmp_sharedflag='-qmkshrobj'
  10972. tmp_addflag= ;;
  10973. nvcc*) # Cuda Compiler Driver 2.2
  10974. 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'
  10975. compiler_needs_object_FC=yes
  10976. ;;
  10977. esac
  10978. case `$CC -V 2>&1 | sed 5q` in
  10979. *Sun\ C*) # Sun C 5.9
  10980. 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'
  10981. compiler_needs_object_FC=yes
  10982. tmp_sharedflag='-G' ;;
  10983. *Sun\ F*) # Sun Fortran 8.3
  10984. tmp_sharedflag='-G' ;;
  10985. esac
  10986. archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10987. if test "x$supports_anon_versioning" = xyes; then
  10988. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  10989. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10990. echo "local: *; };" >> $output_objdir/$libname.ver~
  10991. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10992. fi
  10993. case $cc_basename in
  10994. xlf* | bgf* | bgxlf* | mpixlf*)
  10995. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  10996. whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
  10997. hardcode_libdir_flag_spec_FC=
  10998. hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
  10999. archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  11000. if test "x$supports_anon_versioning" = xyes; then
  11001. archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
  11002. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11003. echo "local: *; };" >> $output_objdir/$libname.ver~
  11004. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  11005. fi
  11006. ;;
  11007. esac
  11008. else
  11009. ld_shlibs_FC=no
  11010. fi
  11011. ;;
  11012. netbsd*)
  11013. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11014. archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11015. wlarc=
  11016. else
  11017. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11018. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11019. fi
  11020. ;;
  11021. solaris*)
  11022. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  11023. ld_shlibs_FC=no
  11024. cat <<_LT_EOF 1>&2
  11025. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11026. *** create shared libraries on Solaris systems. Therefore, libtool
  11027. *** is disabling shared libraries support. We urge you to upgrade GNU
  11028. *** binutils to release 2.9.1 or newer. Another option is to modify
  11029. *** your PATH or compiler configuration so that the native linker is
  11030. *** used, and then restart.
  11031. _LT_EOF
  11032. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11033. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11034. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11035. else
  11036. ld_shlibs_FC=no
  11037. fi
  11038. ;;
  11039. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11040. case `$LD -v 2>&1` in
  11041. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  11042. ld_shlibs_FC=no
  11043. cat <<_LT_EOF 1>&2
  11044. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11045. *** reliably create shared libraries on SCO systems. Therefore, libtool
  11046. *** is disabling shared libraries support. We urge you to upgrade GNU
  11047. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11048. *** your PATH or compiler configuration so that the native linker is
  11049. *** used, and then restart.
  11050. _LT_EOF
  11051. ;;
  11052. *)
  11053. # For security reasons, it is highly recommended that you always
  11054. # use absolute paths for naming shared libraries, and exclude the
  11055. # DT_RUNPATH tag from executables and libraries. But doing so
  11056. # requires that you compile everything twice, which is a pain.
  11057. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11058. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11059. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11060. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11061. else
  11062. ld_shlibs_FC=no
  11063. fi
  11064. ;;
  11065. esac
  11066. ;;
  11067. sunos4*)
  11068. archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11069. wlarc=
  11070. hardcode_direct_FC=yes
  11071. hardcode_shlibpath_var_FC=no
  11072. ;;
  11073. *)
  11074. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11075. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11076. archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11077. else
  11078. ld_shlibs_FC=no
  11079. fi
  11080. ;;
  11081. esac
  11082. if test "$ld_shlibs_FC" = no; then
  11083. runpath_var=
  11084. hardcode_libdir_flag_spec_FC=
  11085. export_dynamic_flag_spec_FC=
  11086. whole_archive_flag_spec_FC=
  11087. fi
  11088. else
  11089. # PORTME fill in a description of your system's linker (not GNU ld)
  11090. case $host_os in
  11091. aix3*)
  11092. allow_undefined_flag_FC=unsupported
  11093. always_export_symbols_FC=yes
  11094. 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'
  11095. # Note: this linker hardcodes the directories in LIBPATH if there
  11096. # are no directories specified by -L.
  11097. hardcode_minus_L_FC=yes
  11098. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11099. # Neither direct hardcoding nor static linking is supported with a
  11100. # broken collect2.
  11101. hardcode_direct_FC=unsupported
  11102. fi
  11103. ;;
  11104. aix[4-9]*)
  11105. if test "$host_cpu" = ia64; then
  11106. # On IA64, the linker does run time linking by default, so we don't
  11107. # have to do anything special.
  11108. aix_use_runtimelinking=no
  11109. exp_sym_flag='-Bexport'
  11110. no_entry_flag=""
  11111. else
  11112. # If we're using GNU nm, then we don't want the "-C" option.
  11113. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11114. # Also, AIX nm treats weak defined symbols like other global
  11115. # defined symbols, whereas GNU nm marks them as "W".
  11116. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11117. 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'
  11118. else
  11119. export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11120. fi
  11121. aix_use_runtimelinking=no
  11122. # Test if we are trying to use run time linking or normal
  11123. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11124. # need to do runtime linking.
  11125. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11126. for ld_flag in $LDFLAGS; do
  11127. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11128. aix_use_runtimelinking=yes
  11129. break
  11130. fi
  11131. done
  11132. ;;
  11133. esac
  11134. exp_sym_flag='-bexport'
  11135. no_entry_flag='-bnoentry'
  11136. fi
  11137. # When large executables or shared objects are built, AIX ld can
  11138. # have problems creating the table of contents. If linking a library
  11139. # or program results in "error TOC overflow" add -mminimal-toc to
  11140. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11141. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11142. archive_cmds_FC=''
  11143. hardcode_direct_FC=yes
  11144. hardcode_direct_absolute_FC=yes
  11145. hardcode_libdir_separator_FC=':'
  11146. link_all_deplibs_FC=yes
  11147. file_list_spec_FC='${wl}-f,'
  11148. if test "$GCC" = yes; then
  11149. case $host_os in aix4.[012]|aix4.[012].*)
  11150. # We only want to do this on AIX 4.2 and lower, the check
  11151. # below for broken collect2 doesn't work under 4.3+
  11152. collect2name=`${CC} -print-prog-name=collect2`
  11153. if test -f "$collect2name" &&
  11154. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11155. then
  11156. # We have reworked collect2
  11157. :
  11158. else
  11159. # We have old collect2
  11160. hardcode_direct_FC=unsupported
  11161. # It fails to find uninstalled libraries when the uninstalled
  11162. # path is not listed in the libpath. Setting hardcode_minus_L
  11163. # to unsupported forces relinking
  11164. hardcode_minus_L_FC=yes
  11165. hardcode_libdir_flag_spec_FC='-L$libdir'
  11166. hardcode_libdir_separator_FC=
  11167. fi
  11168. ;;
  11169. esac
  11170. shared_flag='-shared'
  11171. if test "$aix_use_runtimelinking" = yes; then
  11172. shared_flag="$shared_flag "'${wl}-G'
  11173. fi
  11174. else
  11175. # not using gcc
  11176. if test "$host_cpu" = ia64; then
  11177. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11178. # chokes on -Wl,-G. The following line is correct:
  11179. shared_flag='-G'
  11180. else
  11181. if test "$aix_use_runtimelinking" = yes; then
  11182. shared_flag='${wl}-G'
  11183. else
  11184. shared_flag='${wl}-bM:SRE'
  11185. fi
  11186. fi
  11187. fi
  11188. export_dynamic_flag_spec_FC='${wl}-bexpall'
  11189. # It seems that -bexpall does not export symbols beginning with
  11190. # underscore (_), so it is better to generate a list of symbols to export.
  11191. always_export_symbols_FC=yes
  11192. if test "$aix_use_runtimelinking" = yes; then
  11193. # Warning - without using the other runtime loading flags (-brtl),
  11194. # -berok will link without error, but may produce a broken library.
  11195. allow_undefined_flag_FC='-berok'
  11196. # Determine the default libpath from the value encoded in an
  11197. # empty executable.
  11198. cat > conftest.$ac_ext <<_ACEOF
  11199. program main
  11200. end
  11201. _ACEOF
  11202. if ac_fn_fc_try_link "$LINENO"; then :
  11203. lt_aix_libpath_sed='
  11204. /Import File Strings/,/^$/ {
  11205. /^0/ {
  11206. s/^0 *\(.*\)$/\1/
  11207. p
  11208. }
  11209. }'
  11210. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11211. # Check for a 64-bit object if we didn't find anything.
  11212. if test -z "$aix_libpath"; then
  11213. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11214. fi
  11215. fi
  11216. rm -f core conftest.err conftest.$ac_objext \
  11217. conftest$ac_exeext conftest.$ac_ext
  11218. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11219. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11220. 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"
  11221. else
  11222. if test "$host_cpu" = ia64; then
  11223. hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
  11224. allow_undefined_flag_FC="-z nodefs"
  11225. 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"
  11226. else
  11227. # Determine the default libpath from the value encoded in an
  11228. # empty executable.
  11229. cat > conftest.$ac_ext <<_ACEOF
  11230. program main
  11231. end
  11232. _ACEOF
  11233. if ac_fn_fc_try_link "$LINENO"; then :
  11234. lt_aix_libpath_sed='
  11235. /Import File Strings/,/^$/ {
  11236. /^0/ {
  11237. s/^0 *\(.*\)$/\1/
  11238. p
  11239. }
  11240. }'
  11241. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11242. # Check for a 64-bit object if we didn't find anything.
  11243. if test -z "$aix_libpath"; then
  11244. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11245. fi
  11246. fi
  11247. rm -f core conftest.err conftest.$ac_objext \
  11248. conftest$ac_exeext conftest.$ac_ext
  11249. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11250. hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
  11251. # Warning - without using the other run time loading flags,
  11252. # -berok will link without error, but may produce a broken library.
  11253. no_undefined_flag_FC=' ${wl}-bernotok'
  11254. allow_undefined_flag_FC=' ${wl}-berok'
  11255. if test "$with_gnu_ld" = yes; then
  11256. # We only use this code for GNU lds that support --whole-archive.
  11257. whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11258. else
  11259. # Exported symbols can be pulled into shared objects from archives
  11260. whole_archive_flag_spec_FC='$convenience'
  11261. fi
  11262. archive_cmds_need_lc_FC=yes
  11263. # This is similar to how AIX traditionally builds its shared libraries.
  11264. 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'
  11265. fi
  11266. fi
  11267. ;;
  11268. amigaos*)
  11269. case $host_cpu in
  11270. powerpc)
  11271. # see comment about AmigaOS4 .so support
  11272. archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11273. archive_expsym_cmds_FC=''
  11274. ;;
  11275. m68k)
  11276. 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)'
  11277. hardcode_libdir_flag_spec_FC='-L$libdir'
  11278. hardcode_minus_L_FC=yes
  11279. ;;
  11280. esac
  11281. ;;
  11282. bsdi[45]*)
  11283. export_dynamic_flag_spec_FC=-rdynamic
  11284. ;;
  11285. cygwin* | mingw* | pw32* | cegcc*)
  11286. # When not using gcc, we currently assume that we are using
  11287. # Microsoft Visual C++.
  11288. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11289. # no search path for DLLs.
  11290. hardcode_libdir_flag_spec_FC=' '
  11291. allow_undefined_flag_FC=unsupported
  11292. # Tell ltmain to make .lib files, not .a files.
  11293. libext=lib
  11294. # Tell ltmain to make .dll files, not .so files.
  11295. shrext_cmds=".dll"
  11296. # FIXME: Setting linknames here is a bad hack.
  11297. archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  11298. # The linker will automatically build a .lib file if we build a DLL.
  11299. old_archive_from_new_cmds_FC='true'
  11300. # FIXME: Should let the user specify the lib program.
  11301. old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
  11302. fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
  11303. enable_shared_with_static_runtimes_FC=yes
  11304. ;;
  11305. darwin* | rhapsody*)
  11306. archive_cmds_need_lc_FC=no
  11307. hardcode_direct_FC=no
  11308. hardcode_automatic_FC=yes
  11309. hardcode_shlibpath_var_FC=unsupported
  11310. if test "$lt_cv_ld_force_load" = "yes"; then
  11311. 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\"`'
  11312. else
  11313. whole_archive_flag_spec_FC=''
  11314. fi
  11315. link_all_deplibs_FC=yes
  11316. allow_undefined_flag_FC="$_lt_dar_allow_undefined"
  11317. case $cc_basename in
  11318. ifort*) _lt_dar_can_shared=yes ;;
  11319. *) _lt_dar_can_shared=$GCC ;;
  11320. esac
  11321. if test "$_lt_dar_can_shared" = "yes"; then
  11322. output_verbose_link_cmd=func_echo_all
  11323. 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}"
  11324. module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11325. 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}"
  11326. 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}"
  11327. else
  11328. ld_shlibs_FC=no
  11329. fi
  11330. ;;
  11331. dgux*)
  11332. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11333. hardcode_libdir_flag_spec_FC='-L$libdir'
  11334. hardcode_shlibpath_var_FC=no
  11335. ;;
  11336. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11337. # support. Future versions do this automatically, but an explicit c++rt0.o
  11338. # does not break anything, and helps significantly (at the cost of a little
  11339. # extra space).
  11340. freebsd2.2*)
  11341. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11342. hardcode_libdir_flag_spec_FC='-R$libdir'
  11343. hardcode_direct_FC=yes
  11344. hardcode_shlibpath_var_FC=no
  11345. ;;
  11346. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11347. freebsd2.*)
  11348. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11349. hardcode_direct_FC=yes
  11350. hardcode_minus_L_FC=yes
  11351. hardcode_shlibpath_var_FC=no
  11352. ;;
  11353. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11354. freebsd* | dragonfly*)
  11355. archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11356. hardcode_libdir_flag_spec_FC='-R$libdir'
  11357. hardcode_direct_FC=yes
  11358. hardcode_shlibpath_var_FC=no
  11359. ;;
  11360. hpux9*)
  11361. if test "$GCC" = yes; then
  11362. 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'
  11363. else
  11364. 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'
  11365. fi
  11366. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11367. hardcode_libdir_separator_FC=:
  11368. hardcode_direct_FC=yes
  11369. # hardcode_minus_L: Not really in the search PATH,
  11370. # but as the default location of the library.
  11371. hardcode_minus_L_FC=yes
  11372. export_dynamic_flag_spec_FC='${wl}-E'
  11373. ;;
  11374. hpux10*)
  11375. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11376. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11377. else
  11378. archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11379. fi
  11380. if test "$with_gnu_ld" = no; then
  11381. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11382. hardcode_libdir_flag_spec_ld_FC='+b $libdir'
  11383. hardcode_libdir_separator_FC=:
  11384. hardcode_direct_FC=yes
  11385. hardcode_direct_absolute_FC=yes
  11386. export_dynamic_flag_spec_FC='${wl}-E'
  11387. # hardcode_minus_L: Not really in the search PATH,
  11388. # but as the default location of the library.
  11389. hardcode_minus_L_FC=yes
  11390. fi
  11391. ;;
  11392. hpux11*)
  11393. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  11394. case $host_cpu in
  11395. hppa*64*)
  11396. archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11397. ;;
  11398. ia64*)
  11399. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11400. ;;
  11401. *)
  11402. archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11403. ;;
  11404. esac
  11405. else
  11406. case $host_cpu in
  11407. hppa*64*)
  11408. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11409. ;;
  11410. ia64*)
  11411. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11412. ;;
  11413. *)
  11414. archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11415. ;;
  11416. esac
  11417. fi
  11418. if test "$with_gnu_ld" = no; then
  11419. hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
  11420. hardcode_libdir_separator_FC=:
  11421. case $host_cpu in
  11422. hppa*64*|ia64*)
  11423. hardcode_direct_FC=no
  11424. hardcode_shlibpath_var_FC=no
  11425. ;;
  11426. *)
  11427. hardcode_direct_FC=yes
  11428. hardcode_direct_absolute_FC=yes
  11429. export_dynamic_flag_spec_FC='${wl}-E'
  11430. # hardcode_minus_L: Not really in the search PATH,
  11431. # but as the default location of the library.
  11432. hardcode_minus_L_FC=yes
  11433. ;;
  11434. esac
  11435. fi
  11436. ;;
  11437. irix5* | irix6* | nonstopux*)
  11438. if test "$GCC" = yes; then
  11439. 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'
  11440. # Try to use the -exported_symbol ld option, if it does not
  11441. # work, assume that -exports_file does not work either and
  11442. # implicitly export all symbols.
  11443. save_LDFLAGS="$LDFLAGS"
  11444. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  11445. cat > conftest.$ac_ext <<_ACEOF
  11446. int foo(void) {}
  11447. _ACEOF
  11448. if ac_fn_fc_try_link "$LINENO"; then :
  11449. 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'
  11450. fi
  11451. rm -f core conftest.err conftest.$ac_objext \
  11452. conftest$ac_exeext conftest.$ac_ext
  11453. LDFLAGS="$save_LDFLAGS"
  11454. else
  11455. 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'
  11456. 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'
  11457. fi
  11458. archive_cmds_need_lc_FC='no'
  11459. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11460. hardcode_libdir_separator_FC=:
  11461. inherit_rpath_FC=yes
  11462. link_all_deplibs_FC=yes
  11463. ;;
  11464. netbsd*)
  11465. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11466. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11467. else
  11468. archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11469. fi
  11470. hardcode_libdir_flag_spec_FC='-R$libdir'
  11471. hardcode_direct_FC=yes
  11472. hardcode_shlibpath_var_FC=no
  11473. ;;
  11474. newsos6)
  11475. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11476. hardcode_direct_FC=yes
  11477. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11478. hardcode_libdir_separator_FC=:
  11479. hardcode_shlibpath_var_FC=no
  11480. ;;
  11481. *nto* | *qnx*)
  11482. ;;
  11483. openbsd*)
  11484. if test -f /usr/libexec/ld.so; then
  11485. hardcode_direct_FC=yes
  11486. hardcode_shlibpath_var_FC=no
  11487. hardcode_direct_absolute_FC=yes
  11488. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11489. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11490. archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11491. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11492. export_dynamic_flag_spec_FC='${wl}-E'
  11493. else
  11494. case $host_os in
  11495. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  11496. archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11497. hardcode_libdir_flag_spec_FC='-R$libdir'
  11498. ;;
  11499. *)
  11500. archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11501. hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
  11502. ;;
  11503. esac
  11504. fi
  11505. else
  11506. ld_shlibs_FC=no
  11507. fi
  11508. ;;
  11509. os2*)
  11510. hardcode_libdir_flag_spec_FC='-L$libdir'
  11511. hardcode_minus_L_FC=yes
  11512. allow_undefined_flag_FC=unsupported
  11513. 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'
  11514. old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11515. ;;
  11516. osf3*)
  11517. if test "$GCC" = yes; then
  11518. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11519. 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'
  11520. else
  11521. allow_undefined_flag_FC=' -expect_unresolved \*'
  11522. 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'
  11523. fi
  11524. archive_cmds_need_lc_FC='no'
  11525. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11526. hardcode_libdir_separator_FC=:
  11527. ;;
  11528. osf4* | osf5*) # as osf3* with the addition of -msym flag
  11529. if test "$GCC" = yes; then
  11530. allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
  11531. 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'
  11532. hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
  11533. else
  11534. allow_undefined_flag_FC=' -expect_unresolved \*'
  11535. 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'
  11536. 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~
  11537. $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'
  11538. # Both c and cxx compiler support -rpath directly
  11539. hardcode_libdir_flag_spec_FC='-rpath $libdir'
  11540. fi
  11541. archive_cmds_need_lc_FC='no'
  11542. hardcode_libdir_separator_FC=:
  11543. ;;
  11544. solaris*)
  11545. no_undefined_flag_FC=' -z defs'
  11546. if test "$GCC" = yes; then
  11547. wlarc='${wl}'
  11548. archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11549. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11550. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11551. else
  11552. case `$CC -V 2>&1` in
  11553. *"Compilers 5.0"*)
  11554. wlarc=''
  11555. archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11556. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11557. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  11558. ;;
  11559. *)
  11560. wlarc='${wl}'
  11561. archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11562. archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11563. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  11564. ;;
  11565. esac
  11566. fi
  11567. hardcode_libdir_flag_spec_FC='-R$libdir'
  11568. hardcode_shlibpath_var_FC=no
  11569. case $host_os in
  11570. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11571. *)
  11572. # The compiler driver will combine and reorder linker options,
  11573. # but understands `-z linker_flag'. GCC discards it without `$wl',
  11574. # but is careful enough not to reorder.
  11575. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11576. if test "$GCC" = yes; then
  11577. whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11578. else
  11579. whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
  11580. fi
  11581. ;;
  11582. esac
  11583. link_all_deplibs_FC=yes
  11584. ;;
  11585. sunos4*)
  11586. if test "x$host_vendor" = xsequent; then
  11587. # Use $CC to link under sequent, because it throws in some extra .o
  11588. # files that make .init and .fini sections work.
  11589. archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11590. else
  11591. archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11592. fi
  11593. hardcode_libdir_flag_spec_FC='-L$libdir'
  11594. hardcode_direct_FC=yes
  11595. hardcode_minus_L_FC=yes
  11596. hardcode_shlibpath_var_FC=no
  11597. ;;
  11598. sysv4)
  11599. case $host_vendor in
  11600. sni)
  11601. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11602. hardcode_direct_FC=yes # is this really true???
  11603. ;;
  11604. siemens)
  11605. ## LD is ld it makes a PLAMLIB
  11606. ## CC just makes a GrossModule.
  11607. archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11608. reload_cmds_FC='$CC -r -o $output$reload_objs'
  11609. hardcode_direct_FC=no
  11610. ;;
  11611. motorola)
  11612. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11613. hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
  11614. ;;
  11615. esac
  11616. runpath_var='LD_RUN_PATH'
  11617. hardcode_shlibpath_var_FC=no
  11618. ;;
  11619. sysv4.3*)
  11620. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11621. hardcode_shlibpath_var_FC=no
  11622. export_dynamic_flag_spec_FC='-Bexport'
  11623. ;;
  11624. sysv4*MP*)
  11625. if test -d /usr/nec; then
  11626. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11627. hardcode_shlibpath_var_FC=no
  11628. runpath_var=LD_RUN_PATH
  11629. hardcode_runpath_var=yes
  11630. ld_shlibs_FC=yes
  11631. fi
  11632. ;;
  11633. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11634. no_undefined_flag_FC='${wl}-z,text'
  11635. archive_cmds_need_lc_FC=no
  11636. hardcode_shlibpath_var_FC=no
  11637. runpath_var='LD_RUN_PATH'
  11638. if test "$GCC" = yes; then
  11639. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11640. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11641. else
  11642. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11643. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11644. fi
  11645. ;;
  11646. sysv5* | sco3.2v5* | sco5v6*)
  11647. # Note: We can NOT use -z defs as we might desire, because we do not
  11648. # link with -lc, and that would cause any symbols used from libc to
  11649. # always be unresolved, which means just about no library would
  11650. # ever link correctly. If we're not using GNU ld we use -z text
  11651. # though, which does catch some bad symbols but isn't as heavy-handed
  11652. # as -z defs.
  11653. no_undefined_flag_FC='${wl}-z,text'
  11654. allow_undefined_flag_FC='${wl}-z,nodefs'
  11655. archive_cmds_need_lc_FC=no
  11656. hardcode_shlibpath_var_FC=no
  11657. hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
  11658. hardcode_libdir_separator_FC=':'
  11659. link_all_deplibs_FC=yes
  11660. export_dynamic_flag_spec_FC='${wl}-Bexport'
  11661. runpath_var='LD_RUN_PATH'
  11662. if test "$GCC" = yes; then
  11663. archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11664. archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11665. else
  11666. archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11667. archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11668. fi
  11669. ;;
  11670. uts4*)
  11671. archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11672. hardcode_libdir_flag_spec_FC='-L$libdir'
  11673. hardcode_shlibpath_var_FC=no
  11674. ;;
  11675. *)
  11676. ld_shlibs_FC=no
  11677. ;;
  11678. esac
  11679. if test x$host_vendor = xsni; then
  11680. case $host in
  11681. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11682. export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
  11683. ;;
  11684. esac
  11685. fi
  11686. fi
  11687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
  11688. $as_echo "$ld_shlibs_FC" >&6; }
  11689. test "$ld_shlibs_FC" = no && can_build_shared=no
  11690. with_gnu_ld_FC=$with_gnu_ld
  11691. #
  11692. # Do we need to explicitly link libc?
  11693. #
  11694. case "x$archive_cmds_need_lc_FC" in
  11695. x|xyes)
  11696. # Assume -lc should be added
  11697. archive_cmds_need_lc_FC=yes
  11698. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11699. case $archive_cmds_FC in
  11700. *'~'*)
  11701. # FIXME: we may have to deal with multi-command sequences.
  11702. ;;
  11703. '$CC '*)
  11704. # Test whether the compiler implicitly links with -lc since on some
  11705. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11706. # to ld, don't add -lc before -lgcc.
  11707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11708. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11709. if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
  11710. $as_echo_n "(cached) " >&6
  11711. else
  11712. $RM conftest*
  11713. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11714. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11715. (eval $ac_compile) 2>&5
  11716. ac_status=$?
  11717. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11718. test $ac_status = 0; } 2>conftest.err; then
  11719. soname=conftest
  11720. lib=conftest
  11721. libobjs=conftest.$ac_objext
  11722. deplibs=
  11723. wl=$lt_prog_compiler_wl_FC
  11724. pic_flag=$lt_prog_compiler_pic_FC
  11725. compiler_flags=-v
  11726. linker_flags=-v
  11727. verstring=
  11728. output_objdir=.
  11729. libname=conftest
  11730. lt_save_allow_undefined_flag=$allow_undefined_flag_FC
  11731. allow_undefined_flag_FC=
  11732. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11733. (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11734. ac_status=$?
  11735. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11736. test $ac_status = 0; }
  11737. then
  11738. lt_cv_archive_cmds_need_lc_FC=no
  11739. else
  11740. lt_cv_archive_cmds_need_lc_FC=yes
  11741. fi
  11742. allow_undefined_flag_FC=$lt_save_allow_undefined_flag
  11743. else
  11744. cat conftest.err 1>&5
  11745. fi
  11746. $RM conftest*
  11747. fi
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
  11749. $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
  11750. archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
  11751. ;;
  11752. esac
  11753. fi
  11754. ;;
  11755. esac
  11756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11757. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11758. library_names_spec=
  11759. libname_spec='lib$name'
  11760. soname_spec=
  11761. shrext_cmds=".so"
  11762. postinstall_cmds=
  11763. postuninstall_cmds=
  11764. finish_cmds=
  11765. finish_eval=
  11766. shlibpath_var=
  11767. shlibpath_overrides_runpath=unknown
  11768. version_type=none
  11769. dynamic_linker="$host_os ld.so"
  11770. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11771. need_lib_prefix=unknown
  11772. hardcode_into_libs=no
  11773. # when you set need_version to no, make sure it does not cause -set_version
  11774. # flags to be left without arguments
  11775. need_version=unknown
  11776. case $host_os in
  11777. aix3*)
  11778. version_type=linux
  11779. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11780. shlibpath_var=LIBPATH
  11781. # AIX 3 has no versioning support, so we append a major version to the name.
  11782. soname_spec='${libname}${release}${shared_ext}$major'
  11783. ;;
  11784. aix[4-9]*)
  11785. version_type=linux
  11786. need_lib_prefix=no
  11787. need_version=no
  11788. hardcode_into_libs=yes
  11789. if test "$host_cpu" = ia64; then
  11790. # AIX 5 supports IA64
  11791. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11792. shlibpath_var=LD_LIBRARY_PATH
  11793. else
  11794. # With GCC up to 2.95.x, collect2 would create an import file
  11795. # for dependence libraries. The import file would start with
  11796. # the line `#! .'. This would cause the generated library to
  11797. # depend on `.', always an invalid library. This was fixed in
  11798. # development snapshots of GCC prior to 3.0.
  11799. case $host_os in
  11800. aix4 | aix4.[01] | aix4.[01].*)
  11801. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11802. echo ' yes '
  11803. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11804. :
  11805. else
  11806. can_build_shared=no
  11807. fi
  11808. ;;
  11809. esac
  11810. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11811. # soname into executable. Probably we can add versioning support to
  11812. # collect2, so additional links can be useful in future.
  11813. if test "$aix_use_runtimelinking" = yes; then
  11814. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11815. # instead of lib<name>.a to let people know that these are not
  11816. # typical AIX shared libraries.
  11817. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11818. else
  11819. # We preserve .a as extension for shared libraries through AIX4.2
  11820. # and later when we are not doing run time linking.
  11821. library_names_spec='${libname}${release}.a $libname.a'
  11822. soname_spec='${libname}${release}${shared_ext}$major'
  11823. fi
  11824. shlibpath_var=LIBPATH
  11825. fi
  11826. ;;
  11827. amigaos*)
  11828. case $host_cpu in
  11829. powerpc)
  11830. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11831. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11833. ;;
  11834. m68k)
  11835. library_names_spec='$libname.ixlibrary $libname.a'
  11836. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11837. 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'
  11838. ;;
  11839. esac
  11840. ;;
  11841. beos*)
  11842. library_names_spec='${libname}${shared_ext}'
  11843. dynamic_linker="$host_os ld.so"
  11844. shlibpath_var=LIBRARY_PATH
  11845. ;;
  11846. bsdi[45]*)
  11847. version_type=linux
  11848. need_version=no
  11849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11850. soname_spec='${libname}${release}${shared_ext}$major'
  11851. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11852. shlibpath_var=LD_LIBRARY_PATH
  11853. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11854. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11855. # the default ld.so.conf also contains /usr/contrib/lib and
  11856. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11857. # libtool to hard-code these into programs
  11858. ;;
  11859. cygwin* | mingw* | pw32* | cegcc*)
  11860. version_type=windows
  11861. shrext_cmds=".dll"
  11862. need_version=no
  11863. need_lib_prefix=no
  11864. case $GCC,$host_os in
  11865. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11866. library_names_spec='$libname.dll.a'
  11867. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11868. postinstall_cmds='base_file=`basename \${file}`~
  11869. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11870. dldir=$destdir/`dirname \$dlpath`~
  11871. test -d \$dldir || mkdir -p \$dldir~
  11872. $install_prog $dir/$dlname \$dldir/$dlname~
  11873. chmod a+x \$dldir/$dlname~
  11874. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11875. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11876. fi'
  11877. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11878. dlpath=$dir/\$dldll~
  11879. $RM \$dlpath'
  11880. shlibpath_overrides_runpath=yes
  11881. case $host_os in
  11882. cygwin*)
  11883. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11884. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11885. ;;
  11886. mingw* | cegcc*)
  11887. # MinGW DLLs use traditional 'lib' prefix
  11888. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11889. ;;
  11890. pw32*)
  11891. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11892. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11893. ;;
  11894. esac
  11895. ;;
  11896. *)
  11897. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11898. ;;
  11899. esac
  11900. dynamic_linker='Win32 ld.exe'
  11901. # FIXME: first we should search . and the directory the executable is in
  11902. shlibpath_var=PATH
  11903. ;;
  11904. darwin* | rhapsody*)
  11905. dynamic_linker="$host_os dyld"
  11906. version_type=darwin
  11907. need_lib_prefix=no
  11908. need_version=no
  11909. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11910. soname_spec='${libname}${release}${major}$shared_ext'
  11911. shlibpath_overrides_runpath=yes
  11912. shlibpath_var=DYLD_LIBRARY_PATH
  11913. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11914. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11915. ;;
  11916. dgux*)
  11917. version_type=linux
  11918. need_lib_prefix=no
  11919. need_version=no
  11920. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11921. soname_spec='${libname}${release}${shared_ext}$major'
  11922. shlibpath_var=LD_LIBRARY_PATH
  11923. ;;
  11924. freebsd* | dragonfly*)
  11925. # DragonFly does not have aout. When/if they implement a new
  11926. # versioning mechanism, adjust this.
  11927. if test -x /usr/bin/objformat; then
  11928. objformat=`/usr/bin/objformat`
  11929. else
  11930. case $host_os in
  11931. freebsd[23].*) objformat=aout ;;
  11932. *) objformat=elf ;;
  11933. esac
  11934. fi
  11935. version_type=freebsd-$objformat
  11936. case $version_type in
  11937. freebsd-elf*)
  11938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11939. need_version=no
  11940. need_lib_prefix=no
  11941. ;;
  11942. freebsd-*)
  11943. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11944. need_version=yes
  11945. ;;
  11946. esac
  11947. shlibpath_var=LD_LIBRARY_PATH
  11948. case $host_os in
  11949. freebsd2.*)
  11950. shlibpath_overrides_runpath=yes
  11951. ;;
  11952. freebsd3.[01]* | freebsdelf3.[01]*)
  11953. shlibpath_overrides_runpath=yes
  11954. hardcode_into_libs=yes
  11955. ;;
  11956. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11957. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11958. shlibpath_overrides_runpath=no
  11959. hardcode_into_libs=yes
  11960. ;;
  11961. *) # from 4.6 on, and DragonFly
  11962. shlibpath_overrides_runpath=yes
  11963. hardcode_into_libs=yes
  11964. ;;
  11965. esac
  11966. ;;
  11967. gnu*)
  11968. version_type=linux
  11969. need_lib_prefix=no
  11970. need_version=no
  11971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11972. soname_spec='${libname}${release}${shared_ext}$major'
  11973. shlibpath_var=LD_LIBRARY_PATH
  11974. hardcode_into_libs=yes
  11975. ;;
  11976. haiku*)
  11977. version_type=linux
  11978. need_lib_prefix=no
  11979. need_version=no
  11980. dynamic_linker="$host_os runtime_loader"
  11981. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11982. soname_spec='${libname}${release}${shared_ext}$major'
  11983. shlibpath_var=LIBRARY_PATH
  11984. shlibpath_overrides_runpath=yes
  11985. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  11986. hardcode_into_libs=yes
  11987. ;;
  11988. hpux9* | hpux10* | hpux11*)
  11989. # Give a soname corresponding to the major version so that dld.sl refuses to
  11990. # link against other versions.
  11991. version_type=sunos
  11992. need_lib_prefix=no
  11993. need_version=no
  11994. case $host_cpu in
  11995. ia64*)
  11996. shrext_cmds='.so'
  11997. hardcode_into_libs=yes
  11998. dynamic_linker="$host_os dld.so"
  11999. shlibpath_var=LD_LIBRARY_PATH
  12000. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12001. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12002. soname_spec='${libname}${release}${shared_ext}$major'
  12003. if test "X$HPUX_IA64_MODE" = X32; then
  12004. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12005. else
  12006. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12007. fi
  12008. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12009. ;;
  12010. hppa*64*)
  12011. shrext_cmds='.sl'
  12012. hardcode_into_libs=yes
  12013. dynamic_linker="$host_os dld.sl"
  12014. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12015. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12017. soname_spec='${libname}${release}${shared_ext}$major'
  12018. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12019. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12020. ;;
  12021. *)
  12022. shrext_cmds='.sl'
  12023. dynamic_linker="$host_os dld.sl"
  12024. shlibpath_var=SHLIB_PATH
  12025. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12027. soname_spec='${libname}${release}${shared_ext}$major'
  12028. ;;
  12029. esac
  12030. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12031. postinstall_cmds='chmod 555 $lib'
  12032. # or fails outright, so override atomically:
  12033. install_override_mode=555
  12034. ;;
  12035. interix[3-9]*)
  12036. version_type=linux
  12037. need_lib_prefix=no
  12038. need_version=no
  12039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12040. soname_spec='${libname}${release}${shared_ext}$major'
  12041. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12042. shlibpath_var=LD_LIBRARY_PATH
  12043. shlibpath_overrides_runpath=no
  12044. hardcode_into_libs=yes
  12045. ;;
  12046. irix5* | irix6* | nonstopux*)
  12047. case $host_os in
  12048. nonstopux*) version_type=nonstopux ;;
  12049. *)
  12050. if test "$lt_cv_prog_gnu_ld" = yes; then
  12051. version_type=linux
  12052. else
  12053. version_type=irix
  12054. fi ;;
  12055. esac
  12056. need_lib_prefix=no
  12057. need_version=no
  12058. soname_spec='${libname}${release}${shared_ext}$major'
  12059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12060. case $host_os in
  12061. irix5* | nonstopux*)
  12062. libsuff= shlibsuff=
  12063. ;;
  12064. *)
  12065. case $LD in # libtool.m4 will add one of these switches to LD
  12066. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12067. libsuff= shlibsuff= libmagic=32-bit;;
  12068. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12069. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12070. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12071. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12072. *) libsuff= shlibsuff= libmagic=never-match;;
  12073. esac
  12074. ;;
  12075. esac
  12076. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12077. shlibpath_overrides_runpath=no
  12078. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12079. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12080. hardcode_into_libs=yes
  12081. ;;
  12082. # No shared lib support for Linux oldld, aout, or coff.
  12083. linux*oldld* | linux*aout* | linux*coff*)
  12084. dynamic_linker=no
  12085. ;;
  12086. # This must be Linux ELF.
  12087. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12088. version_type=linux
  12089. need_lib_prefix=no
  12090. need_version=no
  12091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12092. soname_spec='${libname}${release}${shared_ext}$major'
  12093. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12094. shlibpath_var=LD_LIBRARY_PATH
  12095. shlibpath_overrides_runpath=no
  12096. # Some binutils ld are patched to set DT_RUNPATH
  12097. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12098. $as_echo_n "(cached) " >&6
  12099. else
  12100. lt_cv_shlibpath_overrides_runpath=no
  12101. save_LDFLAGS=$LDFLAGS
  12102. save_libdir=$libdir
  12103. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
  12104. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
  12105. cat > conftest.$ac_ext <<_ACEOF
  12106. program main
  12107. end
  12108. _ACEOF
  12109. if ac_fn_fc_try_link "$LINENO"; then :
  12110. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12111. lt_cv_shlibpath_overrides_runpath=yes
  12112. fi
  12113. fi
  12114. rm -f core conftest.err conftest.$ac_objext \
  12115. conftest$ac_exeext conftest.$ac_ext
  12116. LDFLAGS=$save_LDFLAGS
  12117. libdir=$save_libdir
  12118. fi
  12119. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12120. # This implies no fast_install, which is unacceptable.
  12121. # Some rework will be needed to allow for fast_install
  12122. # before this can be enabled.
  12123. hardcode_into_libs=yes
  12124. # Append ld.so.conf contents to the search path
  12125. if test -f /etc/ld.so.conf; then
  12126. 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' ' '`
  12127. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12128. fi
  12129. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12130. # powerpc, because MkLinux only supported shared libraries with the
  12131. # GNU dynamic linker. Since this was broken with cross compilers,
  12132. # most powerpc-linux boxes support dynamic linking these days and
  12133. # people can always --disable-shared, the test was removed, and we
  12134. # assume the GNU/Linux dynamic linker is in use.
  12135. dynamic_linker='GNU/Linux ld.so'
  12136. ;;
  12137. netbsd*)
  12138. version_type=sunos
  12139. need_lib_prefix=no
  12140. need_version=no
  12141. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12143. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12144. dynamic_linker='NetBSD (a.out) ld.so'
  12145. else
  12146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12147. soname_spec='${libname}${release}${shared_ext}$major'
  12148. dynamic_linker='NetBSD ld.elf_so'
  12149. fi
  12150. shlibpath_var=LD_LIBRARY_PATH
  12151. shlibpath_overrides_runpath=yes
  12152. hardcode_into_libs=yes
  12153. ;;
  12154. newsos6)
  12155. version_type=linux
  12156. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12157. shlibpath_var=LD_LIBRARY_PATH
  12158. shlibpath_overrides_runpath=yes
  12159. ;;
  12160. *nto* | *qnx*)
  12161. version_type=qnx
  12162. need_lib_prefix=no
  12163. need_version=no
  12164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12165. soname_spec='${libname}${release}${shared_ext}$major'
  12166. shlibpath_var=LD_LIBRARY_PATH
  12167. shlibpath_overrides_runpath=no
  12168. hardcode_into_libs=yes
  12169. dynamic_linker='ldqnx.so'
  12170. ;;
  12171. openbsd*)
  12172. version_type=sunos
  12173. sys_lib_dlsearch_path_spec="/usr/lib"
  12174. need_lib_prefix=no
  12175. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12176. case $host_os in
  12177. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12178. *) need_version=no ;;
  12179. esac
  12180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12181. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12182. shlibpath_var=LD_LIBRARY_PATH
  12183. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12184. case $host_os in
  12185. openbsd2.[89] | openbsd2.[89].*)
  12186. shlibpath_overrides_runpath=no
  12187. ;;
  12188. *)
  12189. shlibpath_overrides_runpath=yes
  12190. ;;
  12191. esac
  12192. else
  12193. shlibpath_overrides_runpath=yes
  12194. fi
  12195. ;;
  12196. os2*)
  12197. libname_spec='$name'
  12198. shrext_cmds=".dll"
  12199. need_lib_prefix=no
  12200. library_names_spec='$libname${shared_ext} $libname.a'
  12201. dynamic_linker='OS/2 ld.exe'
  12202. shlibpath_var=LIBPATH
  12203. ;;
  12204. osf3* | osf4* | osf5*)
  12205. version_type=osf
  12206. need_lib_prefix=no
  12207. need_version=no
  12208. soname_spec='${libname}${release}${shared_ext}$major'
  12209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12210. shlibpath_var=LD_LIBRARY_PATH
  12211. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12212. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12213. ;;
  12214. rdos*)
  12215. dynamic_linker=no
  12216. ;;
  12217. solaris*)
  12218. version_type=linux
  12219. need_lib_prefix=no
  12220. need_version=no
  12221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12222. soname_spec='${libname}${release}${shared_ext}$major'
  12223. shlibpath_var=LD_LIBRARY_PATH
  12224. shlibpath_overrides_runpath=yes
  12225. hardcode_into_libs=yes
  12226. # ldd complains unless libraries are executable
  12227. postinstall_cmds='chmod +x $lib'
  12228. ;;
  12229. sunos4*)
  12230. version_type=sunos
  12231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12232. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12233. shlibpath_var=LD_LIBRARY_PATH
  12234. shlibpath_overrides_runpath=yes
  12235. if test "$with_gnu_ld" = yes; then
  12236. need_lib_prefix=no
  12237. fi
  12238. need_version=yes
  12239. ;;
  12240. sysv4 | sysv4.3*)
  12241. version_type=linux
  12242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12243. soname_spec='${libname}${release}${shared_ext}$major'
  12244. shlibpath_var=LD_LIBRARY_PATH
  12245. case $host_vendor in
  12246. sni)
  12247. shlibpath_overrides_runpath=no
  12248. need_lib_prefix=no
  12249. runpath_var=LD_RUN_PATH
  12250. ;;
  12251. siemens)
  12252. need_lib_prefix=no
  12253. ;;
  12254. motorola)
  12255. need_lib_prefix=no
  12256. need_version=no
  12257. shlibpath_overrides_runpath=no
  12258. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12259. ;;
  12260. esac
  12261. ;;
  12262. sysv4*MP*)
  12263. if test -d /usr/nec ;then
  12264. version_type=linux
  12265. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12266. soname_spec='$libname${shared_ext}.$major'
  12267. shlibpath_var=LD_LIBRARY_PATH
  12268. fi
  12269. ;;
  12270. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12271. version_type=freebsd-elf
  12272. need_lib_prefix=no
  12273. need_version=no
  12274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12275. soname_spec='${libname}${release}${shared_ext}$major'
  12276. shlibpath_var=LD_LIBRARY_PATH
  12277. shlibpath_overrides_runpath=yes
  12278. hardcode_into_libs=yes
  12279. if test "$with_gnu_ld" = yes; then
  12280. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12281. else
  12282. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12283. case $host_os in
  12284. sco3.2v5*)
  12285. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12286. ;;
  12287. esac
  12288. fi
  12289. sys_lib_dlsearch_path_spec='/usr/lib'
  12290. ;;
  12291. tpf*)
  12292. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12293. version_type=linux
  12294. need_lib_prefix=no
  12295. need_version=no
  12296. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12297. shlibpath_var=LD_LIBRARY_PATH
  12298. shlibpath_overrides_runpath=no
  12299. hardcode_into_libs=yes
  12300. ;;
  12301. uts4*)
  12302. version_type=linux
  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. shlibpath_var=LD_LIBRARY_PATH
  12306. ;;
  12307. *)
  12308. dynamic_linker=no
  12309. ;;
  12310. esac
  12311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12312. $as_echo "$dynamic_linker" >&6; }
  12313. test "$dynamic_linker" = no && can_build_shared=no
  12314. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12315. if test "$GCC" = yes; then
  12316. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12317. fi
  12318. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12319. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12320. fi
  12321. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12322. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12323. fi
  12324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12325. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12326. hardcode_action_FC=
  12327. if test -n "$hardcode_libdir_flag_spec_FC" ||
  12328. test -n "$runpath_var_FC" ||
  12329. test "X$hardcode_automatic_FC" = "Xyes" ; then
  12330. # We can hardcode non-existent directories.
  12331. if test "$hardcode_direct_FC" != no &&
  12332. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12333. # have to relink, otherwise we might link with an installed library
  12334. # when we should be linking with a yet-to-be-installed one
  12335. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
  12336. test "$hardcode_minus_L_FC" != no; then
  12337. # Linking always hardcodes the temporary library directory.
  12338. hardcode_action_FC=relink
  12339. else
  12340. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12341. hardcode_action_FC=immediate
  12342. fi
  12343. else
  12344. # We cannot hardcode anything, or else we can only hardcode existing
  12345. # directories.
  12346. hardcode_action_FC=unsupported
  12347. fi
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
  12349. $as_echo "$hardcode_action_FC" >&6; }
  12350. if test "$hardcode_action_FC" = relink ||
  12351. test "$inherit_rpath_FC" = yes; then
  12352. # Fast installation is not supported
  12353. enable_fast_install=no
  12354. elif test "$shlibpath_overrides_runpath" = yes ||
  12355. test "$enable_shared" = no; then
  12356. # Fast installation is not necessary
  12357. enable_fast_install=needless
  12358. fi
  12359. fi # test -n "$compiler"
  12360. GCC=$lt_save_GCC
  12361. CC="$lt_save_CC"
  12362. fi # test "$_lt_disable_FC" != yes
  12363. ac_ext=c
  12364. ac_cpp='$CPP $CPPFLAGS'
  12365. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12366. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12367. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12368. FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
  12369. # For libtool versioning info, format is CURRENT:REVISION:AGE
  12370. libtool_VERSION=1:0:0
  12371. # Check header files.
  12372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12373. $as_echo_n "checking for ANSI C header files... " >&6; }
  12374. if test "${ac_cv_header_stdc+set}" = set; then :
  12375. $as_echo_n "(cached) " >&6
  12376. else
  12377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12378. /* end confdefs.h. */
  12379. #include <stdlib.h>
  12380. #include <stdarg.h>
  12381. #include <string.h>
  12382. #include <float.h>
  12383. int
  12384. main ()
  12385. {
  12386. ;
  12387. return 0;
  12388. }
  12389. _ACEOF
  12390. if ac_fn_c_try_compile "$LINENO"; then :
  12391. ac_cv_header_stdc=yes
  12392. else
  12393. ac_cv_header_stdc=no
  12394. fi
  12395. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12396. if test $ac_cv_header_stdc = yes; then
  12397. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12399. /* end confdefs.h. */
  12400. #include <string.h>
  12401. _ACEOF
  12402. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12403. $EGREP "memchr" >/dev/null 2>&1; then :
  12404. else
  12405. ac_cv_header_stdc=no
  12406. fi
  12407. rm -f conftest*
  12408. fi
  12409. if test $ac_cv_header_stdc = yes; then
  12410. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12412. /* end confdefs.h. */
  12413. #include <stdlib.h>
  12414. _ACEOF
  12415. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12416. $EGREP "free" >/dev/null 2>&1; then :
  12417. else
  12418. ac_cv_header_stdc=no
  12419. fi
  12420. rm -f conftest*
  12421. fi
  12422. if test $ac_cv_header_stdc = yes; then
  12423. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12424. if test "$cross_compiling" = yes; then :
  12425. :
  12426. else
  12427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12428. /* end confdefs.h. */
  12429. #include <ctype.h>
  12430. #include <stdlib.h>
  12431. #if ((' ' & 0x0FF) == 0x020)
  12432. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12433. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12434. #else
  12435. # define ISLOWER(c) \
  12436. (('a' <= (c) && (c) <= 'i') \
  12437. || ('j' <= (c) && (c) <= 'r') \
  12438. || ('s' <= (c) && (c) <= 'z'))
  12439. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12440. #endif
  12441. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12442. int
  12443. main ()
  12444. {
  12445. int i;
  12446. for (i = 0; i < 256; i++)
  12447. if (XOR (islower (i), ISLOWER (i))
  12448. || toupper (i) != TOUPPER (i))
  12449. return 2;
  12450. return 0;
  12451. }
  12452. _ACEOF
  12453. if ac_fn_c_try_run "$LINENO"; then :
  12454. else
  12455. ac_cv_header_stdc=no
  12456. fi
  12457. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12458. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12459. fi
  12460. fi
  12461. fi
  12462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12463. $as_echo "$ac_cv_header_stdc" >&6; }
  12464. if test $ac_cv_header_stdc = yes; then
  12465. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12466. fi
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  12468. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  12469. if test "${ac_cv_header_time+set}" = set; then :
  12470. $as_echo_n "(cached) " >&6
  12471. else
  12472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12473. /* end confdefs.h. */
  12474. #include <sys/types.h>
  12475. #include <sys/time.h>
  12476. #include <time.h>
  12477. int
  12478. main ()
  12479. {
  12480. if ((struct tm *) 0)
  12481. return 0;
  12482. ;
  12483. return 0;
  12484. }
  12485. _ACEOF
  12486. if ac_fn_c_try_compile "$LINENO"; then :
  12487. ac_cv_header_time=yes
  12488. else
  12489. ac_cv_header_time=no
  12490. fi
  12491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12492. fi
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  12494. $as_echo "$ac_cv_header_time" >&6; }
  12495. if test $ac_cv_header_time = yes; then
  12496. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  12497. fi
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  12499. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  12500. if test "${gcc_cv_header_string+set}" = set; then :
  12501. $as_echo_n "(cached) " >&6
  12502. else
  12503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12504. /* end confdefs.h. */
  12505. #include <string.h>
  12506. #include <strings.h>
  12507. int
  12508. main ()
  12509. {
  12510. ;
  12511. return 0;
  12512. }
  12513. _ACEOF
  12514. if ac_fn_c_try_compile "$LINENO"; then :
  12515. gcc_cv_header_string=yes
  12516. else
  12517. gcc_cv_header_string=no
  12518. fi
  12519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12520. fi
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  12522. $as_echo "$gcc_cv_header_string" >&6; }
  12523. if test $gcc_cv_header_string = yes; then
  12524. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  12525. fi
  12526. for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/time.h sys/time.h
  12527. do :
  12528. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12529. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12530. eval as_val=\$$as_ac_Header
  12531. if test "x$as_val" = x""yes; then :
  12532. cat >>confdefs.h <<_ACEOF
  12533. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12534. _ACEOF
  12535. fi
  12536. done
  12537. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  12538. acx_cv_header_stdint=stddef.h
  12539. acx_cv_header_stdint_kind="(already complete)"
  12540. for i in stdint.h $inttype_headers; do
  12541. unset ac_cv_type_uintptr_t
  12542. unset ac_cv_type_uintmax_t
  12543. unset ac_cv_type_int_least32_t
  12544. unset ac_cv_type_int_fast32_t
  12545. unset ac_cv_type_uint64_t
  12546. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  12547. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  12548. #include <$i>
  12549. "
  12550. if test "x$ac_cv_type_uintmax_t" = x""yes; then :
  12551. acx_cv_header_stdint=$i
  12552. else
  12553. continue
  12554. fi
  12555. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  12556. #include <$i>
  12557. "
  12558. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  12559. else
  12560. acx_cv_header_stdint_kind="(mostly complete)"
  12561. fi
  12562. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  12563. #include <$i>
  12564. "
  12565. if test "x$ac_cv_type_int_least32_t" = x""yes; then :
  12566. else
  12567. acx_cv_header_stdint_kind="(mostly complete)"
  12568. fi
  12569. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  12570. #include <$i>
  12571. "
  12572. if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
  12573. else
  12574. acx_cv_header_stdint_kind="(mostly complete)"
  12575. fi
  12576. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  12577. #include <$i>
  12578. "
  12579. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  12580. else
  12581. acx_cv_header_stdint_kind="(lacks uint64_t)"
  12582. fi
  12583. break
  12584. done
  12585. if test "$acx_cv_header_stdint" = stddef.h; then
  12586. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  12587. for i in stdint.h $inttype_headers; do
  12588. unset ac_cv_type_uintptr_t
  12589. unset ac_cv_type_uint32_t
  12590. unset ac_cv_type_uint64_t
  12591. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  12592. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  12593. #include <$i>
  12594. "
  12595. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  12596. acx_cv_header_stdint=$i
  12597. else
  12598. continue
  12599. fi
  12600. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  12601. #include <$i>
  12602. "
  12603. if test "x$ac_cv_type_uint64_t" = x""yes; then :
  12604. fi
  12605. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  12606. #include <$i>
  12607. "
  12608. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  12609. fi
  12610. break
  12611. done
  12612. fi
  12613. if test "$acx_cv_header_stdint" = stddef.h; then
  12614. acx_cv_header_stdint_kind="(u_intXX_t style)"
  12615. for i in sys/types.h $inttype_headers; do
  12616. unset ac_cv_type_u_int32_t
  12617. unset ac_cv_type_u_int64_t
  12618. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  12619. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  12620. #include <$i>
  12621. "
  12622. if test "x$ac_cv_type_u_int32_t" = x""yes; then :
  12623. acx_cv_header_stdint=$i
  12624. else
  12625. continue
  12626. fi
  12627. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  12628. #include <$i>
  12629. "
  12630. if test "x$ac_cv_type_u_int64_t" = x""yes; then :
  12631. fi
  12632. break
  12633. done
  12634. fi
  12635. if test "$acx_cv_header_stdint" = stddef.h; then
  12636. acx_cv_header_stdint_kind="(using manual detection)"
  12637. fi
  12638. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  12639. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  12640. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  12641. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  12642. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  12643. # ----------------- Summarize what we found so far
  12644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  12645. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  12646. case `$as_basename -- gstdint.h ||
  12647. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  12648. Xgstdint.h : 'X\(//\)$' \| \
  12649. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  12650. $as_echo X/gstdint.h |
  12651. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12652. s//\1/
  12653. q
  12654. }
  12655. /^X\/\(\/\/\)$/{
  12656. s//\1/
  12657. q
  12658. }
  12659. /^X\/\(\/\).*/{
  12660. s//\1/
  12661. q
  12662. }
  12663. s/.*/./; q'` in
  12664. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  12665. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  12666. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  12667. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  12668. *) ;;
  12669. esac
  12670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  12671. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  12672. # ----------------- done included file, check C basic types --------
  12673. # Lacking an uintptr_t? Test size of void *
  12674. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  12675. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  12676. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12677. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12678. # This bug is HP SR number 8606223364.
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  12680. $as_echo_n "checking size of void *... " >&6; }
  12681. if test "${ac_cv_sizeof_void_p+set}" = set; then :
  12682. $as_echo_n "(cached) " >&6
  12683. else
  12684. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  12685. else
  12686. if test "$ac_cv_type_void_p" = yes; then
  12687. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12688. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12689. { as_fn_set_status 77
  12690. as_fn_error "cannot compute sizeof (void *)
  12691. See \`config.log' for more details." "$LINENO" 5; }; }
  12692. else
  12693. ac_cv_sizeof_void_p=0
  12694. fi
  12695. fi
  12696. fi
  12697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  12698. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  12699. cat >>confdefs.h <<_ACEOF
  12700. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  12701. _ACEOF
  12702. ;;
  12703. esac
  12704. # Lacking an uint64_t? Test size of long
  12705. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  12706. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  12707. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12708. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12709. # This bug is HP SR number 8606223364.
  12710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12711. $as_echo_n "checking size of long... " >&6; }
  12712. if test "${ac_cv_sizeof_long+set}" = set; then :
  12713. $as_echo_n "(cached) " >&6
  12714. else
  12715. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12716. else
  12717. if test "$ac_cv_type_long" = yes; then
  12718. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12719. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12720. { as_fn_set_status 77
  12721. as_fn_error "cannot compute sizeof (long)
  12722. See \`config.log' for more details." "$LINENO" 5; }; }
  12723. else
  12724. ac_cv_sizeof_long=0
  12725. fi
  12726. fi
  12727. fi
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12729. $as_echo "$ac_cv_sizeof_long" >&6; }
  12730. cat >>confdefs.h <<_ACEOF
  12731. #define SIZEOF_LONG $ac_cv_sizeof_long
  12732. _ACEOF
  12733. ;;
  12734. esac
  12735. if test $acx_cv_header_stdint = stddef.h; then
  12736. # Lacking a good header? Test size of everything and deduce all types.
  12737. # The cast to long int works around a bug in the HP C Compiler
  12738. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12739. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12740. # This bug is HP SR number 8606223364.
  12741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12742. $as_echo_n "checking size of int... " >&6; }
  12743. if test "${ac_cv_sizeof_int+set}" = set; then :
  12744. $as_echo_n "(cached) " >&6
  12745. else
  12746. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12747. else
  12748. if test "$ac_cv_type_int" = yes; then
  12749. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12750. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12751. { as_fn_set_status 77
  12752. as_fn_error "cannot compute sizeof (int)
  12753. See \`config.log' for more details." "$LINENO" 5; }; }
  12754. else
  12755. ac_cv_sizeof_int=0
  12756. fi
  12757. fi
  12758. fi
  12759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12760. $as_echo "$ac_cv_sizeof_int" >&6; }
  12761. cat >>confdefs.h <<_ACEOF
  12762. #define SIZEOF_INT $ac_cv_sizeof_int
  12763. _ACEOF
  12764. # The cast to long int works around a bug in the HP C Compiler
  12765. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12766. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12767. # This bug is HP SR number 8606223364.
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  12769. $as_echo_n "checking size of short... " >&6; }
  12770. if test "${ac_cv_sizeof_short+set}" = set; then :
  12771. $as_echo_n "(cached) " >&6
  12772. else
  12773. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  12774. else
  12775. if test "$ac_cv_type_short" = yes; then
  12776. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12777. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12778. { as_fn_set_status 77
  12779. as_fn_error "cannot compute sizeof (short)
  12780. See \`config.log' for more details." "$LINENO" 5; }; }
  12781. else
  12782. ac_cv_sizeof_short=0
  12783. fi
  12784. fi
  12785. fi
  12786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  12787. $as_echo "$ac_cv_sizeof_short" >&6; }
  12788. cat >>confdefs.h <<_ACEOF
  12789. #define SIZEOF_SHORT $ac_cv_sizeof_short
  12790. _ACEOF
  12791. # The cast to long int works around a bug in the HP C Compiler
  12792. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12793. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12794. # This bug is HP SR number 8606223364.
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  12796. $as_echo_n "checking size of char... " >&6; }
  12797. if test "${ac_cv_sizeof_char+set}" = set; then :
  12798. $as_echo_n "(cached) " >&6
  12799. else
  12800. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  12801. else
  12802. if test "$ac_cv_type_char" = yes; then
  12803. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12804. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12805. { as_fn_set_status 77
  12806. as_fn_error "cannot compute sizeof (char)
  12807. See \`config.log' for more details." "$LINENO" 5; }; }
  12808. else
  12809. ac_cv_sizeof_char=0
  12810. fi
  12811. fi
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  12814. $as_echo "$ac_cv_sizeof_char" >&6; }
  12815. cat >>confdefs.h <<_ACEOF
  12816. #define SIZEOF_CHAR $ac_cv_sizeof_char
  12817. _ACEOF
  12818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  12819. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  12820. case "$ac_cv_sizeof_char" in
  12821. 1) acx_cv_type_int8_t=char ;;
  12822. *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
  12823. esac
  12824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  12825. $as_echo "$acx_cv_type_int8_t" >&6; }
  12826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  12827. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  12828. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  12829. 2:*) acx_cv_type_int16_t=int ;;
  12830. *:2) acx_cv_type_int16_t=short ;;
  12831. *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
  12832. esac
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  12834. $as_echo "$acx_cv_type_int16_t" >&6; }
  12835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  12836. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  12837. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  12838. 4:*) acx_cv_type_int32_t=int ;;
  12839. *:4) acx_cv_type_int32_t=long ;;
  12840. *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
  12841. esac
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  12843. $as_echo "$acx_cv_type_int32_t" >&6; }
  12844. fi
  12845. # These tests are here to make the output prettier
  12846. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  12847. case "$ac_cv_sizeof_long" in
  12848. 8) acx_cv_type_int64_t=long ;;
  12849. esac
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  12851. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  12853. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  12854. fi
  12855. # Now we can use the above types
  12856. if test "$ac_cv_type_uintptr_t" != yes; then
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  12858. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  12859. case $ac_cv_sizeof_void_p in
  12860. 2) acx_cv_type_intptr_t=int16_t ;;
  12861. 4) acx_cv_type_intptr_t=int32_t ;;
  12862. 8) acx_cv_type_intptr_t=int64_t ;;
  12863. *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  12864. esac
  12865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  12866. $as_echo "$acx_cv_type_intptr_t" >&6; }
  12867. fi
  12868. # ----------------- done all checks, emit header -------------
  12869. ac_config_commands="$ac_config_commands gstdint.h"
  12870. XPCFLAGS=""
  12871. case "$host" in
  12872. *-*-rtems*)
  12873. # RTEMS supports Pthreads, but the library is not available at GCC build time.
  12874. ;;
  12875. *)
  12876. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  12877. # In case the pthread.h system header is not found, this test will fail.
  12878. CFLAGS="$CFLAGS -pthread"
  12879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12880. /* end confdefs.h. */
  12881. #include <pthread.h>
  12882. void *g(void *d) { return NULL; }
  12883. int
  12884. main ()
  12885. {
  12886. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12887. ;
  12888. return 0;
  12889. }
  12890. _ACEOF
  12891. if ac_fn_c_try_link "$LINENO"; then :
  12892. XPCFLAGS=" -Wc,-pthread"
  12893. else
  12894. CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
  12895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12896. /* end confdefs.h. */
  12897. #include <pthread.h>
  12898. void *g(void *d) { return NULL; }
  12899. int
  12900. main ()
  12901. {
  12902. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12903. ;
  12904. return 0;
  12905. }
  12906. _ACEOF
  12907. if ac_fn_c_try_link "$LINENO"; then :
  12908. else
  12909. as_fn_error "Pthreads are required to build libgomp" "$LINENO" 5
  12910. fi
  12911. rm -f core conftest.err conftest.$ac_objext \
  12912. conftest$ac_exeext conftest.$ac_ext
  12913. fi
  12914. rm -f core conftest.err conftest.$ac_objext \
  12915. conftest$ac_exeext conftest.$ac_ext
  12916. esac
  12917. # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
  12918. #
  12919. # Copyright (C) 2014-2015 Free Software Foundation, Inc.
  12920. #
  12921. # Contributed by Mentor Embedded.
  12922. #
  12923. # This file is part of the GNU Offloading and Multi Processing Library
  12924. # (libgomp).
  12925. #
  12926. # Libgomp is free software; you can redistribute it and/or modify it
  12927. # under the terms of the GNU General Public License as published by
  12928. # the Free Software Foundation; either version 3, or (at your option)
  12929. # any later version.
  12930. #
  12931. # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
  12932. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  12933. # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12934. # more details.
  12935. #
  12936. # Under Section 7 of GPL version 3, you are granted additional
  12937. # permissions described in the GCC Runtime Library Exception, version
  12938. # 3.1, as published by the Free Software Foundation.
  12939. #
  12940. # You should have received a copy of the GNU General Public License and
  12941. # a copy of the GCC Runtime Library Exception along with this program;
  12942. # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  12943. # <http://www.gnu.org/licenses/>.
  12944. offload_targets=
  12945. plugin_support=yes
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
  12947. $as_echo_n "checking for dlsym in -ldl... " >&6; }
  12948. if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
  12949. $as_echo_n "(cached) " >&6
  12950. else
  12951. ac_check_lib_save_LIBS=$LIBS
  12952. LIBS="-ldl $LIBS"
  12953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12954. /* end confdefs.h. */
  12955. /* Override any GCC internal prototype to avoid an error.
  12956. Use char because int might match the return type of a GCC
  12957. builtin and then its argument prototype would still apply. */
  12958. #ifdef __cplusplus
  12959. extern "C"
  12960. #endif
  12961. char dlsym ();
  12962. int
  12963. main ()
  12964. {
  12965. return dlsym ();
  12966. ;
  12967. return 0;
  12968. }
  12969. _ACEOF
  12970. if ac_fn_c_try_link "$LINENO"; then :
  12971. ac_cv_lib_dl_dlsym=yes
  12972. else
  12973. ac_cv_lib_dl_dlsym=no
  12974. fi
  12975. rm -f core conftest.err conftest.$ac_objext \
  12976. conftest$ac_exeext conftest.$ac_ext
  12977. LIBS=$ac_check_lib_save_LIBS
  12978. fi
  12979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
  12980. $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
  12981. if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
  12982. cat >>confdefs.h <<_ACEOF
  12983. #define HAVE_LIBDL 1
  12984. _ACEOF
  12985. LIBS="-ldl $LIBS"
  12986. else
  12987. plugin_support=no
  12988. fi
  12989. if test x"$plugin_support" = xyes; then
  12990. $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
  12991. offload_targets=host_nonshm
  12992. elif test "x${enable_offload_targets-no}" != xno; then
  12993. as_fn_error "Can't support offloading without support for plugins" "$LINENO" 5
  12994. fi
  12995. # Look for the CUDA driver package.
  12996. CUDA_DRIVER_INCLUDE=
  12997. CUDA_DRIVER_LIB=
  12998. CUDA_DRIVER_CPPFLAGS=
  12999. CUDA_DRIVER_LDFLAGS=
  13000. # Check whether --with-cuda-driver was given.
  13001. if test "${with_cuda_driver+set}" = set; then :
  13002. withval=$with_cuda_driver;
  13003. fi
  13004. # Check whether --with-cuda-driver-include was given.
  13005. if test "${with_cuda_driver_include+set}" = set; then :
  13006. withval=$with_cuda_driver_include;
  13007. fi
  13008. # Check whether --with-cuda-driver-lib was given.
  13009. if test "${with_cuda_driver_lib+set}" = set; then :
  13010. withval=$with_cuda_driver_lib;
  13011. fi
  13012. if test "x$with_cuda_driver" != x; then
  13013. CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
  13014. CUDA_DRIVER_LIB=$with_cuda_driver/lib
  13015. fi
  13016. if test "x$with_cuda_driver_include" != x; then
  13017. CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
  13018. fi
  13019. if test "x$with_cuda_driver_lib" != x; then
  13020. CUDA_DRIVER_LIB=$with_cuda_driver_lib
  13021. fi
  13022. if test "x$CUDA_DRIVER_INCLUDE" != x; then
  13023. CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
  13024. fi
  13025. if test "x$CUDA_DRIVER_LIB" != x; then
  13026. CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
  13027. fi
  13028. PLUGIN_NVPTX=0
  13029. PLUGIN_NVPTX_CPPFLAGS=
  13030. PLUGIN_NVPTX_LDFLAGS=
  13031. PLUGIN_NVPTX_LIBS=
  13032. # Get offload targets and path to install tree of offloading compiler.
  13033. offload_additional_options=
  13034. offload_additional_lib_paths=
  13035. if test x"$enable_offload_targets" != x; then
  13036. for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
  13037. tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
  13038. tgt=`echo $tgt | sed 's/=.*//'`
  13039. case $tgt in
  13040. *-intelmic-* | *-intelmicemul-*)
  13041. tgt_name=intelmic
  13042. ;;
  13043. nvptx*)
  13044. tgt_name=nvptx
  13045. PLUGIN_NVPTX=$tgt
  13046. PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
  13047. PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
  13048. PLUGIN_NVPTX_LIBS='-lcuda'
  13049. PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
  13050. CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
  13051. PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
  13052. LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
  13053. PLUGIN_NVPTX_save_LIBS=$LIBS
  13054. LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
  13055. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13056. /* end confdefs.h. */
  13057. #include "cuda.h"
  13058. int
  13059. main ()
  13060. {
  13061. CUresult r = cuCtxPushCurrent (NULL);
  13062. ;
  13063. return 0;
  13064. }
  13065. _ACEOF
  13066. if ac_fn_c_try_link "$LINENO"; then :
  13067. PLUGIN_NVPTX=1
  13068. fi
  13069. rm -f core conftest.err conftest.$ac_objext \
  13070. conftest$ac_exeext conftest.$ac_ext
  13071. CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
  13072. LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
  13073. LIBS=$PLUGIN_NVPTX_save_LIBS
  13074. case $PLUGIN_NVPTX in
  13075. nvptx*)
  13076. PLUGIN_NVPTX=0
  13077. as_fn_error "CUDA driver package required for nvptx support" "$LINENO" 5
  13078. ;;
  13079. esac
  13080. ;;
  13081. *)
  13082. as_fn_error "unknown offload target specified" "$LINENO" 5
  13083. ;;
  13084. esac
  13085. if test x"$offload_targets" = x; then
  13086. offload_targets=$tgt_name
  13087. else
  13088. offload_targets=$offload_targets,$tgt_name
  13089. fi
  13090. if test x"$tgt_dir" != x; then
  13091. offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
  13092. offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
  13093. else
  13094. offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
  13095. offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
  13096. fi
  13097. done
  13098. fi
  13099. cat >>confdefs.h <<_ACEOF
  13100. #define OFFLOAD_TARGETS "$offload_targets"
  13101. _ACEOF
  13102. if test $PLUGIN_NVPTX = 1; then
  13103. PLUGIN_NVPTX_TRUE=
  13104. PLUGIN_NVPTX_FALSE='#'
  13105. else
  13106. PLUGIN_NVPTX_TRUE='#'
  13107. PLUGIN_NVPTX_FALSE=
  13108. fi
  13109. cat >>confdefs.h <<_ACEOF
  13110. #define PLUGIN_NVPTX $PLUGIN_NVPTX
  13111. _ACEOF
  13112. # Check for functions needed.
  13113. for ac_func in getloadavg clock_gettime strtoull
  13114. do :
  13115. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13116. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13117. eval as_val=\$$as_ac_var
  13118. if test "x$as_val" = x""yes; then :
  13119. cat >>confdefs.h <<_ACEOF
  13120. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13121. _ACEOF
  13122. fi
  13123. done
  13124. # Check for broken semaphore implementation on darwin.
  13125. # sem_init returns: sem_init error: Function not implemented.
  13126. case "$host" in
  13127. *-darwin*)
  13128. $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
  13129. ;;
  13130. esac
  13131. # Check whether --enable-linux-futex was given.
  13132. if test "${enable_linux_futex+set}" = set; then :
  13133. enableval=$enable_linux_futex;
  13134. case "$enableval" in
  13135. yes|no|default) ;;
  13136. *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
  13137. esac
  13138. else
  13139. enable_linux_futex=default
  13140. fi
  13141. case "$target" in
  13142. *-linux*)
  13143. case "$enable_linux_futex" in
  13144. default)
  13145. # If headers don't have gettid/futex syscalls definition, then
  13146. # default to no, otherwise there will be compile time failures.
  13147. # Otherwise, default to yes. If we don't detect we are
  13148. # compiled/linked against NPTL and not cross-compiling, check
  13149. # if programs are run by default against NPTL and if not, issue
  13150. # a warning.
  13151. enable_linux_futex=no
  13152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13153. /* end confdefs.h. */
  13154. #include <sys/syscall.h>
  13155. int lk;
  13156. int
  13157. main ()
  13158. {
  13159. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  13160. ;
  13161. return 0;
  13162. }
  13163. _ACEOF
  13164. if ac_fn_c_try_link "$LINENO"; then :
  13165. save_LIBS="$LIBS"
  13166. LIBS="-lpthread $LIBS"
  13167. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13168. /* end confdefs.h. */
  13169. #ifndef _GNU_SOURCE
  13170. #define _GNU_SOURCE 1
  13171. #endif
  13172. #include <pthread.h>
  13173. pthread_t th; void *status;
  13174. int
  13175. main ()
  13176. {
  13177. pthread_tryjoin_np (th, &status);
  13178. ;
  13179. return 0;
  13180. }
  13181. _ACEOF
  13182. if ac_fn_c_try_link "$LINENO"; then :
  13183. enable_linux_futex=yes
  13184. else
  13185. if test x$cross_compiling = xno; then
  13186. if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
  13187. | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
  13188. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
  13189. If so, please configure with --disable-linux-futex" >&5
  13190. $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
  13191. If so, please configure with --disable-linux-futex" >&2;}
  13192. fi
  13193. fi
  13194. enable_linux_futex=yes
  13195. fi
  13196. rm -f core conftest.err conftest.$ac_objext \
  13197. conftest$ac_exeext conftest.$ac_ext
  13198. LIBS="$save_LIBS"
  13199. fi
  13200. rm -f core conftest.err conftest.$ac_objext \
  13201. conftest$ac_exeext conftest.$ac_ext
  13202. ;;
  13203. yes)
  13204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13205. /* end confdefs.h. */
  13206. #include <sys/syscall.h>
  13207. int lk;
  13208. int
  13209. main ()
  13210. {
  13211. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  13212. ;
  13213. return 0;
  13214. }
  13215. _ACEOF
  13216. if ac_fn_c_try_link "$LINENO"; then :
  13217. else
  13218. as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
  13219. fi
  13220. rm -f core conftest.err conftest.$ac_objext \
  13221. conftest$ac_exeext conftest.$ac_ext
  13222. ;;
  13223. esac
  13224. ;;
  13225. *)
  13226. enable_linux_futex=no
  13227. ;;
  13228. esac
  13229. if test x$enable_linux_futex = xyes; then
  13230. :
  13231. fi
  13232. # Check for pthread_{,attr_}[sg]etaffinity_np.
  13233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13234. /* end confdefs.h. */
  13235. #define _GNU_SOURCE
  13236. #include <pthread.h>
  13237. int
  13238. main ()
  13239. {
  13240. cpu_set_t cpuset;
  13241. pthread_attr_t attr;
  13242. pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
  13243. if (CPU_ISSET (0, &cpuset))
  13244. CPU_SET (1, &cpuset);
  13245. else
  13246. CPU_ZERO (&cpuset);
  13247. pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
  13248. pthread_attr_init (&attr);
  13249. pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
  13250. pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
  13251. ;
  13252. return 0;
  13253. }
  13254. _ACEOF
  13255. if ac_fn_c_try_link "$LINENO"; then :
  13256. $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
  13257. fi
  13258. rm -f core conftest.err conftest.$ac_objext \
  13259. conftest$ac_exeext conftest.$ac_ext
  13260. # At least for glibc, clock_gettime is in librt. But don't pull that
  13261. # in if it still doesn't give us the function we want.
  13262. if test $ac_cv_func_clock_gettime = no; then
  13263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  13264. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  13265. if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
  13266. $as_echo_n "(cached) " >&6
  13267. else
  13268. ac_check_lib_save_LIBS=$LIBS
  13269. LIBS="-lrt $LIBS"
  13270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13271. /* end confdefs.h. */
  13272. /* Override any GCC internal prototype to avoid an error.
  13273. Use char because int might match the return type of a GCC
  13274. builtin and then its argument prototype would still apply. */
  13275. #ifdef __cplusplus
  13276. extern "C"
  13277. #endif
  13278. char clock_gettime ();
  13279. int
  13280. main ()
  13281. {
  13282. return clock_gettime ();
  13283. ;
  13284. return 0;
  13285. }
  13286. _ACEOF
  13287. if ac_fn_c_try_link "$LINENO"; then :
  13288. ac_cv_lib_rt_clock_gettime=yes
  13289. else
  13290. ac_cv_lib_rt_clock_gettime=no
  13291. fi
  13292. rm -f core conftest.err conftest.$ac_objext \
  13293. conftest$ac_exeext conftest.$ac_ext
  13294. LIBS=$ac_check_lib_save_LIBS
  13295. fi
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  13297. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  13298. if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
  13299. LIBS="-lrt $LIBS"
  13300. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  13301. fi
  13302. fi
  13303. # See if we support thread-local storage.
  13304. # Check whether --enable-tls was given.
  13305. if test "${enable_tls+set}" = set; then :
  13306. enableval=$enable_tls;
  13307. case "$enableval" in
  13308. yes|no) ;;
  13309. *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  13310. esac
  13311. else
  13312. enable_tls=yes
  13313. fi
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  13315. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  13316. if test "${gcc_cv_have_tls+set}" = set; then :
  13317. $as_echo_n "(cached) " >&6
  13318. else
  13319. if test "$cross_compiling" = yes; then :
  13320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13321. /* end confdefs.h. */
  13322. __thread int a; int b; int main() { return a = b; }
  13323. _ACEOF
  13324. if ac_fn_c_try_link "$LINENO"; then :
  13325. chktls_save_LDFLAGS="$LDFLAGS"
  13326. case $host in
  13327. *-*-linux*)
  13328. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  13329. ;;
  13330. esac
  13331. chktls_save_CFLAGS="$CFLAGS"
  13332. CFLAGS="-fPIC $CFLAGS"
  13333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13334. /* end confdefs.h. */
  13335. int f() { return 0; }
  13336. _ACEOF
  13337. if ac_fn_c_try_link "$LINENO"; then :
  13338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13339. /* end confdefs.h. */
  13340. __thread int a; int b; int f() { return a = b; }
  13341. _ACEOF
  13342. if ac_fn_c_try_link "$LINENO"; then :
  13343. gcc_cv_have_tls=yes
  13344. else
  13345. gcc_cv_have_tls=no
  13346. fi
  13347. rm -f core conftest.err conftest.$ac_objext \
  13348. conftest$ac_exeext conftest.$ac_ext
  13349. else
  13350. gcc_cv_have_tls=yes
  13351. fi
  13352. rm -f core conftest.err conftest.$ac_objext \
  13353. conftest$ac_exeext conftest.$ac_ext
  13354. CFLAGS="$chktls_save_CFLAGS"
  13355. LDFLAGS="$chktls_save_LDFLAGS"
  13356. else
  13357. gcc_cv_have_tls=no
  13358. fi
  13359. rm -f core conftest.err conftest.$ac_objext \
  13360. conftest$ac_exeext conftest.$ac_ext
  13361. else
  13362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13363. /* end confdefs.h. */
  13364. __thread int a; int b; int main() { return a = b; }
  13365. _ACEOF
  13366. if ac_fn_c_try_run "$LINENO"; then :
  13367. chktls_save_LDFLAGS="$LDFLAGS"
  13368. LDFLAGS="-static $LDFLAGS"
  13369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13370. /* end confdefs.h. */
  13371. int main() { return 0; }
  13372. _ACEOF
  13373. if ac_fn_c_try_link "$LINENO"; then :
  13374. if test "$cross_compiling" = yes; then :
  13375. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13377. as_fn_error "cannot run test program while cross compiling
  13378. See \`config.log' for more details." "$LINENO" 5; }
  13379. else
  13380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13381. /* end confdefs.h. */
  13382. __thread int a; int b; int main() { return a = b; }
  13383. _ACEOF
  13384. if ac_fn_c_try_run "$LINENO"; then :
  13385. gcc_cv_have_tls=yes
  13386. else
  13387. gcc_cv_have_tls=no
  13388. fi
  13389. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13390. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13391. fi
  13392. else
  13393. gcc_cv_have_tls=yes
  13394. fi
  13395. rm -f core conftest.err conftest.$ac_objext \
  13396. conftest$ac_exeext conftest.$ac_ext
  13397. LDFLAGS="$chktls_save_LDFLAGS"
  13398. if test $gcc_cv_have_tls = yes; then
  13399. chktls_save_CFLAGS="$CFLAGS"
  13400. thread_CFLAGS=failed
  13401. for flag in '' '-pthread' '-lpthread'; do
  13402. CFLAGS="$flag $chktls_save_CFLAGS"
  13403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13404. /* end confdefs.h. */
  13405. #include <pthread.h>
  13406. void *g(void *d) { return NULL; }
  13407. int
  13408. main ()
  13409. {
  13410. pthread_t t; pthread_create(&t,NULL,g,NULL);
  13411. ;
  13412. return 0;
  13413. }
  13414. _ACEOF
  13415. if ac_fn_c_try_link "$LINENO"; then :
  13416. thread_CFLAGS="$flag"
  13417. fi
  13418. rm -f core conftest.err conftest.$ac_objext \
  13419. conftest$ac_exeext conftest.$ac_ext
  13420. if test "X$thread_CFLAGS" != Xfailed; then
  13421. break
  13422. fi
  13423. done
  13424. CFLAGS="$chktls_save_CFLAGS"
  13425. if test "X$thread_CFLAGS" != Xfailed; then
  13426. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  13427. if test "$cross_compiling" = yes; then :
  13428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13430. as_fn_error "cannot run test program while cross compiling
  13431. See \`config.log' for more details." "$LINENO" 5; }
  13432. else
  13433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13434. /* end confdefs.h. */
  13435. #include <pthread.h>
  13436. __thread int a;
  13437. static int *volatile a_in_other_thread;
  13438. static void *
  13439. thread_func (void *arg)
  13440. {
  13441. a_in_other_thread = &a;
  13442. return (void *)0;
  13443. }
  13444. int
  13445. main ()
  13446. {
  13447. pthread_t thread;
  13448. void *thread_retval;
  13449. int *volatile a_in_main_thread;
  13450. a_in_main_thread = &a;
  13451. if (pthread_create (&thread, (pthread_attr_t *)0,
  13452. thread_func, (void *)0))
  13453. return 0;
  13454. if (pthread_join (thread, &thread_retval))
  13455. return 0;
  13456. return (a_in_other_thread == a_in_main_thread);
  13457. ;
  13458. return 0;
  13459. }
  13460. _ACEOF
  13461. if ac_fn_c_try_run "$LINENO"; then :
  13462. gcc_cv_have_tls=yes
  13463. else
  13464. gcc_cv_have_tls=no
  13465. fi
  13466. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13467. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13468. fi
  13469. CFLAGS="$chktls_save_CFLAGS"
  13470. fi
  13471. fi
  13472. else
  13473. gcc_cv_have_tls=no
  13474. fi
  13475. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13476. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13477. fi
  13478. fi
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  13480. $as_echo "$gcc_cv_have_tls" >&6; }
  13481. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  13482. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  13483. fi
  13484. # See if we have emulated thread-local storage.
  13485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
  13486. $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
  13487. if test "${gcc_cv_use_emutls+set}" = set; then :
  13488. $as_echo_n "(cached) " >&6
  13489. else
  13490. gcc_cv_use_emutls=no
  13491. echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
  13492. if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
  13493. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  13494. (eval $ac_try) 2>&5
  13495. ac_status=$?
  13496. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13497. test $ac_status = 0; }; }; then
  13498. if grep __emutls_get_address conftest.s > /dev/null; then
  13499. gcc_cv_use_emutls=yes
  13500. fi
  13501. fi
  13502. rm -f conftest.*
  13503. fi
  13504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
  13505. $as_echo "$gcc_cv_use_emutls" >&6; }
  13506. if test "$gcc_cv_use_emutls" = "yes" ; then
  13507. $as_echo "#define USE_EMUTLS 1" >>confdefs.h
  13508. fi
  13509. # See what sort of export controls are available.
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  13511. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  13512. if test "${libgomp_cv_have_attribute_visibility+set}" = set; then :
  13513. $as_echo_n "(cached) " >&6
  13514. else
  13515. save_CFLAGS="$CFLAGS"
  13516. CFLAGS="$CFLAGS -Werror"
  13517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13518. /* end confdefs.h. */
  13519. void __attribute__((visibility("hidden"))) foo(void) { }
  13520. int
  13521. main ()
  13522. {
  13523. ;
  13524. return 0;
  13525. }
  13526. _ACEOF
  13527. if ac_fn_c_try_compile "$LINENO"; then :
  13528. libgomp_cv_have_attribute_visibility=yes
  13529. else
  13530. libgomp_cv_have_attribute_visibility=no
  13531. fi
  13532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13533. CFLAGS="$save_CFLAGS"
  13534. fi
  13535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
  13536. $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
  13537. if test $libgomp_cv_have_attribute_visibility = yes; then
  13538. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  13539. fi
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  13541. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  13542. if test "${libgomp_cv_have_attribute_dllexport+set}" = set; then :
  13543. $as_echo_n "(cached) " >&6
  13544. else
  13545. save_CFLAGS="$CFLAGS"
  13546. CFLAGS="$CFLAGS -Werror"
  13547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13548. /* end confdefs.h. */
  13549. void __attribute__((dllexport)) foo(void) { }
  13550. int
  13551. main ()
  13552. {
  13553. ;
  13554. return 0;
  13555. }
  13556. _ACEOF
  13557. if ac_fn_c_try_compile "$LINENO"; then :
  13558. libgomp_cv_have_attribute_dllexport=yes
  13559. else
  13560. libgomp_cv_have_attribute_dllexport=no
  13561. fi
  13562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13563. CFLAGS="$save_CFLAGS"
  13564. fi
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
  13566. $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
  13567. if test $libgomp_cv_have_attribute_dllexport = yes; then
  13568. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  13569. fi
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  13571. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  13572. if test "${libgomp_cv_have_attribute_alias+set}" = set; then :
  13573. $as_echo_n "(cached) " >&6
  13574. else
  13575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13576. /* end confdefs.h. */
  13577. void foo(void) { }
  13578. extern void bar(void) __attribute__((alias("foo")));
  13579. int
  13580. main ()
  13581. {
  13582. bar();
  13583. ;
  13584. return 0;
  13585. }
  13586. _ACEOF
  13587. if ac_fn_c_try_link "$LINENO"; then :
  13588. libgomp_cv_have_attribute_alias=yes
  13589. else
  13590. libgomp_cv_have_attribute_alias=no
  13591. fi
  13592. rm -f core conftest.err conftest.$ac_objext \
  13593. conftest$ac_exeext conftest.$ac_ext
  13594. fi
  13595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
  13596. $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
  13597. if test $libgomp_cv_have_attribute_alias = yes; then
  13598. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  13599. fi
  13600. # Check whether --with-gnu-ld was given.
  13601. if test "${with_gnu_ld+set}" = set; then :
  13602. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  13603. else
  13604. with_gnu_ld=no
  13605. fi
  13606. ac_prog=ld
  13607. if test "$GCC" = yes; then
  13608. # Check if gcc -print-prog-name=ld gives a path.
  13609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  13610. $as_echo_n "checking for ld used by $CC... " >&6; }
  13611. case $host in
  13612. *-*-mingw*)
  13613. # gcc leaves a trailing carriage return which upsets mingw
  13614. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  13615. *)
  13616. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  13617. esac
  13618. case $ac_prog in
  13619. # Accept absolute paths.
  13620. [\\/]* | ?:[\\/]*)
  13621. re_direlt='/[^/][^/]*/\.\./'
  13622. # Canonicalize the pathname of ld
  13623. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  13624. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  13625. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  13626. done
  13627. test -z "$LD" && LD="$ac_prog"
  13628. ;;
  13629. "")
  13630. # If it fails, then pretend we aren't using GCC.
  13631. ac_prog=ld
  13632. ;;
  13633. *)
  13634. # If it is relative, then search for the first ld in PATH.
  13635. with_gnu_ld=unknown
  13636. ;;
  13637. esac
  13638. elif test "$with_gnu_ld" = yes; then
  13639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  13640. $as_echo_n "checking for GNU ld... " >&6; }
  13641. else
  13642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  13643. $as_echo_n "checking for non-GNU ld... " >&6; }
  13644. fi
  13645. if test "${lt_cv_path_LD+set}" = set; then :
  13646. $as_echo_n "(cached) " >&6
  13647. else
  13648. if test -z "$LD"; then
  13649. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13650. for ac_dir in $PATH; do
  13651. IFS="$lt_save_ifs"
  13652. test -z "$ac_dir" && ac_dir=.
  13653. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  13654. lt_cv_path_LD="$ac_dir/$ac_prog"
  13655. # Check to see if the program is GNU ld. I'd rather use --version,
  13656. # but apparently some variants of GNU ld only accept -v.
  13657. # Break only if it was the GNU/non-GNU ld that we prefer.
  13658. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  13659. *GNU* | *'with BFD'*)
  13660. test "$with_gnu_ld" != no && break
  13661. ;;
  13662. *)
  13663. test "$with_gnu_ld" != yes && break
  13664. ;;
  13665. esac
  13666. fi
  13667. done
  13668. IFS="$lt_save_ifs"
  13669. else
  13670. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  13671. fi
  13672. fi
  13673. LD="$lt_cv_path_LD"
  13674. if test -n "$LD"; then
  13675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  13676. $as_echo "$LD" >&6; }
  13677. else
  13678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13679. $as_echo "no" >&6; }
  13680. fi
  13681. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  13682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  13683. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  13684. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  13685. $as_echo_n "(cached) " >&6
  13686. else
  13687. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  13688. case `$LD -v 2>&1 </dev/null` in
  13689. *GNU* | *'with BFD'*)
  13690. lt_cv_prog_gnu_ld=yes
  13691. ;;
  13692. *)
  13693. lt_cv_prog_gnu_ld=no
  13694. ;;
  13695. esac
  13696. fi
  13697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  13698. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  13699. with_gnu_ld=$lt_cv_prog_gnu_ld
  13700. # If we're not using GNU ld, then there's no point in even trying these
  13701. # tests. Check for that first. We should have already tested for gld
  13702. # by now (in libtool), but require it now just to be safe...
  13703. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  13704. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  13705. # The name set by libtool depends on the version of libtool. Shame on us
  13706. # for depending on an impl detail, but c'est la vie. Older versions used
  13707. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  13708. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  13709. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  13710. # set (hence we're using an older libtool), then set it.
  13711. if test x${with_gnu_ld+set} != xset; then
  13712. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  13713. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  13714. with_gnu_ld=no
  13715. else
  13716. with_gnu_ld=$ac_cv_prog_gnu_ld
  13717. fi
  13718. fi
  13719. # Start by getting the version number. I think the libtool test already
  13720. # does some of this, but throws away the result.
  13721. libgomp_ld_is_gold=no
  13722. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  13723. libgomp_ld_is_gold=yes
  13724. fi
  13725. ldver=`$LD --version 2>/dev/null |
  13726. sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
  13727. libgomp_gnu_ld_version=`echo $ldver | \
  13728. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  13729. # Set --gc-sections.
  13730. if test "$with_gnu_ld" = "notbroken"; then
  13731. # GNU ld it is! Joy and bunny rabbits!
  13732. # All these tests are for C++; save the language and the compiler flags.
  13733. # Need to do this so that g++ won't try to link in libstdc++
  13734. ac_test_CFLAGS="${CFLAGS+set}"
  13735. ac_save_CFLAGS="$CFLAGS"
  13736. CFLAGS='-x c++ -Wl,--gc-sections'
  13737. # Check for -Wl,--gc-sections
  13738. # XXX This test is broken at the moment, as symbols required for linking
  13739. # are now in libsupc++ (not built yet). In addition, this test has
  13740. # cored on solaris in the past. In addition, --gc-sections doesn't
  13741. # really work at the moment (keeps on discarding used sections, first
  13742. # .eh_frame and now some of the glibc sections for iconv).
  13743. # Bzzzzt. Thanks for playing, maybe next time.
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  13745. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  13746. if test "$cross_compiling" = yes; then :
  13747. ac_sectionLDflags=yes
  13748. else
  13749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13750. /* end confdefs.h. */
  13751. int main(void)
  13752. {
  13753. try { throw 1; }
  13754. catch (...) { };
  13755. return 0;
  13756. }
  13757. _ACEOF
  13758. if ac_fn_c_try_run "$LINENO"; then :
  13759. ac_sectionLDflags=yes
  13760. else
  13761. ac_sectionLDflags=no
  13762. fi
  13763. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13764. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13765. fi
  13766. if test "$ac_test_CFLAGS" = set; then
  13767. CFLAGS="$ac_save_CFLAGS"
  13768. else
  13769. # this is the suspicious part
  13770. CFLAGS=''
  13771. fi
  13772. if test "$ac_sectionLDflags" = "yes"; then
  13773. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  13774. fi
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  13776. $as_echo "$ac_sectionLDflags" >&6; }
  13777. fi
  13778. # Set linker optimization flags.
  13779. if test x"$with_gnu_ld" = x"yes"; then
  13780. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  13781. fi
  13782. # Check whether --enable-symvers was given.
  13783. if test "${enable_symvers+set}" = set; then :
  13784. enableval=$enable_symvers;
  13785. case "$enableval" in
  13786. yes|no|gnu*|sun) ;;
  13787. *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  13788. esac
  13789. else
  13790. enable_symvers=yes
  13791. fi
  13792. # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
  13793. # don't know enough about $LD to do tricks...
  13794. # Turn a 'yes' into a suitable default.
  13795. if test x$enable_symvers = xyes ; then
  13796. # FIXME The following test is too strict, in theory.
  13797. if test $enable_shared = no || test "x$LD" = x; then
  13798. enable_symvers=no
  13799. else
  13800. if test $with_gnu_ld = yes ; then
  13801. enable_symvers=gnu
  13802. else
  13803. case ${target_os} in
  13804. # Sun symbol versioning exists since Solaris 2.5.
  13805. solaris2.[5-9]* | solaris2.1[0-9]*)
  13806. enable_symvers=sun ;;
  13807. *)
  13808. enable_symvers=no ;;
  13809. esac
  13810. fi
  13811. fi
  13812. fi
  13813. # Check if 'sun' was requested on non-Solaris 2 platforms.
  13814. if test x$enable_symvers = xsun ; then
  13815. case ${target_os} in
  13816. solaris2*)
  13817. # All fine.
  13818. ;;
  13819. *)
  13820. # Unlikely to work.
  13821. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  13822. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  13824. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  13825. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13826. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13827. enable_symvers=no
  13828. ;;
  13829. esac
  13830. fi
  13831. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  13832. if test $enable_symvers != no; then
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  13834. $as_echo_n "checking for shared libgcc... " >&6; }
  13835. ac_save_CFLAGS="$CFLAGS"
  13836. CFLAGS=' -lgcc_s'
  13837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13838. /* end confdefs.h. */
  13839. int
  13840. main ()
  13841. {
  13842. return 0;
  13843. ;
  13844. return 0;
  13845. }
  13846. _ACEOF
  13847. if ac_fn_c_try_link "$LINENO"; then :
  13848. libgomp_shared_libgcc=yes
  13849. else
  13850. libgomp_shared_libgcc=no
  13851. fi
  13852. rm -f core conftest.err conftest.$ac_objext \
  13853. conftest$ac_exeext conftest.$ac_ext
  13854. CFLAGS="$ac_save_CFLAGS"
  13855. if test $libgomp_shared_libgcc = no; then
  13856. cat > conftest.c <<EOF
  13857. int main (void) { return 0; }
  13858. EOF
  13859. libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  13860. -shared -shared-libgcc -o conftest.so \
  13861. conftest.c -v 2>&1 >/dev/null \
  13862. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  13863. rm -f conftest.c conftest.so
  13864. if test x${libgomp_libgcc_s_suffix+set} = xset; then
  13865. CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
  13866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13867. /* end confdefs.h. */
  13868. int
  13869. main ()
  13870. {
  13871. return 0;
  13872. ;
  13873. return 0;
  13874. }
  13875. _ACEOF
  13876. if ac_fn_c_try_link "$LINENO"; then :
  13877. libgomp_shared_libgcc=yes
  13878. fi
  13879. rm -f core conftest.err conftest.$ac_objext \
  13880. conftest$ac_exeext conftest.$ac_ext
  13881. CFLAGS="$ac_save_CFLAGS"
  13882. fi
  13883. fi
  13884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
  13885. $as_echo "$libgomp_shared_libgcc" >&6; }
  13886. fi
  13887. # For GNU ld, we need at least this version. The format is described in
  13888. # LIBGOMP_CHECK_LINKER_FEATURES above.
  13889. libgomp_min_gnu_ld_version=21400
  13890. # XXXXXXXXXXX libgomp_gnu_ld_version=21390
  13891. # Check to see if unspecified "yes" value can win, given results above.
  13892. # Change "yes" into either "no" or a style name.
  13893. if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
  13894. if test $with_gnu_ld = yes; then
  13895. if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
  13896. enable_symvers=gnu
  13897. elif test $libgomp_ld_is_gold = yes ; then
  13898. enable_symvers=gnu
  13899. else
  13900. # The right tools, the right setup, but too old. Fallbacks?
  13901. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
  13902. $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
  13903. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  13904. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  13906. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
  13908. $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
  13909. if test $libgomp_gnu_ld_version -ge 21200 ; then
  13910. # Globbing fix is present, proper block support is not.
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13912. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13913. enable_symvers=no
  13914. else
  13915. # 2.11 or older.
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13917. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13918. enable_symvers=no
  13919. fi
  13920. fi
  13921. elif test $enable_symvers = sun; then
  13922. : All interesting versions of Sun ld support sun style symbol versioning.
  13923. else
  13924. # just fail for now
  13925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  13926. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  13927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  13928. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  13929. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  13930. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  13931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13932. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13933. enable_symvers=no
  13934. fi
  13935. fi
  13936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
  13937. $as_echo_n "checking whether the target supports .symver directive... " >&6; }
  13938. if test "${libgomp_cv_have_as_symver_directive+set}" = set; then :
  13939. $as_echo_n "(cached) " >&6
  13940. else
  13941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13942. /* end confdefs.h. */
  13943. void foo (void); __asm (".symver foo, bar@SYMVER");
  13944. int
  13945. main ()
  13946. {
  13947. ;
  13948. return 0;
  13949. }
  13950. _ACEOF
  13951. if ac_fn_c_try_compile "$LINENO"; then :
  13952. libgomp_cv_have_as_symver_directive=yes
  13953. else
  13954. libgomp_cv_have_as_symver_directive=no
  13955. fi
  13956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13957. fi
  13958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
  13959. $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
  13960. if test $libgomp_cv_have_as_symver_directive = yes; then
  13961. $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
  13962. fi
  13963. if test $enable_symvers != no; then
  13964. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
  13965. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
  13966. else
  13967. LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
  13968. LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
  13969. fi
  13970. if test $enable_symvers = gnu; then
  13971. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  13972. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  13973. else
  13974. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  13975. LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  13976. fi
  13977. if test $enable_symvers = sun; then
  13978. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  13979. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  13980. else
  13981. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  13982. LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  13983. fi
  13984. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  13985. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  13986. if test $enable_symvers != no ; then
  13987. case ${target_os} in
  13988. # The Solaris 2 runtime linker doesn't support the GNU extension of
  13989. # binding the same symbol to different versions
  13990. solaris2*)
  13991. ;;
  13992. # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
  13993. *)
  13994. $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
  13995. ;;
  13996. esac
  13997. fi
  13998. if test $enable_symvers = gnu; then
  13999. $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  14000. fi
  14001. # Get target configury.
  14002. . ${srcdir}/configure.tgt
  14003. CFLAGS="$save_CFLAGS $XCFLAGS"
  14004. # Check for __sync_val_compare_and_swap, but only after the target has
  14005. # had a chance to set XCFLAGS.
  14006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
  14007. $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
  14008. if test "${libgomp_cv_have_sync_builtins+set}" = set; then :
  14009. $as_echo_n "(cached) " >&6
  14010. else
  14011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14012. /* end confdefs.h. */
  14013. int
  14014. main ()
  14015. {
  14016. int foo; __sync_val_compare_and_swap(&foo, 0, 1);
  14017. ;
  14018. return 0;
  14019. }
  14020. _ACEOF
  14021. if ac_fn_c_try_link "$LINENO"; then :
  14022. libgomp_cv_have_sync_builtins=yes
  14023. else
  14024. libgomp_cv_have_sync_builtins=no
  14025. fi
  14026. rm -f core conftest.err conftest.$ac_objext \
  14027. conftest$ac_exeext conftest.$ac_ext
  14028. fi
  14029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
  14030. $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
  14031. if test $libgomp_cv_have_sync_builtins = yes; then
  14032. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  14033. fi
  14034. XCFLAGS="$XCFLAGS$XPCFLAGS"
  14035. # Cleanup and exit.
  14036. CFLAGS="$save_CFLAGS"
  14037. cat >confcache <<\_ACEOF
  14038. # This file is a shell script that caches the results of configure
  14039. # tests run on this system so they can be shared between configure
  14040. # scripts and configure runs, see configure's option --config-cache.
  14041. # It is not useful on other systems. If it contains results you don't
  14042. # want to keep, you may remove or edit it.
  14043. #
  14044. # config.status only pays attention to the cache file if you give it
  14045. # the --recheck option to rerun configure.
  14046. #
  14047. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14048. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14049. # following values.
  14050. _ACEOF
  14051. # The following way of writing the cache mishandles newlines in values,
  14052. # but we know of no workaround that is simple, portable, and efficient.
  14053. # So, we kill variables containing newlines.
  14054. # Ultrix sh set writes to stderr and can't be redirected directly,
  14055. # and sets the high bit in the cache file unless we assign to the vars.
  14056. (
  14057. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14058. eval ac_val=\$$ac_var
  14059. case $ac_val in #(
  14060. *${as_nl}*)
  14061. case $ac_var in #(
  14062. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14063. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14064. esac
  14065. case $ac_var in #(
  14066. _ | IFS | as_nl) ;; #(
  14067. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14068. *) { eval $ac_var=; unset $ac_var;} ;;
  14069. esac ;;
  14070. esac
  14071. done
  14072. (set) 2>&1 |
  14073. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14074. *${as_nl}ac_space=\ *)
  14075. # `set' does not quote correctly, so add quotes: double-quote
  14076. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14077. sed -n \
  14078. "s/'/'\\\\''/g;
  14079. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14080. ;; #(
  14081. *)
  14082. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14083. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14084. ;;
  14085. esac |
  14086. sort
  14087. ) |
  14088. sed '
  14089. /^ac_cv_env_/b end
  14090. t clear
  14091. :clear
  14092. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14093. t end
  14094. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14095. :end' >>confcache
  14096. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14097. if test -w "$cache_file"; then
  14098. test "x$cache_file" != "x/dev/null" &&
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14100. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14101. cat confcache >$cache_file
  14102. else
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14104. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14105. fi
  14106. fi
  14107. rm -f confcache
  14108. if test ${multilib} = yes; then
  14109. multilib_arg="--enable-multilib"
  14110. else
  14111. multilib_arg=
  14112. fi
  14113. # Set up the set of libraries that we need to link against for libgomp.
  14114. # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
  14115. # which will force linkage against -lpthread (or equivalent for the system).
  14116. # That's not 100% ideal, but about the best we can do easily.
  14117. if test $enable_shared = yes; then
  14118. link_gomp="-lgomp %{static: $LIBS}"
  14119. else
  14120. link_gomp="-lgomp $LIBS"
  14121. fi
  14122. if test "$ac_cv_fc_compiler_gnu" = yes; then
  14123. USE_FORTRAN_TRUE=
  14124. USE_FORTRAN_FALSE='#'
  14125. else
  14126. USE_FORTRAN_TRUE='#'
  14127. USE_FORTRAN_FALSE=
  14128. fi
  14129. # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
  14130. # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
  14131. # the underscore here and update the PREREQ. If it doesn't, then we'll
  14132. # need to copy this macro to our acinclude.m4.
  14133. save_CFLAGS="$CFLAGS"
  14134. for i in $config_path; do
  14135. if test -f $srcdir/config/$i/omp-lock.h; then
  14136. CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
  14137. break
  14138. fi
  14139. done
  14140. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
  14141. else
  14142. as_fn_error "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
  14143. fi
  14144. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
  14145. fi
  14146. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
  14147. fi
  14148. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
  14149. fi
  14150. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
  14151. else
  14152. as_fn_error "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
  14153. fi
  14154. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
  14155. fi
  14156. if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
  14157. fi
  14158. if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
  14159. fi
  14160. # If the lock fits in an integer, then arrange for Fortran to use that
  14161. # integer. If it doesn't, then arrange for Fortran to use a pointer.
  14162. # Except that we don't have a way at present to multi-lib the installed
  14163. # Fortran modules, so we assume 8 bytes for pointers, regardless of the
  14164. # actual target.
  14165. OMP_LOCK_KIND=$OMP_LOCK_SIZE
  14166. OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
  14167. if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
  14168. OMP_LOCK_KIND=8
  14169. fi
  14170. if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
  14171. OMP_NEST_LOCK_KIND=8
  14172. fi
  14173. OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
  14174. OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
  14175. if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
  14176. OMP_LOCK_25_KIND=8
  14177. fi
  14178. if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
  14179. OMP_NEST_LOCK_25_KIND=8
  14180. fi
  14181. CFLAGS="$save_CFLAGS"
  14182. ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
  14183. ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
  14184. ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
  14185. cat >confcache <<\_ACEOF
  14186. # This file is a shell script that caches the results of configure
  14187. # tests run on this system so they can be shared between configure
  14188. # scripts and configure runs, see configure's option --config-cache.
  14189. # It is not useful on other systems. If it contains results you don't
  14190. # want to keep, you may remove or edit it.
  14191. #
  14192. # config.status only pays attention to the cache file if you give it
  14193. # the --recheck option to rerun configure.
  14194. #
  14195. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14196. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14197. # following values.
  14198. _ACEOF
  14199. # The following way of writing the cache mishandles newlines in values,
  14200. # but we know of no workaround that is simple, portable, and efficient.
  14201. # So, we kill variables containing newlines.
  14202. # Ultrix sh set writes to stderr and can't be redirected directly,
  14203. # and sets the high bit in the cache file unless we assign to the vars.
  14204. (
  14205. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14206. eval ac_val=\$$ac_var
  14207. case $ac_val in #(
  14208. *${as_nl}*)
  14209. case $ac_var in #(
  14210. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14211. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14212. esac
  14213. case $ac_var in #(
  14214. _ | IFS | as_nl) ;; #(
  14215. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14216. *) { eval $ac_var=; unset $ac_var;} ;;
  14217. esac ;;
  14218. esac
  14219. done
  14220. (set) 2>&1 |
  14221. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14222. *${as_nl}ac_space=\ *)
  14223. # `set' does not quote correctly, so add quotes: double-quote
  14224. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14225. sed -n \
  14226. "s/'/'\\\\''/g;
  14227. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14228. ;; #(
  14229. *)
  14230. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14231. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14232. ;;
  14233. esac |
  14234. sort
  14235. ) |
  14236. sed '
  14237. /^ac_cv_env_/b end
  14238. t clear
  14239. :clear
  14240. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14241. t end
  14242. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14243. :end' >>confcache
  14244. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14245. if test -w "$cache_file"; then
  14246. test "x$cache_file" != "x/dev/null" &&
  14247. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14248. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14249. cat confcache >$cache_file
  14250. else
  14251. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14252. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14253. fi
  14254. fi
  14255. rm -f confcache
  14256. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14257. # Let make expand exec_prefix.
  14258. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14259. DEFS=-DHAVE_CONFIG_H
  14260. ac_libobjs=
  14261. ac_ltlibobjs=
  14262. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14263. # 1. Remove the extension, and $U if already installed.
  14264. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14265. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14266. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14267. # will be set to the directory where LIBOBJS objects are built.
  14268. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14269. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14270. done
  14271. LIBOBJS=$ac_libobjs
  14272. LTLIBOBJS=$ac_ltlibobjs
  14273. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  14274. as_fn_error "conditional \"GENINSRC\" was never defined.
  14275. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14276. fi
  14277. if test -n "$EXEEXT"; then
  14278. am__EXEEXT_TRUE=
  14279. am__EXEEXT_FALSE='#'
  14280. else
  14281. am__EXEEXT_TRUE='#'
  14282. am__EXEEXT_FALSE=
  14283. fi
  14284. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14285. as_fn_error "conditional \"AMDEP\" was never defined.
  14286. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14287. fi
  14288. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14289. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14290. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14291. fi
  14292. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  14293. as_fn_error "conditional \"BUILD_INFO\" was never defined.
  14294. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14295. fi
  14296. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14297. as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  14298. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14299. fi
  14300. if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
  14301. as_fn_error "conditional \"PLUGIN_NVPTX\" was never defined.
  14302. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14303. fi
  14304. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
  14305. as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
  14306. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14307. fi
  14308. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  14309. as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  14310. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14311. fi
  14312. if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  14313. as_fn_error "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  14314. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14315. fi
  14316. if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
  14317. as_fn_error "conditional \"USE_FORTRAN\" was never defined.
  14318. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14319. fi
  14320. : ${CONFIG_STATUS=./config.status}
  14321. ac_write_fail=0
  14322. ac_clean_files_save=$ac_clean_files
  14323. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14325. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14326. as_write_fail=0
  14327. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14328. #! $SHELL
  14329. # Generated by $as_me.
  14330. # Run this file to recreate the current configuration.
  14331. # Compiler output produced by configure, useful for debugging
  14332. # configure, is in config.log if it exists.
  14333. debug=false
  14334. ac_cs_recheck=false
  14335. ac_cs_silent=false
  14336. SHELL=\${CONFIG_SHELL-$SHELL}
  14337. export SHELL
  14338. _ASEOF
  14339. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14340. ## -------------------- ##
  14341. ## M4sh Initialization. ##
  14342. ## -------------------- ##
  14343. # Be more Bourne compatible
  14344. DUALCASE=1; export DUALCASE # for MKS sh
  14345. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14346. emulate sh
  14347. NULLCMD=:
  14348. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14349. # is contrary to our usage. Disable this feature.
  14350. alias -g '${1+"$@"}'='"$@"'
  14351. setopt NO_GLOB_SUBST
  14352. else
  14353. case `(set -o) 2>/dev/null` in #(
  14354. *posix*) :
  14355. set -o posix ;; #(
  14356. *) :
  14357. ;;
  14358. esac
  14359. fi
  14360. as_nl='
  14361. '
  14362. export as_nl
  14363. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14364. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14365. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14366. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14367. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14368. # but without wasting forks for bash or zsh.
  14369. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14370. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14371. as_echo='print -r --'
  14372. as_echo_n='print -rn --'
  14373. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14374. as_echo='printf %s\n'
  14375. as_echo_n='printf %s'
  14376. else
  14377. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14378. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14379. as_echo_n='/usr/ucb/echo -n'
  14380. else
  14381. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14382. as_echo_n_body='eval
  14383. arg=$1;
  14384. case $arg in #(
  14385. *"$as_nl"*)
  14386. expr "X$arg" : "X\\(.*\\)$as_nl";
  14387. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14388. esac;
  14389. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14390. '
  14391. export as_echo_n_body
  14392. as_echo_n='sh -c $as_echo_n_body as_echo'
  14393. fi
  14394. export as_echo_body
  14395. as_echo='sh -c $as_echo_body as_echo'
  14396. fi
  14397. # The user is always right.
  14398. if test "${PATH_SEPARATOR+set}" != set; then
  14399. PATH_SEPARATOR=:
  14400. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14401. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14402. PATH_SEPARATOR=';'
  14403. }
  14404. fi
  14405. # IFS
  14406. # We need space, tab and new line, in precisely that order. Quoting is
  14407. # there to prevent editors from complaining about space-tab.
  14408. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14409. # splitting by setting IFS to empty value.)
  14410. IFS=" "" $as_nl"
  14411. # Find who we are. Look in the path if we contain no directory separator.
  14412. case $0 in #((
  14413. *[\\/]* ) as_myself=$0 ;;
  14414. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14415. for as_dir in $PATH
  14416. do
  14417. IFS=$as_save_IFS
  14418. test -z "$as_dir" && as_dir=.
  14419. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14420. done
  14421. IFS=$as_save_IFS
  14422. ;;
  14423. esac
  14424. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14425. # in which case we are not to be found in the path.
  14426. if test "x$as_myself" = x; then
  14427. as_myself=$0
  14428. fi
  14429. if test ! -f "$as_myself"; then
  14430. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14431. exit 1
  14432. fi
  14433. # Unset variables that we do not need and which cause bugs (e.g. in
  14434. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14435. # suppresses any "Segmentation fault" message there. '((' could
  14436. # trigger a bug in pdksh 5.2.14.
  14437. for as_var in BASH_ENV ENV MAIL MAILPATH
  14438. do eval test x\${$as_var+set} = xset \
  14439. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14440. done
  14441. PS1='$ '
  14442. PS2='> '
  14443. PS4='+ '
  14444. # NLS nuisances.
  14445. LC_ALL=C
  14446. export LC_ALL
  14447. LANGUAGE=C
  14448. export LANGUAGE
  14449. # CDPATH.
  14450. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14451. # as_fn_error ERROR [LINENO LOG_FD]
  14452. # ---------------------------------
  14453. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14454. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14455. # script with status $?, using 1 if that was 0.
  14456. as_fn_error ()
  14457. {
  14458. as_status=$?; test $as_status -eq 0 && as_status=1
  14459. if test "$3"; then
  14460. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14461. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14462. fi
  14463. $as_echo "$as_me: error: $1" >&2
  14464. as_fn_exit $as_status
  14465. } # as_fn_error
  14466. # as_fn_set_status STATUS
  14467. # -----------------------
  14468. # Set $? to STATUS, without forking.
  14469. as_fn_set_status ()
  14470. {
  14471. return $1
  14472. } # as_fn_set_status
  14473. # as_fn_exit STATUS
  14474. # -----------------
  14475. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14476. as_fn_exit ()
  14477. {
  14478. set +e
  14479. as_fn_set_status $1
  14480. exit $1
  14481. } # as_fn_exit
  14482. # as_fn_unset VAR
  14483. # ---------------
  14484. # Portably unset VAR.
  14485. as_fn_unset ()
  14486. {
  14487. { eval $1=; unset $1;}
  14488. }
  14489. as_unset=as_fn_unset
  14490. # as_fn_append VAR VALUE
  14491. # ----------------------
  14492. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14493. # advantage of any shell optimizations that allow amortized linear growth over
  14494. # repeated appends, instead of the typical quadratic growth present in naive
  14495. # implementations.
  14496. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14497. eval 'as_fn_append ()
  14498. {
  14499. eval $1+=\$2
  14500. }'
  14501. else
  14502. as_fn_append ()
  14503. {
  14504. eval $1=\$$1\$2
  14505. }
  14506. fi # as_fn_append
  14507. # as_fn_arith ARG...
  14508. # ------------------
  14509. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14510. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14511. # must be portable across $(()) and expr.
  14512. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14513. eval 'as_fn_arith ()
  14514. {
  14515. as_val=$(( $* ))
  14516. }'
  14517. else
  14518. as_fn_arith ()
  14519. {
  14520. as_val=`expr "$@" || test $? -eq 1`
  14521. }
  14522. fi # as_fn_arith
  14523. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14524. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14525. as_expr=expr
  14526. else
  14527. as_expr=false
  14528. fi
  14529. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14530. as_basename=basename
  14531. else
  14532. as_basename=false
  14533. fi
  14534. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14535. as_dirname=dirname
  14536. else
  14537. as_dirname=false
  14538. fi
  14539. as_me=`$as_basename -- "$0" ||
  14540. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14541. X"$0" : 'X\(//\)$' \| \
  14542. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14543. $as_echo X/"$0" |
  14544. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14545. s//\1/
  14546. q
  14547. }
  14548. /^X\/\(\/\/\)$/{
  14549. s//\1/
  14550. q
  14551. }
  14552. /^X\/\(\/\).*/{
  14553. s//\1/
  14554. q
  14555. }
  14556. s/.*/./; q'`
  14557. # Avoid depending upon Character Ranges.
  14558. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14559. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14560. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14561. as_cr_digits='0123456789'
  14562. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14563. ECHO_C= ECHO_N= ECHO_T=
  14564. case `echo -n x` in #(((((
  14565. -n*)
  14566. case `echo 'xy\c'` in
  14567. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14568. xy) ECHO_C='\c';;
  14569. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14570. ECHO_T=' ';;
  14571. esac;;
  14572. *)
  14573. ECHO_N='-n';;
  14574. esac
  14575. rm -f conf$$ conf$$.exe conf$$.file
  14576. if test -d conf$$.dir; then
  14577. rm -f conf$$.dir/conf$$.file
  14578. else
  14579. rm -f conf$$.dir
  14580. mkdir conf$$.dir 2>/dev/null
  14581. fi
  14582. if (echo >conf$$.file) 2>/dev/null; then
  14583. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14584. as_ln_s='ln -s'
  14585. # ... but there are two gotchas:
  14586. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14587. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14588. # In both cases, we have to default to `cp -p'.
  14589. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14590. as_ln_s='cp -p'
  14591. elif ln conf$$.file conf$$ 2>/dev/null; then
  14592. as_ln_s=ln
  14593. else
  14594. as_ln_s='cp -p'
  14595. fi
  14596. else
  14597. as_ln_s='cp -p'
  14598. fi
  14599. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14600. rmdir conf$$.dir 2>/dev/null
  14601. # as_fn_mkdir_p
  14602. # -------------
  14603. # Create "$as_dir" as a directory, including parents if necessary.
  14604. as_fn_mkdir_p ()
  14605. {
  14606. case $as_dir in #(
  14607. -*) as_dir=./$as_dir;;
  14608. esac
  14609. test -d "$as_dir" || eval $as_mkdir_p || {
  14610. as_dirs=
  14611. while :; do
  14612. case $as_dir in #(
  14613. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14614. *) as_qdir=$as_dir;;
  14615. esac
  14616. as_dirs="'$as_qdir' $as_dirs"
  14617. as_dir=`$as_dirname -- "$as_dir" ||
  14618. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14619. X"$as_dir" : 'X\(//\)[^/]' \| \
  14620. X"$as_dir" : 'X\(//\)$' \| \
  14621. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14622. $as_echo X"$as_dir" |
  14623. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14624. s//\1/
  14625. q
  14626. }
  14627. /^X\(\/\/\)[^/].*/{
  14628. s//\1/
  14629. q
  14630. }
  14631. /^X\(\/\/\)$/{
  14632. s//\1/
  14633. q
  14634. }
  14635. /^X\(\/\).*/{
  14636. s//\1/
  14637. q
  14638. }
  14639. s/.*/./; q'`
  14640. test -d "$as_dir" && break
  14641. done
  14642. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14643. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14644. } # as_fn_mkdir_p
  14645. if mkdir -p . 2>/dev/null; then
  14646. as_mkdir_p='mkdir -p "$as_dir"'
  14647. else
  14648. test -d ./-p && rmdir ./-p
  14649. as_mkdir_p=false
  14650. fi
  14651. if test -x / >/dev/null 2>&1; then
  14652. as_test_x='test -x'
  14653. else
  14654. if ls -dL / >/dev/null 2>&1; then
  14655. as_ls_L_option=L
  14656. else
  14657. as_ls_L_option=
  14658. fi
  14659. as_test_x='
  14660. eval sh -c '\''
  14661. if test -d "$1"; then
  14662. test -d "$1/.";
  14663. else
  14664. case $1 in #(
  14665. -*)set "./$1";;
  14666. esac;
  14667. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14668. ???[sx]*):;;*)false;;esac;fi
  14669. '\'' sh
  14670. '
  14671. fi
  14672. as_executable_p=$as_test_x
  14673. # Sed expression to map a string onto a valid CPP name.
  14674. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14675. # Sed expression to map a string onto a valid variable name.
  14676. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14677. exec 6>&1
  14678. ## ----------------------------------- ##
  14679. ## Main body of $CONFIG_STATUS script. ##
  14680. ## ----------------------------------- ##
  14681. _ASEOF
  14682. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14683. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14684. # Save the log message, to keep $0 and so on meaningful, and to
  14685. # report actual input values of CONFIG_FILES etc. instead of their
  14686. # values after options handling.
  14687. ac_log="
  14688. This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
  14689. generated by GNU Autoconf 2.64. Invocation command line was
  14690. CONFIG_FILES = $CONFIG_FILES
  14691. CONFIG_HEADERS = $CONFIG_HEADERS
  14692. CONFIG_LINKS = $CONFIG_LINKS
  14693. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14694. $ $0 $@
  14695. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14696. "
  14697. _ACEOF
  14698. case $ac_config_files in *"
  14699. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14700. esac
  14701. case $ac_config_headers in *"
  14702. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14703. esac
  14704. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14705. # Files that config.status was made for.
  14706. config_files="$ac_config_files"
  14707. config_headers="$ac_config_headers"
  14708. config_commands="$ac_config_commands"
  14709. _ACEOF
  14710. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14711. ac_cs_usage="\
  14712. \`$as_me' instantiates files and other configuration actions
  14713. from templates according to the current configuration. Unless the files
  14714. and actions are specified as TAGs, all are instantiated by default.
  14715. Usage: $0 [OPTION]... [TAG]...
  14716. -h, --help print this help, then exit
  14717. -V, --version print version number and configuration settings, then exit
  14718. -q, --quiet, --silent
  14719. do not print progress messages
  14720. -d, --debug don't remove temporary files
  14721. --recheck update $as_me by reconfiguring in the same conditions
  14722. --file=FILE[:TEMPLATE]
  14723. instantiate the configuration file FILE
  14724. --header=FILE[:TEMPLATE]
  14725. instantiate the configuration header FILE
  14726. Configuration files:
  14727. $config_files
  14728. Configuration headers:
  14729. $config_headers
  14730. Configuration commands:
  14731. $config_commands
  14732. Report bugs to the package provider.
  14733. GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
  14734. General help using GNU software: <http://www.gnu.org/gethelp/>."
  14735. _ACEOF
  14736. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14737. ac_cs_version="\\
  14738. GNU Offloading and Multi Processing Runtime Library config.status 1.0
  14739. configured by $0, generated by GNU Autoconf 2.64,
  14740. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14741. Copyright (C) 2009 Free Software Foundation, Inc.
  14742. This config.status script is free software; the Free Software Foundation
  14743. gives unlimited permission to copy, distribute and modify it."
  14744. ac_pwd='$ac_pwd'
  14745. srcdir='$srcdir'
  14746. INSTALL='$INSTALL'
  14747. MKDIR_P='$MKDIR_P'
  14748. AWK='$AWK'
  14749. test -n "\$AWK" || AWK=awk
  14750. _ACEOF
  14751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14752. # The default lists apply if the user does not specify any file.
  14753. ac_need_defaults=:
  14754. while test $# != 0
  14755. do
  14756. case $1 in
  14757. --*=*)
  14758. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14759. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14760. ac_shift=:
  14761. ;;
  14762. *)
  14763. ac_option=$1
  14764. ac_optarg=$2
  14765. ac_shift=shift
  14766. ;;
  14767. esac
  14768. case $ac_option in
  14769. # Handling of the options.
  14770. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14771. ac_cs_recheck=: ;;
  14772. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14773. $as_echo "$ac_cs_version"; exit ;;
  14774. --debug | --debu | --deb | --de | --d | -d )
  14775. debug=: ;;
  14776. --file | --fil | --fi | --f )
  14777. $ac_shift
  14778. case $ac_optarg in
  14779. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14780. esac
  14781. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14782. ac_need_defaults=false;;
  14783. --header | --heade | --head | --hea )
  14784. $ac_shift
  14785. case $ac_optarg in
  14786. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14787. esac
  14788. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14789. ac_need_defaults=false;;
  14790. --he | --h)
  14791. # Conflict between --help and --header
  14792. as_fn_error "ambiguous option: \`$1'
  14793. Try \`$0 --help' for more information.";;
  14794. --help | --hel | -h )
  14795. $as_echo "$ac_cs_usage"; exit ;;
  14796. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14797. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14798. ac_cs_silent=: ;;
  14799. # This is an error.
  14800. -*) as_fn_error "unrecognized option: \`$1'
  14801. Try \`$0 --help' for more information." ;;
  14802. *) as_fn_append ac_config_targets " $1"
  14803. ac_need_defaults=false ;;
  14804. esac
  14805. shift
  14806. done
  14807. ac_configure_extra_args=
  14808. if $ac_cs_silent; then
  14809. exec 6>/dev/null
  14810. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14811. fi
  14812. _ACEOF
  14813. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14814. if \$ac_cs_recheck; then
  14815. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14816. shift
  14817. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14818. CONFIG_SHELL='$SHELL'
  14819. export CONFIG_SHELL
  14820. exec "\$@"
  14821. fi
  14822. _ACEOF
  14823. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14824. exec 5>>config.log
  14825. {
  14826. echo
  14827. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14828. ## Running $as_me. ##
  14829. _ASBOX
  14830. $as_echo "$ac_log"
  14831. } >&5
  14832. _ACEOF
  14833. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14834. #
  14835. # INIT-COMMANDS
  14836. #
  14837. srcdir="$srcdir"
  14838. host="$host"
  14839. target="$target"
  14840. with_multisubdir="$with_multisubdir"
  14841. with_multisrctop="$with_multisrctop"
  14842. with_target_subdir="$with_target_subdir"
  14843. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14844. multi_basedir="$multi_basedir"
  14845. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14846. CC="$CC"
  14847. CXX="$CXX"
  14848. GFORTRAN="$GFORTRAN"
  14849. GCJ="$GCJ"
  14850. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14851. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14852. # if CDPATH is set.
  14853. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14854. sed_quote_subst='$sed_quote_subst'
  14855. double_quote_subst='$double_quote_subst'
  14856. delay_variable_subst='$delay_variable_subst'
  14857. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14858. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14859. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14860. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14861. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14862. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14863. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14864. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14865. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14866. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14867. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14868. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14869. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14870. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14871. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14872. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14873. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14874. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14875. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14876. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14877. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14878. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14879. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14880. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14881. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14882. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14883. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14884. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14885. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14886. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14887. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14888. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14889. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14890. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14891. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14892. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14893. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14894. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14895. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14896. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14897. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14898. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14899. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14900. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14901. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14902. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14903. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14904. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14905. 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"`'
  14906. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14907. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14908. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14909. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14910. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14911. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14912. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14913. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14914. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14915. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14916. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14917. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14918. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14919. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14920. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14921. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14922. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14923. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14924. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14925. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14926. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14927. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14928. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14929. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14930. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14931. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14932. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14933. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14934. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14935. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14936. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14937. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14938. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14939. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14940. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14941. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14942. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14943. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14944. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14945. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14946. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14947. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14948. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14949. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14950. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14951. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14952. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14953. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14954. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14955. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14956. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14957. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14958. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14959. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14960. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14961. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14962. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14963. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14964. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14965. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14966. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14967. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14968. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14969. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14970. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14971. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14972. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14973. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14974. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14975. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14976. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14977. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  14978. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  14979. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  14980. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  14981. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  14982. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  14983. LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
  14984. reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
  14985. reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
  14986. old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
  14987. compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
  14988. GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
  14989. lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
  14990. lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
  14991. lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
  14992. lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
  14993. lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
  14994. archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
  14995. enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
  14996. export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  14997. whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  14998. compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
  14999. old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15000. old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15001. archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15002. archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15003. module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15004. module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15005. with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
  15006. allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
  15007. no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
  15008. hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
  15009. hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
  15010. hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
  15011. hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
  15012. hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
  15013. hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
  15014. hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
  15015. hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
  15016. inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
  15017. link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
  15018. fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
  15019. always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
  15020. export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15021. exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
  15022. include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
  15023. prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
  15024. file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
  15025. hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
  15026. compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
  15027. predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
  15028. postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
  15029. predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
  15030. postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
  15031. compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
  15032. LTCC='$LTCC'
  15033. LTCFLAGS='$LTCFLAGS'
  15034. compiler='$compiler_DEFAULT'
  15035. # A function that is used when there is no print builtin or printf.
  15036. func_fallback_echo ()
  15037. {
  15038. eval 'cat <<_LTECHO_EOF
  15039. \$1
  15040. _LTECHO_EOF'
  15041. }
  15042. # Quote evaled strings.
  15043. for var in SHELL \
  15044. ECHO \
  15045. SED \
  15046. GREP \
  15047. EGREP \
  15048. FGREP \
  15049. LD \
  15050. NM \
  15051. LN_S \
  15052. lt_SP2NL \
  15053. lt_NL2SP \
  15054. reload_flag \
  15055. OBJDUMP \
  15056. deplibs_check_method \
  15057. file_magic_cmd \
  15058. AR \
  15059. AR_FLAGS \
  15060. STRIP \
  15061. RANLIB \
  15062. CC \
  15063. CFLAGS \
  15064. compiler \
  15065. lt_cv_sys_global_symbol_pipe \
  15066. lt_cv_sys_global_symbol_to_cdecl \
  15067. lt_cv_sys_global_symbol_to_c_name_address \
  15068. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15069. lt_prog_compiler_no_builtin_flag \
  15070. lt_prog_compiler_wl \
  15071. lt_prog_compiler_pic \
  15072. lt_prog_compiler_static \
  15073. lt_cv_prog_compiler_c_o \
  15074. need_locks \
  15075. DSYMUTIL \
  15076. NMEDIT \
  15077. LIPO \
  15078. OTOOL \
  15079. OTOOL64 \
  15080. shrext_cmds \
  15081. export_dynamic_flag_spec \
  15082. whole_archive_flag_spec \
  15083. compiler_needs_object \
  15084. with_gnu_ld \
  15085. allow_undefined_flag \
  15086. no_undefined_flag \
  15087. hardcode_libdir_flag_spec \
  15088. hardcode_libdir_flag_spec_ld \
  15089. hardcode_libdir_separator \
  15090. fix_srcfile_path \
  15091. exclude_expsyms \
  15092. include_expsyms \
  15093. file_list_spec \
  15094. variables_saved_for_relink \
  15095. libname_spec \
  15096. library_names_spec \
  15097. soname_spec \
  15098. install_override_mode \
  15099. finish_eval \
  15100. old_striplib \
  15101. striplib \
  15102. compiler_lib_search_dirs \
  15103. predep_objects \
  15104. postdep_objects \
  15105. predeps \
  15106. postdeps \
  15107. compiler_lib_search_path \
  15108. LD_FC \
  15109. reload_flag_FC \
  15110. compiler_FC \
  15111. lt_prog_compiler_no_builtin_flag_FC \
  15112. lt_prog_compiler_wl_FC \
  15113. lt_prog_compiler_pic_FC \
  15114. lt_prog_compiler_static_FC \
  15115. lt_cv_prog_compiler_c_o_FC \
  15116. export_dynamic_flag_spec_FC \
  15117. whole_archive_flag_spec_FC \
  15118. compiler_needs_object_FC \
  15119. with_gnu_ld_FC \
  15120. allow_undefined_flag_FC \
  15121. no_undefined_flag_FC \
  15122. hardcode_libdir_flag_spec_FC \
  15123. hardcode_libdir_flag_spec_ld_FC \
  15124. hardcode_libdir_separator_FC \
  15125. fix_srcfile_path_FC \
  15126. exclude_expsyms_FC \
  15127. include_expsyms_FC \
  15128. file_list_spec_FC \
  15129. compiler_lib_search_dirs_FC \
  15130. predep_objects_FC \
  15131. postdep_objects_FC \
  15132. predeps_FC \
  15133. postdeps_FC \
  15134. compiler_lib_search_path_FC; do
  15135. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15136. *[\\\\\\\`\\"\\\$]*)
  15137. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15138. ;;
  15139. *)
  15140. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15141. ;;
  15142. esac
  15143. done
  15144. # Double-quote double-evaled strings.
  15145. for var in reload_cmds \
  15146. old_postinstall_cmds \
  15147. old_postuninstall_cmds \
  15148. old_archive_cmds \
  15149. extract_expsyms_cmds \
  15150. old_archive_from_new_cmds \
  15151. old_archive_from_expsyms_cmds \
  15152. archive_cmds \
  15153. archive_expsym_cmds \
  15154. module_cmds \
  15155. module_expsym_cmds \
  15156. export_symbols_cmds \
  15157. prelink_cmds \
  15158. postinstall_cmds \
  15159. postuninstall_cmds \
  15160. finish_cmds \
  15161. sys_lib_search_path_spec \
  15162. sys_lib_dlsearch_path_spec \
  15163. reload_cmds_FC \
  15164. old_archive_cmds_FC \
  15165. old_archive_from_new_cmds_FC \
  15166. old_archive_from_expsyms_cmds_FC \
  15167. archive_cmds_FC \
  15168. archive_expsym_cmds_FC \
  15169. module_cmds_FC \
  15170. module_expsym_cmds_FC \
  15171. export_symbols_cmds_FC \
  15172. prelink_cmds_FC; do
  15173. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15174. *[\\\\\\\`\\"\\\$]*)
  15175. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15176. ;;
  15177. *)
  15178. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15179. ;;
  15180. esac
  15181. done
  15182. ac_aux_dir='$ac_aux_dir'
  15183. xsi_shell='$xsi_shell'
  15184. lt_shell_append='$lt_shell_append'
  15185. # See if we are running on zsh, and set the options which allow our
  15186. # commands through without removal of \ escapes INIT.
  15187. if test -n "\${ZSH_VERSION+set}" ; then
  15188. setopt NO_GLOB_SUBST
  15189. fi
  15190. PACKAGE='$PACKAGE'
  15191. VERSION='$VERSION'
  15192. TIMESTAMP='$TIMESTAMP'
  15193. RM='$RM'
  15194. ofile='$ofile'
  15195. GCC="$GCC"
  15196. CC="$CC"
  15197. acx_cv_header_stdint="$acx_cv_header_stdint"
  15198. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  15199. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  15200. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  15201. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  15202. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  15203. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  15204. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  15205. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  15206. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  15207. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  15208. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  15209. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  15210. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  15211. _ACEOF
  15212. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15213. # Handling of arguments.
  15214. for ac_config_target in $ac_config_targets
  15215. do
  15216. case $ac_config_target in
  15217. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15218. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15219. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15220. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15221. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  15222. "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
  15223. "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
  15224. "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
  15225. "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
  15226. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15227. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  15228. "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
  15229. "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
  15230. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15231. esac
  15232. done
  15233. # If the user did not use the arguments to specify the items to instantiate,
  15234. # then the envvar interface is used. Set only those that are not.
  15235. # We use the long form for the default assignment because of an extremely
  15236. # bizarre bug on SunOS 4.1.3.
  15237. if $ac_need_defaults; then
  15238. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15239. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15240. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15241. fi
  15242. # Have a temporary directory for convenience. Make it in the build tree
  15243. # simply because there is no reason against having it here, and in addition,
  15244. # creating and moving files from /tmp can sometimes cause problems.
  15245. # Hook for its removal unless debugging.
  15246. # Note that there is a small window in which the directory will not be cleaned:
  15247. # after its creation but before its name has been assigned to `$tmp'.
  15248. $debug ||
  15249. {
  15250. tmp=
  15251. trap 'exit_status=$?
  15252. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15253. ' 0
  15254. trap 'as_fn_exit 1' 1 2 13 15
  15255. }
  15256. # Create a (secure) tmp directory for tmp files.
  15257. {
  15258. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15259. test -n "$tmp" && test -d "$tmp"
  15260. } ||
  15261. {
  15262. tmp=./conf$$-$RANDOM
  15263. (umask 077 && mkdir "$tmp")
  15264. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  15265. # Set up the scripts for CONFIG_FILES section.
  15266. # No need to generate them if there are no CONFIG_FILES.
  15267. # This happens for instance with `./config.status config.h'.
  15268. if test -n "$CONFIG_FILES"; then
  15269. ac_cr=`echo X | tr X '\015'`
  15270. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15271. # But we know of no other shell where ac_cr would be empty at this
  15272. # point, so we can use a bashism as a fallback.
  15273. if test "x$ac_cr" = x; then
  15274. eval ac_cr=\$\'\\r\'
  15275. fi
  15276. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15277. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15278. ac_cs_awk_cr='\r'
  15279. else
  15280. ac_cs_awk_cr=$ac_cr
  15281. fi
  15282. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15283. _ACEOF
  15284. {
  15285. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15286. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15287. echo "_ACEOF"
  15288. } >conf$$subs.sh ||
  15289. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15290. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  15291. ac_delim='%!_!# '
  15292. for ac_last_try in false false false false false :; do
  15293. . ./conf$$subs.sh ||
  15294. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15295. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15296. if test $ac_delim_n = $ac_delim_num; then
  15297. break
  15298. elif $ac_last_try; then
  15299. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  15300. else
  15301. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15302. fi
  15303. done
  15304. rm -f conf$$subs.sh
  15305. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15306. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15307. _ACEOF
  15308. sed -n '
  15309. h
  15310. s/^/S["/; s/!.*/"]=/
  15311. p
  15312. g
  15313. s/^[^!]*!//
  15314. :repl
  15315. t repl
  15316. s/'"$ac_delim"'$//
  15317. t delim
  15318. :nl
  15319. h
  15320. s/\(.\{148\}\).*/\1/
  15321. t more1
  15322. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15323. p
  15324. n
  15325. b repl
  15326. :more1
  15327. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15328. p
  15329. g
  15330. s/.\{148\}//
  15331. t nl
  15332. :delim
  15333. h
  15334. s/\(.\{148\}\).*/\1/
  15335. t more2
  15336. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15337. p
  15338. b
  15339. :more2
  15340. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15341. p
  15342. g
  15343. s/.\{148\}//
  15344. t delim
  15345. ' <conf$$subs.awk | sed '
  15346. /^[^""]/{
  15347. N
  15348. s/\n//
  15349. }
  15350. ' >>$CONFIG_STATUS || ac_write_fail=1
  15351. rm -f conf$$subs.awk
  15352. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15353. _ACAWK
  15354. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15355. for (key in S) S_is_set[key] = 1
  15356. FS = ""
  15357. }
  15358. {
  15359. line = $ 0
  15360. nfields = split(line, field, "@")
  15361. substed = 0
  15362. len = length(field[1])
  15363. for (i = 2; i < nfields; i++) {
  15364. key = field[i]
  15365. keylen = length(key)
  15366. if (S_is_set[key]) {
  15367. value = S[key]
  15368. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15369. len += length(value) + length(field[++i])
  15370. substed = 1
  15371. } else
  15372. len += 1 + keylen
  15373. }
  15374. print line
  15375. }
  15376. _ACAWK
  15377. _ACEOF
  15378. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15379. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15380. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15381. else
  15382. cat
  15383. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15384. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15385. _ACEOF
  15386. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15387. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15388. # trailing colons and then remove the whole line if VPATH becomes empty
  15389. # (actually we leave an empty line to preserve line numbers).
  15390. if test "x$srcdir" = x.; then
  15391. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15392. s/:*\$(srcdir):*/:/
  15393. s/:*\${srcdir}:*/:/
  15394. s/:*@srcdir@:*/:/
  15395. s/^\([^=]*=[ ]*\):*/\1/
  15396. s/:*$//
  15397. s/^[^=]*=[ ]*$//
  15398. }'
  15399. fi
  15400. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15401. fi # test -n "$CONFIG_FILES"
  15402. # Set up the scripts for CONFIG_HEADERS section.
  15403. # No need to generate them if there are no CONFIG_HEADERS.
  15404. # This happens for instance with `./config.status Makefile'.
  15405. if test -n "$CONFIG_HEADERS"; then
  15406. cat >"$tmp/defines.awk" <<\_ACAWK ||
  15407. BEGIN {
  15408. _ACEOF
  15409. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15410. # here-document in config.status, that substitutes the proper values into
  15411. # config.h.in to produce config.h.
  15412. # Create a delimiter string that does not exist in confdefs.h, to ease
  15413. # handling of long lines.
  15414. ac_delim='%!_!# '
  15415. for ac_last_try in false false :; do
  15416. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  15417. if test -z "$ac_t"; then
  15418. break
  15419. elif $ac_last_try; then
  15420. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  15421. else
  15422. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15423. fi
  15424. done
  15425. # For the awk script, D is an array of macro values keyed by name,
  15426. # likewise P contains macro parameters if any. Preserve backslash
  15427. # newline sequences.
  15428. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15429. sed -n '
  15430. s/.\{148\}/&'"$ac_delim"'/g
  15431. t rset
  15432. :rset
  15433. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15434. t def
  15435. d
  15436. :def
  15437. s/\\$//
  15438. t bsnl
  15439. s/["\\]/\\&/g
  15440. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15441. D["\1"]=" \3"/p
  15442. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15443. d
  15444. :bsnl
  15445. s/["\\]/\\&/g
  15446. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15447. D["\1"]=" \3\\\\\\n"\\/p
  15448. t cont
  15449. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15450. t cont
  15451. d
  15452. :cont
  15453. n
  15454. s/.\{148\}/&'"$ac_delim"'/g
  15455. t clear
  15456. :clear
  15457. s/\\$//
  15458. t bsnlc
  15459. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15460. d
  15461. :bsnlc
  15462. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15463. b cont
  15464. ' <confdefs.h | sed '
  15465. s/'"$ac_delim"'/"\\\
  15466. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15467. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15468. for (key in D) D_is_set[key] = 1
  15469. FS = ""
  15470. }
  15471. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15472. line = \$ 0
  15473. split(line, arg, " ")
  15474. if (arg[1] == "#") {
  15475. defundef = arg[2]
  15476. mac1 = arg[3]
  15477. } else {
  15478. defundef = substr(arg[1], 2)
  15479. mac1 = arg[2]
  15480. }
  15481. split(mac1, mac2, "(") #)
  15482. macro = mac2[1]
  15483. prefix = substr(line, 1, index(line, defundef) - 1)
  15484. if (D_is_set[macro]) {
  15485. # Preserve the white space surrounding the "#".
  15486. print prefix "define", macro P[macro] D[macro]
  15487. next
  15488. } else {
  15489. # Replace #undef with comments. This is necessary, for example,
  15490. # in the case of _POSIX_SOURCE, which is predefined and required
  15491. # on some systems where configure will not decide to define it.
  15492. if (defundef == "undef") {
  15493. print "/*", prefix defundef, macro, "*/"
  15494. next
  15495. }
  15496. }
  15497. }
  15498. { print }
  15499. _ACAWK
  15500. _ACEOF
  15501. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15502. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  15503. fi # test -n "$CONFIG_HEADERS"
  15504. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15505. shift
  15506. for ac_tag
  15507. do
  15508. case $ac_tag in
  15509. :[FHLC]) ac_mode=$ac_tag; continue;;
  15510. esac
  15511. case $ac_mode$ac_tag in
  15512. :[FHL]*:*);;
  15513. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15514. :[FH]-) ac_tag=-:-;;
  15515. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15516. esac
  15517. ac_save_IFS=$IFS
  15518. IFS=:
  15519. set x $ac_tag
  15520. IFS=$ac_save_IFS
  15521. shift
  15522. ac_file=$1
  15523. shift
  15524. case $ac_mode in
  15525. :L) ac_source=$1;;
  15526. :[FH])
  15527. ac_file_inputs=
  15528. for ac_f
  15529. do
  15530. case $ac_f in
  15531. -) ac_f="$tmp/stdin";;
  15532. *) # Look for the file first in the build tree, then in the source tree
  15533. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15534. # because $ac_f cannot contain `:'.
  15535. test -f "$ac_f" ||
  15536. case $ac_f in
  15537. [\\/$]*) false;;
  15538. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15539. esac ||
  15540. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15541. esac
  15542. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15543. as_fn_append ac_file_inputs " '$ac_f'"
  15544. done
  15545. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15546. # use $as_me), people would be surprised to read:
  15547. # /* config.h. Generated by config.status. */
  15548. configure_input='Generated from '`
  15549. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15550. `' by configure.'
  15551. if test x"$ac_file" != x-; then
  15552. configure_input="$ac_file. $configure_input"
  15553. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15554. $as_echo "$as_me: creating $ac_file" >&6;}
  15555. fi
  15556. # Neutralize special characters interpreted by sed in replacement strings.
  15557. case $configure_input in #(
  15558. *\&* | *\|* | *\\* )
  15559. ac_sed_conf_input=`$as_echo "$configure_input" |
  15560. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15561. *) ac_sed_conf_input=$configure_input;;
  15562. esac
  15563. case $ac_tag in
  15564. *:-:* | *:-) cat >"$tmp/stdin" \
  15565. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15566. esac
  15567. ;;
  15568. esac
  15569. ac_dir=`$as_dirname -- "$ac_file" ||
  15570. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15571. X"$ac_file" : 'X\(//\)[^/]' \| \
  15572. X"$ac_file" : 'X\(//\)$' \| \
  15573. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15574. $as_echo X"$ac_file" |
  15575. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15576. s//\1/
  15577. q
  15578. }
  15579. /^X\(\/\/\)[^/].*/{
  15580. s//\1/
  15581. q
  15582. }
  15583. /^X\(\/\/\)$/{
  15584. s//\1/
  15585. q
  15586. }
  15587. /^X\(\/\).*/{
  15588. s//\1/
  15589. q
  15590. }
  15591. s/.*/./; q'`
  15592. as_dir="$ac_dir"; as_fn_mkdir_p
  15593. ac_builddir=.
  15594. case "$ac_dir" in
  15595. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15596. *)
  15597. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15598. # A ".." for each directory in $ac_dir_suffix.
  15599. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15600. case $ac_top_builddir_sub in
  15601. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15602. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15603. esac ;;
  15604. esac
  15605. ac_abs_top_builddir=$ac_pwd
  15606. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15607. # for backward compatibility:
  15608. ac_top_builddir=$ac_top_build_prefix
  15609. case $srcdir in
  15610. .) # We are building in place.
  15611. ac_srcdir=.
  15612. ac_top_srcdir=$ac_top_builddir_sub
  15613. ac_abs_top_srcdir=$ac_pwd ;;
  15614. [\\/]* | ?:[\\/]* ) # Absolute name.
  15615. ac_srcdir=$srcdir$ac_dir_suffix;
  15616. ac_top_srcdir=$srcdir
  15617. ac_abs_top_srcdir=$srcdir ;;
  15618. *) # Relative name.
  15619. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15620. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15621. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15622. esac
  15623. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15624. case $ac_mode in
  15625. :F)
  15626. #
  15627. # CONFIG_FILE
  15628. #
  15629. case $INSTALL in
  15630. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15631. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15632. esac
  15633. ac_MKDIR_P=$MKDIR_P
  15634. case $MKDIR_P in
  15635. [\\/$]* | ?:[\\/]* ) ;;
  15636. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15637. esac
  15638. _ACEOF
  15639. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15640. # If the template does not know about datarootdir, expand it.
  15641. # FIXME: This hack should be removed a few years after 2.60.
  15642. ac_datarootdir_hack=; ac_datarootdir_seen=
  15643. ac_sed_dataroot='
  15644. /datarootdir/ {
  15645. p
  15646. q
  15647. }
  15648. /@datadir@/p
  15649. /@docdir@/p
  15650. /@infodir@/p
  15651. /@localedir@/p
  15652. /@mandir@/p'
  15653. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15654. *datarootdir*) ac_datarootdir_seen=yes;;
  15655. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15657. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15658. _ACEOF
  15659. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15660. ac_datarootdir_hack='
  15661. s&@datadir@&$datadir&g
  15662. s&@docdir@&$docdir&g
  15663. s&@infodir@&$infodir&g
  15664. s&@localedir@&$localedir&g
  15665. s&@mandir@&$mandir&g
  15666. s&\\\${datarootdir}&$datarootdir&g' ;;
  15667. esac
  15668. _ACEOF
  15669. # Neutralize VPATH when `$srcdir' = `.'.
  15670. # Shell code in configure.ac might set extrasub.
  15671. # FIXME: do we really want to maintain this feature?
  15672. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15673. ac_sed_extra="$ac_vpsub
  15674. $extrasub
  15675. _ACEOF
  15676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15677. :t
  15678. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15679. s|@configure_input@|$ac_sed_conf_input|;t t
  15680. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15681. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15682. s&@srcdir@&$ac_srcdir&;t t
  15683. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15684. s&@top_srcdir@&$ac_top_srcdir&;t t
  15685. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15686. s&@builddir@&$ac_builddir&;t t
  15687. s&@abs_builddir@&$ac_abs_builddir&;t t
  15688. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15689. s&@INSTALL@&$ac_INSTALL&;t t
  15690. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15691. $ac_datarootdir_hack
  15692. "
  15693. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15694. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15695. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15696. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15697. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15699. which seems to be undefined. Please make sure it is defined." >&5
  15700. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15701. which seems to be undefined. Please make sure it is defined." >&2;}
  15702. rm -f "$tmp/stdin"
  15703. case $ac_file in
  15704. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15705. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15706. esac \
  15707. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15708. ;;
  15709. :H)
  15710. #
  15711. # CONFIG_HEADER
  15712. #
  15713. if test x"$ac_file" != x-; then
  15714. {
  15715. $as_echo "/* $configure_input */" \
  15716. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  15717. } >"$tmp/config.h" \
  15718. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15719. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  15720. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15721. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15722. else
  15723. rm -f "$ac_file"
  15724. mv "$tmp/config.h" "$ac_file" \
  15725. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15726. fi
  15727. else
  15728. $as_echo "/* $configure_input */" \
  15729. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  15730. || as_fn_error "could not create -" "$LINENO" 5
  15731. fi
  15732. # Compute "$ac_file"'s index in $config_headers.
  15733. _am_arg="$ac_file"
  15734. _am_stamp_count=1
  15735. for _am_header in $config_headers :; do
  15736. case $_am_header in
  15737. $_am_arg | $_am_arg:* )
  15738. break ;;
  15739. * )
  15740. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15741. esac
  15742. done
  15743. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15744. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15745. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15746. X"$_am_arg" : 'X\(//\)$' \| \
  15747. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15748. $as_echo X"$_am_arg" |
  15749. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15750. s//\1/
  15751. q
  15752. }
  15753. /^X\(\/\/\)[^/].*/{
  15754. s//\1/
  15755. q
  15756. }
  15757. /^X\(\/\/\)$/{
  15758. s//\1/
  15759. q
  15760. }
  15761. /^X\(\/\).*/{
  15762. s//\1/
  15763. q
  15764. }
  15765. s/.*/./; q'`/stamp-h$_am_stamp_count
  15766. ;;
  15767. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15768. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15769. ;;
  15770. esac
  15771. case $ac_file$ac_mode in
  15772. "default-1":C)
  15773. # Only add multilib support code if we just rebuilt the top-level
  15774. # Makefile.
  15775. case " $CONFIG_FILES " in
  15776. *" Makefile "*)
  15777. ac_file=Makefile . ${multi_basedir}/config-ml.in
  15778. ;;
  15779. esac ;;
  15780. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15781. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15782. # are listed without --file. Let's play safe and only enable the eval
  15783. # if we detect the quoting.
  15784. case $CONFIG_FILES in
  15785. *\'*) eval set x "$CONFIG_FILES" ;;
  15786. *) set x $CONFIG_FILES ;;
  15787. esac
  15788. shift
  15789. for mf
  15790. do
  15791. # Strip MF so we end up with the name of the file.
  15792. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15793. # Check whether this is an Automake generated Makefile or not.
  15794. # We used to match only the files named `Makefile.in', but
  15795. # some people rename them; so instead we look at the file content.
  15796. # Grep'ing the first line is not enough: some people post-process
  15797. # each Makefile.in and add a new line on top of each file to say so.
  15798. # Grep'ing the whole file is not good either: AIX grep has a line
  15799. # limit of 2048, but all sed's we know have understand at least 4000.
  15800. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15801. dirpart=`$as_dirname -- "$mf" ||
  15802. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15803. X"$mf" : 'X\(//\)[^/]' \| \
  15804. X"$mf" : 'X\(//\)$' \| \
  15805. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15806. $as_echo X"$mf" |
  15807. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15808. s//\1/
  15809. q
  15810. }
  15811. /^X\(\/\/\)[^/].*/{
  15812. s//\1/
  15813. q
  15814. }
  15815. /^X\(\/\/\)$/{
  15816. s//\1/
  15817. q
  15818. }
  15819. /^X\(\/\).*/{
  15820. s//\1/
  15821. q
  15822. }
  15823. s/.*/./; q'`
  15824. else
  15825. continue
  15826. fi
  15827. # Extract the definition of DEPDIR, am__include, and am__quote
  15828. # from the Makefile without running `make'.
  15829. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15830. test -z "$DEPDIR" && continue
  15831. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15832. test -z "am__include" && continue
  15833. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15834. # When using ansi2knr, U may be empty or an underscore; expand it
  15835. U=`sed -n 's/^U = //p' < "$mf"`
  15836. # Find all dependency output files, they are included files with
  15837. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15838. # simplest approach to changing $(DEPDIR) to its actual value in the
  15839. # expansion.
  15840. for file in `sed -n "
  15841. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15842. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15843. # Make sure the directory exists.
  15844. test -f "$dirpart/$file" && continue
  15845. fdir=`$as_dirname -- "$file" ||
  15846. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15847. X"$file" : 'X\(//\)[^/]' \| \
  15848. X"$file" : 'X\(//\)$' \| \
  15849. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15850. $as_echo X"$file" |
  15851. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15852. s//\1/
  15853. q
  15854. }
  15855. /^X\(\/\/\)[^/].*/{
  15856. s//\1/
  15857. q
  15858. }
  15859. /^X\(\/\/\)$/{
  15860. s//\1/
  15861. q
  15862. }
  15863. /^X\(\/\).*/{
  15864. s//\1/
  15865. q
  15866. }
  15867. s/.*/./; q'`
  15868. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15869. # echo "creating $dirpart/$file"
  15870. echo '# dummy' > "$dirpart/$file"
  15871. done
  15872. done
  15873. }
  15874. ;;
  15875. "libtool":C)
  15876. # See if we are running on zsh, and set the options which allow our
  15877. # commands through without removal of \ escapes.
  15878. if test -n "${ZSH_VERSION+set}" ; then
  15879. setopt NO_GLOB_SUBST
  15880. fi
  15881. cfgfile="${ofile}T"
  15882. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15883. $RM "$cfgfile"
  15884. cat <<_LT_EOF >> "$cfgfile"
  15885. #! $SHELL
  15886. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15887. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15888. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15889. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15890. #
  15891. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15892. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15893. # Written by Gordon Matzigkeit, 1996
  15894. #
  15895. # This file is part of GNU Libtool.
  15896. #
  15897. # GNU Libtool is free software; you can redistribute it and/or
  15898. # modify it under the terms of the GNU General Public License as
  15899. # published by the Free Software Foundation; either version 2 of
  15900. # the License, or (at your option) any later version.
  15901. #
  15902. # As a special exception to the GNU General Public License,
  15903. # if you distribute this file as part of a program or library that
  15904. # is built using GNU Libtool, you may include this file under the
  15905. # same distribution terms that you use for the rest of that program.
  15906. #
  15907. # GNU Libtool is distributed in the hope that it will be useful,
  15908. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15909. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15910. # GNU General Public License for more details.
  15911. #
  15912. # You should have received a copy of the GNU General Public License
  15913. # along with GNU Libtool; see the file COPYING. If not, a copy
  15914. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15915. # obtained by writing to the Free Software Foundation, Inc.,
  15916. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15917. # The names of the tagged configurations supported by this script.
  15918. available_tags="FC "
  15919. # ### BEGIN LIBTOOL CONFIG
  15920. # Which release of libtool.m4 was used?
  15921. macro_version=$macro_version
  15922. macro_revision=$macro_revision
  15923. # Whether or not to build shared libraries.
  15924. build_libtool_libs=$enable_shared
  15925. # Whether or not to build static libraries.
  15926. build_old_libs=$enable_static
  15927. # What type of objects to build.
  15928. pic_mode=$pic_mode
  15929. # Whether or not to optimize for fast installation.
  15930. fast_install=$enable_fast_install
  15931. # Shell to use when invoking shell scripts.
  15932. SHELL=$lt_SHELL
  15933. # An echo program that protects backslashes.
  15934. ECHO=$lt_ECHO
  15935. # The host system.
  15936. host_alias=$host_alias
  15937. host=$host
  15938. host_os=$host_os
  15939. # The build system.
  15940. build_alias=$build_alias
  15941. build=$build
  15942. build_os=$build_os
  15943. # A sed program that does not truncate output.
  15944. SED=$lt_SED
  15945. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15946. Xsed="\$SED -e 1s/^X//"
  15947. # A grep program that handles long lines.
  15948. GREP=$lt_GREP
  15949. # An ERE matcher.
  15950. EGREP=$lt_EGREP
  15951. # A literal string matcher.
  15952. FGREP=$lt_FGREP
  15953. # A BSD- or MS-compatible name lister.
  15954. NM=$lt_NM
  15955. # Whether we need soft or hard links.
  15956. LN_S=$lt_LN_S
  15957. # What is the maximum length of a command?
  15958. max_cmd_len=$max_cmd_len
  15959. # Object file suffix (normally "o").
  15960. objext=$ac_objext
  15961. # Executable file suffix (normally "").
  15962. exeext=$exeext
  15963. # whether the shell understands "unset".
  15964. lt_unset=$lt_unset
  15965. # turn spaces into newlines.
  15966. SP2NL=$lt_lt_SP2NL
  15967. # turn newlines into spaces.
  15968. NL2SP=$lt_lt_NL2SP
  15969. # An object symbol dumper.
  15970. OBJDUMP=$lt_OBJDUMP
  15971. # Method to check whether dependent libraries are shared objects.
  15972. deplibs_check_method=$lt_deplibs_check_method
  15973. # Command to use when deplibs_check_method == "file_magic".
  15974. file_magic_cmd=$lt_file_magic_cmd
  15975. # The archiver.
  15976. AR=$lt_AR
  15977. AR_FLAGS=$lt_AR_FLAGS
  15978. # A symbol stripping program.
  15979. STRIP=$lt_STRIP
  15980. # Commands used to install an old-style archive.
  15981. RANLIB=$lt_RANLIB
  15982. old_postinstall_cmds=$lt_old_postinstall_cmds
  15983. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15984. # Whether to use a lock for old archive extraction.
  15985. lock_old_archive_extraction=$lock_old_archive_extraction
  15986. # A C compiler.
  15987. LTCC=$lt_CC
  15988. # LTCC compiler flags.
  15989. LTCFLAGS=$lt_CFLAGS
  15990. # Take the output of nm and produce a listing of raw symbols and C names.
  15991. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15992. # Transform the output of nm in a proper C declaration.
  15993. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15994. # Transform the output of nm in a C name address pair.
  15995. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15996. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15997. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15998. # The name of the directory that contains temporary libtool files.
  15999. objdir=$objdir
  16000. # Used to examine libraries when file_magic_cmd begins with "file".
  16001. MAGIC_CMD=$MAGIC_CMD
  16002. # Must we lock files when doing compilation?
  16003. need_locks=$lt_need_locks
  16004. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16005. DSYMUTIL=$lt_DSYMUTIL
  16006. # Tool to change global to local symbols on Mac OS X.
  16007. NMEDIT=$lt_NMEDIT
  16008. # Tool to manipulate fat objects and archives on Mac OS X.
  16009. LIPO=$lt_LIPO
  16010. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16011. OTOOL=$lt_OTOOL
  16012. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16013. OTOOL64=$lt_OTOOL64
  16014. # Old archive suffix (normally "a").
  16015. libext=$libext
  16016. # Shared library suffix (normally ".so").
  16017. shrext_cmds=$lt_shrext_cmds
  16018. # The commands to extract the exported symbol list from a shared archive.
  16019. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16020. # Variables whose values should be saved in libtool wrapper scripts and
  16021. # restored at link time.
  16022. variables_saved_for_relink=$lt_variables_saved_for_relink
  16023. # Do we need the "lib" prefix for modules?
  16024. need_lib_prefix=$need_lib_prefix
  16025. # Do we need a version for libraries?
  16026. need_version=$need_version
  16027. # Library versioning type.
  16028. version_type=$version_type
  16029. # Shared library runtime path variable.
  16030. runpath_var=$runpath_var
  16031. # Shared library path variable.
  16032. shlibpath_var=$shlibpath_var
  16033. # Is shlibpath searched before the hard-coded library search path?
  16034. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16035. # Format of library name prefix.
  16036. libname_spec=$lt_libname_spec
  16037. # List of archive names. First name is the real one, the rest are links.
  16038. # The last name is the one that the linker finds with -lNAME
  16039. library_names_spec=$lt_library_names_spec
  16040. # The coded name of the library, if different from the real name.
  16041. soname_spec=$lt_soname_spec
  16042. # Permission mode override for installation of shared libraries.
  16043. install_override_mode=$lt_install_override_mode
  16044. # Command to use after installation of a shared archive.
  16045. postinstall_cmds=$lt_postinstall_cmds
  16046. # Command to use after uninstallation of a shared archive.
  16047. postuninstall_cmds=$lt_postuninstall_cmds
  16048. # Commands used to finish a libtool library installation in a directory.
  16049. finish_cmds=$lt_finish_cmds
  16050. # As "finish_cmds", except a single script fragment to be evaled but
  16051. # not shown.
  16052. finish_eval=$lt_finish_eval
  16053. # Whether we should hardcode library paths into libraries.
  16054. hardcode_into_libs=$hardcode_into_libs
  16055. # Compile-time system search path for libraries.
  16056. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16057. # Run-time system search path for libraries.
  16058. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16059. # Whether dlopen is supported.
  16060. dlopen_support=$enable_dlopen
  16061. # Whether dlopen of programs is supported.
  16062. dlopen_self=$enable_dlopen_self
  16063. # Whether dlopen of statically linked programs is supported.
  16064. dlopen_self_static=$enable_dlopen_self_static
  16065. # Commands to strip libraries.
  16066. old_striplib=$lt_old_striplib
  16067. striplib=$lt_striplib
  16068. # The linker used to build libraries.
  16069. LD=$lt_LD
  16070. # How to create reloadable object files.
  16071. reload_flag=$lt_reload_flag
  16072. reload_cmds=$lt_reload_cmds
  16073. # Commands used to build an old-style archive.
  16074. old_archive_cmds=$lt_old_archive_cmds
  16075. # A language specific compiler.
  16076. CC=$lt_compiler
  16077. # Is the compiler the GNU compiler?
  16078. with_gcc=$GCC
  16079. # Compiler flag to turn off builtin functions.
  16080. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16081. # How to pass a linker flag through the compiler.
  16082. wl=$lt_lt_prog_compiler_wl
  16083. # Additional compiler flags for building library objects.
  16084. pic_flag=$lt_lt_prog_compiler_pic
  16085. # Compiler flag to prevent dynamic linking.
  16086. link_static_flag=$lt_lt_prog_compiler_static
  16087. # Does compiler simultaneously support -c and -o options?
  16088. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16089. # Whether or not to add -lc for building shared libraries.
  16090. build_libtool_need_lc=$archive_cmds_need_lc
  16091. # Whether or not to disallow shared libs when runtime libs are static.
  16092. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16093. # Compiler flag to allow reflexive dlopens.
  16094. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16095. # Compiler flag to generate shared objects directly from archives.
  16096. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16097. # Whether the compiler copes with passing no objects directly.
  16098. compiler_needs_object=$lt_compiler_needs_object
  16099. # Create an old-style archive from a shared archive.
  16100. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16101. # Create a temporary old-style archive to link instead of a shared archive.
  16102. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16103. # Commands used to build a shared archive.
  16104. archive_cmds=$lt_archive_cmds
  16105. archive_expsym_cmds=$lt_archive_expsym_cmds
  16106. # Commands used to build a loadable module if different from building
  16107. # a shared archive.
  16108. module_cmds=$lt_module_cmds
  16109. module_expsym_cmds=$lt_module_expsym_cmds
  16110. # Whether we are building with GNU ld or not.
  16111. with_gnu_ld=$lt_with_gnu_ld
  16112. # Flag that allows shared libraries with undefined symbols to be built.
  16113. allow_undefined_flag=$lt_allow_undefined_flag
  16114. # Flag that enforces no undefined symbols.
  16115. no_undefined_flag=$lt_no_undefined_flag
  16116. # Flag to hardcode \$libdir into a binary during linking.
  16117. # This must work even if \$libdir does not exist
  16118. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16119. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16120. # during linking. This must work even if \$libdir does not exist.
  16121. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16122. # Whether we need a single "-rpath" flag with a separated argument.
  16123. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16124. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16125. # DIR into the resulting binary.
  16126. hardcode_direct=$hardcode_direct
  16127. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16128. # DIR into the resulting binary and the resulting library dependency is
  16129. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16130. # library is relocated.
  16131. hardcode_direct_absolute=$hardcode_direct_absolute
  16132. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16133. # into the resulting binary.
  16134. hardcode_minus_L=$hardcode_minus_L
  16135. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16136. # into the resulting binary.
  16137. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16138. # Set to "yes" if building a shared library automatically hardcodes DIR
  16139. # into the library and all subsequent libraries and executables linked
  16140. # against it.
  16141. hardcode_automatic=$hardcode_automatic
  16142. # Set to yes if linker adds runtime paths of dependent libraries
  16143. # to runtime path list.
  16144. inherit_rpath=$inherit_rpath
  16145. # Whether libtool must link a program against all its dependency libraries.
  16146. link_all_deplibs=$link_all_deplibs
  16147. # Fix the shell variable \$srcfile for the compiler.
  16148. fix_srcfile_path=$lt_fix_srcfile_path
  16149. # Set to "yes" if exported symbols are required.
  16150. always_export_symbols=$always_export_symbols
  16151. # The commands to list exported symbols.
  16152. export_symbols_cmds=$lt_export_symbols_cmds
  16153. # Symbols that should not be listed in the preloaded symbols.
  16154. exclude_expsyms=$lt_exclude_expsyms
  16155. # Symbols that must always be exported.
  16156. include_expsyms=$lt_include_expsyms
  16157. # Commands necessary for linking programs (against libraries) with templates.
  16158. prelink_cmds=$lt_prelink_cmds
  16159. # Specify filename containing input files.
  16160. file_list_spec=$lt_file_list_spec
  16161. # How to hardcode a shared library path into an executable.
  16162. hardcode_action=$hardcode_action
  16163. # The directories searched by this compiler when creating a shared library.
  16164. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16165. # Dependencies to place before and after the objects being linked to
  16166. # create a shared library.
  16167. predep_objects=$lt_predep_objects
  16168. postdep_objects=$lt_postdep_objects
  16169. predeps=$lt_predeps
  16170. postdeps=$lt_postdeps
  16171. # The library search path used internally by the compiler when linking
  16172. # a shared library.
  16173. compiler_lib_search_path=$lt_compiler_lib_search_path
  16174. # ### END LIBTOOL CONFIG
  16175. _LT_EOF
  16176. case $host_os in
  16177. aix3*)
  16178. cat <<\_LT_EOF >> "$cfgfile"
  16179. # AIX sometimes has problems with the GCC collect2 program. For some
  16180. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16181. # vanish in a puff of smoke.
  16182. if test "X${COLLECT_NAMES+set}" != Xset; then
  16183. COLLECT_NAMES=
  16184. export COLLECT_NAMES
  16185. fi
  16186. _LT_EOF
  16187. ;;
  16188. esac
  16189. ltmain="$ac_aux_dir/ltmain.sh"
  16190. # We use sed instead of cat because bash on DJGPP gets confused if
  16191. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16192. # text mode, it properly converts lines to CR/LF. This bash problem
  16193. # is reportedly fixed, but why not run on old versions too?
  16194. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16195. || (rm -f "$cfgfile"; exit 1)
  16196. case $xsi_shell in
  16197. yes)
  16198. cat << \_LT_EOF >> "$cfgfile"
  16199. # func_dirname file append nondir_replacement
  16200. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16201. # otherwise set result to NONDIR_REPLACEMENT.
  16202. func_dirname ()
  16203. {
  16204. case ${1} in
  16205. */*) func_dirname_result="${1%/*}${2}" ;;
  16206. * ) func_dirname_result="${3}" ;;
  16207. esac
  16208. }
  16209. # func_basename file
  16210. func_basename ()
  16211. {
  16212. func_basename_result="${1##*/}"
  16213. }
  16214. # func_dirname_and_basename file append nondir_replacement
  16215. # perform func_basename and func_dirname in a single function
  16216. # call:
  16217. # dirname: Compute the dirname of FILE. If nonempty,
  16218. # add APPEND to the result, otherwise set result
  16219. # to NONDIR_REPLACEMENT.
  16220. # value returned in "$func_dirname_result"
  16221. # basename: Compute filename of FILE.
  16222. # value retuned in "$func_basename_result"
  16223. # Implementation must be kept synchronized with func_dirname
  16224. # and func_basename. For efficiency, we do not delegate to
  16225. # those functions but instead duplicate the functionality here.
  16226. func_dirname_and_basename ()
  16227. {
  16228. case ${1} in
  16229. */*) func_dirname_result="${1%/*}${2}" ;;
  16230. * ) func_dirname_result="${3}" ;;
  16231. esac
  16232. func_basename_result="${1##*/}"
  16233. }
  16234. # func_stripname prefix suffix name
  16235. # strip PREFIX and SUFFIX off of NAME.
  16236. # PREFIX and SUFFIX must not contain globbing or regex special
  16237. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16238. # dot (in which case that matches only a dot).
  16239. func_stripname ()
  16240. {
  16241. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16242. # positional parameters, so assign one to ordinary parameter first.
  16243. func_stripname_result=${3}
  16244. func_stripname_result=${func_stripname_result#"${1}"}
  16245. func_stripname_result=${func_stripname_result%"${2}"}
  16246. }
  16247. # func_opt_split
  16248. func_opt_split ()
  16249. {
  16250. func_opt_split_opt=${1%%=*}
  16251. func_opt_split_arg=${1#*=}
  16252. }
  16253. # func_lo2o object
  16254. func_lo2o ()
  16255. {
  16256. case ${1} in
  16257. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16258. *) func_lo2o_result=${1} ;;
  16259. esac
  16260. }
  16261. # func_xform libobj-or-source
  16262. func_xform ()
  16263. {
  16264. func_xform_result=${1%.*}.lo
  16265. }
  16266. # func_arith arithmetic-term...
  16267. func_arith ()
  16268. {
  16269. func_arith_result=$(( $* ))
  16270. }
  16271. # func_len string
  16272. # STRING may not start with a hyphen.
  16273. func_len ()
  16274. {
  16275. func_len_result=${#1}
  16276. }
  16277. _LT_EOF
  16278. ;;
  16279. *) # Bourne compatible functions.
  16280. cat << \_LT_EOF >> "$cfgfile"
  16281. # func_dirname file append nondir_replacement
  16282. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16283. # otherwise set result to NONDIR_REPLACEMENT.
  16284. func_dirname ()
  16285. {
  16286. # Extract subdirectory from the argument.
  16287. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16288. if test "X$func_dirname_result" = "X${1}"; then
  16289. func_dirname_result="${3}"
  16290. else
  16291. func_dirname_result="$func_dirname_result${2}"
  16292. fi
  16293. }
  16294. # func_basename file
  16295. func_basename ()
  16296. {
  16297. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16298. }
  16299. # func_stripname prefix suffix name
  16300. # strip PREFIX and SUFFIX off of NAME.
  16301. # PREFIX and SUFFIX must not contain globbing or regex special
  16302. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16303. # dot (in which case that matches only a dot).
  16304. # func_strip_suffix prefix name
  16305. func_stripname ()
  16306. {
  16307. case ${2} in
  16308. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16309. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16310. esac
  16311. }
  16312. # sed scripts:
  16313. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16314. my_sed_long_arg='1s/^-[^=]*=//'
  16315. # func_opt_split
  16316. func_opt_split ()
  16317. {
  16318. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16319. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16320. }
  16321. # func_lo2o object
  16322. func_lo2o ()
  16323. {
  16324. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16325. }
  16326. # func_xform libobj-or-source
  16327. func_xform ()
  16328. {
  16329. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16330. }
  16331. # func_arith arithmetic-term...
  16332. func_arith ()
  16333. {
  16334. func_arith_result=`expr "$@"`
  16335. }
  16336. # func_len string
  16337. # STRING may not start with a hyphen.
  16338. func_len ()
  16339. {
  16340. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16341. }
  16342. _LT_EOF
  16343. esac
  16344. case $lt_shell_append in
  16345. yes)
  16346. cat << \_LT_EOF >> "$cfgfile"
  16347. # func_append var value
  16348. # Append VALUE to the end of shell variable VAR.
  16349. func_append ()
  16350. {
  16351. eval "$1+=\$2"
  16352. }
  16353. _LT_EOF
  16354. ;;
  16355. *)
  16356. cat << \_LT_EOF >> "$cfgfile"
  16357. # func_append var value
  16358. # Append VALUE to the end of shell variable VAR.
  16359. func_append ()
  16360. {
  16361. eval "$1=\$$1\$2"
  16362. }
  16363. _LT_EOF
  16364. ;;
  16365. esac
  16366. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16367. || (rm -f "$cfgfile"; exit 1)
  16368. mv -f "$cfgfile" "$ofile" ||
  16369. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16370. chmod +x "$ofile"
  16371. cat <<_LT_EOF >> "$ofile"
  16372. # ### BEGIN LIBTOOL TAG CONFIG: FC
  16373. # The linker used to build libraries.
  16374. LD=$lt_LD_FC
  16375. # How to create reloadable object files.
  16376. reload_flag=$lt_reload_flag_FC
  16377. reload_cmds=$lt_reload_cmds_FC
  16378. # Commands used to build an old-style archive.
  16379. old_archive_cmds=$lt_old_archive_cmds_FC
  16380. # A language specific compiler.
  16381. CC=$lt_compiler_FC
  16382. # Is the compiler the GNU compiler?
  16383. with_gcc=$GCC_FC
  16384. # Compiler flag to turn off builtin functions.
  16385. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
  16386. # How to pass a linker flag through the compiler.
  16387. wl=$lt_lt_prog_compiler_wl_FC
  16388. # Additional compiler flags for building library objects.
  16389. pic_flag=$lt_lt_prog_compiler_pic_FC
  16390. # Compiler flag to prevent dynamic linking.
  16391. link_static_flag=$lt_lt_prog_compiler_static_FC
  16392. # Does compiler simultaneously support -c and -o options?
  16393. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
  16394. # Whether or not to add -lc for building shared libraries.
  16395. build_libtool_need_lc=$archive_cmds_need_lc_FC
  16396. # Whether or not to disallow shared libs when runtime libs are static.
  16397. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
  16398. # Compiler flag to allow reflexive dlopens.
  16399. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
  16400. # Compiler flag to generate shared objects directly from archives.
  16401. whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
  16402. # Whether the compiler copes with passing no objects directly.
  16403. compiler_needs_object=$lt_compiler_needs_object_FC
  16404. # Create an old-style archive from a shared archive.
  16405. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
  16406. # Create a temporary old-style archive to link instead of a shared archive.
  16407. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
  16408. # Commands used to build a shared archive.
  16409. archive_cmds=$lt_archive_cmds_FC
  16410. archive_expsym_cmds=$lt_archive_expsym_cmds_FC
  16411. # Commands used to build a loadable module if different from building
  16412. # a shared archive.
  16413. module_cmds=$lt_module_cmds_FC
  16414. module_expsym_cmds=$lt_module_expsym_cmds_FC
  16415. # Whether we are building with GNU ld or not.
  16416. with_gnu_ld=$lt_with_gnu_ld_FC
  16417. # Flag that allows shared libraries with undefined symbols to be built.
  16418. allow_undefined_flag=$lt_allow_undefined_flag_FC
  16419. # Flag that enforces no undefined symbols.
  16420. no_undefined_flag=$lt_no_undefined_flag_FC
  16421. # Flag to hardcode \$libdir into a binary during linking.
  16422. # This must work even if \$libdir does not exist
  16423. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
  16424. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16425. # during linking. This must work even if \$libdir does not exist.
  16426. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
  16427. # Whether we need a single "-rpath" flag with a separated argument.
  16428. hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
  16429. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16430. # DIR into the resulting binary.
  16431. hardcode_direct=$hardcode_direct_FC
  16432. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16433. # DIR into the resulting binary and the resulting library dependency is
  16434. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16435. # library is relocated.
  16436. hardcode_direct_absolute=$hardcode_direct_absolute_FC
  16437. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16438. # into the resulting binary.
  16439. hardcode_minus_L=$hardcode_minus_L_FC
  16440. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16441. # into the resulting binary.
  16442. hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
  16443. # Set to "yes" if building a shared library automatically hardcodes DIR
  16444. # into the library and all subsequent libraries and executables linked
  16445. # against it.
  16446. hardcode_automatic=$hardcode_automatic_FC
  16447. # Set to yes if linker adds runtime paths of dependent libraries
  16448. # to runtime path list.
  16449. inherit_rpath=$inherit_rpath_FC
  16450. # Whether libtool must link a program against all its dependency libraries.
  16451. link_all_deplibs=$link_all_deplibs_FC
  16452. # Fix the shell variable \$srcfile for the compiler.
  16453. fix_srcfile_path=$lt_fix_srcfile_path_FC
  16454. # Set to "yes" if exported symbols are required.
  16455. always_export_symbols=$always_export_symbols_FC
  16456. # The commands to list exported symbols.
  16457. export_symbols_cmds=$lt_export_symbols_cmds_FC
  16458. # Symbols that should not be listed in the preloaded symbols.
  16459. exclude_expsyms=$lt_exclude_expsyms_FC
  16460. # Symbols that must always be exported.
  16461. include_expsyms=$lt_include_expsyms_FC
  16462. # Commands necessary for linking programs (against libraries) with templates.
  16463. prelink_cmds=$lt_prelink_cmds_FC
  16464. # Specify filename containing input files.
  16465. file_list_spec=$lt_file_list_spec_FC
  16466. # How to hardcode a shared library path into an executable.
  16467. hardcode_action=$hardcode_action_FC
  16468. # The directories searched by this compiler when creating a shared library.
  16469. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
  16470. # Dependencies to place before and after the objects being linked to
  16471. # create a shared library.
  16472. predep_objects=$lt_predep_objects_FC
  16473. postdep_objects=$lt_postdep_objects_FC
  16474. predeps=$lt_predeps_FC
  16475. postdeps=$lt_postdeps_FC
  16476. # The library search path used internally by the compiler when linking
  16477. # a shared library.
  16478. compiler_lib_search_path=$lt_compiler_lib_search_path_FC
  16479. # ### END LIBTOOL TAG CONFIG: FC
  16480. _LT_EOF
  16481. ;;
  16482. "gstdint.h":C)
  16483. if test "$GCC" = yes; then
  16484. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  16485. else
  16486. echo "/* generated for $CC */" > tmp-stdint.h
  16487. fi
  16488. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16489. #ifndef GCC_GENERATED_STDINT_H
  16490. #define GCC_GENERATED_STDINT_H 1
  16491. #include <sys/types.h>
  16492. EOF
  16493. if test "$acx_cv_header_stdint" != stdint.h; then
  16494. echo "#include <stddef.h>" >> tmp-stdint.h
  16495. fi
  16496. if test "$acx_cv_header_stdint" != stddef.h; then
  16497. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  16498. fi
  16499. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16500. /* glibc uses these symbols as guards to prevent redefinitions. */
  16501. #ifdef __int8_t_defined
  16502. #define _INT8_T
  16503. #define _INT16_T
  16504. #define _INT32_T
  16505. #endif
  16506. #ifdef __uint32_t_defined
  16507. #define _UINT32_T
  16508. #endif
  16509. EOF
  16510. # ----------------- done header, emit basic int types -------------
  16511. if test "$acx_cv_header_stdint" = stddef.h; then
  16512. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16513. #ifndef _UINT8_T
  16514. #define _UINT8_T
  16515. #ifndef __uint8_t_defined
  16516. #define __uint8_t_defined
  16517. #ifndef uint8_t
  16518. typedef unsigned $acx_cv_type_int8_t uint8_t;
  16519. #endif
  16520. #endif
  16521. #endif
  16522. #ifndef _UINT16_T
  16523. #define _UINT16_T
  16524. #ifndef __uint16_t_defined
  16525. #define __uint16_t_defined
  16526. #ifndef uint16_t
  16527. typedef unsigned $acx_cv_type_int16_t uint16_t;
  16528. #endif
  16529. #endif
  16530. #endif
  16531. #ifndef _UINT32_T
  16532. #define _UINT32_T
  16533. #ifndef __uint32_t_defined
  16534. #define __uint32_t_defined
  16535. #ifndef uint32_t
  16536. typedef unsigned $acx_cv_type_int32_t uint32_t;
  16537. #endif
  16538. #endif
  16539. #endif
  16540. #ifndef _INT8_T
  16541. #define _INT8_T
  16542. #ifndef __int8_t_defined
  16543. #define __int8_t_defined
  16544. #ifndef int8_t
  16545. typedef $acx_cv_type_int8_t int8_t;
  16546. #endif
  16547. #endif
  16548. #endif
  16549. #ifndef _INT16_T
  16550. #define _INT16_T
  16551. #ifndef __int16_t_defined
  16552. #define __int16_t_defined
  16553. #ifndef int16_t
  16554. typedef $acx_cv_type_int16_t int16_t;
  16555. #endif
  16556. #endif
  16557. #endif
  16558. #ifndef _INT32_T
  16559. #define _INT32_T
  16560. #ifndef __int32_t_defined
  16561. #define __int32_t_defined
  16562. #ifndef int32_t
  16563. typedef $acx_cv_type_int32_t int32_t;
  16564. #endif
  16565. #endif
  16566. #endif
  16567. EOF
  16568. elif test "$ac_cv_type_u_int32_t" = yes; then
  16569. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16570. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  16571. #ifndef _INT8_T
  16572. #define _INT8_T
  16573. #endif
  16574. #ifndef _INT16_T
  16575. #define _INT16_T
  16576. #endif
  16577. #ifndef _INT32_T
  16578. #define _INT32_T
  16579. #endif
  16580. #ifndef _UINT8_T
  16581. #define _UINT8_T
  16582. #ifndef __uint8_t_defined
  16583. #define __uint8_t_defined
  16584. #ifndef uint8_t
  16585. typedef u_int8_t uint8_t;
  16586. #endif
  16587. #endif
  16588. #endif
  16589. #ifndef _UINT16_T
  16590. #define _UINT16_T
  16591. #ifndef __uint16_t_defined
  16592. #define __uint16_t_defined
  16593. #ifndef uint16_t
  16594. typedef u_int16_t uint16_t;
  16595. #endif
  16596. #endif
  16597. #endif
  16598. #ifndef _UINT32_T
  16599. #define _UINT32_T
  16600. #ifndef __uint32_t_defined
  16601. #define __uint32_t_defined
  16602. #ifndef uint32_t
  16603. typedef u_int32_t uint32_t;
  16604. #endif
  16605. #endif
  16606. #endif
  16607. EOF
  16608. else
  16609. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16610. /* Some systems have guard macros to prevent redefinitions, define them. */
  16611. #ifndef _INT8_T
  16612. #define _INT8_T
  16613. #endif
  16614. #ifndef _INT16_T
  16615. #define _INT16_T
  16616. #endif
  16617. #ifndef _INT32_T
  16618. #define _INT32_T
  16619. #endif
  16620. #ifndef _UINT8_T
  16621. #define _UINT8_T
  16622. #endif
  16623. #ifndef _UINT16_T
  16624. #define _UINT16_T
  16625. #endif
  16626. #ifndef _UINT32_T
  16627. #define _UINT32_T
  16628. #endif
  16629. EOF
  16630. fi
  16631. # ------------- done basic int types, emit int64_t types ------------
  16632. if test "$ac_cv_type_uint64_t" = yes; then
  16633. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16634. /* system headers have good uint64_t and int64_t */
  16635. #ifndef _INT64_T
  16636. #define _INT64_T
  16637. #endif
  16638. #ifndef _UINT64_T
  16639. #define _UINT64_T
  16640. #endif
  16641. EOF
  16642. elif test "$ac_cv_type_u_int64_t" = yes; then
  16643. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16644. /* system headers have an u_int64_t (and int64_t) */
  16645. #ifndef _INT64_T
  16646. #define _INT64_T
  16647. #endif
  16648. #ifndef _UINT64_T
  16649. #define _UINT64_T
  16650. #ifndef __uint64_t_defined
  16651. #define __uint64_t_defined
  16652. #ifndef uint64_t
  16653. typedef u_int64_t uint64_t;
  16654. #endif
  16655. #endif
  16656. #endif
  16657. EOF
  16658. elif test -n "$acx_cv_type_int64_t"; then
  16659. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16660. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  16661. #ifndef _INT64_T
  16662. #define _INT64_T
  16663. #ifndef int64_t
  16664. typedef $acx_cv_type_int64_t int64_t;
  16665. #endif
  16666. #endif
  16667. #ifndef _UINT64_T
  16668. #define _UINT64_T
  16669. #ifndef __uint64_t_defined
  16670. #define __uint64_t_defined
  16671. #ifndef uint64_t
  16672. typedef unsigned $acx_cv_type_int64_t uint64_t;
  16673. #endif
  16674. #endif
  16675. #endif
  16676. EOF
  16677. else
  16678. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16679. /* some common heuristics for int64_t, using compiler-specific tests */
  16680. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  16681. #ifndef _INT64_T
  16682. #define _INT64_T
  16683. #ifndef __int64_t_defined
  16684. #ifndef int64_t
  16685. typedef long long int64_t;
  16686. #endif
  16687. #endif
  16688. #endif
  16689. #ifndef _UINT64_T
  16690. #define _UINT64_T
  16691. #ifndef uint64_t
  16692. typedef unsigned long long uint64_t;
  16693. #endif
  16694. #endif
  16695. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  16696. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  16697. does not implement __extension__. But that compiler doesn't define
  16698. __GNUC_MINOR__. */
  16699. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  16700. # define __extension__
  16701. # endif
  16702. # ifndef _INT64_T
  16703. # define _INT64_T
  16704. # ifndef int64_t
  16705. __extension__ typedef long long int64_t;
  16706. # endif
  16707. # endif
  16708. # ifndef _UINT64_T
  16709. # define _UINT64_T
  16710. # ifndef uint64_t
  16711. __extension__ typedef unsigned long long uint64_t;
  16712. # endif
  16713. # endif
  16714. #elif !defined __STRICT_ANSI__
  16715. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  16716. # ifndef _INT64_T
  16717. # define _INT64_T
  16718. # ifndef int64_t
  16719. typedef __int64 int64_t;
  16720. # endif
  16721. # endif
  16722. # ifndef _UINT64_T
  16723. # define _UINT64_T
  16724. # ifndef uint64_t
  16725. typedef unsigned __int64 uint64_t;
  16726. # endif
  16727. # endif
  16728. # endif /* compiler */
  16729. #endif /* ANSI version */
  16730. EOF
  16731. fi
  16732. # ------------- done int64_t types, emit intptr types ------------
  16733. if test "$ac_cv_type_uintptr_t" != yes; then
  16734. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16735. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  16736. #ifndef __uintptr_t_defined
  16737. #ifndef uintptr_t
  16738. typedef u$acx_cv_type_intptr_t uintptr_t;
  16739. #endif
  16740. #endif
  16741. #ifndef __intptr_t_defined
  16742. #ifndef intptr_t
  16743. typedef $acx_cv_type_intptr_t intptr_t;
  16744. #endif
  16745. #endif
  16746. EOF
  16747. fi
  16748. # ------------- done intptr types, emit int_least types ------------
  16749. if test "$ac_cv_type_int_least32_t" != yes; then
  16750. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16751. /* Define int_least types */
  16752. typedef int8_t int_least8_t;
  16753. typedef int16_t int_least16_t;
  16754. typedef int32_t int_least32_t;
  16755. #ifdef _INT64_T
  16756. typedef int64_t int_least64_t;
  16757. #endif
  16758. typedef uint8_t uint_least8_t;
  16759. typedef uint16_t uint_least16_t;
  16760. typedef uint32_t uint_least32_t;
  16761. #ifdef _UINT64_T
  16762. typedef uint64_t uint_least64_t;
  16763. #endif
  16764. EOF
  16765. fi
  16766. # ------------- done intptr types, emit int_fast types ------------
  16767. if test "$ac_cv_type_int_fast32_t" != yes; then
  16768. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16769. /* Define int_fast types. short is often slow */
  16770. typedef int8_t int_fast8_t;
  16771. typedef int int_fast16_t;
  16772. typedef int32_t int_fast32_t;
  16773. #ifdef _INT64_T
  16774. typedef int64_t int_fast64_t;
  16775. #endif
  16776. typedef uint8_t uint_fast8_t;
  16777. typedef unsigned int uint_fast16_t;
  16778. typedef uint32_t uint_fast32_t;
  16779. #ifdef _UINT64_T
  16780. typedef uint64_t uint_fast64_t;
  16781. #endif
  16782. EOF
  16783. fi
  16784. if test "$ac_cv_type_uintmax_t" != yes; then
  16785. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16786. /* Define intmax based on what we found */
  16787. #ifndef intmax_t
  16788. #ifdef _INT64_T
  16789. typedef int64_t intmax_t;
  16790. #else
  16791. typedef long intmax_t;
  16792. #endif
  16793. #endif
  16794. #ifndef uintmax_t
  16795. #ifdef _UINT64_T
  16796. typedef uint64_t uintmax_t;
  16797. #else
  16798. typedef unsigned long uintmax_t;
  16799. #endif
  16800. #endif
  16801. EOF
  16802. fi
  16803. sed 's/^ *//' >> tmp-stdint.h <<EOF
  16804. #endif /* GCC_GENERATED_STDINT_H */
  16805. EOF
  16806. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  16807. rm -f tmp-stdint.h
  16808. else
  16809. mv -f tmp-stdint.h gstdint.h
  16810. fi
  16811. ;;
  16812. esac
  16813. done # for ac_tag
  16814. as_fn_exit 0
  16815. _ACEOF
  16816. ac_clean_files=$ac_clean_files_save
  16817. test $ac_write_fail = 0 ||
  16818. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16819. # configure is writing to config.log, and then calls config.status.
  16820. # config.status does its own redirection, appending to config.log.
  16821. # Unfortunately, on DOS this fails, as config.log is still kept open
  16822. # by configure, so config.status won't be able to write to it; its
  16823. # output is simply discarded. So we exec the FD to /dev/null,
  16824. # effectively closing config.log, so it can be properly (re)opened and
  16825. # appended to by config.status. When coming back to configure, we
  16826. # need to make the FD available again.
  16827. if test "$no_create" != yes; then
  16828. ac_cs_success=:
  16829. ac_config_status_args=
  16830. test "$silent" = yes &&
  16831. ac_config_status_args="$ac_config_status_args --quiet"
  16832. exec 5>/dev/null
  16833. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16834. exec 5>>config.log
  16835. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16836. # would make configure fail if this is the last instruction.
  16837. $ac_cs_success || as_fn_exit $?
  16838. fi
  16839. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16841. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16842. fi