configure 583 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libffi 3.4.2.
  4. #
  5. # Report bugs to <http://github.com/libffi/libffi/issues>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: http://github.com/libffi/libffi/issues about your
  260. $0: system, including any error possibly output before this
  261. $0: message. Then install a modern shell, or manually run
  262. $0: the script under such a shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libffi'
  542. PACKAGE_TARNAME='libffi'
  543. PACKAGE_VERSION='3.4.2'
  544. PACKAGE_STRING='libffi 3.4.2'
  545. PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. get_gcc_base_ver
  587. LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
  588. LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
  589. LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
  590. LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
  591. LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
  592. LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
  593. OPT_LDFLAGS
  594. SECTION_LDFLAGS
  595. toolexeclibdir
  596. toolexecdir
  597. FFI_DEBUG_FALSE
  598. FFI_DEBUG_TRUE
  599. TARGET_OBJ
  600. TARGETDIR
  601. TARGET
  602. BUILD_DOCS_FALSE
  603. BUILD_DOCS_TRUE
  604. FFI_EXEC_TRAMPOLINE_TABLE
  605. FFI_EXEC_TRAMPOLINE_TABLE_FALSE
  606. FFI_EXEC_TRAMPOLINE_TABLE_TRUE
  607. HAVE_LONG_DOUBLE_VARIANT
  608. HAVE_LONG_DOUBLE
  609. ALLOCA
  610. AM_LTLDFLAGS
  611. AM_RUNTESTFLAGS
  612. TESTSUBDIR_FALSE
  613. TESTSUBDIR_TRUE
  614. MAINT
  615. MAINTAINER_MODE_FALSE
  616. MAINTAINER_MODE_TRUE
  617. READELF
  618. CXXCPP
  619. CPP
  620. OTOOL64
  621. OTOOL
  622. LIPO
  623. NMEDIT
  624. DSYMUTIL
  625. RANLIB
  626. AR
  627. OBJDUMP
  628. LN_S
  629. NM
  630. ac_ct_DUMPBIN
  631. DUMPBIN
  632. LD
  633. FGREP
  634. EGREP
  635. GREP
  636. SED
  637. LIBTOOL
  638. am__fastdepCCAS_FALSE
  639. am__fastdepCCAS_TRUE
  640. CCASDEPMODE
  641. CCASFLAGS
  642. CCAS
  643. CET_FLAGS
  644. am__fastdepCXX_FALSE
  645. am__fastdepCXX_TRUE
  646. CXXDEPMODE
  647. ac_ct_CXX
  648. CXXFLAGS
  649. CXX
  650. am__fastdepCC_FALSE
  651. am__fastdepCC_TRUE
  652. CCDEPMODE
  653. am__nodep
  654. AMDEPBACKSLASH
  655. AMDEP_FALSE
  656. AMDEP_TRUE
  657. am__quote
  658. am__include
  659. DEPDIR
  660. OBJEXT
  661. EXEEXT
  662. ac_ct_CC
  663. CPPFLAGS
  664. LDFLAGS
  665. CFLAGS
  666. CC
  667. GENINSRC_FALSE
  668. GENINSRC_TRUE
  669. AM_BACKSLASH
  670. AM_DEFAULT_VERBOSITY
  671. AM_DEFAULT_V
  672. AM_V
  673. am__untar
  674. am__tar
  675. AMTAR
  676. am__leading_dot
  677. SET_MAKE
  678. AWK
  679. mkdir_p
  680. MKDIR_P
  681. INSTALL_STRIP_PROGRAM
  682. STRIP
  683. install_sh
  684. MAKEINFO
  685. AUTOHEADER
  686. AUTOMAKE
  687. AUTOCONF
  688. ACLOCAL
  689. VERSION
  690. PACKAGE
  691. CYGPATH_W
  692. am__isrc
  693. INSTALL_DATA
  694. INSTALL_SCRIPT
  695. INSTALL_PROGRAM
  696. target_os
  697. target_vendor
  698. target_cpu
  699. target
  700. host_os
  701. host_vendor
  702. host_cpu
  703. host
  704. build_os
  705. build_vendor
  706. build_cpu
  707. build
  708. multi_basedir
  709. target_alias
  710. host_alias
  711. build_alias
  712. LIBS
  713. ECHO_T
  714. ECHO_N
  715. ECHO_C
  716. DEFS
  717. mandir
  718. localedir
  719. libdir
  720. psdir
  721. pdfdir
  722. dvidir
  723. htmldir
  724. infodir
  725. docdir
  726. oldincludedir
  727. includedir
  728. localstatedir
  729. sharedstatedir
  730. sysconfdir
  731. datadir
  732. datarootdir
  733. libexecdir
  734. sbindir
  735. bindir
  736. program_transform_name
  737. prefix
  738. exec_prefix
  739. PACKAGE_URL
  740. PACKAGE_BUGREPORT
  741. PACKAGE_STRING
  742. PACKAGE_VERSION
  743. PACKAGE_TARNAME
  744. PACKAGE_NAME
  745. PATH_SEPARATOR
  746. SHELL'
  747. ac_subst_files=''
  748. ac_user_opts='
  749. enable_option_checking
  750. enable_multilib
  751. enable_silent_rules
  752. enable_generated_files_in_srcdir
  753. enable_dependency_tracking
  754. enable_cet
  755. enable_shared
  756. enable_static
  757. with_pic
  758. enable_fast_install
  759. with_gnu_ld
  760. enable_libtool_lock
  761. enable_maintainer_mode
  762. enable_pax_emutramp
  763. enable_debug
  764. enable_structs
  765. enable_raw_api
  766. enable_exec_static_tramp
  767. enable_purify_safety
  768. with_toolexeclibdir
  769. enable_symvers
  770. with_gcc_major_version_only
  771. '
  772. ac_precious_vars='build_alias
  773. host_alias
  774. target_alias
  775. CCAS
  776. CCASFLAGS
  777. CPP
  778. CPPFLAGS
  779. CXXCPP'
  780. # Initialize some variables set by options.
  781. ac_init_help=
  782. ac_init_version=false
  783. ac_unrecognized_opts=
  784. ac_unrecognized_sep=
  785. # The variables have the same names as the options, with
  786. # dashes changed to underlines.
  787. cache_file=/dev/null
  788. exec_prefix=NONE
  789. no_create=
  790. no_recursion=
  791. prefix=NONE
  792. program_prefix=NONE
  793. program_suffix=NONE
  794. program_transform_name=s,x,x,
  795. silent=
  796. site=
  797. srcdir=
  798. verbose=
  799. x_includes=NONE
  800. x_libraries=NONE
  801. # Installation directory options.
  802. # These are left unexpanded so users can "make install exec_prefix=/foo"
  803. # and all the variables that are supposed to be based on exec_prefix
  804. # by default will actually change.
  805. # Use braces instead of parens because sh, perl, etc. also accept them.
  806. # (The list follows the same order as the GNU Coding Standards.)
  807. bindir='${exec_prefix}/bin'
  808. sbindir='${exec_prefix}/sbin'
  809. libexecdir='${exec_prefix}/libexec'
  810. datarootdir='${prefix}/share'
  811. datadir='${datarootdir}'
  812. sysconfdir='${prefix}/etc'
  813. sharedstatedir='${prefix}/com'
  814. localstatedir='${prefix}/var'
  815. includedir='${prefix}/include'
  816. oldincludedir='/usr/include'
  817. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  818. infodir='${datarootdir}/info'
  819. htmldir='${docdir}'
  820. dvidir='${docdir}'
  821. pdfdir='${docdir}'
  822. psdir='${docdir}'
  823. libdir='${exec_prefix}/lib'
  824. localedir='${datarootdir}/locale'
  825. mandir='${datarootdir}/man'
  826. ac_prev=
  827. ac_dashdash=
  828. for ac_option
  829. do
  830. # If the previous option needs an argument, assign it.
  831. if test -n "$ac_prev"; then
  832. eval $ac_prev=\$ac_option
  833. ac_prev=
  834. continue
  835. fi
  836. case $ac_option in
  837. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  838. *=) ac_optarg= ;;
  839. *) ac_optarg=yes ;;
  840. esac
  841. # Accept the important Cygnus configure options, so we can diagnose typos.
  842. case $ac_dashdash$ac_option in
  843. --)
  844. ac_dashdash=yes ;;
  845. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  846. ac_prev=bindir ;;
  847. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  848. bindir=$ac_optarg ;;
  849. -build | --build | --buil | --bui | --bu)
  850. ac_prev=build_alias ;;
  851. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  852. build_alias=$ac_optarg ;;
  853. -cache-file | --cache-file | --cache-fil | --cache-fi \
  854. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  855. ac_prev=cache_file ;;
  856. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  857. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  858. cache_file=$ac_optarg ;;
  859. --config-cache | -C)
  860. cache_file=config.cache ;;
  861. -datadir | --datadir | --datadi | --datad)
  862. ac_prev=datadir ;;
  863. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  864. datadir=$ac_optarg ;;
  865. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  866. | --dataroo | --dataro | --datar)
  867. ac_prev=datarootdir ;;
  868. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  869. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  870. datarootdir=$ac_optarg ;;
  871. -disable-* | --disable-*)
  872. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  873. # Reject names that are not valid shell variable names.
  874. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  875. as_fn_error $? "invalid feature name: $ac_useropt"
  876. ac_useropt_orig=$ac_useropt
  877. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  878. case $ac_user_opts in
  879. *"
  880. "enable_$ac_useropt"
  881. "*) ;;
  882. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  883. ac_unrecognized_sep=', ';;
  884. esac
  885. eval enable_$ac_useropt=no ;;
  886. -docdir | --docdir | --docdi | --doc | --do)
  887. ac_prev=docdir ;;
  888. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  889. docdir=$ac_optarg ;;
  890. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  891. ac_prev=dvidir ;;
  892. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  893. dvidir=$ac_optarg ;;
  894. -enable-* | --enable-*)
  895. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  896. # Reject names that are not valid shell variable names.
  897. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  898. as_fn_error $? "invalid feature name: $ac_useropt"
  899. ac_useropt_orig=$ac_useropt
  900. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  901. case $ac_user_opts in
  902. *"
  903. "enable_$ac_useropt"
  904. "*) ;;
  905. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  906. ac_unrecognized_sep=', ';;
  907. esac
  908. eval enable_$ac_useropt=\$ac_optarg ;;
  909. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  910. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  911. | --exec | --exe | --ex)
  912. ac_prev=exec_prefix ;;
  913. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  914. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  915. | --exec=* | --exe=* | --ex=*)
  916. exec_prefix=$ac_optarg ;;
  917. -gas | --gas | --ga | --g)
  918. # Obsolete; use --with-gas.
  919. with_gas=yes ;;
  920. -help | --help | --hel | --he | -h)
  921. ac_init_help=long ;;
  922. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  923. ac_init_help=recursive ;;
  924. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  925. ac_init_help=short ;;
  926. -host | --host | --hos | --ho)
  927. ac_prev=host_alias ;;
  928. -host=* | --host=* | --hos=* | --ho=*)
  929. host_alias=$ac_optarg ;;
  930. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  931. ac_prev=htmldir ;;
  932. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  933. | --ht=*)
  934. htmldir=$ac_optarg ;;
  935. -includedir | --includedir | --includedi | --included | --include \
  936. | --includ | --inclu | --incl | --inc)
  937. ac_prev=includedir ;;
  938. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  939. | --includ=* | --inclu=* | --incl=* | --inc=*)
  940. includedir=$ac_optarg ;;
  941. -infodir | --infodir | --infodi | --infod | --info | --inf)
  942. ac_prev=infodir ;;
  943. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  944. infodir=$ac_optarg ;;
  945. -libdir | --libdir | --libdi | --libd)
  946. ac_prev=libdir ;;
  947. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  948. libdir=$ac_optarg ;;
  949. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  950. | --libexe | --libex | --libe)
  951. ac_prev=libexecdir ;;
  952. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  953. | --libexe=* | --libex=* | --libe=*)
  954. libexecdir=$ac_optarg ;;
  955. -localedir | --localedir | --localedi | --localed | --locale)
  956. ac_prev=localedir ;;
  957. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  958. localedir=$ac_optarg ;;
  959. -localstatedir | --localstatedir | --localstatedi | --localstated \
  960. | --localstate | --localstat | --localsta | --localst | --locals)
  961. ac_prev=localstatedir ;;
  962. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  963. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  964. localstatedir=$ac_optarg ;;
  965. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  966. ac_prev=mandir ;;
  967. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  968. mandir=$ac_optarg ;;
  969. -nfp | --nfp | --nf)
  970. # Obsolete; use --without-fp.
  971. with_fp=no ;;
  972. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  973. | --no-cr | --no-c | -n)
  974. no_create=yes ;;
  975. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  976. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  977. no_recursion=yes ;;
  978. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  979. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  980. | --oldin | --oldi | --old | --ol | --o)
  981. ac_prev=oldincludedir ;;
  982. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  983. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  984. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  985. oldincludedir=$ac_optarg ;;
  986. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  987. ac_prev=prefix ;;
  988. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  989. prefix=$ac_optarg ;;
  990. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  991. | --program-pre | --program-pr | --program-p)
  992. ac_prev=program_prefix ;;
  993. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  994. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  995. program_prefix=$ac_optarg ;;
  996. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  997. | --program-suf | --program-su | --program-s)
  998. ac_prev=program_suffix ;;
  999. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1000. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1001. program_suffix=$ac_optarg ;;
  1002. -program-transform-name | --program-transform-name \
  1003. | --program-transform-nam | --program-transform-na \
  1004. | --program-transform-n | --program-transform- \
  1005. | --program-transform | --program-transfor \
  1006. | --program-transfo | --program-transf \
  1007. | --program-trans | --program-tran \
  1008. | --progr-tra | --program-tr | --program-t)
  1009. ac_prev=program_transform_name ;;
  1010. -program-transform-name=* | --program-transform-name=* \
  1011. | --program-transform-nam=* | --program-transform-na=* \
  1012. | --program-transform-n=* | --program-transform-=* \
  1013. | --program-transform=* | --program-transfor=* \
  1014. | --program-transfo=* | --program-transf=* \
  1015. | --program-trans=* | --program-tran=* \
  1016. | --progr-tra=* | --program-tr=* | --program-t=*)
  1017. program_transform_name=$ac_optarg ;;
  1018. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1019. ac_prev=pdfdir ;;
  1020. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1021. pdfdir=$ac_optarg ;;
  1022. -psdir | --psdir | --psdi | --psd | --ps)
  1023. ac_prev=psdir ;;
  1024. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1025. psdir=$ac_optarg ;;
  1026. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1027. | -silent | --silent | --silen | --sile | --sil)
  1028. silent=yes ;;
  1029. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1030. ac_prev=sbindir ;;
  1031. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1032. | --sbi=* | --sb=*)
  1033. sbindir=$ac_optarg ;;
  1034. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1035. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1036. | --sharedst | --shareds | --shared | --share | --shar \
  1037. | --sha | --sh)
  1038. ac_prev=sharedstatedir ;;
  1039. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1040. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1041. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1042. | --sha=* | --sh=*)
  1043. sharedstatedir=$ac_optarg ;;
  1044. -site | --site | --sit)
  1045. ac_prev=site ;;
  1046. -site=* | --site=* | --sit=*)
  1047. site=$ac_optarg ;;
  1048. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1049. ac_prev=srcdir ;;
  1050. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1051. srcdir=$ac_optarg ;;
  1052. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1053. | --syscon | --sysco | --sysc | --sys | --sy)
  1054. ac_prev=sysconfdir ;;
  1055. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1056. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1057. sysconfdir=$ac_optarg ;;
  1058. -target | --target | --targe | --targ | --tar | --ta | --t)
  1059. ac_prev=target_alias ;;
  1060. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1061. target_alias=$ac_optarg ;;
  1062. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1063. verbose=yes ;;
  1064. -version | --version | --versio | --versi | --vers | -V)
  1065. ac_init_version=: ;;
  1066. -with-* | --with-*)
  1067. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1068. # Reject names that are not valid shell variable names.
  1069. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1070. as_fn_error $? "invalid package name: $ac_useropt"
  1071. ac_useropt_orig=$ac_useropt
  1072. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1073. case $ac_user_opts in
  1074. *"
  1075. "with_$ac_useropt"
  1076. "*) ;;
  1077. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1078. ac_unrecognized_sep=', ';;
  1079. esac
  1080. eval with_$ac_useropt=\$ac_optarg ;;
  1081. -without-* | --without-*)
  1082. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1083. # Reject names that are not valid shell variable names.
  1084. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1085. as_fn_error $? "invalid package name: $ac_useropt"
  1086. ac_useropt_orig=$ac_useropt
  1087. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1088. case $ac_user_opts in
  1089. *"
  1090. "with_$ac_useropt"
  1091. "*) ;;
  1092. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1093. ac_unrecognized_sep=', ';;
  1094. esac
  1095. eval with_$ac_useropt=no ;;
  1096. --x)
  1097. # Obsolete; use --with-x.
  1098. with_x=yes ;;
  1099. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1100. | --x-incl | --x-inc | --x-in | --x-i)
  1101. ac_prev=x_includes ;;
  1102. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1103. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1104. x_includes=$ac_optarg ;;
  1105. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1106. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1107. ac_prev=x_libraries ;;
  1108. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1109. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1110. x_libraries=$ac_optarg ;;
  1111. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1112. Try \`$0 --help' for more information"
  1113. ;;
  1114. *=*)
  1115. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1116. # Reject names that are not valid shell variable names.
  1117. case $ac_envvar in #(
  1118. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1119. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1120. esac
  1121. eval $ac_envvar=\$ac_optarg
  1122. export $ac_envvar ;;
  1123. *)
  1124. # FIXME: should be removed in autoconf 3.0.
  1125. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1126. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1127. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1128. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1129. ;;
  1130. esac
  1131. done
  1132. if test -n "$ac_prev"; then
  1133. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1134. as_fn_error $? "missing argument to $ac_option"
  1135. fi
  1136. if test -n "$ac_unrecognized_opts"; then
  1137. case $enable_option_checking in
  1138. no) ;;
  1139. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1140. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1141. esac
  1142. fi
  1143. # Check all directory arguments for consistency.
  1144. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1145. datadir sysconfdir sharedstatedir localstatedir includedir \
  1146. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1147. libdir localedir mandir
  1148. do
  1149. eval ac_val=\$$ac_var
  1150. # Remove trailing slashes.
  1151. case $ac_val in
  1152. */ )
  1153. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1154. eval $ac_var=\$ac_val;;
  1155. esac
  1156. # Be sure to have absolute directory names.
  1157. case $ac_val in
  1158. [\\/$]* | ?:[\\/]* ) continue;;
  1159. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1160. esac
  1161. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1162. done
  1163. # There might be people who depend on the old broken behavior: `$host'
  1164. # used to hold the argument of --host etc.
  1165. # FIXME: To remove some day.
  1166. build=$build_alias
  1167. host=$host_alias
  1168. target=$target_alias
  1169. # FIXME: To remove some day.
  1170. if test "x$host_alias" != x; then
  1171. if test "x$build_alias" = x; then
  1172. cross_compiling=maybe
  1173. elif test "x$build_alias" != "x$host_alias"; then
  1174. cross_compiling=yes
  1175. fi
  1176. fi
  1177. ac_tool_prefix=
  1178. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1179. test "$silent" = yes && exec 6>/dev/null
  1180. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1181. ac_ls_di=`ls -di .` &&
  1182. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1183. as_fn_error $? "working directory cannot be determined"
  1184. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1185. as_fn_error $? "pwd does not report name of working directory"
  1186. # Find the source files, if location was not specified.
  1187. if test -z "$srcdir"; then
  1188. ac_srcdir_defaulted=yes
  1189. # Try the directory containing this script, then the parent directory.
  1190. ac_confdir=`$as_dirname -- "$as_myself" ||
  1191. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1192. X"$as_myself" : 'X\(//\)[^/]' \| \
  1193. X"$as_myself" : 'X\(//\)$' \| \
  1194. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1195. $as_echo X"$as_myself" |
  1196. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1197. s//\1/
  1198. q
  1199. }
  1200. /^X\(\/\/\)[^/].*/{
  1201. s//\1/
  1202. q
  1203. }
  1204. /^X\(\/\/\)$/{
  1205. s//\1/
  1206. q
  1207. }
  1208. /^X\(\/\).*/{
  1209. s//\1/
  1210. q
  1211. }
  1212. s/.*/./; q'`
  1213. srcdir=$ac_confdir
  1214. if test ! -r "$srcdir/$ac_unique_file"; then
  1215. srcdir=..
  1216. fi
  1217. else
  1218. ac_srcdir_defaulted=no
  1219. fi
  1220. if test ! -r "$srcdir/$ac_unique_file"; then
  1221. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1222. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1223. fi
  1224. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1225. ac_abs_confdir=`(
  1226. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1227. pwd)`
  1228. # When building in place, set srcdir=.
  1229. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1230. srcdir=.
  1231. fi
  1232. # Remove unnecessary trailing slashes from srcdir.
  1233. # Double slashes in file names in object file debugging info
  1234. # mess up M-x gdb in Emacs.
  1235. case $srcdir in
  1236. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1237. esac
  1238. for ac_var in $ac_precious_vars; do
  1239. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1240. eval ac_env_${ac_var}_value=\$${ac_var}
  1241. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1242. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1243. done
  1244. #
  1245. # Report the --help message.
  1246. #
  1247. if test "$ac_init_help" = "long"; then
  1248. # Omit some internal or obsolete options to make the list less imposing.
  1249. # This message is too long to be a string in the A/UX 3.1 sh.
  1250. cat <<_ACEOF
  1251. \`configure' configures libffi 3.4.2 to adapt to many kinds of systems.
  1252. Usage: $0 [OPTION]... [VAR=VALUE]...
  1253. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1254. VAR=VALUE. See below for descriptions of some of the useful variables.
  1255. Defaults for the options are specified in brackets.
  1256. Configuration:
  1257. -h, --help display this help and exit
  1258. --help=short display options specific to this package
  1259. --help=recursive display the short help of all the included packages
  1260. -V, --version display version information and exit
  1261. -q, --quiet, --silent do not print \`checking ...' messages
  1262. --cache-file=FILE cache test results in FILE [disabled]
  1263. -C, --config-cache alias for \`--cache-file=config.cache'
  1264. -n, --no-create do not create output files
  1265. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1266. Installation directories:
  1267. --prefix=PREFIX install architecture-independent files in PREFIX
  1268. [$ac_default_prefix]
  1269. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1270. [PREFIX]
  1271. By default, \`make install' will install all the files in
  1272. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1273. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1274. for instance \`--prefix=\$HOME'.
  1275. For better control, use the options below.
  1276. Fine tuning of the installation directories:
  1277. --bindir=DIR user executables [EPREFIX/bin]
  1278. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1279. --libexecdir=DIR program executables [EPREFIX/libexec]
  1280. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1281. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1282. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1283. --libdir=DIR object code libraries [EPREFIX/lib]
  1284. --includedir=DIR C header files [PREFIX/include]
  1285. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1286. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1287. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1288. --infodir=DIR info documentation [DATAROOTDIR/info]
  1289. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1290. --mandir=DIR man documentation [DATAROOTDIR/man]
  1291. --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
  1292. --htmldir=DIR html documentation [DOCDIR]
  1293. --dvidir=DIR dvi documentation [DOCDIR]
  1294. --pdfdir=DIR pdf documentation [DOCDIR]
  1295. --psdir=DIR ps documentation [DOCDIR]
  1296. _ACEOF
  1297. cat <<\_ACEOF
  1298. Program names:
  1299. --program-prefix=PREFIX prepend PREFIX to installed program names
  1300. --program-suffix=SUFFIX append SUFFIX to installed program names
  1301. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1302. System types:
  1303. --build=BUILD configure for building on BUILD [guessed]
  1304. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1305. --target=TARGET configure for building compilers for TARGET [HOST]
  1306. _ACEOF
  1307. fi
  1308. if test -n "$ac_init_help"; then
  1309. case $ac_init_help in
  1310. short | recursive ) echo "Configuration of libffi 3.4.2:";;
  1311. esac
  1312. cat <<\_ACEOF
  1313. Optional Features:
  1314. --disable-option-checking ignore unrecognized --enable/--with options
  1315. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1316. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1317. --enable-multilib build many library versions (default)
  1318. --enable-silent-rules less verbose build output (undo: "make V=1")
  1319. --disable-silent-rules verbose build output (undo: "make V=0")
  1320. --enable-generated-files-in-srcdir
  1321. put copies of generated files in source dir intended
  1322. for creating source tarballs for users without
  1323. texinfo bison or flex
  1324. --enable-dependency-tracking
  1325. do not reject slow dependency extractors
  1326. --disable-dependency-tracking
  1327. speeds up one-time build
  1328. --enable-cet enable Intel CET in target libraries [default=auto]
  1329. --enable-shared[=PKGS] build shared libraries [default=yes]
  1330. --enable-static[=PKGS] build static libraries [default=yes]
  1331. --enable-fast-install[=PKGS]
  1332. optimize for fast installation [default=yes]
  1333. --disable-libtool-lock avoid locking (might break parallel builds)
  1334. --enable-maintainer-mode
  1335. enable make rules and dependencies not useful (and
  1336. sometimes confusing) to the casual installer
  1337. --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
  1338. --enable-debug debugging mode
  1339. --disable-structs omit code for struct support
  1340. --disable-raw-api make the raw api unavailable
  1341. --enable-exec-static-tramp enable use of static exec trampolines
  1342. --enable-purify-safety purify-safe mode
  1343. --enable-symvers=STYLE enables symbol versioning of the shared library
  1344. [default=yes]
  1345. Optional Packages:
  1346. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1347. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1348. --with-pic try to use only PIC/non-PIC objects [default=use
  1349. both]
  1350. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1351. --with-toolexeclibdir=DIR
  1352. install libraries built with a cross compiler within
  1353. DIR
  1354. --with-gcc-major-version-only
  1355. use only GCC major number in filesystem paths
  1356. Some influential environment variables:
  1357. CC C compiler command
  1358. CFLAGS C compiler flags
  1359. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1360. nonstandard directory <lib dir>
  1361. LIBS libraries to pass to the linker, e.g. -l<library>
  1362. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1363. you have headers in a nonstandard directory <include dir>
  1364. CXX C++ compiler command
  1365. CXXFLAGS C++ compiler flags
  1366. CCAS assembler compiler command (defaults to CC)
  1367. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1368. CPP C preprocessor
  1369. CXXCPP C++ preprocessor
  1370. Use these variables to override the choices made by `configure' or to help
  1371. it to find libraries and programs with nonstandard names/locations.
  1372. Report bugs to <http://github.com/libffi/libffi/issues>.
  1373. _ACEOF
  1374. ac_status=$?
  1375. fi
  1376. if test "$ac_init_help" = "recursive"; then
  1377. # If there are subdirs, report their specific --help.
  1378. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1379. test -d "$ac_dir" ||
  1380. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1381. continue
  1382. ac_builddir=.
  1383. case "$ac_dir" in
  1384. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1385. *)
  1386. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1387. # A ".." for each directory in $ac_dir_suffix.
  1388. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1389. case $ac_top_builddir_sub in
  1390. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1391. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1392. esac ;;
  1393. esac
  1394. ac_abs_top_builddir=$ac_pwd
  1395. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1396. # for backward compatibility:
  1397. ac_top_builddir=$ac_top_build_prefix
  1398. case $srcdir in
  1399. .) # We are building in place.
  1400. ac_srcdir=.
  1401. ac_top_srcdir=$ac_top_builddir_sub
  1402. ac_abs_top_srcdir=$ac_pwd ;;
  1403. [\\/]* | ?:[\\/]* ) # Absolute name.
  1404. ac_srcdir=$srcdir$ac_dir_suffix;
  1405. ac_top_srcdir=$srcdir
  1406. ac_abs_top_srcdir=$srcdir ;;
  1407. *) # Relative name.
  1408. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1409. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1410. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1411. esac
  1412. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1413. cd "$ac_dir" || { ac_status=$?; continue; }
  1414. # Check for guested configure.
  1415. if test -f "$ac_srcdir/configure.gnu"; then
  1416. echo &&
  1417. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1418. elif test -f "$ac_srcdir/configure"; then
  1419. echo &&
  1420. $SHELL "$ac_srcdir/configure" --help=recursive
  1421. else
  1422. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1423. fi || ac_status=$?
  1424. cd "$ac_pwd" || { ac_status=$?; break; }
  1425. done
  1426. fi
  1427. test -n "$ac_init_help" && exit $ac_status
  1428. if $ac_init_version; then
  1429. cat <<\_ACEOF
  1430. libffi configure 3.4.2
  1431. generated by GNU Autoconf 2.69
  1432. Copyright (C) 2012 Free Software Foundation, Inc.
  1433. This configure script is free software; the Free Software Foundation
  1434. gives unlimited permission to copy, distribute and modify it.
  1435. _ACEOF
  1436. exit
  1437. fi
  1438. ## ------------------------ ##
  1439. ## Autoconf initialization. ##
  1440. ## ------------------------ ##
  1441. # ac_fn_c_try_compile LINENO
  1442. # --------------------------
  1443. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_compile ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. rm -f conftest.$ac_objext
  1448. if { { ac_try="$ac_compile"
  1449. case "(($ac_try" in
  1450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1451. *) ac_try_echo=$ac_try;;
  1452. esac
  1453. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1454. $as_echo "$ac_try_echo"; } >&5
  1455. (eval "$ac_compile") 2>conftest.err
  1456. ac_status=$?
  1457. if test -s conftest.err; then
  1458. grep -v '^ *+' conftest.err >conftest.er1
  1459. cat conftest.er1 >&5
  1460. mv -f conftest.er1 conftest.err
  1461. fi
  1462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1463. test $ac_status = 0; } && {
  1464. test -z "$ac_c_werror_flag" ||
  1465. test ! -s conftest.err
  1466. } && test -s conftest.$ac_objext; then :
  1467. ac_retval=0
  1468. else
  1469. $as_echo "$as_me: failed program was:" >&5
  1470. sed 's/^/| /' conftest.$ac_ext >&5
  1471. ac_retval=1
  1472. fi
  1473. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1474. as_fn_set_status $ac_retval
  1475. } # ac_fn_c_try_compile
  1476. # ac_fn_cxx_try_compile LINENO
  1477. # ----------------------------
  1478. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1479. ac_fn_cxx_try_compile ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. rm -f conftest.$ac_objext
  1483. if { { ac_try="$ac_compile"
  1484. case "(($ac_try" in
  1485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1486. *) ac_try_echo=$ac_try;;
  1487. esac
  1488. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1489. $as_echo "$ac_try_echo"; } >&5
  1490. (eval "$ac_compile") 2>conftest.err
  1491. ac_status=$?
  1492. if test -s conftest.err; then
  1493. grep -v '^ *+' conftest.err >conftest.er1
  1494. cat conftest.er1 >&5
  1495. mv -f conftest.er1 conftest.err
  1496. fi
  1497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1498. test $ac_status = 0; } && {
  1499. test -z "$ac_cxx_werror_flag" ||
  1500. test ! -s conftest.err
  1501. } && test -s conftest.$ac_objext; then :
  1502. ac_retval=0
  1503. else
  1504. $as_echo "$as_me: failed program was:" >&5
  1505. sed 's/^/| /' conftest.$ac_ext >&5
  1506. ac_retval=1
  1507. fi
  1508. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1509. as_fn_set_status $ac_retval
  1510. } # ac_fn_cxx_try_compile
  1511. # ac_fn_c_try_link LINENO
  1512. # -----------------------
  1513. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1514. ac_fn_c_try_link ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. rm -f conftest.$ac_objext conftest$ac_exeext
  1518. if { { ac_try="$ac_link"
  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_link") 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; } && {
  1534. test -z "$ac_c_werror_flag" ||
  1535. test ! -s conftest.err
  1536. } && test -s conftest$ac_exeext && {
  1537. test "$cross_compiling" = yes ||
  1538. test -x conftest$ac_exeext
  1539. }; then :
  1540. ac_retval=0
  1541. else
  1542. $as_echo "$as_me: failed program was:" >&5
  1543. sed 's/^/| /' conftest.$ac_ext >&5
  1544. ac_retval=1
  1545. fi
  1546. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1547. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1548. # interfere with the next link command; also delete a directory that is
  1549. # left behind by Apple's compiler. We do this before executing the actions.
  1550. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1551. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1552. as_fn_set_status $ac_retval
  1553. } # ac_fn_c_try_link
  1554. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1555. # -------------------------------------------------------
  1556. # Tests whether HEADER exists and can be compiled using the include files in
  1557. # INCLUDES, setting the cache variable VAR accordingly.
  1558. ac_fn_c_check_header_compile ()
  1559. {
  1560. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1562. $as_echo_n "checking for $2... " >&6; }
  1563. if eval \${$3+:} false; then :
  1564. $as_echo_n "(cached) " >&6
  1565. else
  1566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1567. /* end confdefs.h. */
  1568. $4
  1569. #include <$2>
  1570. _ACEOF
  1571. if ac_fn_c_try_compile "$LINENO"; then :
  1572. eval "$3=yes"
  1573. else
  1574. eval "$3=no"
  1575. fi
  1576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1577. fi
  1578. eval ac_res=\$$3
  1579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1580. $as_echo "$ac_res" >&6; }
  1581. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1582. } # ac_fn_c_check_header_compile
  1583. # ac_fn_c_try_cpp LINENO
  1584. # ----------------------
  1585. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1586. ac_fn_c_try_cpp ()
  1587. {
  1588. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1589. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1590. case "(($ac_try" in
  1591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1592. *) ac_try_echo=$ac_try;;
  1593. esac
  1594. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1595. $as_echo "$ac_try_echo"; } >&5
  1596. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1597. ac_status=$?
  1598. if test -s conftest.err; then
  1599. grep -v '^ *+' conftest.err >conftest.er1
  1600. cat conftest.er1 >&5
  1601. mv -f conftest.er1 conftest.err
  1602. fi
  1603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1604. test $ac_status = 0; } > conftest.i && {
  1605. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1606. test ! -s conftest.err
  1607. }; then :
  1608. ac_retval=0
  1609. else
  1610. $as_echo "$as_me: failed program was:" >&5
  1611. sed 's/^/| /' conftest.$ac_ext >&5
  1612. ac_retval=1
  1613. fi
  1614. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1615. as_fn_set_status $ac_retval
  1616. } # ac_fn_c_try_cpp
  1617. # ac_fn_c_try_run LINENO
  1618. # ----------------------
  1619. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1620. # that executables *can* be run.
  1621. ac_fn_c_try_run ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if { { ac_try="$ac_link"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1630. $as_echo "$ac_try_echo"; } >&5
  1631. (eval "$ac_link") 2>&5
  1632. ac_status=$?
  1633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1634. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1635. { { case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1640. $as_echo "$ac_try_echo"; } >&5
  1641. (eval "$ac_try") 2>&5
  1642. ac_status=$?
  1643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644. test $ac_status = 0; }; }; then :
  1645. ac_retval=0
  1646. else
  1647. $as_echo "$as_me: program exited with status $ac_status" >&5
  1648. $as_echo "$as_me: failed program was:" >&5
  1649. sed 's/^/| /' conftest.$ac_ext >&5
  1650. ac_retval=$ac_status
  1651. fi
  1652. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1653. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1654. as_fn_set_status $ac_retval
  1655. } # ac_fn_c_try_run
  1656. # ac_fn_c_check_func LINENO FUNC VAR
  1657. # ----------------------------------
  1658. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1659. ac_fn_c_check_func ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1663. $as_echo_n "checking for $2... " >&6; }
  1664. if eval \${$3+:} false; then :
  1665. $as_echo_n "(cached) " >&6
  1666. else
  1667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1668. /* end confdefs.h. */
  1669. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1670. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1671. #define $2 innocuous_$2
  1672. /* System header to define __stub macros and hopefully few prototypes,
  1673. which can conflict with char $2 (); below.
  1674. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1675. <limits.h> exists even on freestanding compilers. */
  1676. #ifdef __STDC__
  1677. # include <limits.h>
  1678. #else
  1679. # include <assert.h>
  1680. #endif
  1681. #undef $2
  1682. /* Override any GCC internal prototype to avoid an error.
  1683. Use char because int might match the return type of a GCC
  1684. builtin and then its argument prototype would still apply. */
  1685. #ifdef __cplusplus
  1686. extern "C"
  1687. #endif
  1688. char $2 ();
  1689. /* The GNU C library defines this for functions which it implements
  1690. to always fail with ENOSYS. Some functions are actually named
  1691. something starting with __ and the normal name is an alias. */
  1692. #if defined __stub_$2 || defined __stub___$2
  1693. choke me
  1694. #endif
  1695. int
  1696. main ()
  1697. {
  1698. return $2 ();
  1699. ;
  1700. return 0;
  1701. }
  1702. _ACEOF
  1703. if ac_fn_c_try_link "$LINENO"; then :
  1704. eval "$3=yes"
  1705. else
  1706. eval "$3=no"
  1707. fi
  1708. rm -f core conftest.err conftest.$ac_objext \
  1709. conftest$ac_exeext conftest.$ac_ext
  1710. fi
  1711. eval ac_res=\$$3
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1713. $as_echo "$ac_res" >&6; }
  1714. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1715. } # ac_fn_c_check_func
  1716. # ac_fn_cxx_try_cpp LINENO
  1717. # ------------------------
  1718. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1719. ac_fn_cxx_try_cpp ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1723. case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1730. ac_status=$?
  1731. if test -s conftest.err; then
  1732. grep -v '^ *+' conftest.err >conftest.er1
  1733. cat conftest.er1 >&5
  1734. mv -f conftest.er1 conftest.err
  1735. fi
  1736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1737. test $ac_status = 0; } > conftest.i && {
  1738. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1739. test ! -s conftest.err
  1740. }; then :
  1741. ac_retval=0
  1742. else
  1743. $as_echo "$as_me: failed program was:" >&5
  1744. sed 's/^/| /' conftest.$ac_ext >&5
  1745. ac_retval=1
  1746. fi
  1747. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1748. as_fn_set_status $ac_retval
  1749. } # ac_fn_cxx_try_cpp
  1750. # ac_fn_cxx_try_link LINENO
  1751. # -------------------------
  1752. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1753. ac_fn_cxx_try_link ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. rm -f conftest.$ac_objext conftest$ac_exeext
  1757. if { { ac_try="$ac_link"
  1758. case "(($ac_try" in
  1759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1760. *) ac_try_echo=$ac_try;;
  1761. esac
  1762. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1763. $as_echo "$ac_try_echo"; } >&5
  1764. (eval "$ac_link") 2>conftest.err
  1765. ac_status=$?
  1766. if test -s conftest.err; then
  1767. grep -v '^ *+' conftest.err >conftest.er1
  1768. cat conftest.er1 >&5
  1769. mv -f conftest.er1 conftest.err
  1770. fi
  1771. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1772. test $ac_status = 0; } && {
  1773. test -z "$ac_cxx_werror_flag" ||
  1774. test ! -s conftest.err
  1775. } && test -s conftest$ac_exeext && {
  1776. test "$cross_compiling" = yes ||
  1777. test -x conftest$ac_exeext
  1778. }; then :
  1779. ac_retval=0
  1780. else
  1781. $as_echo "$as_me: failed program was:" >&5
  1782. sed 's/^/| /' conftest.$ac_ext >&5
  1783. ac_retval=1
  1784. fi
  1785. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1786. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1787. # interfere with the next link command; also delete a directory that is
  1788. # left behind by Apple's compiler. We do this before executing the actions.
  1789. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1790. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1791. as_fn_set_status $ac_retval
  1792. } # ac_fn_cxx_try_link
  1793. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1794. # --------------------------------------------
  1795. # Tries to find the compile-time value of EXPR in a program that includes
  1796. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1797. # computed
  1798. ac_fn_c_compute_int ()
  1799. {
  1800. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1801. if test "$cross_compiling" = yes; then
  1802. # Depending upon the size, compute the lo and hi bounds.
  1803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. static int test_array [1 - 2 * !(($2) >= 0)];
  1810. test_array [0] = 0;
  1811. return test_array [0];
  1812. ;
  1813. return 0;
  1814. }
  1815. _ACEOF
  1816. if ac_fn_c_try_compile "$LINENO"; then :
  1817. ac_lo=0 ac_mid=0
  1818. while :; do
  1819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1820. /* end confdefs.h. */
  1821. $4
  1822. int
  1823. main ()
  1824. {
  1825. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1826. test_array [0] = 0;
  1827. return test_array [0];
  1828. ;
  1829. return 0;
  1830. }
  1831. _ACEOF
  1832. if ac_fn_c_try_compile "$LINENO"; then :
  1833. ac_hi=$ac_mid; break
  1834. else
  1835. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1836. if test $ac_lo -le $ac_mid; then
  1837. ac_lo= ac_hi=
  1838. break
  1839. fi
  1840. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1841. fi
  1842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1843. done
  1844. else
  1845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end confdefs.h. */
  1847. $4
  1848. int
  1849. main ()
  1850. {
  1851. static int test_array [1 - 2 * !(($2) < 0)];
  1852. test_array [0] = 0;
  1853. return test_array [0];
  1854. ;
  1855. return 0;
  1856. }
  1857. _ACEOF
  1858. if ac_fn_c_try_compile "$LINENO"; then :
  1859. ac_hi=-1 ac_mid=-1
  1860. while :; do
  1861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1862. /* end confdefs.h. */
  1863. $4
  1864. int
  1865. main ()
  1866. {
  1867. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1868. test_array [0] = 0;
  1869. return test_array [0];
  1870. ;
  1871. return 0;
  1872. }
  1873. _ACEOF
  1874. if ac_fn_c_try_compile "$LINENO"; then :
  1875. ac_lo=$ac_mid; break
  1876. else
  1877. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1878. if test $ac_mid -le $ac_hi; then
  1879. ac_lo= ac_hi=
  1880. break
  1881. fi
  1882. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1885. done
  1886. else
  1887. ac_lo= ac_hi=
  1888. fi
  1889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1890. fi
  1891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1892. # Binary search between lo and hi bounds.
  1893. while test "x$ac_lo" != "x$ac_hi"; do
  1894. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1896. /* end confdefs.h. */
  1897. $4
  1898. int
  1899. main ()
  1900. {
  1901. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1902. test_array [0] = 0;
  1903. return test_array [0];
  1904. ;
  1905. return 0;
  1906. }
  1907. _ACEOF
  1908. if ac_fn_c_try_compile "$LINENO"; then :
  1909. ac_hi=$ac_mid
  1910. else
  1911. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1912. fi
  1913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1914. done
  1915. case $ac_lo in #((
  1916. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1917. '') ac_retval=1 ;;
  1918. esac
  1919. else
  1920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1921. /* end confdefs.h. */
  1922. $4
  1923. static long int longval () { return $2; }
  1924. static unsigned long int ulongval () { return $2; }
  1925. #include <stdio.h>
  1926. #include <stdlib.h>
  1927. int
  1928. main ()
  1929. {
  1930. FILE *f = fopen ("conftest.val", "w");
  1931. if (! f)
  1932. return 1;
  1933. if (($2) < 0)
  1934. {
  1935. long int i = longval ();
  1936. if (i != ($2))
  1937. return 1;
  1938. fprintf (f, "%ld", i);
  1939. }
  1940. else
  1941. {
  1942. unsigned long int i = ulongval ();
  1943. if (i != ($2))
  1944. return 1;
  1945. fprintf (f, "%lu", i);
  1946. }
  1947. /* Do not output a trailing newline, as this causes \r\n confusion
  1948. on some platforms. */
  1949. return ferror (f) || fclose (f) != 0;
  1950. ;
  1951. return 0;
  1952. }
  1953. _ACEOF
  1954. if ac_fn_c_try_run "$LINENO"; then :
  1955. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1956. else
  1957. ac_retval=1
  1958. fi
  1959. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1960. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1961. rm -f conftest.val
  1962. fi
  1963. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1964. as_fn_set_status $ac_retval
  1965. } # ac_fn_c_compute_int
  1966. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1967. # -------------------------------------------------------
  1968. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1969. # the include files in INCLUDES and setting the cache variable VAR
  1970. # accordingly.
  1971. ac_fn_c_check_header_mongrel ()
  1972. {
  1973. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1974. if eval \${$3+:} false; then :
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1976. $as_echo_n "checking for $2... " >&6; }
  1977. if eval \${$3+:} false; then :
  1978. $as_echo_n "(cached) " >&6
  1979. fi
  1980. eval ac_res=\$$3
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1982. $as_echo "$ac_res" >&6; }
  1983. else
  1984. # Is the header compilable?
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1986. $as_echo_n "checking $2 usability... " >&6; }
  1987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1988. /* end confdefs.h. */
  1989. $4
  1990. #include <$2>
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  1993. ac_header_compiler=yes
  1994. else
  1995. ac_header_compiler=no
  1996. fi
  1997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1999. $as_echo "$ac_header_compiler" >&6; }
  2000. # Is the header present?
  2001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2002. $as_echo_n "checking $2 presence... " >&6; }
  2003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2004. /* end confdefs.h. */
  2005. #include <$2>
  2006. _ACEOF
  2007. if ac_fn_c_try_cpp "$LINENO"; then :
  2008. ac_header_preproc=yes
  2009. else
  2010. ac_header_preproc=no
  2011. fi
  2012. rm -f conftest.err conftest.i conftest.$ac_ext
  2013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2014. $as_echo "$ac_header_preproc" >&6; }
  2015. # So? What about this header?
  2016. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2017. yes:no: )
  2018. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2019. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2021. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2022. ;;
  2023. no:yes:* )
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2025. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2027. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2029. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2031. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2033. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2034. ( $as_echo "## ----------------------------------------------------- ##
  2035. ## Report this to http://github.com/libffi/libffi/issues ##
  2036. ## ----------------------------------------------------- ##"
  2037. ) | sed "s/^/$as_me: WARNING: /" >&2
  2038. ;;
  2039. esac
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2041. $as_echo_n "checking for $2... " >&6; }
  2042. if eval \${$3+:} false; then :
  2043. $as_echo_n "(cached) " >&6
  2044. else
  2045. eval "$3=\$ac_header_compiler"
  2046. fi
  2047. eval ac_res=\$$3
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2049. $as_echo "$ac_res" >&6; }
  2050. fi
  2051. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2052. } # ac_fn_c_check_header_mongrel
  2053. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2054. # -------------------------------------------
  2055. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2056. # variable VAR accordingly.
  2057. ac_fn_c_check_type ()
  2058. {
  2059. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2061. $as_echo_n "checking for $2... " >&6; }
  2062. if eval \${$3+:} false; then :
  2063. $as_echo_n "(cached) " >&6
  2064. else
  2065. eval "$3=no"
  2066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2067. /* end confdefs.h. */
  2068. $4
  2069. int
  2070. main ()
  2071. {
  2072. if (sizeof ($2))
  2073. return 0;
  2074. ;
  2075. return 0;
  2076. }
  2077. _ACEOF
  2078. if ac_fn_c_try_compile "$LINENO"; then :
  2079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2080. /* end confdefs.h. */
  2081. $4
  2082. int
  2083. main ()
  2084. {
  2085. if (sizeof (($2)))
  2086. return 0;
  2087. ;
  2088. return 0;
  2089. }
  2090. _ACEOF
  2091. if ac_fn_c_try_compile "$LINENO"; then :
  2092. else
  2093. eval "$3=yes"
  2094. fi
  2095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2096. fi
  2097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2098. fi
  2099. eval ac_res=\$$3
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2101. $as_echo "$ac_res" >&6; }
  2102. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2103. } # ac_fn_c_check_type
  2104. cat >config.log <<_ACEOF
  2105. This file contains any messages produced by compilers while
  2106. running configure, to aid debugging if configure makes a mistake.
  2107. It was created by libffi $as_me 3.4.2, which was
  2108. generated by GNU Autoconf 2.69. Invocation command line was
  2109. $ $0 $@
  2110. _ACEOF
  2111. exec 5>>config.log
  2112. {
  2113. cat <<_ASUNAME
  2114. ## --------- ##
  2115. ## Platform. ##
  2116. ## --------- ##
  2117. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2118. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2119. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2120. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2121. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2122. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2123. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2124. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2125. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2126. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2127. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2128. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2129. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2130. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2131. _ASUNAME
  2132. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2133. for as_dir in $PATH
  2134. do
  2135. IFS=$as_save_IFS
  2136. test -z "$as_dir" && as_dir=.
  2137. $as_echo "PATH: $as_dir"
  2138. done
  2139. IFS=$as_save_IFS
  2140. } >&5
  2141. cat >&5 <<_ACEOF
  2142. ## ----------- ##
  2143. ## Core tests. ##
  2144. ## ----------- ##
  2145. _ACEOF
  2146. # Keep a trace of the command line.
  2147. # Strip out --no-create and --no-recursion so they do not pile up.
  2148. # Strip out --silent because we don't want to record it for future runs.
  2149. # Also quote any args containing shell meta-characters.
  2150. # Make two passes to allow for proper duplicate-argument suppression.
  2151. ac_configure_args=
  2152. ac_configure_args0=
  2153. ac_configure_args1=
  2154. ac_must_keep_next=false
  2155. for ac_pass in 1 2
  2156. do
  2157. for ac_arg
  2158. do
  2159. case $ac_arg in
  2160. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2161. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2162. | -silent | --silent | --silen | --sile | --sil)
  2163. continue ;;
  2164. *\'*)
  2165. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2166. esac
  2167. case $ac_pass in
  2168. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2169. 2)
  2170. as_fn_append ac_configure_args1 " '$ac_arg'"
  2171. if test $ac_must_keep_next = true; then
  2172. ac_must_keep_next=false # Got value, back to normal.
  2173. else
  2174. case $ac_arg in
  2175. *=* | --config-cache | -C | -disable-* | --disable-* \
  2176. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2177. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2178. | -with-* | --with-* | -without-* | --without-* | --x)
  2179. case "$ac_configure_args0 " in
  2180. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2181. esac
  2182. ;;
  2183. -* ) ac_must_keep_next=true ;;
  2184. esac
  2185. fi
  2186. as_fn_append ac_configure_args " '$ac_arg'"
  2187. ;;
  2188. esac
  2189. done
  2190. done
  2191. { ac_configure_args0=; unset ac_configure_args0;}
  2192. { ac_configure_args1=; unset ac_configure_args1;}
  2193. # When interrupted or exit'd, cleanup temporary files, and complete
  2194. # config.log. We remove comments because anyway the quotes in there
  2195. # would cause problems or look ugly.
  2196. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2197. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2198. trap 'exit_status=$?
  2199. # Save into config.log some information that might help in debugging.
  2200. {
  2201. echo
  2202. $as_echo "## ---------------- ##
  2203. ## Cache variables. ##
  2204. ## ---------------- ##"
  2205. echo
  2206. # The following way of writing the cache mishandles newlines in values,
  2207. (
  2208. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2209. eval ac_val=\$$ac_var
  2210. case $ac_val in #(
  2211. *${as_nl}*)
  2212. case $ac_var in #(
  2213. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2214. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2215. esac
  2216. case $ac_var in #(
  2217. _ | IFS | as_nl) ;; #(
  2218. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2219. *) { eval $ac_var=; unset $ac_var;} ;;
  2220. esac ;;
  2221. esac
  2222. done
  2223. (set) 2>&1 |
  2224. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2225. *${as_nl}ac_space=\ *)
  2226. sed -n \
  2227. "s/'\''/'\''\\\\'\'''\''/g;
  2228. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2229. ;; #(
  2230. *)
  2231. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2232. ;;
  2233. esac |
  2234. sort
  2235. )
  2236. echo
  2237. $as_echo "## ----------------- ##
  2238. ## Output variables. ##
  2239. ## ----------------- ##"
  2240. echo
  2241. for ac_var in $ac_subst_vars
  2242. do
  2243. eval ac_val=\$$ac_var
  2244. case $ac_val in
  2245. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2246. esac
  2247. $as_echo "$ac_var='\''$ac_val'\''"
  2248. done | sort
  2249. echo
  2250. if test -n "$ac_subst_files"; then
  2251. $as_echo "## ------------------- ##
  2252. ## File substitutions. ##
  2253. ## ------------------- ##"
  2254. echo
  2255. for ac_var in $ac_subst_files
  2256. do
  2257. eval ac_val=\$$ac_var
  2258. case $ac_val in
  2259. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2260. esac
  2261. $as_echo "$ac_var='\''$ac_val'\''"
  2262. done | sort
  2263. echo
  2264. fi
  2265. if test -s confdefs.h; then
  2266. $as_echo "## ----------- ##
  2267. ## confdefs.h. ##
  2268. ## ----------- ##"
  2269. echo
  2270. cat confdefs.h
  2271. echo
  2272. fi
  2273. test "$ac_signal" != 0 &&
  2274. $as_echo "$as_me: caught signal $ac_signal"
  2275. $as_echo "$as_me: exit $exit_status"
  2276. } >&5
  2277. rm -f core *.core core.conftest.* &&
  2278. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2279. exit $exit_status
  2280. ' 0
  2281. for ac_signal in 1 2 13 15; do
  2282. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2283. done
  2284. ac_signal=0
  2285. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2286. rm -f -r conftest* confdefs.h
  2287. $as_echo "/* confdefs.h */" > confdefs.h
  2288. # Predefined preprocessor variables.
  2289. cat >>confdefs.h <<_ACEOF
  2290. #define PACKAGE_NAME "$PACKAGE_NAME"
  2291. _ACEOF
  2292. cat >>confdefs.h <<_ACEOF
  2293. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2294. _ACEOF
  2295. cat >>confdefs.h <<_ACEOF
  2296. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2297. _ACEOF
  2298. cat >>confdefs.h <<_ACEOF
  2299. #define PACKAGE_STRING "$PACKAGE_STRING"
  2300. _ACEOF
  2301. cat >>confdefs.h <<_ACEOF
  2302. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2303. _ACEOF
  2304. cat >>confdefs.h <<_ACEOF
  2305. #define PACKAGE_URL "$PACKAGE_URL"
  2306. _ACEOF
  2307. # Let the site file select an alternate cache file if it wants to.
  2308. # Prefer an explicitly selected file to automatically selected ones.
  2309. ac_site_file1=NONE
  2310. ac_site_file2=NONE
  2311. if test -n "$CONFIG_SITE"; then
  2312. # We do not want a PATH search for config.site.
  2313. case $CONFIG_SITE in #((
  2314. -*) ac_site_file1=./$CONFIG_SITE;;
  2315. */*) ac_site_file1=$CONFIG_SITE;;
  2316. *) ac_site_file1=./$CONFIG_SITE;;
  2317. esac
  2318. elif test "x$prefix" != xNONE; then
  2319. ac_site_file1=$prefix/share/config.site
  2320. ac_site_file2=$prefix/etc/config.site
  2321. else
  2322. ac_site_file1=$ac_default_prefix/share/config.site
  2323. ac_site_file2=$ac_default_prefix/etc/config.site
  2324. fi
  2325. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2326. do
  2327. test "x$ac_site_file" = xNONE && continue
  2328. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2330. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2331. sed 's/^/| /' "$ac_site_file" >&5
  2332. . "$ac_site_file" \
  2333. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2335. as_fn_error $? "failed to load site script $ac_site_file
  2336. See \`config.log' for more details" "$LINENO" 5; }
  2337. fi
  2338. done
  2339. if test -r "$cache_file"; then
  2340. # Some versions of bash will fail to source /dev/null (special files
  2341. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2342. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2344. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2345. case $cache_file in
  2346. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2347. *) . "./$cache_file";;
  2348. esac
  2349. fi
  2350. else
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2352. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2353. >$cache_file
  2354. fi
  2355. # Check that the precious variables saved in the cache have kept the same
  2356. # value.
  2357. ac_cache_corrupted=false
  2358. for ac_var in $ac_precious_vars; do
  2359. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2360. eval ac_new_set=\$ac_env_${ac_var}_set
  2361. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2362. eval ac_new_val=\$ac_env_${ac_var}_value
  2363. case $ac_old_set,$ac_new_set in
  2364. set,)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2366. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2367. ac_cache_corrupted=: ;;
  2368. ,set)
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2370. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2371. ac_cache_corrupted=: ;;
  2372. ,);;
  2373. *)
  2374. if test "x$ac_old_val" != "x$ac_new_val"; then
  2375. # differences in whitespace do not lead to failure.
  2376. ac_old_val_w=`echo x $ac_old_val`
  2377. ac_new_val_w=`echo x $ac_new_val`
  2378. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2380. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2381. ac_cache_corrupted=:
  2382. else
  2383. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2384. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2385. eval $ac_var=\$ac_old_val
  2386. fi
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2388. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2389. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2390. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2391. fi;;
  2392. esac
  2393. # Pass precious variables to config.status.
  2394. if test "$ac_new_set" = set; then
  2395. case $ac_new_val in
  2396. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2397. *) ac_arg=$ac_var=$ac_new_val ;;
  2398. esac
  2399. case " $ac_configure_args " in
  2400. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2401. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2402. esac
  2403. fi
  2404. done
  2405. if $ac_cache_corrupted; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2407. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2409. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2410. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2411. fi
  2412. ## -------------------- ##
  2413. ## Main body of script. ##
  2414. ## -------------------- ##
  2415. ac_ext=c
  2416. ac_cpp='$CPP $CPPFLAGS'
  2417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2420. ac_config_headers="$ac_config_headers fficonfig.h"
  2421. # Default to --enable-multilib
  2422. # Check whether --enable-multilib was given.
  2423. if test "${enable_multilib+set}" = set; then :
  2424. enableval=$enable_multilib; case "$enableval" in
  2425. yes) multilib=yes ;;
  2426. no) multilib=no ;;
  2427. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2428. esac
  2429. else
  2430. multilib=yes
  2431. fi
  2432. # We may get other options which we leave undocumented:
  2433. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2434. # See config-ml.in if you want the gory details.
  2435. if test "$srcdir" = "."; then
  2436. if test "$with_target_subdir" != "."; then
  2437. multi_basedir="$srcdir/$with_multisrctop../.."
  2438. else
  2439. multi_basedir="$srcdir/$with_multisrctop.."
  2440. fi
  2441. else
  2442. multi_basedir="$srcdir/.."
  2443. fi
  2444. # Even if the default multilib is not a cross compilation,
  2445. # it may be that some of the other multilibs are.
  2446. if test $cross_compiling = no && test $multilib = yes \
  2447. && test "x${with_multisubdir}" != x ; then
  2448. cross_compiling=maybe
  2449. fi
  2450. ac_config_commands="$ac_config_commands default-1"
  2451. ac_aux_dir=
  2452. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2453. if test -f "$ac_dir/install-sh"; then
  2454. ac_aux_dir=$ac_dir
  2455. ac_install_sh="$ac_aux_dir/install-sh -c"
  2456. break
  2457. elif test -f "$ac_dir/install.sh"; then
  2458. ac_aux_dir=$ac_dir
  2459. ac_install_sh="$ac_aux_dir/install.sh -c"
  2460. break
  2461. elif test -f "$ac_dir/shtool"; then
  2462. ac_aux_dir=$ac_dir
  2463. ac_install_sh="$ac_aux_dir/shtool install -c"
  2464. break
  2465. fi
  2466. done
  2467. if test -z "$ac_aux_dir"; then
  2468. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2469. fi
  2470. # These three variables are undocumented and unsupported,
  2471. # and are intended to be withdrawn in a future Autoconf release.
  2472. # They can cause serious problems if a builder's source tree is in a directory
  2473. # whose full name contains unusual characters.
  2474. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2475. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2476. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2477. # Make sure we can run config.sub.
  2478. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2479. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2481. $as_echo_n "checking build system type... " >&6; }
  2482. if ${ac_cv_build+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. ac_build_alias=$build_alias
  2486. test "x$ac_build_alias" = x &&
  2487. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2488. test "x$ac_build_alias" = x &&
  2489. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2490. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2491. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2492. fi
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2494. $as_echo "$ac_cv_build" >&6; }
  2495. case $ac_cv_build in
  2496. *-*-*) ;;
  2497. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2498. esac
  2499. build=$ac_cv_build
  2500. ac_save_IFS=$IFS; IFS='-'
  2501. set x $ac_cv_build
  2502. shift
  2503. build_cpu=$1
  2504. build_vendor=$2
  2505. shift; shift
  2506. # Remember, the first character of IFS is used to create $*,
  2507. # except with old shells:
  2508. build_os=$*
  2509. IFS=$ac_save_IFS
  2510. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2512. $as_echo_n "checking host system type... " >&6; }
  2513. if ${ac_cv_host+:} false; then :
  2514. $as_echo_n "(cached) " >&6
  2515. else
  2516. if test "x$host_alias" = x; then
  2517. ac_cv_host=$ac_cv_build
  2518. else
  2519. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2520. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2521. fi
  2522. fi
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2524. $as_echo "$ac_cv_host" >&6; }
  2525. case $ac_cv_host in
  2526. *-*-*) ;;
  2527. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2528. esac
  2529. host=$ac_cv_host
  2530. ac_save_IFS=$IFS; IFS='-'
  2531. set x $ac_cv_host
  2532. shift
  2533. host_cpu=$1
  2534. host_vendor=$2
  2535. shift; shift
  2536. # Remember, the first character of IFS is used to create $*,
  2537. # except with old shells:
  2538. host_os=$*
  2539. IFS=$ac_save_IFS
  2540. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2542. $as_echo_n "checking target system type... " >&6; }
  2543. if ${ac_cv_target+:} false; then :
  2544. $as_echo_n "(cached) " >&6
  2545. else
  2546. if test "x$target_alias" = x; then
  2547. ac_cv_target=$ac_cv_host
  2548. else
  2549. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2550. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2551. fi
  2552. fi
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2554. $as_echo "$ac_cv_target" >&6; }
  2555. case $ac_cv_target in
  2556. *-*-*) ;;
  2557. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2558. esac
  2559. target=$ac_cv_target
  2560. ac_save_IFS=$IFS; IFS='-'
  2561. set x $ac_cv_target
  2562. shift
  2563. target_cpu=$1
  2564. target_vendor=$2
  2565. shift; shift
  2566. # Remember, the first character of IFS is used to create $*,
  2567. # except with old shells:
  2568. target_os=$*
  2569. IFS=$ac_save_IFS
  2570. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2571. # The aliases save the names the user supplied, while $host etc.
  2572. # will get canonicalized.
  2573. test -n "$target_alias" &&
  2574. test "$program_prefix$program_suffix$program_transform_name" = \
  2575. NONENONEs,x,x, &&
  2576. program_prefix=${target_alias}-
  2577. target_alias=${target_alias-$host_alias}
  2578. am__api_version='1.15'
  2579. # Find a good install program. We prefer a C program (faster),
  2580. # so one script is as good as another. But avoid the broken or
  2581. # incompatible versions:
  2582. # SysV /etc/install, /usr/sbin/install
  2583. # SunOS /usr/etc/install
  2584. # IRIX /sbin/install
  2585. # AIX /bin/install
  2586. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2587. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2588. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2589. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2590. # OS/2's system install, which has a completely different semantic
  2591. # ./install, which can be erroneously created by make from ./install.sh.
  2592. # Reject install programs that cannot install multiple files.
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2594. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2595. if test -z "$INSTALL"; then
  2596. if ${ac_cv_path_install+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2600. for as_dir in $PATH
  2601. do
  2602. IFS=$as_save_IFS
  2603. test -z "$as_dir" && as_dir=.
  2604. # Account for people who put trailing slashes in PATH elements.
  2605. case $as_dir/ in #((
  2606. ./ | .// | /[cC]/* | \
  2607. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2608. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2609. /usr/ucb/* ) ;;
  2610. *)
  2611. # OSF1 and SCO ODT 3.0 have their own names for install.
  2612. # Don't use installbsd from OSF since it installs stuff as root
  2613. # by default.
  2614. for ac_prog in ginstall scoinst install; do
  2615. for ac_exec_ext in '' $ac_executable_extensions; do
  2616. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2617. if test $ac_prog = install &&
  2618. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2619. # AIX install. It has an incompatible calling convention.
  2620. :
  2621. elif test $ac_prog = install &&
  2622. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2623. # program-specific install script used by HP pwplus--don't use.
  2624. :
  2625. else
  2626. rm -rf conftest.one conftest.two conftest.dir
  2627. echo one > conftest.one
  2628. echo two > conftest.two
  2629. mkdir conftest.dir
  2630. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2631. test -s conftest.one && test -s conftest.two &&
  2632. test -s conftest.dir/conftest.one &&
  2633. test -s conftest.dir/conftest.two
  2634. then
  2635. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2636. break 3
  2637. fi
  2638. fi
  2639. fi
  2640. done
  2641. done
  2642. ;;
  2643. esac
  2644. done
  2645. IFS=$as_save_IFS
  2646. rm -rf conftest.one conftest.two conftest.dir
  2647. fi
  2648. if test "${ac_cv_path_install+set}" = set; then
  2649. INSTALL=$ac_cv_path_install
  2650. else
  2651. # As a last resort, use the slow shell script. Don't cache a
  2652. # value for INSTALL within a source directory, because that will
  2653. # break other packages using the cache if that directory is
  2654. # removed, or if the value is a relative name.
  2655. INSTALL=$ac_install_sh
  2656. fi
  2657. fi
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2659. $as_echo "$INSTALL" >&6; }
  2660. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2661. # It thinks the first close brace ends the variable substitution.
  2662. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2663. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2664. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2666. $as_echo_n "checking whether build environment is sane... " >&6; }
  2667. # Reject unsafe characters in $srcdir or the absolute working directory
  2668. # name. Accept space and tab only in the latter.
  2669. am_lf='
  2670. '
  2671. case `pwd` in
  2672. *[\\\"\#\$\&\'\`$am_lf]*)
  2673. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2674. esac
  2675. case $srcdir in
  2676. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2677. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2678. esac
  2679. # Do 'set' in a subshell so we don't clobber the current shell's
  2680. # arguments. Must try -L first in case configure is actually a
  2681. # symlink; some systems play weird games with the mod time of symlinks
  2682. # (eg FreeBSD returns the mod time of the symlink's containing
  2683. # directory).
  2684. if (
  2685. am_has_slept=no
  2686. for am_try in 1 2; do
  2687. echo "timestamp, slept: $am_has_slept" > conftest.file
  2688. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2689. if test "$*" = "X"; then
  2690. # -L didn't work.
  2691. set X `ls -t "$srcdir/configure" conftest.file`
  2692. fi
  2693. if test "$*" != "X $srcdir/configure conftest.file" \
  2694. && test "$*" != "X conftest.file $srcdir/configure"; then
  2695. # If neither matched, then we have a broken ls. This can happen
  2696. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2697. # broken ls alias from the environment. This has actually
  2698. # happened. Such a system could not be considered "sane".
  2699. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2700. alias in your environment" "$LINENO" 5
  2701. fi
  2702. if test "$2" = conftest.file || test $am_try -eq 2; then
  2703. break
  2704. fi
  2705. # Just in case.
  2706. sleep 1
  2707. am_has_slept=yes
  2708. done
  2709. test "$2" = conftest.file
  2710. )
  2711. then
  2712. # Ok.
  2713. :
  2714. else
  2715. as_fn_error $? "newly created file is older than distributed files!
  2716. Check your system clock" "$LINENO" 5
  2717. fi
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2719. $as_echo "yes" >&6; }
  2720. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2721. # generated files are strictly newer.
  2722. am_sleep_pid=
  2723. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2724. ( sleep 1 ) &
  2725. am_sleep_pid=$!
  2726. fi
  2727. rm -f conftest.file
  2728. test "$program_prefix" != NONE &&
  2729. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2730. # Use a double $ so make ignores it.
  2731. test "$program_suffix" != NONE &&
  2732. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2733. # Double any \ or $.
  2734. # By default was `s,x,x', remove it if useless.
  2735. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2736. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2737. # Expand $ac_aux_dir to an absolute path.
  2738. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2739. if test x"${MISSING+set}" != xset; then
  2740. case $am_aux_dir in
  2741. *\ * | *\ *)
  2742. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2743. *)
  2744. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2745. esac
  2746. fi
  2747. # Use eval to expand $SHELL
  2748. if eval "$MISSING --is-lightweight"; then
  2749. am_missing_run="$MISSING "
  2750. else
  2751. am_missing_run=
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2753. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2754. fi
  2755. if test x"${install_sh+set}" != xset; then
  2756. case $am_aux_dir in
  2757. *\ * | *\ *)
  2758. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2759. *)
  2760. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2761. esac
  2762. fi
  2763. # Installed binaries are usually stripped using 'strip' when the user
  2764. # run "make install-strip". However 'strip' might not be the right
  2765. # tool to use in cross-compilation environments, therefore Automake
  2766. # will honor the 'STRIP' environment variable to overrule this program.
  2767. if test "$cross_compiling" != no; then
  2768. if test -n "$ac_tool_prefix"; then
  2769. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2770. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2772. $as_echo_n "checking for $ac_word... " >&6; }
  2773. if ${ac_cv_prog_STRIP+:} false; then :
  2774. $as_echo_n "(cached) " >&6
  2775. else
  2776. if test -n "$STRIP"; then
  2777. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2778. else
  2779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2780. for as_dir in $PATH
  2781. do
  2782. IFS=$as_save_IFS
  2783. test -z "$as_dir" && as_dir=.
  2784. for ac_exec_ext in '' $ac_executable_extensions; do
  2785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2786. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2788. break 2
  2789. fi
  2790. done
  2791. done
  2792. IFS=$as_save_IFS
  2793. fi
  2794. fi
  2795. STRIP=$ac_cv_prog_STRIP
  2796. if test -n "$STRIP"; then
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2798. $as_echo "$STRIP" >&6; }
  2799. else
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2801. $as_echo "no" >&6; }
  2802. fi
  2803. fi
  2804. if test -z "$ac_cv_prog_STRIP"; then
  2805. ac_ct_STRIP=$STRIP
  2806. # Extract the first word of "strip", so it can be a program name with args.
  2807. set dummy strip; ac_word=$2
  2808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2809. $as_echo_n "checking for $ac_word... " >&6; }
  2810. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. if test -n "$ac_ct_STRIP"; then
  2814. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2815. else
  2816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2817. for as_dir in $PATH
  2818. do
  2819. IFS=$as_save_IFS
  2820. test -z "$as_dir" && as_dir=.
  2821. for ac_exec_ext in '' $ac_executable_extensions; do
  2822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2823. ac_cv_prog_ac_ct_STRIP="strip"
  2824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2825. break 2
  2826. fi
  2827. done
  2828. done
  2829. IFS=$as_save_IFS
  2830. fi
  2831. fi
  2832. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2833. if test -n "$ac_ct_STRIP"; then
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2835. $as_echo "$ac_ct_STRIP" >&6; }
  2836. else
  2837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2838. $as_echo "no" >&6; }
  2839. fi
  2840. if test "x$ac_ct_STRIP" = x; then
  2841. STRIP=":"
  2842. else
  2843. case $cross_compiling:$ac_tool_warned in
  2844. yes:)
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2846. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2847. ac_tool_warned=yes ;;
  2848. esac
  2849. STRIP=$ac_ct_STRIP
  2850. fi
  2851. else
  2852. STRIP="$ac_cv_prog_STRIP"
  2853. fi
  2854. fi
  2855. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2857. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2858. if test -z "$MKDIR_P"; then
  2859. if ${ac_cv_path_mkdir+:} false; then :
  2860. $as_echo_n "(cached) " >&6
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_prog in mkdir gmkdir; do
  2868. for ac_exec_ext in '' $ac_executable_extensions; do
  2869. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2870. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2871. 'mkdir (GNU coreutils) '* | \
  2872. 'mkdir (coreutils) '* | \
  2873. 'mkdir (fileutils) '4.1*)
  2874. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2875. break 3;;
  2876. esac
  2877. done
  2878. done
  2879. done
  2880. IFS=$as_save_IFS
  2881. fi
  2882. test -d ./--version && rmdir ./--version
  2883. if test "${ac_cv_path_mkdir+set}" = set; then
  2884. MKDIR_P="$ac_cv_path_mkdir -p"
  2885. else
  2886. # As a last resort, use the slow shell script. Don't cache a
  2887. # value for MKDIR_P within a source directory, because that will
  2888. # break other packages using the cache if that directory is
  2889. # removed, or if the value is a relative name.
  2890. MKDIR_P="$ac_install_sh -d"
  2891. fi
  2892. fi
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2894. $as_echo "$MKDIR_P" >&6; }
  2895. for ac_prog in gawk mawk nawk awk
  2896. do
  2897. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2898. set dummy $ac_prog; ac_word=$2
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2900. $as_echo_n "checking for $ac_word... " >&6; }
  2901. if ${ac_cv_prog_AWK+:} false; then :
  2902. $as_echo_n "(cached) " >&6
  2903. else
  2904. if test -n "$AWK"; then
  2905. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2906. else
  2907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2908. for as_dir in $PATH
  2909. do
  2910. IFS=$as_save_IFS
  2911. test -z "$as_dir" && as_dir=.
  2912. for ac_exec_ext in '' $ac_executable_extensions; do
  2913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2914. ac_cv_prog_AWK="$ac_prog"
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2916. break 2
  2917. fi
  2918. done
  2919. done
  2920. IFS=$as_save_IFS
  2921. fi
  2922. fi
  2923. AWK=$ac_cv_prog_AWK
  2924. if test -n "$AWK"; then
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2926. $as_echo "$AWK" >&6; }
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2929. $as_echo "no" >&6; }
  2930. fi
  2931. test -n "$AWK" && break
  2932. done
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2934. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2935. set x ${MAKE-make}
  2936. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2937. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. cat >conftest.make <<\_ACEOF
  2941. SHELL = /bin/sh
  2942. all:
  2943. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2944. _ACEOF
  2945. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2946. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2947. *@@@%%%=?*=@@@%%%*)
  2948. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2949. *)
  2950. eval ac_cv_prog_make_${ac_make}_set=no;;
  2951. esac
  2952. rm -f conftest.make
  2953. fi
  2954. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2956. $as_echo "yes" >&6; }
  2957. SET_MAKE=
  2958. else
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. SET_MAKE="MAKE=${MAKE-make}"
  2962. fi
  2963. rm -rf .tst 2>/dev/null
  2964. mkdir .tst 2>/dev/null
  2965. if test -d .tst; then
  2966. am__leading_dot=.
  2967. else
  2968. am__leading_dot=_
  2969. fi
  2970. rmdir .tst 2>/dev/null
  2971. # Check whether --enable-silent-rules was given.
  2972. if test "${enable_silent_rules+set}" = set; then :
  2973. enableval=$enable_silent_rules;
  2974. fi
  2975. case $enable_silent_rules in # (((
  2976. yes) AM_DEFAULT_VERBOSITY=0;;
  2977. no) AM_DEFAULT_VERBOSITY=1;;
  2978. *) AM_DEFAULT_VERBOSITY=1;;
  2979. esac
  2980. am_make=${MAKE-make}
  2981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2982. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2983. if ${am_cv_make_support_nested_variables+:} false; then :
  2984. $as_echo_n "(cached) " >&6
  2985. else
  2986. if $as_echo 'TRUE=$(BAR$(V))
  2987. BAR0=false
  2988. BAR1=true
  2989. V=1
  2990. am__doit:
  2991. @$(TRUE)
  2992. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2993. am_cv_make_support_nested_variables=yes
  2994. else
  2995. am_cv_make_support_nested_variables=no
  2996. fi
  2997. fi
  2998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2999. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3000. if test $am_cv_make_support_nested_variables = yes; then
  3001. AM_V='$(V)'
  3002. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3003. else
  3004. AM_V=$AM_DEFAULT_VERBOSITY
  3005. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3006. fi
  3007. AM_BACKSLASH='\'
  3008. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3009. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3010. # is not polluted with repeated "-I."
  3011. am__isrc=' -I$(srcdir)'
  3012. # test to see if srcdir already configured
  3013. if test -f $srcdir/config.status; then
  3014. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3015. fi
  3016. fi
  3017. # test whether we have cygpath
  3018. if test -z "$CYGPATH_W"; then
  3019. if (cygpath --version) >/dev/null 2>/dev/null; then
  3020. CYGPATH_W='cygpath -w'
  3021. else
  3022. CYGPATH_W=echo
  3023. fi
  3024. fi
  3025. # Define the identity of the package.
  3026. PACKAGE='libffi'
  3027. VERSION='3.4.2'
  3028. cat >>confdefs.h <<_ACEOF
  3029. #define PACKAGE "$PACKAGE"
  3030. _ACEOF
  3031. cat >>confdefs.h <<_ACEOF
  3032. #define VERSION "$VERSION"
  3033. _ACEOF
  3034. # Some tools Automake needs.
  3035. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3036. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3037. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3038. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3039. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3040. # For better backward compatibility. To be removed once Automake 1.9.x
  3041. # dies out for good. For more background, see:
  3042. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3043. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3044. mkdir_p='$(MKDIR_P)'
  3045. # We need awk for the "check" target (and possibly the TAP driver). The
  3046. # system "awk" is bad on some platforms.
  3047. # Always define AMTAR for backward compatibility. Yes, it's still used
  3048. # in the wild :-( We should find a proper way to deprecate it ...
  3049. AMTAR='$${TAR-tar}'
  3050. # We'll loop over all known methods to create a tar archive until one works.
  3051. _am_tools='gnutar pax cpio none'
  3052. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3053. # POSIX will say in a future version that running "rm -f" with no argument
  3054. # is OK; and we want to be able to make that assumption in our Makefile
  3055. # recipes. So use an aggressive probe to check that the usage we want is
  3056. # actually supported "in the wild" to an acceptable degree.
  3057. # See automake bug#10828.
  3058. # To make any issue more visible, cause the running configure to be aborted
  3059. # by default if the 'rm' program in use doesn't match our expectations; the
  3060. # user can still override this though.
  3061. if rm -f && rm -fr && rm -rf; then : OK; else
  3062. cat >&2 <<'END'
  3063. Oops!
  3064. Your 'rm' program seems unable to run without file operands specified
  3065. on the command line, even when the '-f' option is present. This is contrary
  3066. to the behaviour of most rm programs out there, and not conforming with
  3067. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3068. Please tell bug-automake@gnu.org about your system, including the value
  3069. of your $PATH and any error possibly output before this message. This
  3070. can help us improve future automake versions.
  3071. END
  3072. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3073. echo 'Configuration will proceed anyway, since you have set the' >&2
  3074. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3075. echo >&2
  3076. else
  3077. cat >&2 <<'END'
  3078. Aborting the configuration process, to ensure you take notice of the issue.
  3079. You can download and install GNU coreutils to get an 'rm' implementation
  3080. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3081. If you want to complete the configuration process using your problematic
  3082. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3083. to "yes", and re-run configure.
  3084. END
  3085. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3086. fi
  3087. fi
  3088. # We would like our source tree to be readonly. However when releases or
  3089. # pre-releases are generated, the flex/bison generated files as well as the
  3090. # various formats of manuals need to be included along with the rest of the
  3091. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  3092. # just that.
  3093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
  3094. $as_echo_n "checking generated-files-in-srcdir... " >&6; }
  3095. # Check whether --enable-generated-files-in-srcdir was given.
  3096. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  3097. enableval=$enable_generated_files_in_srcdir; case "$enableval" in
  3098. yes) enable_generated_files_in_srcdir=yes ;;
  3099. no) enable_generated_files_in_srcdir=no ;;
  3100. *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
  3101. esac
  3102. else
  3103. enable_generated_files_in_srcdir=no
  3104. fi
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  3106. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  3107. if test "$enable_generated_files_in_srcdir" = yes; then
  3108. GENINSRC_TRUE=
  3109. GENINSRC_FALSE='#'
  3110. else
  3111. GENINSRC_TRUE='#'
  3112. GENINSRC_FALSE=
  3113. fi
  3114. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3115. # We must force CC to /not/ be precious variables; otherwise
  3116. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3117. # As a side effect, we have to subst CFLAGS ourselves.
  3118. # Also save and restore CFLAGS, since AC_PROG_CC will come up with
  3119. # defaults of its own if none are provided.
  3120. save_CFLAGS=$CFLAGS
  3121. ac_ext=c
  3122. ac_cpp='$CPP $CPPFLAGS'
  3123. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3124. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3126. if test -n "$ac_tool_prefix"; then
  3127. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3128. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. $as_echo_n "checking for $ac_word... " >&6; }
  3131. if ${ac_cv_prog_CC+:} false; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. if test -n "$CC"; then
  3135. ac_cv_prog_CC="$CC" # Let the user override the test.
  3136. else
  3137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3138. for as_dir in $PATH
  3139. do
  3140. IFS=$as_save_IFS
  3141. test -z "$as_dir" && as_dir=.
  3142. for ac_exec_ext in '' $ac_executable_extensions; do
  3143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3144. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3146. break 2
  3147. fi
  3148. done
  3149. done
  3150. IFS=$as_save_IFS
  3151. fi
  3152. fi
  3153. CC=$ac_cv_prog_CC
  3154. if test -n "$CC"; then
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3156. $as_echo "$CC" >&6; }
  3157. else
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3159. $as_echo "no" >&6; }
  3160. fi
  3161. fi
  3162. if test -z "$ac_cv_prog_CC"; then
  3163. ac_ct_CC=$CC
  3164. # Extract the first word of "gcc", so it can be a program name with args.
  3165. set dummy gcc; ac_word=$2
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3167. $as_echo_n "checking for $ac_word... " >&6; }
  3168. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3169. $as_echo_n "(cached) " >&6
  3170. else
  3171. if test -n "$ac_ct_CC"; then
  3172. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3173. else
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3181. ac_cv_prog_ac_ct_CC="gcc"
  3182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. IFS=$as_save_IFS
  3188. fi
  3189. fi
  3190. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3191. if test -n "$ac_ct_CC"; then
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3193. $as_echo "$ac_ct_CC" >&6; }
  3194. else
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3196. $as_echo "no" >&6; }
  3197. fi
  3198. if test "x$ac_ct_CC" = x; then
  3199. CC=""
  3200. else
  3201. case $cross_compiling:$ac_tool_warned in
  3202. yes:)
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3204. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3205. ac_tool_warned=yes ;;
  3206. esac
  3207. CC=$ac_ct_CC
  3208. fi
  3209. else
  3210. CC="$ac_cv_prog_CC"
  3211. fi
  3212. if test -z "$CC"; then
  3213. if test -n "$ac_tool_prefix"; then
  3214. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3215. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3217. $as_echo_n "checking for $ac_word... " >&6; }
  3218. if ${ac_cv_prog_CC+:} false; then :
  3219. $as_echo_n "(cached) " >&6
  3220. else
  3221. if test -n "$CC"; then
  3222. ac_cv_prog_CC="$CC" # Let the user override the test.
  3223. else
  3224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3225. for as_dir in $PATH
  3226. do
  3227. IFS=$as_save_IFS
  3228. test -z "$as_dir" && as_dir=.
  3229. for ac_exec_ext in '' $ac_executable_extensions; do
  3230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3231. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3233. break 2
  3234. fi
  3235. done
  3236. done
  3237. IFS=$as_save_IFS
  3238. fi
  3239. fi
  3240. CC=$ac_cv_prog_CC
  3241. if test -n "$CC"; then
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3243. $as_echo "$CC" >&6; }
  3244. else
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3246. $as_echo "no" >&6; }
  3247. fi
  3248. fi
  3249. fi
  3250. if test -z "$CC"; then
  3251. # Extract the first word of "cc", so it can be a program name with args.
  3252. set dummy cc; ac_word=$2
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3254. $as_echo_n "checking for $ac_word... " >&6; }
  3255. if ${ac_cv_prog_CC+:} false; then :
  3256. $as_echo_n "(cached) " >&6
  3257. else
  3258. if test -n "$CC"; then
  3259. ac_cv_prog_CC="$CC" # Let the user override the test.
  3260. else
  3261. ac_prog_rejected=no
  3262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3263. for as_dir in $PATH
  3264. do
  3265. IFS=$as_save_IFS
  3266. test -z "$as_dir" && as_dir=.
  3267. for ac_exec_ext in '' $ac_executable_extensions; do
  3268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3269. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3270. ac_prog_rejected=yes
  3271. continue
  3272. fi
  3273. ac_cv_prog_CC="cc"
  3274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3275. break 2
  3276. fi
  3277. done
  3278. done
  3279. IFS=$as_save_IFS
  3280. if test $ac_prog_rejected = yes; then
  3281. # We found a bogon in the path, so make sure we never use it.
  3282. set dummy $ac_cv_prog_CC
  3283. shift
  3284. if test $# != 0; then
  3285. # We chose a different compiler from the bogus one.
  3286. # However, it has the same basename, so the bogon will be chosen
  3287. # first if we set CC to just the basename; use the full file name.
  3288. shift
  3289. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3290. fi
  3291. fi
  3292. fi
  3293. fi
  3294. CC=$ac_cv_prog_CC
  3295. if test -n "$CC"; then
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3297. $as_echo "$CC" >&6; }
  3298. else
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3300. $as_echo "no" >&6; }
  3301. fi
  3302. fi
  3303. if test -z "$CC"; then
  3304. if test -n "$ac_tool_prefix"; then
  3305. for ac_prog in cl.exe
  3306. do
  3307. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3308. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3310. $as_echo_n "checking for $ac_word... " >&6; }
  3311. if ${ac_cv_prog_CC+:} false; then :
  3312. $as_echo_n "(cached) " >&6
  3313. else
  3314. if test -n "$CC"; then
  3315. ac_cv_prog_CC="$CC" # Let the user override the test.
  3316. else
  3317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3318. for as_dir in $PATH
  3319. do
  3320. IFS=$as_save_IFS
  3321. test -z "$as_dir" && as_dir=.
  3322. for ac_exec_ext in '' $ac_executable_extensions; do
  3323. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3324. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3326. break 2
  3327. fi
  3328. done
  3329. done
  3330. IFS=$as_save_IFS
  3331. fi
  3332. fi
  3333. CC=$ac_cv_prog_CC
  3334. if test -n "$CC"; then
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3336. $as_echo "$CC" >&6; }
  3337. else
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3339. $as_echo "no" >&6; }
  3340. fi
  3341. test -n "$CC" && break
  3342. done
  3343. fi
  3344. if test -z "$CC"; then
  3345. ac_ct_CC=$CC
  3346. for ac_prog in cl.exe
  3347. do
  3348. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3349. set dummy $ac_prog; ac_word=$2
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3351. $as_echo_n "checking for $ac_word... " >&6; }
  3352. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3353. $as_echo_n "(cached) " >&6
  3354. else
  3355. if test -n "$ac_ct_CC"; then
  3356. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3357. else
  3358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3359. for as_dir in $PATH
  3360. do
  3361. IFS=$as_save_IFS
  3362. test -z "$as_dir" && as_dir=.
  3363. for ac_exec_ext in '' $ac_executable_extensions; do
  3364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3365. ac_cv_prog_ac_ct_CC="$ac_prog"
  3366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3367. break 2
  3368. fi
  3369. done
  3370. done
  3371. IFS=$as_save_IFS
  3372. fi
  3373. fi
  3374. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3375. if test -n "$ac_ct_CC"; then
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3377. $as_echo "$ac_ct_CC" >&6; }
  3378. else
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3380. $as_echo "no" >&6; }
  3381. fi
  3382. test -n "$ac_ct_CC" && break
  3383. done
  3384. if test "x$ac_ct_CC" = x; then
  3385. CC=""
  3386. else
  3387. case $cross_compiling:$ac_tool_warned in
  3388. yes:)
  3389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3390. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3391. ac_tool_warned=yes ;;
  3392. esac
  3393. CC=$ac_ct_CC
  3394. fi
  3395. fi
  3396. fi
  3397. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3398. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3399. as_fn_error $? "no acceptable C compiler found in \$PATH
  3400. See \`config.log' for more details" "$LINENO" 5; }
  3401. # Provide some information about the compiler.
  3402. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3403. set X $ac_compile
  3404. ac_compiler=$2
  3405. for ac_option in --version -v -V -qversion; do
  3406. { { ac_try="$ac_compiler $ac_option >&5"
  3407. case "(($ac_try" in
  3408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3409. *) ac_try_echo=$ac_try;;
  3410. esac
  3411. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3412. $as_echo "$ac_try_echo"; } >&5
  3413. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3414. ac_status=$?
  3415. if test -s conftest.err; then
  3416. sed '10a\
  3417. ... rest of stderr output deleted ...
  3418. 10q' conftest.err >conftest.er1
  3419. cat conftest.er1 >&5
  3420. fi
  3421. rm -f conftest.er1 conftest.err
  3422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3423. test $ac_status = 0; }
  3424. done
  3425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3426. /* end confdefs.h. */
  3427. int
  3428. main ()
  3429. {
  3430. ;
  3431. return 0;
  3432. }
  3433. _ACEOF
  3434. ac_clean_files_save=$ac_clean_files
  3435. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3436. # Try to create an executable without -o first, disregard a.out.
  3437. # It will help us diagnose broken compilers, and finding out an intuition
  3438. # of exeext.
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3440. $as_echo_n "checking whether the C compiler works... " >&6; }
  3441. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3442. # The possible output files:
  3443. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3444. ac_rmfiles=
  3445. for ac_file in $ac_files
  3446. do
  3447. case $ac_file in
  3448. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3449. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3450. esac
  3451. done
  3452. rm -f $ac_rmfiles
  3453. if { { ac_try="$ac_link_default"
  3454. case "(($ac_try" in
  3455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3456. *) ac_try_echo=$ac_try;;
  3457. esac
  3458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3459. $as_echo "$ac_try_echo"; } >&5
  3460. (eval "$ac_link_default") 2>&5
  3461. ac_status=$?
  3462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3463. test $ac_status = 0; }; then :
  3464. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3465. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3466. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3467. # so that the user can short-circuit this test for compilers unknown to
  3468. # Autoconf.
  3469. for ac_file in $ac_files ''
  3470. do
  3471. test -f "$ac_file" || continue
  3472. case $ac_file in
  3473. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3474. ;;
  3475. [ab].out )
  3476. # We found the default executable, but exeext='' is most
  3477. # certainly right.
  3478. break;;
  3479. *.* )
  3480. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3481. then :; else
  3482. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3483. fi
  3484. # We set ac_cv_exeext here because the later test for it is not
  3485. # safe: cross compilers may not add the suffix if given an `-o'
  3486. # argument, so we may need to know it at that point already.
  3487. # Even if this section looks crufty: it has the advantage of
  3488. # actually working.
  3489. break;;
  3490. * )
  3491. break;;
  3492. esac
  3493. done
  3494. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3495. else
  3496. ac_file=''
  3497. fi
  3498. if test -z "$ac_file"; then :
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3500. $as_echo "no" >&6; }
  3501. $as_echo "$as_me: failed program was:" >&5
  3502. sed 's/^/| /' conftest.$ac_ext >&5
  3503. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3504. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3505. as_fn_error 77 "C compiler cannot create executables
  3506. See \`config.log' for more details" "$LINENO" 5; }
  3507. else
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3509. $as_echo "yes" >&6; }
  3510. fi
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3512. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3514. $as_echo "$ac_file" >&6; }
  3515. ac_exeext=$ac_cv_exeext
  3516. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3517. ac_clean_files=$ac_clean_files_save
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3519. $as_echo_n "checking for suffix of executables... " >&6; }
  3520. if { { ac_try="$ac_link"
  3521. case "(($ac_try" in
  3522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3523. *) ac_try_echo=$ac_try;;
  3524. esac
  3525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3526. $as_echo "$ac_try_echo"; } >&5
  3527. (eval "$ac_link") 2>&5
  3528. ac_status=$?
  3529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3530. test $ac_status = 0; }; then :
  3531. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3532. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3533. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3534. # `rm'.
  3535. for ac_file in conftest.exe conftest conftest.*; do
  3536. test -f "$ac_file" || continue
  3537. case $ac_file in
  3538. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3539. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3540. break;;
  3541. * ) break;;
  3542. esac
  3543. done
  3544. else
  3545. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3546. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3547. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3548. See \`config.log' for more details" "$LINENO" 5; }
  3549. fi
  3550. rm -f conftest conftest$ac_cv_exeext
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3552. $as_echo "$ac_cv_exeext" >&6; }
  3553. rm -f conftest.$ac_ext
  3554. EXEEXT=$ac_cv_exeext
  3555. ac_exeext=$EXEEXT
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #include <stdio.h>
  3559. int
  3560. main ()
  3561. {
  3562. FILE *f = fopen ("conftest.out", "w");
  3563. return ferror (f) || fclose (f) != 0;
  3564. ;
  3565. return 0;
  3566. }
  3567. _ACEOF
  3568. ac_clean_files="$ac_clean_files conftest.out"
  3569. # Check that the compiler produces executables we can run. If not, either
  3570. # the compiler is broken, or we cross compile.
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3572. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3573. if test "$cross_compiling" != yes; then
  3574. { { ac_try="$ac_link"
  3575. case "(($ac_try" in
  3576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3577. *) ac_try_echo=$ac_try;;
  3578. esac
  3579. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3580. $as_echo "$ac_try_echo"; } >&5
  3581. (eval "$ac_link") 2>&5
  3582. ac_status=$?
  3583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3584. test $ac_status = 0; }
  3585. if { ac_try='./conftest$ac_cv_exeext'
  3586. { { case "(($ac_try" in
  3587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3588. *) ac_try_echo=$ac_try;;
  3589. esac
  3590. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3591. $as_echo "$ac_try_echo"; } >&5
  3592. (eval "$ac_try") 2>&5
  3593. ac_status=$?
  3594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3595. test $ac_status = 0; }; }; then
  3596. cross_compiling=no
  3597. else
  3598. if test "$cross_compiling" = maybe; then
  3599. cross_compiling=yes
  3600. else
  3601. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3602. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3603. as_fn_error $? "cannot run C compiled programs.
  3604. If you meant to cross compile, use \`--host'.
  3605. See \`config.log' for more details" "$LINENO" 5; }
  3606. fi
  3607. fi
  3608. fi
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3610. $as_echo "$cross_compiling" >&6; }
  3611. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3612. ac_clean_files=$ac_clean_files_save
  3613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3614. $as_echo_n "checking for suffix of object files... " >&6; }
  3615. if ${ac_cv_objext+:} false; then :
  3616. $as_echo_n "(cached) " >&6
  3617. else
  3618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3619. /* end confdefs.h. */
  3620. int
  3621. main ()
  3622. {
  3623. ;
  3624. return 0;
  3625. }
  3626. _ACEOF
  3627. rm -f conftest.o conftest.obj
  3628. if { { ac_try="$ac_compile"
  3629. case "(($ac_try" in
  3630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3631. *) ac_try_echo=$ac_try;;
  3632. esac
  3633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3634. $as_echo "$ac_try_echo"; } >&5
  3635. (eval "$ac_compile") 2>&5
  3636. ac_status=$?
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3638. test $ac_status = 0; }; then :
  3639. for ac_file in conftest.o conftest.obj conftest.*; do
  3640. test -f "$ac_file" || continue;
  3641. case $ac_file in
  3642. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3643. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3644. break;;
  3645. esac
  3646. done
  3647. else
  3648. $as_echo "$as_me: failed program was:" >&5
  3649. sed 's/^/| /' conftest.$ac_ext >&5
  3650. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3651. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3652. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3653. See \`config.log' for more details" "$LINENO" 5; }
  3654. fi
  3655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3656. fi
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3658. $as_echo "$ac_cv_objext" >&6; }
  3659. OBJEXT=$ac_cv_objext
  3660. ac_objext=$OBJEXT
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3662. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3663. if ${ac_cv_c_compiler_gnu+:} false; then :
  3664. $as_echo_n "(cached) " >&6
  3665. else
  3666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3667. /* end confdefs.h. */
  3668. int
  3669. main ()
  3670. {
  3671. #ifndef __GNUC__
  3672. choke me
  3673. #endif
  3674. ;
  3675. return 0;
  3676. }
  3677. _ACEOF
  3678. if ac_fn_c_try_compile "$LINENO"; then :
  3679. ac_compiler_gnu=yes
  3680. else
  3681. ac_compiler_gnu=no
  3682. fi
  3683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3684. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3685. fi
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3687. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3688. if test $ac_compiler_gnu = yes; then
  3689. GCC=yes
  3690. else
  3691. GCC=
  3692. fi
  3693. ac_test_CFLAGS=${CFLAGS+set}
  3694. ac_save_CFLAGS=$CFLAGS
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3696. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3697. if ${ac_cv_prog_cc_g+:} false; then :
  3698. $as_echo_n "(cached) " >&6
  3699. else
  3700. ac_save_c_werror_flag=$ac_c_werror_flag
  3701. ac_c_werror_flag=yes
  3702. ac_cv_prog_cc_g=no
  3703. CFLAGS="-g"
  3704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3705. /* end confdefs.h. */
  3706. int
  3707. main ()
  3708. {
  3709. ;
  3710. return 0;
  3711. }
  3712. _ACEOF
  3713. if ac_fn_c_try_compile "$LINENO"; then :
  3714. ac_cv_prog_cc_g=yes
  3715. else
  3716. CFLAGS=""
  3717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3718. /* end confdefs.h. */
  3719. int
  3720. main ()
  3721. {
  3722. ;
  3723. return 0;
  3724. }
  3725. _ACEOF
  3726. if ac_fn_c_try_compile "$LINENO"; then :
  3727. else
  3728. ac_c_werror_flag=$ac_save_c_werror_flag
  3729. CFLAGS="-g"
  3730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3731. /* end confdefs.h. */
  3732. int
  3733. main ()
  3734. {
  3735. ;
  3736. return 0;
  3737. }
  3738. _ACEOF
  3739. if ac_fn_c_try_compile "$LINENO"; then :
  3740. ac_cv_prog_cc_g=yes
  3741. fi
  3742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3743. fi
  3744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3745. fi
  3746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3747. ac_c_werror_flag=$ac_save_c_werror_flag
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3750. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3751. if test "$ac_test_CFLAGS" = set; then
  3752. CFLAGS=$ac_save_CFLAGS
  3753. elif test $ac_cv_prog_cc_g = yes; then
  3754. if test "$GCC" = yes; then
  3755. CFLAGS="-g -O2"
  3756. else
  3757. CFLAGS="-g"
  3758. fi
  3759. else
  3760. if test "$GCC" = yes; then
  3761. CFLAGS="-O2"
  3762. else
  3763. CFLAGS=
  3764. fi
  3765. fi
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3767. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3768. if ${ac_cv_prog_cc_c89+:} false; then :
  3769. $as_echo_n "(cached) " >&6
  3770. else
  3771. ac_cv_prog_cc_c89=no
  3772. ac_save_CC=$CC
  3773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end confdefs.h. */
  3775. #include <stdarg.h>
  3776. #include <stdio.h>
  3777. struct stat;
  3778. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3779. struct buf { int x; };
  3780. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3781. static char *e (p, i)
  3782. char **p;
  3783. int i;
  3784. {
  3785. return p[i];
  3786. }
  3787. static char *f (char * (*g) (char **, int), char **p, ...)
  3788. {
  3789. char *s;
  3790. va_list v;
  3791. va_start (v,p);
  3792. s = g (p, va_arg (v,int));
  3793. va_end (v);
  3794. return s;
  3795. }
  3796. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3797. function prototypes and stuff, but not '\xHH' hex character constants.
  3798. These don't provoke an error unfortunately, instead are silently treated
  3799. as 'x'. The following induces an error, until -std is added to get
  3800. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3801. array size at least. It's necessary to write '\x00'==0 to get something
  3802. that's true only with -std. */
  3803. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3804. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3805. inside strings and character constants. */
  3806. #define FOO(x) 'x'
  3807. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3808. int test (int i, double x);
  3809. struct s1 {int (*f) (int a);};
  3810. struct s2 {int (*f) (double a);};
  3811. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3812. int argc;
  3813. char **argv;
  3814. int
  3815. main ()
  3816. {
  3817. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3818. ;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3823. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3824. do
  3825. CC="$ac_save_CC $ac_arg"
  3826. if ac_fn_c_try_compile "$LINENO"; then :
  3827. ac_cv_prog_cc_c89=$ac_arg
  3828. fi
  3829. rm -f core conftest.err conftest.$ac_objext
  3830. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3831. done
  3832. rm -f conftest.$ac_ext
  3833. CC=$ac_save_CC
  3834. fi
  3835. # AC_CACHE_VAL
  3836. case "x$ac_cv_prog_cc_c89" in
  3837. x)
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3839. $as_echo "none needed" >&6; } ;;
  3840. xno)
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3842. $as_echo "unsupported" >&6; } ;;
  3843. *)
  3844. CC="$CC $ac_cv_prog_cc_c89"
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3846. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3847. esac
  3848. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3849. fi
  3850. ac_ext=c
  3851. ac_cpp='$CPP $CPPFLAGS'
  3852. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3853. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3854. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3855. ac_ext=c
  3856. ac_cpp='$CPP $CPPFLAGS'
  3857. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3858. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3859. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3861. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3862. if ${am_cv_prog_cc_c_o+:} false; then :
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3866. /* end confdefs.h. */
  3867. int
  3868. main ()
  3869. {
  3870. ;
  3871. return 0;
  3872. }
  3873. _ACEOF
  3874. # Make sure it works both with $CC and with simple cc.
  3875. # Following AC_PROG_CC_C_O, we do the test twice because some
  3876. # compilers refuse to overwrite an existing .o file with -o,
  3877. # though they will create one.
  3878. am_cv_prog_cc_c_o=yes
  3879. for am_i in 1 2; do
  3880. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3881. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3882. ac_status=$?
  3883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3884. (exit $ac_status); } \
  3885. && test -f conftest2.$ac_objext; then
  3886. : OK
  3887. else
  3888. am_cv_prog_cc_c_o=no
  3889. break
  3890. fi
  3891. done
  3892. rm -f core conftest*
  3893. unset am_i
  3894. fi
  3895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3896. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3897. if test "$am_cv_prog_cc_c_o" != yes; then
  3898. # Losing compiler, so override with the script.
  3899. # FIXME: It is wrong to rewrite CC.
  3900. # But if we don't then we get into trouble of one sort or another.
  3901. # A longer-term fix would be to have automake use am__CC in this case,
  3902. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3903. CC="$am_aux_dir/compile $CC"
  3904. fi
  3905. ac_ext=c
  3906. ac_cpp='$CPP $CPPFLAGS'
  3907. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3908. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3909. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3910. DEPDIR="${am__leading_dot}deps"
  3911. ac_config_commands="$ac_config_commands depfiles"
  3912. am_make=${MAKE-make}
  3913. cat > confinc << 'END'
  3914. am__doit:
  3915. @echo this is the am__doit target
  3916. .PHONY: am__doit
  3917. END
  3918. # If we don't find an include directive, just comment out the code.
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3920. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3921. am__include="#"
  3922. am__quote=
  3923. _am_result=none
  3924. # First try GNU make style include.
  3925. echo "include confinc" > confmf
  3926. # Ignore all kinds of additional output from 'make'.
  3927. case `$am_make -s -f confmf 2> /dev/null` in #(
  3928. *the\ am__doit\ target*)
  3929. am__include=include
  3930. am__quote=
  3931. _am_result=GNU
  3932. ;;
  3933. esac
  3934. # Now try BSD make style include.
  3935. if test "$am__include" = "#"; then
  3936. echo '.include "confinc"' > confmf
  3937. case `$am_make -s -f confmf 2> /dev/null` in #(
  3938. *the\ am__doit\ target*)
  3939. am__include=.include
  3940. am__quote="\""
  3941. _am_result=BSD
  3942. ;;
  3943. esac
  3944. fi
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3946. $as_echo "$_am_result" >&6; }
  3947. rm -f confinc confmf
  3948. # Check whether --enable-dependency-tracking was given.
  3949. if test "${enable_dependency_tracking+set}" = set; then :
  3950. enableval=$enable_dependency_tracking;
  3951. fi
  3952. if test "x$enable_dependency_tracking" != xno; then
  3953. am_depcomp="$ac_aux_dir/depcomp"
  3954. AMDEPBACKSLASH='\'
  3955. am__nodep='_no'
  3956. fi
  3957. if test "x$enable_dependency_tracking" != xno; then
  3958. AMDEP_TRUE=
  3959. AMDEP_FALSE='#'
  3960. else
  3961. AMDEP_TRUE='#'
  3962. AMDEP_FALSE=
  3963. fi
  3964. depcc="$CC" am_compiler_list=
  3965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3966. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3967. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3968. $as_echo_n "(cached) " >&6
  3969. else
  3970. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3971. # We make a subdir and do the tests there. Otherwise we can end up
  3972. # making bogus files that we don't know about and never remove. For
  3973. # instance it was reported that on HP-UX the gcc test will end up
  3974. # making a dummy file named 'D' -- because '-MD' means "put the output
  3975. # in D".
  3976. rm -rf conftest.dir
  3977. mkdir conftest.dir
  3978. # Copy depcomp to subdir because otherwise we won't find it if we're
  3979. # using a relative directory.
  3980. cp "$am_depcomp" conftest.dir
  3981. cd conftest.dir
  3982. # We will build objects and dependencies in a subdirectory because
  3983. # it helps to detect inapplicable dependency modes. For instance
  3984. # both Tru64's cc and ICC support -MD to output dependencies as a
  3985. # side effect of compilation, but ICC will put the dependencies in
  3986. # the current directory while Tru64 will put them in the object
  3987. # directory.
  3988. mkdir sub
  3989. am_cv_CC_dependencies_compiler_type=none
  3990. if test "$am_compiler_list" = ""; then
  3991. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3992. fi
  3993. am__universal=false
  3994. case " $depcc " in #(
  3995. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3996. esac
  3997. for depmode in $am_compiler_list; do
  3998. # Setup a source with many dependencies, because some compilers
  3999. # like to wrap large dependency lists on column 80 (with \), and
  4000. # we should not choose a depcomp mode which is confused by this.
  4001. #
  4002. # We need to recreate these files for each test, as the compiler may
  4003. # overwrite some of them when testing with obscure command lines.
  4004. # This happens at least with the AIX C compiler.
  4005. : > sub/conftest.c
  4006. for i in 1 2 3 4 5 6; do
  4007. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4008. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4009. # Solaris 10 /bin/sh.
  4010. echo '/* dummy */' > sub/conftst$i.h
  4011. done
  4012. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4013. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4014. # mode. It turns out that the SunPro C++ compiler does not properly
  4015. # handle '-M -o', and we need to detect this. Also, some Intel
  4016. # versions had trouble with output in subdirs.
  4017. am__obj=sub/conftest.${OBJEXT-o}
  4018. am__minus_obj="-o $am__obj"
  4019. case $depmode in
  4020. gcc)
  4021. # This depmode causes a compiler race in universal mode.
  4022. test "$am__universal" = false || continue
  4023. ;;
  4024. nosideeffect)
  4025. # After this tag, mechanisms are not by side-effect, so they'll
  4026. # only be used when explicitly requested.
  4027. if test "x$enable_dependency_tracking" = xyes; then
  4028. continue
  4029. else
  4030. break
  4031. fi
  4032. ;;
  4033. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4034. # This compiler won't grok '-c -o', but also, the minuso test has
  4035. # not run yet. These depmodes are late enough in the game, and
  4036. # so weak that their functioning should not be impacted.
  4037. am__obj=conftest.${OBJEXT-o}
  4038. am__minus_obj=
  4039. ;;
  4040. none) break ;;
  4041. esac
  4042. if depmode=$depmode \
  4043. source=sub/conftest.c object=$am__obj \
  4044. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4045. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4046. >/dev/null 2>conftest.err &&
  4047. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4048. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4049. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4050. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4051. # icc doesn't choke on unknown options, it will just issue warnings
  4052. # or remarks (even with -Werror). So we grep stderr for any message
  4053. # that says an option was ignored or not supported.
  4054. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4055. # icc: Command line warning: ignoring option '-M'; no argument required
  4056. # The diagnosis changed in icc 8.0:
  4057. # icc: Command line remark: option '-MP' not supported
  4058. if (grep 'ignoring option' conftest.err ||
  4059. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4060. am_cv_CC_dependencies_compiler_type=$depmode
  4061. break
  4062. fi
  4063. fi
  4064. done
  4065. cd ..
  4066. rm -rf conftest.dir
  4067. else
  4068. am_cv_CC_dependencies_compiler_type=none
  4069. fi
  4070. fi
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4072. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4073. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4074. if
  4075. test "x$enable_dependency_tracking" != xno \
  4076. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4077. am__fastdepCC_TRUE=
  4078. am__fastdepCC_FALSE='#'
  4079. else
  4080. am__fastdepCC_TRUE='#'
  4081. am__fastdepCC_FALSE=
  4082. fi
  4083. ac_ext=cpp
  4084. ac_cpp='$CXXCPP $CPPFLAGS'
  4085. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4086. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4087. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4088. if test -z "$CXX"; then
  4089. if test -n "$CCC"; then
  4090. CXX=$CCC
  4091. else
  4092. if test -n "$ac_tool_prefix"; then
  4093. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4094. do
  4095. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4096. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4098. $as_echo_n "checking for $ac_word... " >&6; }
  4099. if ${ac_cv_prog_CXX+:} false; then :
  4100. $as_echo_n "(cached) " >&6
  4101. else
  4102. if test -n "$CXX"; then
  4103. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4104. else
  4105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4106. for as_dir in $PATH
  4107. do
  4108. IFS=$as_save_IFS
  4109. test -z "$as_dir" && as_dir=.
  4110. for ac_exec_ext in '' $ac_executable_extensions; do
  4111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4112. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4114. break 2
  4115. fi
  4116. done
  4117. done
  4118. IFS=$as_save_IFS
  4119. fi
  4120. fi
  4121. CXX=$ac_cv_prog_CXX
  4122. if test -n "$CXX"; then
  4123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4124. $as_echo "$CXX" >&6; }
  4125. else
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4127. $as_echo "no" >&6; }
  4128. fi
  4129. test -n "$CXX" && break
  4130. done
  4131. fi
  4132. if test -z "$CXX"; then
  4133. ac_ct_CXX=$CXX
  4134. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4135. do
  4136. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4137. set dummy $ac_prog; ac_word=$2
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4139. $as_echo_n "checking for $ac_word... " >&6; }
  4140. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4141. $as_echo_n "(cached) " >&6
  4142. else
  4143. if test -n "$ac_ct_CXX"; then
  4144. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4145. else
  4146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4147. for as_dir in $PATH
  4148. do
  4149. IFS=$as_save_IFS
  4150. test -z "$as_dir" && as_dir=.
  4151. for ac_exec_ext in '' $ac_executable_extensions; do
  4152. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4153. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4154. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4155. break 2
  4156. fi
  4157. done
  4158. done
  4159. IFS=$as_save_IFS
  4160. fi
  4161. fi
  4162. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4163. if test -n "$ac_ct_CXX"; then
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4165. $as_echo "$ac_ct_CXX" >&6; }
  4166. else
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4168. $as_echo "no" >&6; }
  4169. fi
  4170. test -n "$ac_ct_CXX" && break
  4171. done
  4172. if test "x$ac_ct_CXX" = x; then
  4173. CXX="g++"
  4174. else
  4175. case $cross_compiling:$ac_tool_warned in
  4176. yes:)
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4178. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4179. ac_tool_warned=yes ;;
  4180. esac
  4181. CXX=$ac_ct_CXX
  4182. fi
  4183. fi
  4184. fi
  4185. fi
  4186. # Provide some information about the compiler.
  4187. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4188. set X $ac_compile
  4189. ac_compiler=$2
  4190. for ac_option in --version -v -V -qversion; do
  4191. { { ac_try="$ac_compiler $ac_option >&5"
  4192. case "(($ac_try" in
  4193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4194. *) ac_try_echo=$ac_try;;
  4195. esac
  4196. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4197. $as_echo "$ac_try_echo"; } >&5
  4198. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4199. ac_status=$?
  4200. if test -s conftest.err; then
  4201. sed '10a\
  4202. ... rest of stderr output deleted ...
  4203. 10q' conftest.err >conftest.er1
  4204. cat conftest.er1 >&5
  4205. fi
  4206. rm -f conftest.er1 conftest.err
  4207. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4208. test $ac_status = 0; }
  4209. done
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4211. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4212. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4216. /* end confdefs.h. */
  4217. int
  4218. main ()
  4219. {
  4220. #ifndef __GNUC__
  4221. choke me
  4222. #endif
  4223. ;
  4224. return 0;
  4225. }
  4226. _ACEOF
  4227. if ac_fn_cxx_try_compile "$LINENO"; then :
  4228. ac_compiler_gnu=yes
  4229. else
  4230. ac_compiler_gnu=no
  4231. fi
  4232. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4233. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4236. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4237. if test $ac_compiler_gnu = yes; then
  4238. GXX=yes
  4239. else
  4240. GXX=
  4241. fi
  4242. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4243. ac_save_CXXFLAGS=$CXXFLAGS
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4245. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4246. if ${ac_cv_prog_cxx_g+:} false; then :
  4247. $as_echo_n "(cached) " >&6
  4248. else
  4249. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4250. ac_cxx_werror_flag=yes
  4251. ac_cv_prog_cxx_g=no
  4252. CXXFLAGS="-g"
  4253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4254. /* end confdefs.h. */
  4255. int
  4256. main ()
  4257. {
  4258. ;
  4259. return 0;
  4260. }
  4261. _ACEOF
  4262. if ac_fn_cxx_try_compile "$LINENO"; then :
  4263. ac_cv_prog_cxx_g=yes
  4264. else
  4265. CXXFLAGS=""
  4266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4267. /* end confdefs.h. */
  4268. int
  4269. main ()
  4270. {
  4271. ;
  4272. return 0;
  4273. }
  4274. _ACEOF
  4275. if ac_fn_cxx_try_compile "$LINENO"; then :
  4276. else
  4277. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4278. CXXFLAGS="-g"
  4279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4280. /* end confdefs.h. */
  4281. int
  4282. main ()
  4283. {
  4284. ;
  4285. return 0;
  4286. }
  4287. _ACEOF
  4288. if ac_fn_cxx_try_compile "$LINENO"; then :
  4289. ac_cv_prog_cxx_g=yes
  4290. fi
  4291. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4292. fi
  4293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4294. fi
  4295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4296. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4297. fi
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4299. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4300. if test "$ac_test_CXXFLAGS" = set; then
  4301. CXXFLAGS=$ac_save_CXXFLAGS
  4302. elif test $ac_cv_prog_cxx_g = yes; then
  4303. if test "$GXX" = yes; then
  4304. CXXFLAGS="-g -O2"
  4305. else
  4306. CXXFLAGS="-g"
  4307. fi
  4308. else
  4309. if test "$GXX" = yes; then
  4310. CXXFLAGS="-O2"
  4311. else
  4312. CXXFLAGS=
  4313. fi
  4314. fi
  4315. ac_ext=c
  4316. ac_cpp='$CPP $CPPFLAGS'
  4317. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4318. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4319. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4320. depcc="$CXX" am_compiler_list=
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4322. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4323. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4327. # We make a subdir and do the tests there. Otherwise we can end up
  4328. # making bogus files that we don't know about and never remove. For
  4329. # instance it was reported that on HP-UX the gcc test will end up
  4330. # making a dummy file named 'D' -- because '-MD' means "put the output
  4331. # in D".
  4332. rm -rf conftest.dir
  4333. mkdir conftest.dir
  4334. # Copy depcomp to subdir because otherwise we won't find it if we're
  4335. # using a relative directory.
  4336. cp "$am_depcomp" conftest.dir
  4337. cd conftest.dir
  4338. # We will build objects and dependencies in a subdirectory because
  4339. # it helps to detect inapplicable dependency modes. For instance
  4340. # both Tru64's cc and ICC support -MD to output dependencies as a
  4341. # side effect of compilation, but ICC will put the dependencies in
  4342. # the current directory while Tru64 will put them in the object
  4343. # directory.
  4344. mkdir sub
  4345. am_cv_CXX_dependencies_compiler_type=none
  4346. if test "$am_compiler_list" = ""; then
  4347. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4348. fi
  4349. am__universal=false
  4350. case " $depcc " in #(
  4351. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4352. esac
  4353. for depmode in $am_compiler_list; do
  4354. # Setup a source with many dependencies, because some compilers
  4355. # like to wrap large dependency lists on column 80 (with \), and
  4356. # we should not choose a depcomp mode which is confused by this.
  4357. #
  4358. # We need to recreate these files for each test, as the compiler may
  4359. # overwrite some of them when testing with obscure command lines.
  4360. # This happens at least with the AIX C compiler.
  4361. : > sub/conftest.c
  4362. for i in 1 2 3 4 5 6; do
  4363. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4364. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4365. # Solaris 10 /bin/sh.
  4366. echo '/* dummy */' > sub/conftst$i.h
  4367. done
  4368. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4369. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4370. # mode. It turns out that the SunPro C++ compiler does not properly
  4371. # handle '-M -o', and we need to detect this. Also, some Intel
  4372. # versions had trouble with output in subdirs.
  4373. am__obj=sub/conftest.${OBJEXT-o}
  4374. am__minus_obj="-o $am__obj"
  4375. case $depmode in
  4376. gcc)
  4377. # This depmode causes a compiler race in universal mode.
  4378. test "$am__universal" = false || continue
  4379. ;;
  4380. nosideeffect)
  4381. # After this tag, mechanisms are not by side-effect, so they'll
  4382. # only be used when explicitly requested.
  4383. if test "x$enable_dependency_tracking" = xyes; then
  4384. continue
  4385. else
  4386. break
  4387. fi
  4388. ;;
  4389. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4390. # This compiler won't grok '-c -o', but also, the minuso test has
  4391. # not run yet. These depmodes are late enough in the game, and
  4392. # so weak that their functioning should not be impacted.
  4393. am__obj=conftest.${OBJEXT-o}
  4394. am__minus_obj=
  4395. ;;
  4396. none) break ;;
  4397. esac
  4398. if depmode=$depmode \
  4399. source=sub/conftest.c object=$am__obj \
  4400. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4401. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4402. >/dev/null 2>conftest.err &&
  4403. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4404. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4405. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4406. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4407. # icc doesn't choke on unknown options, it will just issue warnings
  4408. # or remarks (even with -Werror). So we grep stderr for any message
  4409. # that says an option was ignored or not supported.
  4410. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4411. # icc: Command line warning: ignoring option '-M'; no argument required
  4412. # The diagnosis changed in icc 8.0:
  4413. # icc: Command line remark: option '-MP' not supported
  4414. if (grep 'ignoring option' conftest.err ||
  4415. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4416. am_cv_CXX_dependencies_compiler_type=$depmode
  4417. break
  4418. fi
  4419. fi
  4420. done
  4421. cd ..
  4422. rm -rf conftest.dir
  4423. else
  4424. am_cv_CXX_dependencies_compiler_type=none
  4425. fi
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4428. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4429. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4430. if
  4431. test "x$enable_dependency_tracking" != xno \
  4432. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4433. am__fastdepCXX_TRUE=
  4434. am__fastdepCXX_FALSE='#'
  4435. else
  4436. am__fastdepCXX_TRUE='#'
  4437. am__fastdepCXX_FALSE=
  4438. fi
  4439. CFLAGS=$save_CFLAGS
  4440. # Add CET specific flags if CET is enabled
  4441. # Check whether --enable-cet was given.
  4442. if test "${enable_cet+set}" = set; then :
  4443. enableval=$enable_cet;
  4444. case "$enableval" in
  4445. yes|no|auto) ;;
  4446. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  4447. esac
  4448. else
  4449. enable_cet=auto
  4450. fi
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  4452. $as_echo_n "checking for CET support... " >&6; }
  4453. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  4454. case "$host" in
  4455. i[34567]86-*-linux* | x86_64-*-linux*)
  4456. case "$enable_cet" in
  4457. auto)
  4458. # Check if target supports multi-byte NOPs
  4459. # and if compiler and assembler support CET insn.
  4460. cet_save_CFLAGS="$CFLAGS"
  4461. CFLAGS="$CFLAGS -fcf-protection"
  4462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4463. /* end confdefs.h. */
  4464. int
  4465. main ()
  4466. {
  4467. #if !defined(__SSE2__)
  4468. #error target does not support multi-byte NOPs
  4469. #else
  4470. asm ("setssbsy");
  4471. #endif
  4472. ;
  4473. return 0;
  4474. }
  4475. _ACEOF
  4476. if ac_fn_c_try_compile "$LINENO"; then :
  4477. enable_cet=yes
  4478. else
  4479. enable_cet=no
  4480. fi
  4481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4482. CFLAGS="$cet_save_CFLAGS"
  4483. ;;
  4484. yes)
  4485. # Check if assembler supports CET.
  4486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4487. /* end confdefs.h. */
  4488. int
  4489. main ()
  4490. {
  4491. asm ("setssbsy");
  4492. ;
  4493. return 0;
  4494. }
  4495. _ACEOF
  4496. if ac_fn_c_try_compile "$LINENO"; then :
  4497. else
  4498. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  4499. fi
  4500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4501. ;;
  4502. esac
  4503. ;;
  4504. *)
  4505. enable_cet=no
  4506. ;;
  4507. esac
  4508. if test x$enable_cet = xyes; then
  4509. CET_FLAGS="-fcf-protection -mshstk"
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4511. $as_echo "yes" >&6; }
  4512. else
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4514. $as_echo "no" >&6; }
  4515. fi
  4516. # By default we simply use the C compiler to build assembly code.
  4517. test "${CCAS+set}" = set || CCAS=$CC
  4518. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4519. depcc="$CCAS" am_compiler_list=
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4521. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4522. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4526. # We make a subdir and do the tests there. Otherwise we can end up
  4527. # making bogus files that we don't know about and never remove. For
  4528. # instance it was reported that on HP-UX the gcc test will end up
  4529. # making a dummy file named 'D' -- because '-MD' means "put the output
  4530. # in D".
  4531. rm -rf conftest.dir
  4532. mkdir conftest.dir
  4533. # Copy depcomp to subdir because otherwise we won't find it if we're
  4534. # using a relative directory.
  4535. cp "$am_depcomp" conftest.dir
  4536. cd conftest.dir
  4537. # We will build objects and dependencies in a subdirectory because
  4538. # it helps to detect inapplicable dependency modes. For instance
  4539. # both Tru64's cc and ICC support -MD to output dependencies as a
  4540. # side effect of compilation, but ICC will put the dependencies in
  4541. # the current directory while Tru64 will put them in the object
  4542. # directory.
  4543. mkdir sub
  4544. am_cv_CCAS_dependencies_compiler_type=none
  4545. if test "$am_compiler_list" = ""; then
  4546. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4547. fi
  4548. am__universal=false
  4549. for depmode in $am_compiler_list; do
  4550. # Setup a source with many dependencies, because some compilers
  4551. # like to wrap large dependency lists on column 80 (with \), and
  4552. # we should not choose a depcomp mode which is confused by this.
  4553. #
  4554. # We need to recreate these files for each test, as the compiler may
  4555. # overwrite some of them when testing with obscure command lines.
  4556. # This happens at least with the AIX C compiler.
  4557. : > sub/conftest.c
  4558. for i in 1 2 3 4 5 6; do
  4559. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4560. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4561. # Solaris 10 /bin/sh.
  4562. echo '/* dummy */' > sub/conftst$i.h
  4563. done
  4564. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4565. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4566. # mode. It turns out that the SunPro C++ compiler does not properly
  4567. # handle '-M -o', and we need to detect this. Also, some Intel
  4568. # versions had trouble with output in subdirs.
  4569. am__obj=sub/conftest.${OBJEXT-o}
  4570. am__minus_obj="-o $am__obj"
  4571. case $depmode in
  4572. gcc)
  4573. # This depmode causes a compiler race in universal mode.
  4574. test "$am__universal" = false || continue
  4575. ;;
  4576. nosideeffect)
  4577. # After this tag, mechanisms are not by side-effect, so they'll
  4578. # only be used when explicitly requested.
  4579. if test "x$enable_dependency_tracking" = xyes; then
  4580. continue
  4581. else
  4582. break
  4583. fi
  4584. ;;
  4585. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4586. # This compiler won't grok '-c -o', but also, the minuso test has
  4587. # not run yet. These depmodes are late enough in the game, and
  4588. # so weak that their functioning should not be impacted.
  4589. am__obj=conftest.${OBJEXT-o}
  4590. am__minus_obj=
  4591. ;;
  4592. none) break ;;
  4593. esac
  4594. if depmode=$depmode \
  4595. source=sub/conftest.c object=$am__obj \
  4596. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4597. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4598. >/dev/null 2>conftest.err &&
  4599. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4600. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4601. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4602. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4603. # icc doesn't choke on unknown options, it will just issue warnings
  4604. # or remarks (even with -Werror). So we grep stderr for any message
  4605. # that says an option was ignored or not supported.
  4606. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4607. # icc: Command line warning: ignoring option '-M'; no argument required
  4608. # The diagnosis changed in icc 8.0:
  4609. # icc: Command line remark: option '-MP' not supported
  4610. if (grep 'ignoring option' conftest.err ||
  4611. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4612. am_cv_CCAS_dependencies_compiler_type=$depmode
  4613. break
  4614. fi
  4615. fi
  4616. done
  4617. cd ..
  4618. rm -rf conftest.dir
  4619. else
  4620. am_cv_CCAS_dependencies_compiler_type=none
  4621. fi
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4624. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4625. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4626. if
  4627. test "x$enable_dependency_tracking" != xno \
  4628. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4629. am__fastdepCCAS_TRUE=
  4630. am__fastdepCCAS_FALSE='#'
  4631. else
  4632. am__fastdepCCAS_TRUE='#'
  4633. am__fastdepCCAS_FALSE=
  4634. fi
  4635. case `pwd` in
  4636. *\ * | *\ *)
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4638. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4639. esac
  4640. macro_version='2.2.7a'
  4641. macro_revision='1.3134'
  4642. ltmain="$ac_aux_dir/ltmain.sh"
  4643. # Backslashify metacharacters that are still active within
  4644. # double-quoted strings.
  4645. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4646. # Same as above, but do not quote variable references.
  4647. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4648. # Sed substitution to delay expansion of an escaped shell variable in a
  4649. # double_quote_subst'ed string.
  4650. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4651. # Sed substitution to delay expansion of an escaped single quote.
  4652. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4653. # Sed substitution to avoid accidental globbing in evaled expressions
  4654. no_glob_subst='s/\*/\\\*/g'
  4655. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4656. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4657. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4659. $as_echo_n "checking how to print strings... " >&6; }
  4660. # Test print first, because it will be a builtin if present.
  4661. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4662. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4663. ECHO='print -r --'
  4664. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4665. ECHO='printf %s\n'
  4666. else
  4667. # Use this function as a fallback that always works.
  4668. func_fallback_echo ()
  4669. {
  4670. eval 'cat <<_LTECHO_EOF
  4671. $1
  4672. _LTECHO_EOF'
  4673. }
  4674. ECHO='func_fallback_echo'
  4675. fi
  4676. # func_echo_all arg...
  4677. # Invoke $ECHO with all args, space-separated.
  4678. func_echo_all ()
  4679. {
  4680. $ECHO ""
  4681. }
  4682. case "$ECHO" in
  4683. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4684. $as_echo "printf" >&6; } ;;
  4685. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4686. $as_echo "print -r" >&6; } ;;
  4687. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4688. $as_echo "cat" >&6; } ;;
  4689. esac
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4691. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4692. if ${ac_cv_path_SED+:} false; then :
  4693. $as_echo_n "(cached) " >&6
  4694. else
  4695. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4696. for ac_i in 1 2 3 4 5 6 7; do
  4697. ac_script="$ac_script$as_nl$ac_script"
  4698. done
  4699. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4700. { ac_script=; unset ac_script;}
  4701. if test -z "$SED"; then
  4702. ac_path_SED_found=false
  4703. # Loop through the user's path and test for each of PROGNAME-LIST
  4704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4705. for as_dir in $PATH
  4706. do
  4707. IFS=$as_save_IFS
  4708. test -z "$as_dir" && as_dir=.
  4709. for ac_prog in sed gsed; do
  4710. for ac_exec_ext in '' $ac_executable_extensions; do
  4711. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4712. as_fn_executable_p "$ac_path_SED" || continue
  4713. # Check for GNU ac_path_SED and select it if it is found.
  4714. # Check for GNU $ac_path_SED
  4715. case `"$ac_path_SED" --version 2>&1` in
  4716. *GNU*)
  4717. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4718. *)
  4719. ac_count=0
  4720. $as_echo_n 0123456789 >"conftest.in"
  4721. while :
  4722. do
  4723. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4724. mv "conftest.tmp" "conftest.in"
  4725. cp "conftest.in" "conftest.nl"
  4726. $as_echo '' >> "conftest.nl"
  4727. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4728. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4729. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4730. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4731. # Best one so far, save it but keep looking for a better one
  4732. ac_cv_path_SED="$ac_path_SED"
  4733. ac_path_SED_max=$ac_count
  4734. fi
  4735. # 10*(2^10) chars as input seems more than enough
  4736. test $ac_count -gt 10 && break
  4737. done
  4738. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4739. esac
  4740. $ac_path_SED_found && break 3
  4741. done
  4742. done
  4743. done
  4744. IFS=$as_save_IFS
  4745. if test -z "$ac_cv_path_SED"; then
  4746. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4747. fi
  4748. else
  4749. ac_cv_path_SED=$SED
  4750. fi
  4751. fi
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4753. $as_echo "$ac_cv_path_SED" >&6; }
  4754. SED="$ac_cv_path_SED"
  4755. rm -f conftest.sed
  4756. test -z "$SED" && SED=sed
  4757. Xsed="$SED -e 1s/^X//"
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4759. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4760. if ${ac_cv_path_GREP+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. if test -z "$GREP"; then
  4764. ac_path_GREP_found=false
  4765. # Loop through the user's path and test for each of PROGNAME-LIST
  4766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4767. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4768. do
  4769. IFS=$as_save_IFS
  4770. test -z "$as_dir" && as_dir=.
  4771. for ac_prog in grep ggrep; do
  4772. for ac_exec_ext in '' $ac_executable_extensions; do
  4773. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4774. as_fn_executable_p "$ac_path_GREP" || continue
  4775. # Check for GNU ac_path_GREP and select it if it is found.
  4776. # Check for GNU $ac_path_GREP
  4777. case `"$ac_path_GREP" --version 2>&1` in
  4778. *GNU*)
  4779. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4780. *)
  4781. ac_count=0
  4782. $as_echo_n 0123456789 >"conftest.in"
  4783. while :
  4784. do
  4785. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4786. mv "conftest.tmp" "conftest.in"
  4787. cp "conftest.in" "conftest.nl"
  4788. $as_echo 'GREP' >> "conftest.nl"
  4789. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4790. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4791. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4792. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4793. # Best one so far, save it but keep looking for a better one
  4794. ac_cv_path_GREP="$ac_path_GREP"
  4795. ac_path_GREP_max=$ac_count
  4796. fi
  4797. # 10*(2^10) chars as input seems more than enough
  4798. test $ac_count -gt 10 && break
  4799. done
  4800. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4801. esac
  4802. $ac_path_GREP_found && break 3
  4803. done
  4804. done
  4805. done
  4806. IFS=$as_save_IFS
  4807. if test -z "$ac_cv_path_GREP"; then
  4808. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4809. fi
  4810. else
  4811. ac_cv_path_GREP=$GREP
  4812. fi
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4815. $as_echo "$ac_cv_path_GREP" >&6; }
  4816. GREP="$ac_cv_path_GREP"
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4818. $as_echo_n "checking for egrep... " >&6; }
  4819. if ${ac_cv_path_EGREP+:} false; then :
  4820. $as_echo_n "(cached) " >&6
  4821. else
  4822. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4823. then ac_cv_path_EGREP="$GREP -E"
  4824. else
  4825. if test -z "$EGREP"; then
  4826. ac_path_EGREP_found=false
  4827. # Loop through the user's path and test for each of PROGNAME-LIST
  4828. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4829. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4830. do
  4831. IFS=$as_save_IFS
  4832. test -z "$as_dir" && as_dir=.
  4833. for ac_prog in egrep; do
  4834. for ac_exec_ext in '' $ac_executable_extensions; do
  4835. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4836. as_fn_executable_p "$ac_path_EGREP" || continue
  4837. # Check for GNU ac_path_EGREP and select it if it is found.
  4838. # Check for GNU $ac_path_EGREP
  4839. case `"$ac_path_EGREP" --version 2>&1` in
  4840. *GNU*)
  4841. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4842. *)
  4843. ac_count=0
  4844. $as_echo_n 0123456789 >"conftest.in"
  4845. while :
  4846. do
  4847. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4848. mv "conftest.tmp" "conftest.in"
  4849. cp "conftest.in" "conftest.nl"
  4850. $as_echo 'EGREP' >> "conftest.nl"
  4851. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4852. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4853. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4854. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4855. # Best one so far, save it but keep looking for a better one
  4856. ac_cv_path_EGREP="$ac_path_EGREP"
  4857. ac_path_EGREP_max=$ac_count
  4858. fi
  4859. # 10*(2^10) chars as input seems more than enough
  4860. test $ac_count -gt 10 && break
  4861. done
  4862. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4863. esac
  4864. $ac_path_EGREP_found && break 3
  4865. done
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. if test -z "$ac_cv_path_EGREP"; then
  4870. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4871. fi
  4872. else
  4873. ac_cv_path_EGREP=$EGREP
  4874. fi
  4875. fi
  4876. fi
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4878. $as_echo "$ac_cv_path_EGREP" >&6; }
  4879. EGREP="$ac_cv_path_EGREP"
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4881. $as_echo_n "checking for fgrep... " >&6; }
  4882. if ${ac_cv_path_FGREP+:} false; then :
  4883. $as_echo_n "(cached) " >&6
  4884. else
  4885. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4886. then ac_cv_path_FGREP="$GREP -F"
  4887. else
  4888. if test -z "$FGREP"; then
  4889. ac_path_FGREP_found=false
  4890. # Loop through the user's path and test for each of PROGNAME-LIST
  4891. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4892. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4893. do
  4894. IFS=$as_save_IFS
  4895. test -z "$as_dir" && as_dir=.
  4896. for ac_prog in fgrep; do
  4897. for ac_exec_ext in '' $ac_executable_extensions; do
  4898. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4899. as_fn_executable_p "$ac_path_FGREP" || continue
  4900. # Check for GNU ac_path_FGREP and select it if it is found.
  4901. # Check for GNU $ac_path_FGREP
  4902. case `"$ac_path_FGREP" --version 2>&1` in
  4903. *GNU*)
  4904. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4905. *)
  4906. ac_count=0
  4907. $as_echo_n 0123456789 >"conftest.in"
  4908. while :
  4909. do
  4910. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4911. mv "conftest.tmp" "conftest.in"
  4912. cp "conftest.in" "conftest.nl"
  4913. $as_echo 'FGREP' >> "conftest.nl"
  4914. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4915. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4916. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4917. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4918. # Best one so far, save it but keep looking for a better one
  4919. ac_cv_path_FGREP="$ac_path_FGREP"
  4920. ac_path_FGREP_max=$ac_count
  4921. fi
  4922. # 10*(2^10) chars as input seems more than enough
  4923. test $ac_count -gt 10 && break
  4924. done
  4925. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4926. esac
  4927. $ac_path_FGREP_found && break 3
  4928. done
  4929. done
  4930. done
  4931. IFS=$as_save_IFS
  4932. if test -z "$ac_cv_path_FGREP"; then
  4933. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4934. fi
  4935. else
  4936. ac_cv_path_FGREP=$FGREP
  4937. fi
  4938. fi
  4939. fi
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4941. $as_echo "$ac_cv_path_FGREP" >&6; }
  4942. FGREP="$ac_cv_path_FGREP"
  4943. test -z "$GREP" && GREP=grep
  4944. # Check whether --with-gnu-ld was given.
  4945. if test "${with_gnu_ld+set}" = set; then :
  4946. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4947. else
  4948. with_gnu_ld=no
  4949. fi
  4950. ac_prog=ld
  4951. if test "$GCC" = yes; then
  4952. # Check if gcc -print-prog-name=ld gives a path.
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4954. $as_echo_n "checking for ld used by $CC... " >&6; }
  4955. case $host in
  4956. *-*-mingw*)
  4957. # gcc leaves a trailing carriage return which upsets mingw
  4958. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4959. *)
  4960. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4961. esac
  4962. case $ac_prog in
  4963. # Accept absolute paths.
  4964. [\\/]* | ?:[\\/]*)
  4965. re_direlt='/[^/][^/]*/\.\./'
  4966. # Canonicalize the pathname of ld
  4967. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4968. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4969. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4970. done
  4971. test -z "$LD" && LD="$ac_prog"
  4972. ;;
  4973. "")
  4974. # If it fails, then pretend we aren't using GCC.
  4975. ac_prog=ld
  4976. ;;
  4977. *)
  4978. # If it is relative, then search for the first ld in PATH.
  4979. with_gnu_ld=unknown
  4980. ;;
  4981. esac
  4982. elif test "$with_gnu_ld" = yes; then
  4983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4984. $as_echo_n "checking for GNU ld... " >&6; }
  4985. else
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4987. $as_echo_n "checking for non-GNU ld... " >&6; }
  4988. fi
  4989. if ${lt_cv_path_LD+:} false; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. if test -z "$LD"; then
  4993. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4994. for ac_dir in $PATH; do
  4995. IFS="$lt_save_ifs"
  4996. test -z "$ac_dir" && ac_dir=.
  4997. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4998. lt_cv_path_LD="$ac_dir/$ac_prog"
  4999. # Check to see if the program is GNU ld. I'd rather use --version,
  5000. # but apparently some variants of GNU ld only accept -v.
  5001. # Break only if it was the GNU/non-GNU ld that we prefer.
  5002. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5003. *GNU* | *'with BFD'*)
  5004. test "$with_gnu_ld" != no && break
  5005. ;;
  5006. *)
  5007. test "$with_gnu_ld" != yes && break
  5008. ;;
  5009. esac
  5010. fi
  5011. done
  5012. IFS="$lt_save_ifs"
  5013. else
  5014. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5015. fi
  5016. fi
  5017. LD="$lt_cv_path_LD"
  5018. if test -n "$LD"; then
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5020. $as_echo "$LD" >&6; }
  5021. else
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5023. $as_echo "no" >&6; }
  5024. fi
  5025. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5027. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5028. if ${lt_cv_prog_gnu_ld+:} false; then :
  5029. $as_echo_n "(cached) " >&6
  5030. else
  5031. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5032. case `$LD -v 2>&1 </dev/null` in
  5033. *GNU* | *'with BFD'*)
  5034. lt_cv_prog_gnu_ld=yes
  5035. ;;
  5036. *)
  5037. lt_cv_prog_gnu_ld=no
  5038. ;;
  5039. esac
  5040. fi
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5042. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5043. with_gnu_ld=$lt_cv_prog_gnu_ld
  5044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5045. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5046. if ${lt_cv_path_NM+:} false; then :
  5047. $as_echo_n "(cached) " >&6
  5048. else
  5049. if test -n "$NM"; then
  5050. # Let the user override the test.
  5051. lt_cv_path_NM="$NM"
  5052. else
  5053. lt_nm_to_check="${ac_tool_prefix}nm"
  5054. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5055. lt_nm_to_check="$lt_nm_to_check nm"
  5056. fi
  5057. for lt_tmp_nm in $lt_nm_to_check; do
  5058. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5059. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5060. IFS="$lt_save_ifs"
  5061. test -z "$ac_dir" && ac_dir=.
  5062. tmp_nm="$ac_dir/$lt_tmp_nm"
  5063. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5064. # Check to see if the nm accepts a BSD-compat flag.
  5065. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5066. # nm: unknown option "B" ignored
  5067. # Tru64's nm complains that /dev/null is an invalid object file
  5068. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5069. */dev/null* | *'Invalid file or object type'*)
  5070. lt_cv_path_NM="$tmp_nm -B"
  5071. break
  5072. ;;
  5073. *)
  5074. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5075. */dev/null*)
  5076. lt_cv_path_NM="$tmp_nm -p"
  5077. break
  5078. ;;
  5079. *)
  5080. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5081. continue # so that we can try to find one that supports BSD flags
  5082. ;;
  5083. esac
  5084. ;;
  5085. esac
  5086. fi
  5087. done
  5088. IFS="$lt_save_ifs"
  5089. done
  5090. : ${lt_cv_path_NM=no}
  5091. fi
  5092. fi
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5094. $as_echo "$lt_cv_path_NM" >&6; }
  5095. if test "$lt_cv_path_NM" != "no"; then
  5096. NM="$lt_cv_path_NM"
  5097. else
  5098. # Didn't find any BSD compatible name lister, look for dumpbin.
  5099. if test -n "$DUMPBIN"; then :
  5100. # Let the user override the test.
  5101. else
  5102. if test -n "$ac_tool_prefix"; then
  5103. for ac_prog in dumpbin "link -dump"
  5104. do
  5105. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5106. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5108. $as_echo_n "checking for $ac_word... " >&6; }
  5109. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5110. $as_echo_n "(cached) " >&6
  5111. else
  5112. if test -n "$DUMPBIN"; then
  5113. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5114. else
  5115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5116. for as_dir in $PATH
  5117. do
  5118. IFS=$as_save_IFS
  5119. test -z "$as_dir" && as_dir=.
  5120. for ac_exec_ext in '' $ac_executable_extensions; do
  5121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5122. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5124. break 2
  5125. fi
  5126. done
  5127. done
  5128. IFS=$as_save_IFS
  5129. fi
  5130. fi
  5131. DUMPBIN=$ac_cv_prog_DUMPBIN
  5132. if test -n "$DUMPBIN"; then
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5134. $as_echo "$DUMPBIN" >&6; }
  5135. else
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5137. $as_echo "no" >&6; }
  5138. fi
  5139. test -n "$DUMPBIN" && break
  5140. done
  5141. fi
  5142. if test -z "$DUMPBIN"; then
  5143. ac_ct_DUMPBIN=$DUMPBIN
  5144. for ac_prog in dumpbin "link -dump"
  5145. do
  5146. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5147. set dummy $ac_prog; ac_word=$2
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5149. $as_echo_n "checking for $ac_word... " >&6; }
  5150. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5151. $as_echo_n "(cached) " >&6
  5152. else
  5153. if test -n "$ac_ct_DUMPBIN"; then
  5154. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5155. else
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH
  5158. do
  5159. IFS=$as_save_IFS
  5160. test -z "$as_dir" && as_dir=.
  5161. for ac_exec_ext in '' $ac_executable_extensions; do
  5162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5163. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5165. break 2
  5166. fi
  5167. done
  5168. done
  5169. IFS=$as_save_IFS
  5170. fi
  5171. fi
  5172. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5173. if test -n "$ac_ct_DUMPBIN"; then
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5175. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5176. else
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5178. $as_echo "no" >&6; }
  5179. fi
  5180. test -n "$ac_ct_DUMPBIN" && break
  5181. done
  5182. if test "x$ac_ct_DUMPBIN" = x; then
  5183. DUMPBIN=":"
  5184. else
  5185. case $cross_compiling:$ac_tool_warned in
  5186. yes:)
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5188. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5189. ac_tool_warned=yes ;;
  5190. esac
  5191. DUMPBIN=$ac_ct_DUMPBIN
  5192. fi
  5193. fi
  5194. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5195. *COFF*)
  5196. DUMPBIN="$DUMPBIN -symbols"
  5197. ;;
  5198. *)
  5199. DUMPBIN=:
  5200. ;;
  5201. esac
  5202. fi
  5203. if test "$DUMPBIN" != ":"; then
  5204. NM="$DUMPBIN"
  5205. fi
  5206. fi
  5207. test -z "$NM" && NM=nm
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5209. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5210. if ${lt_cv_nm_interface+:} false; then :
  5211. $as_echo_n "(cached) " >&6
  5212. else
  5213. lt_cv_nm_interface="BSD nm"
  5214. echo "int some_variable = 0;" > conftest.$ac_ext
  5215. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5216. (eval "$ac_compile" 2>conftest.err)
  5217. cat conftest.err >&5
  5218. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5219. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5220. cat conftest.err >&5
  5221. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5222. cat conftest.out >&5
  5223. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5224. lt_cv_nm_interface="MS dumpbin"
  5225. fi
  5226. rm -f conftest*
  5227. fi
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5229. $as_echo "$lt_cv_nm_interface" >&6; }
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5231. $as_echo_n "checking whether ln -s works... " >&6; }
  5232. LN_S=$as_ln_s
  5233. if test "$LN_S" = "ln -s"; then
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5235. $as_echo "yes" >&6; }
  5236. else
  5237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5238. $as_echo "no, using $LN_S" >&6; }
  5239. fi
  5240. # find the maximum length of command line arguments
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5242. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5243. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5244. $as_echo_n "(cached) " >&6
  5245. else
  5246. i=0
  5247. teststring="ABCD"
  5248. case $build_os in
  5249. msdosdjgpp*)
  5250. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5251. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5252. # during glob expansion). Even if it were fixed, the result of this
  5253. # check would be larger than it should be.
  5254. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5255. ;;
  5256. gnu*)
  5257. # Under GNU Hurd, this test is not required because there is
  5258. # no limit to the length of command line arguments.
  5259. # Libtool will interpret -1 as no limit whatsoever
  5260. lt_cv_sys_max_cmd_len=-1;
  5261. ;;
  5262. cygwin* | mingw* | cegcc*)
  5263. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5264. # about 5 minutes as the teststring grows exponentially.
  5265. # Worse, since 9x/ME are not pre-emptively multitasking,
  5266. # you end up with a "frozen" computer, even though with patience
  5267. # the test eventually succeeds (with a max line length of 256k).
  5268. # Instead, let's just punt: use the minimum linelength reported by
  5269. # all of the supported platforms: 8192 (on NT/2K/XP).
  5270. lt_cv_sys_max_cmd_len=8192;
  5271. ;;
  5272. mint*)
  5273. # On MiNT this can take a long time and run out of memory.
  5274. lt_cv_sys_max_cmd_len=8192;
  5275. ;;
  5276. amigaos*)
  5277. # On AmigaOS with pdksh, this test takes hours, literally.
  5278. # So we just punt and use a minimum line length of 8192.
  5279. lt_cv_sys_max_cmd_len=8192;
  5280. ;;
  5281. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5282. # This has been around since 386BSD, at least. Likely further.
  5283. if test -x /sbin/sysctl; then
  5284. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5285. elif test -x /usr/sbin/sysctl; then
  5286. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5287. else
  5288. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5289. fi
  5290. # And add a safety zone
  5291. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5292. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5293. ;;
  5294. interix*)
  5295. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5296. lt_cv_sys_max_cmd_len=196608
  5297. ;;
  5298. osf*)
  5299. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5300. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5301. # nice to cause kernel panics so lets avoid the loop below.
  5302. # First set a reasonable default.
  5303. lt_cv_sys_max_cmd_len=16384
  5304. #
  5305. if test -x /sbin/sysconfig; then
  5306. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5307. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5308. esac
  5309. fi
  5310. ;;
  5311. sco3.2v5*)
  5312. lt_cv_sys_max_cmd_len=102400
  5313. ;;
  5314. sysv5* | sco5v6* | sysv4.2uw2*)
  5315. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5316. if test -n "$kargmax"; then
  5317. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5318. else
  5319. lt_cv_sys_max_cmd_len=32768
  5320. fi
  5321. ;;
  5322. *)
  5323. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5324. if test -n "$lt_cv_sys_max_cmd_len"; then
  5325. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5326. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5327. else
  5328. # Make teststring a little bigger before we do anything with it.
  5329. # a 1K string should be a reasonable start.
  5330. for i in 1 2 3 4 5 6 7 8 ; do
  5331. teststring=$teststring$teststring
  5332. done
  5333. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5334. # If test is not a shell built-in, we'll probably end up computing a
  5335. # maximum length that is only half of the actual maximum length, but
  5336. # we can't tell.
  5337. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5338. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5339. test $i != 17 # 1/2 MB should be enough
  5340. do
  5341. i=`expr $i + 1`
  5342. teststring=$teststring$teststring
  5343. done
  5344. # Only check the string length outside the loop.
  5345. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5346. teststring=
  5347. # Add a significant safety factor because C++ compilers can tack on
  5348. # massive amounts of additional arguments before passing them to the
  5349. # linker. It appears as though 1/2 is a usable value.
  5350. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5351. fi
  5352. ;;
  5353. esac
  5354. fi
  5355. if test -n $lt_cv_sys_max_cmd_len ; then
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5357. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5358. else
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5360. $as_echo "none" >&6; }
  5361. fi
  5362. max_cmd_len=$lt_cv_sys_max_cmd_len
  5363. : ${CP="cp -f"}
  5364. : ${MV="mv -f"}
  5365. : ${RM="rm -f"}
  5366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5367. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5368. # Try some XSI features
  5369. xsi_shell=no
  5370. ( _lt_dummy="a/b/c"
  5371. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5372. = c,a/b,, \
  5373. && eval 'test $(( 1 + 1 )) -eq 2 \
  5374. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5375. && xsi_shell=yes
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5377. $as_echo "$xsi_shell" >&6; }
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5379. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5380. lt_shell_append=no
  5381. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5382. >/dev/null 2>&1 \
  5383. && lt_shell_append=yes
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5385. $as_echo "$lt_shell_append" >&6; }
  5386. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5387. lt_unset=unset
  5388. else
  5389. lt_unset=false
  5390. fi
  5391. # test EBCDIC or ASCII
  5392. case `echo X|tr X '\101'` in
  5393. A) # ASCII based system
  5394. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5395. lt_SP2NL='tr \040 \012'
  5396. lt_NL2SP='tr \015\012 \040\040'
  5397. ;;
  5398. *) # EBCDIC based system
  5399. lt_SP2NL='tr \100 \n'
  5400. lt_NL2SP='tr \r\n \100\100'
  5401. ;;
  5402. esac
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5404. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5405. if ${lt_cv_ld_reload_flag+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. lt_cv_ld_reload_flag='-r'
  5409. fi
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5411. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5412. reload_flag=$lt_cv_ld_reload_flag
  5413. case $reload_flag in
  5414. "" | " "*) ;;
  5415. *) reload_flag=" $reload_flag" ;;
  5416. esac
  5417. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5418. case $host_os in
  5419. darwin*)
  5420. if test "$GCC" = yes; then
  5421. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5422. else
  5423. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5424. fi
  5425. ;;
  5426. esac
  5427. if test -n "$ac_tool_prefix"; then
  5428. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5429. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5431. $as_echo_n "checking for $ac_word... " >&6; }
  5432. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5433. $as_echo_n "(cached) " >&6
  5434. else
  5435. if test -n "$OBJDUMP"; then
  5436. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5437. else
  5438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5439. for as_dir in $PATH
  5440. do
  5441. IFS=$as_save_IFS
  5442. test -z "$as_dir" && as_dir=.
  5443. for ac_exec_ext in '' $ac_executable_extensions; do
  5444. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5445. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5446. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5447. break 2
  5448. fi
  5449. done
  5450. done
  5451. IFS=$as_save_IFS
  5452. fi
  5453. fi
  5454. OBJDUMP=$ac_cv_prog_OBJDUMP
  5455. if test -n "$OBJDUMP"; then
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5457. $as_echo "$OBJDUMP" >&6; }
  5458. else
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5460. $as_echo "no" >&6; }
  5461. fi
  5462. fi
  5463. if test -z "$ac_cv_prog_OBJDUMP"; then
  5464. ac_ct_OBJDUMP=$OBJDUMP
  5465. # Extract the first word of "objdump", so it can be a program name with args.
  5466. set dummy objdump; ac_word=$2
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5468. $as_echo_n "checking for $ac_word... " >&6; }
  5469. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. if test -n "$ac_ct_OBJDUMP"; then
  5473. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5474. else
  5475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5476. for as_dir in $PATH
  5477. do
  5478. IFS=$as_save_IFS
  5479. test -z "$as_dir" && as_dir=.
  5480. for ac_exec_ext in '' $ac_executable_extensions; do
  5481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5482. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5484. break 2
  5485. fi
  5486. done
  5487. done
  5488. IFS=$as_save_IFS
  5489. fi
  5490. fi
  5491. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5492. if test -n "$ac_ct_OBJDUMP"; then
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5494. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5495. else
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5497. $as_echo "no" >&6; }
  5498. fi
  5499. if test "x$ac_ct_OBJDUMP" = x; then
  5500. OBJDUMP="false"
  5501. else
  5502. case $cross_compiling:$ac_tool_warned in
  5503. yes:)
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5506. ac_tool_warned=yes ;;
  5507. esac
  5508. OBJDUMP=$ac_ct_OBJDUMP
  5509. fi
  5510. else
  5511. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5512. fi
  5513. test -z "$OBJDUMP" && OBJDUMP=objdump
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5515. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5516. if ${lt_cv_deplibs_check_method+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5520. lt_cv_file_magic_test_file=
  5521. lt_cv_deplibs_check_method='unknown'
  5522. # Need to set the preceding variable on all platforms that support
  5523. # interlibrary dependencies.
  5524. # 'none' -- dependencies not supported.
  5525. # `unknown' -- same as none, but documents that we really don't know.
  5526. # 'pass_all' -- all dependencies passed with no checks.
  5527. # 'test_compile' -- check by making test program.
  5528. # 'file_magic [[regex]]' -- check by looking for files in library path
  5529. # which responds to the $file_magic_cmd with a given extended regex.
  5530. # If you have `file' or equivalent on your system and you're not sure
  5531. # whether `pass_all' will *always* work, you probably want this one.
  5532. case $host_os in
  5533. aix[4-9]*)
  5534. lt_cv_deplibs_check_method=pass_all
  5535. ;;
  5536. beos*)
  5537. lt_cv_deplibs_check_method=pass_all
  5538. ;;
  5539. bsdi[45]*)
  5540. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5541. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5542. lt_cv_file_magic_test_file=/shlib/libc.so
  5543. ;;
  5544. cygwin*)
  5545. # func_win32_libid is a shell function defined in ltmain.sh
  5546. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5547. lt_cv_file_magic_cmd='func_win32_libid'
  5548. ;;
  5549. mingw* | pw32*)
  5550. # Base MSYS/MinGW do not provide the 'file' command needed by
  5551. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5552. # unless we find 'file', for example because we are cross-compiling.
  5553. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5554. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5555. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5556. lt_cv_file_magic_cmd='func_win32_libid'
  5557. else
  5558. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5559. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5560. fi
  5561. ;;
  5562. cegcc*)
  5563. # use the weaker test based on 'objdump'. See mingw*.
  5564. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5565. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5566. ;;
  5567. darwin* | rhapsody*)
  5568. lt_cv_deplibs_check_method=pass_all
  5569. ;;
  5570. freebsd* | dragonfly*)
  5571. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5572. case $host_cpu in
  5573. i*86 )
  5574. # Not sure whether the presence of OpenBSD here was a mistake.
  5575. # Let's accept both of them until this is cleared up.
  5576. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5577. lt_cv_file_magic_cmd=/usr/bin/file
  5578. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5579. ;;
  5580. esac
  5581. else
  5582. lt_cv_deplibs_check_method=pass_all
  5583. fi
  5584. ;;
  5585. gnu*)
  5586. lt_cv_deplibs_check_method=pass_all
  5587. ;;
  5588. haiku*)
  5589. lt_cv_deplibs_check_method=pass_all
  5590. ;;
  5591. hpux10.20* | hpux11*)
  5592. lt_cv_file_magic_cmd=/usr/bin/file
  5593. case $host_cpu in
  5594. ia64*)
  5595. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5596. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5597. ;;
  5598. hppa*64*)
  5599. 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]'
  5600. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5601. ;;
  5602. *)
  5603. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5604. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5605. ;;
  5606. esac
  5607. ;;
  5608. interix[3-9]*)
  5609. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5610. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5611. ;;
  5612. irix5* | irix6* | nonstopux*)
  5613. case $LD in
  5614. *-32|*"-32 ") libmagic=32-bit;;
  5615. *-n32|*"-n32 ") libmagic=N32;;
  5616. *-64|*"-64 ") libmagic=64-bit;;
  5617. *) libmagic=never-match;;
  5618. esac
  5619. lt_cv_deplibs_check_method=pass_all
  5620. ;;
  5621. # This must be Linux ELF.
  5622. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5623. lt_cv_deplibs_check_method=pass_all
  5624. ;;
  5625. netbsd*)
  5626. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5627. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5628. else
  5629. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5630. fi
  5631. ;;
  5632. newos6*)
  5633. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5634. lt_cv_file_magic_cmd=/usr/bin/file
  5635. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5636. ;;
  5637. *nto* | *qnx*)
  5638. lt_cv_deplibs_check_method=pass_all
  5639. ;;
  5640. openbsd*)
  5641. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5642. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5643. else
  5644. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5645. fi
  5646. ;;
  5647. osf3* | osf4* | osf5*)
  5648. lt_cv_deplibs_check_method=pass_all
  5649. ;;
  5650. rdos*)
  5651. lt_cv_deplibs_check_method=pass_all
  5652. ;;
  5653. solaris*)
  5654. lt_cv_deplibs_check_method=pass_all
  5655. ;;
  5656. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5657. lt_cv_deplibs_check_method=pass_all
  5658. ;;
  5659. sysv4 | sysv4.3*)
  5660. case $host_vendor in
  5661. motorola)
  5662. 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]'
  5663. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5664. ;;
  5665. ncr)
  5666. lt_cv_deplibs_check_method=pass_all
  5667. ;;
  5668. sequent)
  5669. lt_cv_file_magic_cmd='/bin/file'
  5670. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5671. ;;
  5672. sni)
  5673. lt_cv_file_magic_cmd='/bin/file'
  5674. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5675. lt_cv_file_magic_test_file=/lib/libc.so
  5676. ;;
  5677. siemens)
  5678. lt_cv_deplibs_check_method=pass_all
  5679. ;;
  5680. pc)
  5681. lt_cv_deplibs_check_method=pass_all
  5682. ;;
  5683. esac
  5684. ;;
  5685. tpf*)
  5686. lt_cv_deplibs_check_method=pass_all
  5687. ;;
  5688. esac
  5689. fi
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5691. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5692. file_magic_cmd=$lt_cv_file_magic_cmd
  5693. deplibs_check_method=$lt_cv_deplibs_check_method
  5694. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5695. if test -n "$ac_tool_prefix"; then
  5696. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5697. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if ${ac_cv_prog_AR+:} false; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. if test -n "$AR"; then
  5704. ac_cv_prog_AR="$AR" # Let the user override the test.
  5705. else
  5706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5707. for as_dir in $PATH
  5708. do
  5709. IFS=$as_save_IFS
  5710. test -z "$as_dir" && as_dir=.
  5711. for ac_exec_ext in '' $ac_executable_extensions; do
  5712. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5713. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5715. break 2
  5716. fi
  5717. done
  5718. done
  5719. IFS=$as_save_IFS
  5720. fi
  5721. fi
  5722. AR=$ac_cv_prog_AR
  5723. if test -n "$AR"; then
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5725. $as_echo "$AR" >&6; }
  5726. else
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5728. $as_echo "no" >&6; }
  5729. fi
  5730. fi
  5731. if test -z "$ac_cv_prog_AR"; then
  5732. ac_ct_AR=$AR
  5733. # Extract the first word of "ar", so it can be a program name with args.
  5734. set dummy ar; ac_word=$2
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5736. $as_echo_n "checking for $ac_word... " >&6; }
  5737. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5738. $as_echo_n "(cached) " >&6
  5739. else
  5740. if test -n "$ac_ct_AR"; then
  5741. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5742. else
  5743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5744. for as_dir in $PATH
  5745. do
  5746. IFS=$as_save_IFS
  5747. test -z "$as_dir" && as_dir=.
  5748. for ac_exec_ext in '' $ac_executable_extensions; do
  5749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5750. ac_cv_prog_ac_ct_AR="ar"
  5751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5752. break 2
  5753. fi
  5754. done
  5755. done
  5756. IFS=$as_save_IFS
  5757. fi
  5758. fi
  5759. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5760. if test -n "$ac_ct_AR"; then
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5762. $as_echo "$ac_ct_AR" >&6; }
  5763. else
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5765. $as_echo "no" >&6; }
  5766. fi
  5767. if test "x$ac_ct_AR" = x; then
  5768. AR="false"
  5769. else
  5770. case $cross_compiling:$ac_tool_warned in
  5771. yes:)
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5773. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5774. ac_tool_warned=yes ;;
  5775. esac
  5776. AR=$ac_ct_AR
  5777. fi
  5778. else
  5779. AR="$ac_cv_prog_AR"
  5780. fi
  5781. test -z "$AR" && AR=ar
  5782. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5783. if test -n "$ac_tool_prefix"; then
  5784. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5785. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5787. $as_echo_n "checking for $ac_word... " >&6; }
  5788. if ${ac_cv_prog_STRIP+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. if test -n "$STRIP"; then
  5792. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5793. else
  5794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5795. for as_dir in $PATH
  5796. do
  5797. IFS=$as_save_IFS
  5798. test -z "$as_dir" && as_dir=.
  5799. for ac_exec_ext in '' $ac_executable_extensions; do
  5800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5801. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5803. break 2
  5804. fi
  5805. done
  5806. done
  5807. IFS=$as_save_IFS
  5808. fi
  5809. fi
  5810. STRIP=$ac_cv_prog_STRIP
  5811. if test -n "$STRIP"; then
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5813. $as_echo "$STRIP" >&6; }
  5814. else
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5816. $as_echo "no" >&6; }
  5817. fi
  5818. fi
  5819. if test -z "$ac_cv_prog_STRIP"; then
  5820. ac_ct_STRIP=$STRIP
  5821. # Extract the first word of "strip", so it can be a program name with args.
  5822. set dummy strip; ac_word=$2
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5824. $as_echo_n "checking for $ac_word... " >&6; }
  5825. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5826. $as_echo_n "(cached) " >&6
  5827. else
  5828. if test -n "$ac_ct_STRIP"; then
  5829. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5830. else
  5831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5832. for as_dir in $PATH
  5833. do
  5834. IFS=$as_save_IFS
  5835. test -z "$as_dir" && as_dir=.
  5836. for ac_exec_ext in '' $ac_executable_extensions; do
  5837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5838. ac_cv_prog_ac_ct_STRIP="strip"
  5839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5840. break 2
  5841. fi
  5842. done
  5843. done
  5844. IFS=$as_save_IFS
  5845. fi
  5846. fi
  5847. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5848. if test -n "$ac_ct_STRIP"; then
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5850. $as_echo "$ac_ct_STRIP" >&6; }
  5851. else
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5853. $as_echo "no" >&6; }
  5854. fi
  5855. if test "x$ac_ct_STRIP" = x; then
  5856. STRIP=":"
  5857. else
  5858. case $cross_compiling:$ac_tool_warned in
  5859. yes:)
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5862. ac_tool_warned=yes ;;
  5863. esac
  5864. STRIP=$ac_ct_STRIP
  5865. fi
  5866. else
  5867. STRIP="$ac_cv_prog_STRIP"
  5868. fi
  5869. test -z "$STRIP" && STRIP=:
  5870. if test -n "$ac_tool_prefix"; then
  5871. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5872. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5874. $as_echo_n "checking for $ac_word... " >&6; }
  5875. if ${ac_cv_prog_RANLIB+:} false; then :
  5876. $as_echo_n "(cached) " >&6
  5877. else
  5878. if test -n "$RANLIB"; then
  5879. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5880. else
  5881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5882. for as_dir in $PATH
  5883. do
  5884. IFS=$as_save_IFS
  5885. test -z "$as_dir" && as_dir=.
  5886. for ac_exec_ext in '' $ac_executable_extensions; do
  5887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5888. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5890. break 2
  5891. fi
  5892. done
  5893. done
  5894. IFS=$as_save_IFS
  5895. fi
  5896. fi
  5897. RANLIB=$ac_cv_prog_RANLIB
  5898. if test -n "$RANLIB"; then
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5900. $as_echo "$RANLIB" >&6; }
  5901. else
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5903. $as_echo "no" >&6; }
  5904. fi
  5905. fi
  5906. if test -z "$ac_cv_prog_RANLIB"; then
  5907. ac_ct_RANLIB=$RANLIB
  5908. # Extract the first word of "ranlib", so it can be a program name with args.
  5909. set dummy ranlib; ac_word=$2
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. if test -n "$ac_ct_RANLIB"; then
  5916. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5917. else
  5918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5919. for as_dir in $PATH
  5920. do
  5921. IFS=$as_save_IFS
  5922. test -z "$as_dir" && as_dir=.
  5923. for ac_exec_ext in '' $ac_executable_extensions; do
  5924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5925. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5927. break 2
  5928. fi
  5929. done
  5930. done
  5931. IFS=$as_save_IFS
  5932. fi
  5933. fi
  5934. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5935. if test -n "$ac_ct_RANLIB"; then
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5937. $as_echo "$ac_ct_RANLIB" >&6; }
  5938. else
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5940. $as_echo "no" >&6; }
  5941. fi
  5942. if test "x$ac_ct_RANLIB" = x; then
  5943. RANLIB=":"
  5944. else
  5945. case $cross_compiling:$ac_tool_warned in
  5946. yes:)
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5949. ac_tool_warned=yes ;;
  5950. esac
  5951. RANLIB=$ac_ct_RANLIB
  5952. fi
  5953. else
  5954. RANLIB="$ac_cv_prog_RANLIB"
  5955. fi
  5956. test -z "$RANLIB" && RANLIB=:
  5957. # Determine commands to create old-style static archives.
  5958. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5959. old_postinstall_cmds='chmod 644 $oldlib'
  5960. old_postuninstall_cmds=
  5961. if test -n "$RANLIB"; then
  5962. case $host_os in
  5963. openbsd*)
  5964. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5965. ;;
  5966. *)
  5967. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5968. ;;
  5969. esac
  5970. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5971. fi
  5972. case $host_os in
  5973. darwin*)
  5974. lock_old_archive_extraction=yes ;;
  5975. *)
  5976. lock_old_archive_extraction=no ;;
  5977. esac
  5978. # If no C compiler was specified, use CC.
  5979. LTCC=${LTCC-"$CC"}
  5980. # If no C compiler flags were specified, use CFLAGS.
  5981. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5982. # Allow CC to be a program name with arguments.
  5983. compiler=$CC
  5984. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5986. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5987. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. # These are sane defaults that work on at least a few old systems.
  5991. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5992. # Character class describing NM global symbol codes.
  5993. symcode='[BCDEGRST]'
  5994. # Regexp to match symbols that can be accessed directly from C.
  5995. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5996. # Define system-specific variables.
  5997. case $host_os in
  5998. aix*)
  5999. symcode='[BCDT]'
  6000. ;;
  6001. cygwin* | mingw* | pw32* | cegcc*)
  6002. symcode='[ABCDGISTW]'
  6003. ;;
  6004. hpux*)
  6005. if test "$host_cpu" = ia64; then
  6006. symcode='[ABCDEGRST]'
  6007. fi
  6008. ;;
  6009. irix* | nonstopux*)
  6010. symcode='[BCDEGRST]'
  6011. ;;
  6012. osf*)
  6013. symcode='[BCDEGQRST]'
  6014. ;;
  6015. solaris*)
  6016. symcode='[BDRT]'
  6017. ;;
  6018. sco3.2v5*)
  6019. symcode='[DT]'
  6020. ;;
  6021. sysv4.2uw2*)
  6022. symcode='[DT]'
  6023. ;;
  6024. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6025. symcode='[ABDT]'
  6026. ;;
  6027. sysv4)
  6028. symcode='[DFNSTU]'
  6029. ;;
  6030. esac
  6031. # If we're using GNU nm, then use its standard symbol codes.
  6032. case `$NM -V 2>&1` in
  6033. *GNU* | *'with BFD'*)
  6034. symcode='[ABCDGIRSTW]' ;;
  6035. esac
  6036. # Transform an extracted symbol line into a proper C declaration.
  6037. # Some systems (esp. on ia64) link data and code symbols differently,
  6038. # so use this general approach.
  6039. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6040. # Transform an extracted symbol line into symbol name and symbol address
  6041. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6042. 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'"
  6043. # Handle CRLF in mingw tool chain
  6044. opt_cr=
  6045. case $build_os in
  6046. mingw*)
  6047. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6048. ;;
  6049. esac
  6050. # Try without a prefix underscore, then with it.
  6051. for ac_symprfx in "" "_"; do
  6052. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6053. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6054. # Write the raw and C identifiers.
  6055. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6056. # Fake it for dumpbin and say T for any non-static function
  6057. # and D for any global variable.
  6058. # Also find C++ and __fastcall symbols from MSVC++,
  6059. # which start with @ or ?.
  6060. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6061. " {last_section=section; section=\$ 3};"\
  6062. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6063. " \$ 0!~/External *\|/{next};"\
  6064. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6065. " {if(hide[section]) next};"\
  6066. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6067. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6068. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6069. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6070. " ' prfx=^$ac_symprfx"
  6071. else
  6072. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6073. fi
  6074. # Check to see that the pipe works correctly.
  6075. pipe_works=no
  6076. rm -f conftest*
  6077. cat > conftest.$ac_ext <<_LT_EOF
  6078. #ifdef __cplusplus
  6079. extern "C" {
  6080. #endif
  6081. char nm_test_var;
  6082. void nm_test_func(void);
  6083. void nm_test_func(void){}
  6084. #ifdef __cplusplus
  6085. }
  6086. #endif
  6087. int main(){nm_test_var='a';nm_test_func();return(0);}
  6088. _LT_EOF
  6089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6090. (eval $ac_compile) 2>&5
  6091. ac_status=$?
  6092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6093. test $ac_status = 0; }; then
  6094. # Now try to grab the symbols.
  6095. nlist=conftest.nm
  6096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6097. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6098. ac_status=$?
  6099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6100. test $ac_status = 0; } && test -s "$nlist"; then
  6101. # Try sorting and uniquifying the output.
  6102. if sort "$nlist" | uniq > "$nlist"T; then
  6103. mv -f "$nlist"T "$nlist"
  6104. else
  6105. rm -f "$nlist"T
  6106. fi
  6107. # Make sure that we snagged all the symbols we need.
  6108. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6109. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6110. cat <<_LT_EOF > conftest.$ac_ext
  6111. #ifdef __cplusplus
  6112. extern "C" {
  6113. #endif
  6114. _LT_EOF
  6115. # Now generate the symbol file.
  6116. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6117. cat <<_LT_EOF >> conftest.$ac_ext
  6118. /* The mapping between symbol names and symbols. */
  6119. const struct {
  6120. const char *name;
  6121. void *address;
  6122. }
  6123. lt__PROGRAM__LTX_preloaded_symbols[] =
  6124. {
  6125. { "@PROGRAM@", (void *) 0 },
  6126. _LT_EOF
  6127. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6128. cat <<\_LT_EOF >> conftest.$ac_ext
  6129. {0, (void *) 0}
  6130. };
  6131. /* This works around a problem in FreeBSD linker */
  6132. #ifdef FREEBSD_WORKAROUND
  6133. static const void *lt_preloaded_setup() {
  6134. return lt__PROGRAM__LTX_preloaded_symbols;
  6135. }
  6136. #endif
  6137. #ifdef __cplusplus
  6138. }
  6139. #endif
  6140. _LT_EOF
  6141. # Now try linking the two files.
  6142. mv conftest.$ac_objext conftstm.$ac_objext
  6143. lt_save_LIBS="$LIBS"
  6144. lt_save_CFLAGS="$CFLAGS"
  6145. LIBS="conftstm.$ac_objext"
  6146. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6147. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6148. (eval $ac_link) 2>&5
  6149. ac_status=$?
  6150. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6151. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6152. pipe_works=yes
  6153. fi
  6154. LIBS="$lt_save_LIBS"
  6155. CFLAGS="$lt_save_CFLAGS"
  6156. else
  6157. echo "cannot find nm_test_func in $nlist" >&5
  6158. fi
  6159. else
  6160. echo "cannot find nm_test_var in $nlist" >&5
  6161. fi
  6162. else
  6163. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6164. fi
  6165. else
  6166. echo "$progname: failed program was:" >&5
  6167. cat conftest.$ac_ext >&5
  6168. fi
  6169. rm -rf conftest* conftst*
  6170. # Do not use the global_symbol_pipe unless it works.
  6171. if test "$pipe_works" = yes; then
  6172. break
  6173. else
  6174. lt_cv_sys_global_symbol_pipe=
  6175. fi
  6176. done
  6177. fi
  6178. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6179. lt_cv_sys_global_symbol_to_cdecl=
  6180. fi
  6181. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6183. $as_echo "failed" >&6; }
  6184. else
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6186. $as_echo "ok" >&6; }
  6187. fi
  6188. # Check whether --enable-libtool-lock was given.
  6189. if test "${enable_libtool_lock+set}" = set; then :
  6190. enableval=$enable_libtool_lock;
  6191. fi
  6192. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6193. # Some flags need to be propagated to the compiler or linker for good
  6194. # libtool support.
  6195. case $host in
  6196. ia64-*-hpux*)
  6197. # Find out which ABI we are using.
  6198. echo 'int i;' > conftest.$ac_ext
  6199. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6200. (eval $ac_compile) 2>&5
  6201. ac_status=$?
  6202. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6203. test $ac_status = 0; }; then
  6204. case `/usr/bin/file conftest.$ac_objext` in
  6205. *ELF-32*)
  6206. HPUX_IA64_MODE="32"
  6207. ;;
  6208. *ELF-64*)
  6209. HPUX_IA64_MODE="64"
  6210. ;;
  6211. esac
  6212. fi
  6213. rm -rf conftest*
  6214. ;;
  6215. *-*-irix6*)
  6216. # Find out which ABI we are using.
  6217. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6218. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6219. (eval $ac_compile) 2>&5
  6220. ac_status=$?
  6221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6222. test $ac_status = 0; }; then
  6223. if test "$lt_cv_prog_gnu_ld" = yes; then
  6224. case `/usr/bin/file conftest.$ac_objext` in
  6225. *32-bit*)
  6226. LD="${LD-ld} -melf32bsmip"
  6227. ;;
  6228. *N32*)
  6229. LD="${LD-ld} -melf32bmipn32"
  6230. ;;
  6231. *64-bit*)
  6232. LD="${LD-ld} -melf64bmip"
  6233. ;;
  6234. esac
  6235. else
  6236. case `/usr/bin/file conftest.$ac_objext` in
  6237. *32-bit*)
  6238. LD="${LD-ld} -32"
  6239. ;;
  6240. *N32*)
  6241. LD="${LD-ld} -n32"
  6242. ;;
  6243. *64-bit*)
  6244. LD="${LD-ld} -64"
  6245. ;;
  6246. esac
  6247. fi
  6248. fi
  6249. rm -rf conftest*
  6250. ;;
  6251. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6252. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6253. # Find out which ABI we are using.
  6254. echo 'int i;' > conftest.$ac_ext
  6255. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6256. (eval $ac_compile) 2>&5
  6257. ac_status=$?
  6258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6259. test $ac_status = 0; }; then
  6260. case `/usr/bin/file conftest.o` in
  6261. *32-bit*)
  6262. case $host in
  6263. x86_64-*kfreebsd*-gnu)
  6264. LD="${LD-ld} -m elf_i386_fbsd"
  6265. ;;
  6266. x86_64-*linux*)
  6267. case `/usr/bin/file conftest.o` in
  6268. *x86-64*)
  6269. LD="${LD-ld} -m elf32_x86_64"
  6270. ;;
  6271. *)
  6272. LD="${LD-ld} -m elf_i386"
  6273. ;;
  6274. esac
  6275. ;;
  6276. powerpc64le-*linux*)
  6277. LD="${LD-ld} -m elf32lppclinux"
  6278. ;;
  6279. powerpc64-*linux*)
  6280. LD="${LD-ld} -m elf32ppclinux"
  6281. ;;
  6282. s390x-*linux*)
  6283. LD="${LD-ld} -m elf_s390"
  6284. ;;
  6285. sparc64-*linux*)
  6286. LD="${LD-ld} -m elf32_sparc"
  6287. ;;
  6288. esac
  6289. ;;
  6290. *64-bit*)
  6291. case $host in
  6292. x86_64-*kfreebsd*-gnu)
  6293. LD="${LD-ld} -m elf_x86_64_fbsd"
  6294. ;;
  6295. x86_64-*linux*)
  6296. LD="${LD-ld} -m elf_x86_64"
  6297. ;;
  6298. powerpcle-*linux*)
  6299. LD="${LD-ld} -m elf64lppc"
  6300. ;;
  6301. powerpc-*linux*)
  6302. LD="${LD-ld} -m elf64ppc"
  6303. ;;
  6304. s390*-*linux*|s390*-*tpf*)
  6305. LD="${LD-ld} -m elf64_s390"
  6306. ;;
  6307. sparc*-*linux*)
  6308. LD="${LD-ld} -m elf64_sparc"
  6309. ;;
  6310. esac
  6311. ;;
  6312. esac
  6313. fi
  6314. rm -rf conftest*
  6315. ;;
  6316. *-*-sco3.2v5*)
  6317. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6318. SAVE_CFLAGS="$CFLAGS"
  6319. CFLAGS="$CFLAGS -belf"
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6321. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6322. if ${lt_cv_cc_needs_belf+:} false; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. ac_ext=c
  6326. ac_cpp='$CPP $CPPFLAGS'
  6327. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6328. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6329. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. int
  6333. main ()
  6334. {
  6335. ;
  6336. return 0;
  6337. }
  6338. _ACEOF
  6339. if ac_fn_c_try_link "$LINENO"; then :
  6340. lt_cv_cc_needs_belf=yes
  6341. else
  6342. lt_cv_cc_needs_belf=no
  6343. fi
  6344. rm -f core conftest.err conftest.$ac_objext \
  6345. conftest$ac_exeext conftest.$ac_ext
  6346. ac_ext=c
  6347. ac_cpp='$CPP $CPPFLAGS'
  6348. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6349. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6350. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6351. fi
  6352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6353. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6354. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6355. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6356. CFLAGS="$SAVE_CFLAGS"
  6357. fi
  6358. ;;
  6359. sparc*-*solaris*)
  6360. # Find out which ABI we are using.
  6361. echo 'int i;' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. case `/usr/bin/file conftest.o` in
  6368. *64-bit*)
  6369. case $lt_cv_prog_gnu_ld in
  6370. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6371. *)
  6372. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6373. LD="${LD-ld} -64"
  6374. fi
  6375. ;;
  6376. esac
  6377. ;;
  6378. esac
  6379. fi
  6380. rm -rf conftest*
  6381. ;;
  6382. esac
  6383. need_locks="$enable_libtool_lock"
  6384. case $host_os in
  6385. rhapsody* | darwin*)
  6386. if test -n "$ac_tool_prefix"; then
  6387. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6388. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6390. $as_echo_n "checking for $ac_word... " >&6; }
  6391. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6392. $as_echo_n "(cached) " >&6
  6393. else
  6394. if test -n "$DSYMUTIL"; then
  6395. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6396. else
  6397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6398. for as_dir in $PATH
  6399. do
  6400. IFS=$as_save_IFS
  6401. test -z "$as_dir" && as_dir=.
  6402. for ac_exec_ext in '' $ac_executable_extensions; do
  6403. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6404. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6406. break 2
  6407. fi
  6408. done
  6409. done
  6410. IFS=$as_save_IFS
  6411. fi
  6412. fi
  6413. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6414. if test -n "$DSYMUTIL"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6416. $as_echo "$DSYMUTIL" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. fi
  6422. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6423. ac_ct_DSYMUTIL=$DSYMUTIL
  6424. # Extract the first word of "dsymutil", so it can be a program name with args.
  6425. set dummy dsymutil; ac_word=$2
  6426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6427. $as_echo_n "checking for $ac_word... " >&6; }
  6428. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6429. $as_echo_n "(cached) " >&6
  6430. else
  6431. if test -n "$ac_ct_DSYMUTIL"; then
  6432. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6433. else
  6434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6435. for as_dir in $PATH
  6436. do
  6437. IFS=$as_save_IFS
  6438. test -z "$as_dir" && as_dir=.
  6439. for ac_exec_ext in '' $ac_executable_extensions; do
  6440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6441. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6443. break 2
  6444. fi
  6445. done
  6446. done
  6447. IFS=$as_save_IFS
  6448. fi
  6449. fi
  6450. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6451. if test -n "$ac_ct_DSYMUTIL"; then
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6453. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. if test "x$ac_ct_DSYMUTIL" = x; then
  6459. DSYMUTIL=":"
  6460. else
  6461. case $cross_compiling:$ac_tool_warned in
  6462. yes:)
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6464. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6465. ac_tool_warned=yes ;;
  6466. esac
  6467. DSYMUTIL=$ac_ct_DSYMUTIL
  6468. fi
  6469. else
  6470. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6471. fi
  6472. if test -n "$ac_tool_prefix"; then
  6473. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6474. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6476. $as_echo_n "checking for $ac_word... " >&6; }
  6477. if ${ac_cv_prog_NMEDIT+:} false; then :
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. if test -n "$NMEDIT"; then
  6481. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6482. else
  6483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6484. for as_dir in $PATH
  6485. do
  6486. IFS=$as_save_IFS
  6487. test -z "$as_dir" && as_dir=.
  6488. for ac_exec_ext in '' $ac_executable_extensions; do
  6489. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6490. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6491. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6492. break 2
  6493. fi
  6494. done
  6495. done
  6496. IFS=$as_save_IFS
  6497. fi
  6498. fi
  6499. NMEDIT=$ac_cv_prog_NMEDIT
  6500. if test -n "$NMEDIT"; then
  6501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6502. $as_echo "$NMEDIT" >&6; }
  6503. else
  6504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6505. $as_echo "no" >&6; }
  6506. fi
  6507. fi
  6508. if test -z "$ac_cv_prog_NMEDIT"; then
  6509. ac_ct_NMEDIT=$NMEDIT
  6510. # Extract the first word of "nmedit", so it can be a program name with args.
  6511. set dummy nmedit; ac_word=$2
  6512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6513. $as_echo_n "checking for $ac_word... " >&6; }
  6514. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6515. $as_echo_n "(cached) " >&6
  6516. else
  6517. if test -n "$ac_ct_NMEDIT"; then
  6518. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6519. else
  6520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6521. for as_dir in $PATH
  6522. do
  6523. IFS=$as_save_IFS
  6524. test -z "$as_dir" && as_dir=.
  6525. for ac_exec_ext in '' $ac_executable_extensions; do
  6526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6527. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6529. break 2
  6530. fi
  6531. done
  6532. done
  6533. IFS=$as_save_IFS
  6534. fi
  6535. fi
  6536. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6537. if test -n "$ac_ct_NMEDIT"; then
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6539. $as_echo "$ac_ct_NMEDIT" >&6; }
  6540. else
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6542. $as_echo "no" >&6; }
  6543. fi
  6544. if test "x$ac_ct_NMEDIT" = x; then
  6545. NMEDIT=":"
  6546. else
  6547. case $cross_compiling:$ac_tool_warned in
  6548. yes:)
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6550. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6551. ac_tool_warned=yes ;;
  6552. esac
  6553. NMEDIT=$ac_ct_NMEDIT
  6554. fi
  6555. else
  6556. NMEDIT="$ac_cv_prog_NMEDIT"
  6557. fi
  6558. if test -n "$ac_tool_prefix"; then
  6559. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6560. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6562. $as_echo_n "checking for $ac_word... " >&6; }
  6563. if ${ac_cv_prog_LIPO+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. if test -n "$LIPO"; then
  6567. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6568. else
  6569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6570. for as_dir in $PATH
  6571. do
  6572. IFS=$as_save_IFS
  6573. test -z "$as_dir" && as_dir=.
  6574. for ac_exec_ext in '' $ac_executable_extensions; do
  6575. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6576. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6578. break 2
  6579. fi
  6580. done
  6581. done
  6582. IFS=$as_save_IFS
  6583. fi
  6584. fi
  6585. LIPO=$ac_cv_prog_LIPO
  6586. if test -n "$LIPO"; then
  6587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6588. $as_echo "$LIPO" >&6; }
  6589. else
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6591. $as_echo "no" >&6; }
  6592. fi
  6593. fi
  6594. if test -z "$ac_cv_prog_LIPO"; then
  6595. ac_ct_LIPO=$LIPO
  6596. # Extract the first word of "lipo", so it can be a program name with args.
  6597. set dummy lipo; ac_word=$2
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6599. $as_echo_n "checking for $ac_word... " >&6; }
  6600. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6601. $as_echo_n "(cached) " >&6
  6602. else
  6603. if test -n "$ac_ct_LIPO"; then
  6604. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6605. else
  6606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6607. for as_dir in $PATH
  6608. do
  6609. IFS=$as_save_IFS
  6610. test -z "$as_dir" && as_dir=.
  6611. for ac_exec_ext in '' $ac_executable_extensions; do
  6612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6613. ac_cv_prog_ac_ct_LIPO="lipo"
  6614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6615. break 2
  6616. fi
  6617. done
  6618. done
  6619. IFS=$as_save_IFS
  6620. fi
  6621. fi
  6622. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6623. if test -n "$ac_ct_LIPO"; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6625. $as_echo "$ac_ct_LIPO" >&6; }
  6626. else
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6628. $as_echo "no" >&6; }
  6629. fi
  6630. if test "x$ac_ct_LIPO" = x; then
  6631. LIPO=":"
  6632. else
  6633. case $cross_compiling:$ac_tool_warned in
  6634. yes:)
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6636. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6637. ac_tool_warned=yes ;;
  6638. esac
  6639. LIPO=$ac_ct_LIPO
  6640. fi
  6641. else
  6642. LIPO="$ac_cv_prog_LIPO"
  6643. fi
  6644. if test -n "$ac_tool_prefix"; then
  6645. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6646. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6648. $as_echo_n "checking for $ac_word... " >&6; }
  6649. if ${ac_cv_prog_OTOOL+:} false; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test -n "$OTOOL"; then
  6653. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6654. else
  6655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6656. for as_dir in $PATH
  6657. do
  6658. IFS=$as_save_IFS
  6659. test -z "$as_dir" && as_dir=.
  6660. for ac_exec_ext in '' $ac_executable_extensions; do
  6661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6662. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6664. break 2
  6665. fi
  6666. done
  6667. done
  6668. IFS=$as_save_IFS
  6669. fi
  6670. fi
  6671. OTOOL=$ac_cv_prog_OTOOL
  6672. if test -n "$OTOOL"; then
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6674. $as_echo "$OTOOL" >&6; }
  6675. else
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6677. $as_echo "no" >&6; }
  6678. fi
  6679. fi
  6680. if test -z "$ac_cv_prog_OTOOL"; then
  6681. ac_ct_OTOOL=$OTOOL
  6682. # Extract the first word of "otool", so it can be a program name with args.
  6683. set dummy otool; ac_word=$2
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6685. $as_echo_n "checking for $ac_word... " >&6; }
  6686. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6687. $as_echo_n "(cached) " >&6
  6688. else
  6689. if test -n "$ac_ct_OTOOL"; then
  6690. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6691. else
  6692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6693. for as_dir in $PATH
  6694. do
  6695. IFS=$as_save_IFS
  6696. test -z "$as_dir" && as_dir=.
  6697. for ac_exec_ext in '' $ac_executable_extensions; do
  6698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6699. ac_cv_prog_ac_ct_OTOOL="otool"
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6701. break 2
  6702. fi
  6703. done
  6704. done
  6705. IFS=$as_save_IFS
  6706. fi
  6707. fi
  6708. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6709. if test -n "$ac_ct_OTOOL"; then
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6711. $as_echo "$ac_ct_OTOOL" >&6; }
  6712. else
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6714. $as_echo "no" >&6; }
  6715. fi
  6716. if test "x$ac_ct_OTOOL" = x; then
  6717. OTOOL=":"
  6718. else
  6719. case $cross_compiling:$ac_tool_warned in
  6720. yes:)
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6722. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6723. ac_tool_warned=yes ;;
  6724. esac
  6725. OTOOL=$ac_ct_OTOOL
  6726. fi
  6727. else
  6728. OTOOL="$ac_cv_prog_OTOOL"
  6729. fi
  6730. if test -n "$ac_tool_prefix"; then
  6731. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6732. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6734. $as_echo_n "checking for $ac_word... " >&6; }
  6735. if ${ac_cv_prog_OTOOL64+:} false; then :
  6736. $as_echo_n "(cached) " >&6
  6737. else
  6738. if test -n "$OTOOL64"; then
  6739. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6740. else
  6741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6742. for as_dir in $PATH
  6743. do
  6744. IFS=$as_save_IFS
  6745. test -z "$as_dir" && as_dir=.
  6746. for ac_exec_ext in '' $ac_executable_extensions; do
  6747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6748. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6750. break 2
  6751. fi
  6752. done
  6753. done
  6754. IFS=$as_save_IFS
  6755. fi
  6756. fi
  6757. OTOOL64=$ac_cv_prog_OTOOL64
  6758. if test -n "$OTOOL64"; then
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6760. $as_echo "$OTOOL64" >&6; }
  6761. else
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6763. $as_echo "no" >&6; }
  6764. fi
  6765. fi
  6766. if test -z "$ac_cv_prog_OTOOL64"; then
  6767. ac_ct_OTOOL64=$OTOOL64
  6768. # Extract the first word of "otool64", so it can be a program name with args.
  6769. set dummy otool64; ac_word=$2
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6771. $as_echo_n "checking for $ac_word... " >&6; }
  6772. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. if test -n "$ac_ct_OTOOL64"; then
  6776. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6777. else
  6778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6779. for as_dir in $PATH
  6780. do
  6781. IFS=$as_save_IFS
  6782. test -z "$as_dir" && as_dir=.
  6783. for ac_exec_ext in '' $ac_executable_extensions; do
  6784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6785. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6787. break 2
  6788. fi
  6789. done
  6790. done
  6791. IFS=$as_save_IFS
  6792. fi
  6793. fi
  6794. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6795. if test -n "$ac_ct_OTOOL64"; then
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6797. $as_echo "$ac_ct_OTOOL64" >&6; }
  6798. else
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6800. $as_echo "no" >&6; }
  6801. fi
  6802. if test "x$ac_ct_OTOOL64" = x; then
  6803. OTOOL64=":"
  6804. else
  6805. case $cross_compiling:$ac_tool_warned in
  6806. yes:)
  6807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6808. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6809. ac_tool_warned=yes ;;
  6810. esac
  6811. OTOOL64=$ac_ct_OTOOL64
  6812. fi
  6813. else
  6814. OTOOL64="$ac_cv_prog_OTOOL64"
  6815. fi
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6817. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6818. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6819. $as_echo_n "(cached) " >&6
  6820. else
  6821. lt_cv_apple_cc_single_mod=no
  6822. if test -z "${LT_MULTI_MODULE}"; then
  6823. # By default we will add the -single_module flag. You can override
  6824. # by either setting the environment variable LT_MULTI_MODULE
  6825. # non-empty at configure time, or by adding -multi_module to the
  6826. # link flags.
  6827. rm -rf libconftest.dylib*
  6828. echo "int foo(void){return 1;}" > conftest.c
  6829. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6830. -dynamiclib -Wl,-single_module conftest.c" >&5
  6831. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6832. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6833. _lt_result=$?
  6834. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6835. lt_cv_apple_cc_single_mod=yes
  6836. else
  6837. cat conftest.err >&5
  6838. fi
  6839. rm -rf libconftest.dylib*
  6840. rm -f conftest.*
  6841. fi
  6842. fi
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6844. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6846. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6847. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6848. $as_echo_n "(cached) " >&6
  6849. else
  6850. lt_cv_ld_exported_symbols_list=no
  6851. save_LDFLAGS=$LDFLAGS
  6852. echo "_main" > conftest.sym
  6853. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6855. /* end confdefs.h. */
  6856. int
  6857. main ()
  6858. {
  6859. ;
  6860. return 0;
  6861. }
  6862. _ACEOF
  6863. if ac_fn_c_try_link "$LINENO"; then :
  6864. lt_cv_ld_exported_symbols_list=yes
  6865. else
  6866. lt_cv_ld_exported_symbols_list=no
  6867. fi
  6868. rm -f core conftest.err conftest.$ac_objext \
  6869. conftest$ac_exeext conftest.$ac_ext
  6870. LDFLAGS="$save_LDFLAGS"
  6871. fi
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6873. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6875. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6876. if ${lt_cv_ld_force_load+:} false; then :
  6877. $as_echo_n "(cached) " >&6
  6878. else
  6879. lt_cv_ld_force_load=no
  6880. cat > conftest.c << _LT_EOF
  6881. int forced_loaded() { return 2;}
  6882. _LT_EOF
  6883. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6884. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6885. echo "$AR cru libconftest.a conftest.o" >&5
  6886. $AR cru libconftest.a conftest.o 2>&5
  6887. cat > conftest.c << _LT_EOF
  6888. int main() { return 0;}
  6889. _LT_EOF
  6890. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6891. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6892. _lt_result=$?
  6893. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6894. lt_cv_ld_force_load=yes
  6895. else
  6896. cat conftest.err >&5
  6897. fi
  6898. rm -f conftest.err libconftest.a conftest conftest.c
  6899. rm -rf conftest.dSYM
  6900. fi
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6902. $as_echo "$lt_cv_ld_force_load" >&6; }
  6903. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6904. # build without first building modern cctools / linker.
  6905. case $host_cpu-$host_os in
  6906. *-rhapsody* | *-darwin1.[012])
  6907. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6908. *-darwin1.*)
  6909. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6910. *-darwin*)
  6911. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6912. # deployment target is forced to an earlier version.
  6913. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6914. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6915. ;;
  6916. 10.[012][,.]*)
  6917. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6918. ;;
  6919. *)
  6920. ;;
  6921. esac
  6922. ;;
  6923. esac
  6924. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6925. _lt_dar_single_mod='$single_module'
  6926. fi
  6927. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6928. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6929. else
  6930. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6931. fi
  6932. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6933. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6934. else
  6935. _lt_dsymutil=
  6936. fi
  6937. ;;
  6938. esac
  6939. ac_ext=c
  6940. ac_cpp='$CPP $CPPFLAGS'
  6941. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6942. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6943. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6945. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6946. # On Suns, sometimes $CPP names a directory.
  6947. if test -n "$CPP" && test -d "$CPP"; then
  6948. CPP=
  6949. fi
  6950. if test -z "$CPP"; then
  6951. if ${ac_cv_prog_CPP+:} false; then :
  6952. $as_echo_n "(cached) " >&6
  6953. else
  6954. # Double quotes because CPP needs to be expanded
  6955. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6956. do
  6957. ac_preproc_ok=false
  6958. for ac_c_preproc_warn_flag in '' yes
  6959. do
  6960. # Use a header file that comes with gcc, so configuring glibc
  6961. # with a fresh cross-compiler works.
  6962. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6963. # <limits.h> exists even on freestanding compilers.
  6964. # On the NeXT, cc -E runs the code through the compiler's parser,
  6965. # not just through cpp. "Syntax error" is here to catch this case.
  6966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6967. /* end confdefs.h. */
  6968. #ifdef __STDC__
  6969. # include <limits.h>
  6970. #else
  6971. # include <assert.h>
  6972. #endif
  6973. Syntax error
  6974. _ACEOF
  6975. if ac_fn_c_try_cpp "$LINENO"; then :
  6976. else
  6977. # Broken: fails on valid input.
  6978. continue
  6979. fi
  6980. rm -f conftest.err conftest.i conftest.$ac_ext
  6981. # OK, works on sane cases. Now check whether nonexistent headers
  6982. # can be detected and how.
  6983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6984. /* end confdefs.h. */
  6985. #include <ac_nonexistent.h>
  6986. _ACEOF
  6987. if ac_fn_c_try_cpp "$LINENO"; then :
  6988. # Broken: success on invalid input.
  6989. continue
  6990. else
  6991. # Passes both tests.
  6992. ac_preproc_ok=:
  6993. break
  6994. fi
  6995. rm -f conftest.err conftest.i conftest.$ac_ext
  6996. done
  6997. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6998. rm -f conftest.i conftest.err conftest.$ac_ext
  6999. if $ac_preproc_ok; then :
  7000. break
  7001. fi
  7002. done
  7003. ac_cv_prog_CPP=$CPP
  7004. fi
  7005. CPP=$ac_cv_prog_CPP
  7006. else
  7007. ac_cv_prog_CPP=$CPP
  7008. fi
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7010. $as_echo "$CPP" >&6; }
  7011. ac_preproc_ok=false
  7012. for ac_c_preproc_warn_flag in '' yes
  7013. do
  7014. # Use a header file that comes with gcc, so configuring glibc
  7015. # with a fresh cross-compiler works.
  7016. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7017. # <limits.h> exists even on freestanding compilers.
  7018. # On the NeXT, cc -E runs the code through the compiler's parser,
  7019. # not just through cpp. "Syntax error" is here to catch this case.
  7020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7021. /* end confdefs.h. */
  7022. #ifdef __STDC__
  7023. # include <limits.h>
  7024. #else
  7025. # include <assert.h>
  7026. #endif
  7027. Syntax error
  7028. _ACEOF
  7029. if ac_fn_c_try_cpp "$LINENO"; then :
  7030. else
  7031. # Broken: fails on valid input.
  7032. continue
  7033. fi
  7034. rm -f conftest.err conftest.i conftest.$ac_ext
  7035. # OK, works on sane cases. Now check whether nonexistent headers
  7036. # can be detected and how.
  7037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7038. /* end confdefs.h. */
  7039. #include <ac_nonexistent.h>
  7040. _ACEOF
  7041. if ac_fn_c_try_cpp "$LINENO"; then :
  7042. # Broken: success on invalid input.
  7043. continue
  7044. else
  7045. # Passes both tests.
  7046. ac_preproc_ok=:
  7047. break
  7048. fi
  7049. rm -f conftest.err conftest.i conftest.$ac_ext
  7050. done
  7051. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7052. rm -f conftest.i conftest.err conftest.$ac_ext
  7053. if $ac_preproc_ok; then :
  7054. else
  7055. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7056. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7057. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7058. See \`config.log' for more details" "$LINENO" 5; }
  7059. fi
  7060. ac_ext=c
  7061. ac_cpp='$CPP $CPPFLAGS'
  7062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7066. $as_echo_n "checking for ANSI C header files... " >&6; }
  7067. if ${ac_cv_header_stdc+:} false; then :
  7068. $as_echo_n "(cached) " >&6
  7069. else
  7070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7071. /* end confdefs.h. */
  7072. #include <stdlib.h>
  7073. #include <stdarg.h>
  7074. #include <string.h>
  7075. #include <float.h>
  7076. int
  7077. main ()
  7078. {
  7079. ;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. if ac_fn_c_try_compile "$LINENO"; then :
  7084. ac_cv_header_stdc=yes
  7085. else
  7086. ac_cv_header_stdc=no
  7087. fi
  7088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7089. if test $ac_cv_header_stdc = yes; then
  7090. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7092. /* end confdefs.h. */
  7093. #include <string.h>
  7094. _ACEOF
  7095. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7096. $EGREP "memchr" >/dev/null 2>&1; then :
  7097. else
  7098. ac_cv_header_stdc=no
  7099. fi
  7100. rm -f conftest*
  7101. fi
  7102. if test $ac_cv_header_stdc = yes; then
  7103. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7105. /* end confdefs.h. */
  7106. #include <stdlib.h>
  7107. _ACEOF
  7108. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7109. $EGREP "free" >/dev/null 2>&1; then :
  7110. else
  7111. ac_cv_header_stdc=no
  7112. fi
  7113. rm -f conftest*
  7114. fi
  7115. if test $ac_cv_header_stdc = yes; then
  7116. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7117. if test "$cross_compiling" = yes; then :
  7118. :
  7119. else
  7120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7121. /* end confdefs.h. */
  7122. #include <ctype.h>
  7123. #include <stdlib.h>
  7124. #if ((' ' & 0x0FF) == 0x020)
  7125. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7126. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7127. #else
  7128. # define ISLOWER(c) \
  7129. (('a' <= (c) && (c) <= 'i') \
  7130. || ('j' <= (c) && (c) <= 'r') \
  7131. || ('s' <= (c) && (c) <= 'z'))
  7132. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7133. #endif
  7134. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7135. int
  7136. main ()
  7137. {
  7138. int i;
  7139. for (i = 0; i < 256; i++)
  7140. if (XOR (islower (i), ISLOWER (i))
  7141. || toupper (i) != TOUPPER (i))
  7142. return 2;
  7143. return 0;
  7144. }
  7145. _ACEOF
  7146. if ac_fn_c_try_run "$LINENO"; then :
  7147. else
  7148. ac_cv_header_stdc=no
  7149. fi
  7150. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7151. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7152. fi
  7153. fi
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7156. $as_echo "$ac_cv_header_stdc" >&6; }
  7157. if test $ac_cv_header_stdc = yes; then
  7158. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7159. fi
  7160. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7161. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7162. inttypes.h stdint.h unistd.h
  7163. do :
  7164. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7165. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7166. "
  7167. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7168. cat >>confdefs.h <<_ACEOF
  7169. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7170. _ACEOF
  7171. fi
  7172. done
  7173. for ac_header in dlfcn.h
  7174. do :
  7175. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7176. "
  7177. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7178. cat >>confdefs.h <<_ACEOF
  7179. #define HAVE_DLFCN_H 1
  7180. _ACEOF
  7181. fi
  7182. done
  7183. # Set options
  7184. enable_dlopen=no
  7185. enable_win32_dll=no
  7186. # Check whether --enable-shared was given.
  7187. if test "${enable_shared+set}" = set; then :
  7188. enableval=$enable_shared; p=${PACKAGE-default}
  7189. case $enableval in
  7190. yes) enable_shared=yes ;;
  7191. no) enable_shared=no ;;
  7192. *)
  7193. enable_shared=no
  7194. # Look at the argument we got. We use all the common list separators.
  7195. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7196. for pkg in $enableval; do
  7197. IFS="$lt_save_ifs"
  7198. if test "X$pkg" = "X$p"; then
  7199. enable_shared=yes
  7200. fi
  7201. done
  7202. IFS="$lt_save_ifs"
  7203. ;;
  7204. esac
  7205. else
  7206. enable_shared=yes
  7207. fi
  7208. # Check whether --enable-static was given.
  7209. if test "${enable_static+set}" = set; then :
  7210. enableval=$enable_static; p=${PACKAGE-default}
  7211. case $enableval in
  7212. yes) enable_static=yes ;;
  7213. no) enable_static=no ;;
  7214. *)
  7215. enable_static=no
  7216. # Look at the argument we got. We use all the common list separators.
  7217. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7218. for pkg in $enableval; do
  7219. IFS="$lt_save_ifs"
  7220. if test "X$pkg" = "X$p"; then
  7221. enable_static=yes
  7222. fi
  7223. done
  7224. IFS="$lt_save_ifs"
  7225. ;;
  7226. esac
  7227. else
  7228. enable_static=yes
  7229. fi
  7230. # Check whether --with-pic was given.
  7231. if test "${with_pic+set}" = set; then :
  7232. withval=$with_pic; pic_mode="$withval"
  7233. else
  7234. pic_mode=default
  7235. fi
  7236. test -z "$pic_mode" && pic_mode=default
  7237. # Check whether --enable-fast-install was given.
  7238. if test "${enable_fast_install+set}" = set; then :
  7239. enableval=$enable_fast_install; p=${PACKAGE-default}
  7240. case $enableval in
  7241. yes) enable_fast_install=yes ;;
  7242. no) enable_fast_install=no ;;
  7243. *)
  7244. enable_fast_install=no
  7245. # Look at the argument we got. We use all the common list separators.
  7246. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7247. for pkg in $enableval; do
  7248. IFS="$lt_save_ifs"
  7249. if test "X$pkg" = "X$p"; then
  7250. enable_fast_install=yes
  7251. fi
  7252. done
  7253. IFS="$lt_save_ifs"
  7254. ;;
  7255. esac
  7256. else
  7257. enable_fast_install=yes
  7258. fi
  7259. # This can be used to rebuild libtool when needed
  7260. LIBTOOL_DEPS="$ltmain"
  7261. # Always use our own libtool.
  7262. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7263. test -z "$LN_S" && LN_S="ln -s"
  7264. if test -n "${ZSH_VERSION+set}" ; then
  7265. setopt NO_GLOB_SUBST
  7266. fi
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7268. $as_echo_n "checking for objdir... " >&6; }
  7269. if ${lt_cv_objdir+:} false; then :
  7270. $as_echo_n "(cached) " >&6
  7271. else
  7272. rm -f .libs 2>/dev/null
  7273. mkdir .libs 2>/dev/null
  7274. if test -d .libs; then
  7275. lt_cv_objdir=.libs
  7276. else
  7277. # MS-DOS does not allow filenames that begin with a dot.
  7278. lt_cv_objdir=_libs
  7279. fi
  7280. rmdir .libs 2>/dev/null
  7281. fi
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7283. $as_echo "$lt_cv_objdir" >&6; }
  7284. objdir=$lt_cv_objdir
  7285. cat >>confdefs.h <<_ACEOF
  7286. #define LT_OBJDIR "$lt_cv_objdir/"
  7287. _ACEOF
  7288. case $host_os in
  7289. aix3*)
  7290. # AIX sometimes has problems with the GCC collect2 program. For some
  7291. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7292. # vanish in a puff of smoke.
  7293. if test "X${COLLECT_NAMES+set}" != Xset; then
  7294. COLLECT_NAMES=
  7295. export COLLECT_NAMES
  7296. fi
  7297. ;;
  7298. esac
  7299. # Global variables:
  7300. ofile=libtool
  7301. can_build_shared=yes
  7302. # All known linkers require a `.a' archive for static linking (except MSVC,
  7303. # which needs '.lib').
  7304. libext=a
  7305. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7306. old_CC="$CC"
  7307. old_CFLAGS="$CFLAGS"
  7308. # Set sane defaults for various variables
  7309. test -z "$CC" && CC=cc
  7310. test -z "$LTCC" && LTCC=$CC
  7311. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7312. test -z "$LD" && LD=ld
  7313. test -z "$ac_objext" && ac_objext=o
  7314. for cc_temp in $compiler""; do
  7315. case $cc_temp in
  7316. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7317. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7318. \-*) ;;
  7319. *) break;;
  7320. esac
  7321. done
  7322. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7323. # Only perform the check for file, if the check method requires it
  7324. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7325. case $deplibs_check_method in
  7326. file_magic*)
  7327. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7329. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7330. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. case $MAGIC_CMD in
  7334. [\\/*] | ?:[\\/]*)
  7335. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7336. ;;
  7337. *)
  7338. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7339. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7340. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7341. for ac_dir in $ac_dummy; do
  7342. IFS="$lt_save_ifs"
  7343. test -z "$ac_dir" && ac_dir=.
  7344. if test -f $ac_dir/${ac_tool_prefix}file; then
  7345. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7346. if test -n "$file_magic_test_file"; then
  7347. case $deplibs_check_method in
  7348. "file_magic "*)
  7349. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7350. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7351. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7352. $EGREP "$file_magic_regex" > /dev/null; then
  7353. :
  7354. else
  7355. cat <<_LT_EOF 1>&2
  7356. *** Warning: the command libtool uses to detect shared libraries,
  7357. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7358. *** The result is that libtool may fail to recognize shared libraries
  7359. *** as such. This will affect the creation of libtool libraries that
  7360. *** depend on shared libraries, but programs linked with such libtool
  7361. *** libraries will work regardless of this problem. Nevertheless, you
  7362. *** may want to report the problem to your system manager and/or to
  7363. *** bug-libtool@gnu.org
  7364. _LT_EOF
  7365. fi ;;
  7366. esac
  7367. fi
  7368. break
  7369. fi
  7370. done
  7371. IFS="$lt_save_ifs"
  7372. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7373. ;;
  7374. esac
  7375. fi
  7376. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7377. if test -n "$MAGIC_CMD"; then
  7378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7379. $as_echo "$MAGIC_CMD" >&6; }
  7380. else
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7382. $as_echo "no" >&6; }
  7383. fi
  7384. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7385. if test -n "$ac_tool_prefix"; then
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7387. $as_echo_n "checking for file... " >&6; }
  7388. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7389. $as_echo_n "(cached) " >&6
  7390. else
  7391. case $MAGIC_CMD in
  7392. [\\/*] | ?:[\\/]*)
  7393. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7394. ;;
  7395. *)
  7396. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7397. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7398. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7399. for ac_dir in $ac_dummy; do
  7400. IFS="$lt_save_ifs"
  7401. test -z "$ac_dir" && ac_dir=.
  7402. if test -f $ac_dir/file; then
  7403. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7404. if test -n "$file_magic_test_file"; then
  7405. case $deplibs_check_method in
  7406. "file_magic "*)
  7407. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7408. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7409. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7410. $EGREP "$file_magic_regex" > /dev/null; then
  7411. :
  7412. else
  7413. cat <<_LT_EOF 1>&2
  7414. *** Warning: the command libtool uses to detect shared libraries,
  7415. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7416. *** The result is that libtool may fail to recognize shared libraries
  7417. *** as such. This will affect the creation of libtool libraries that
  7418. *** depend on shared libraries, but programs linked with such libtool
  7419. *** libraries will work regardless of this problem. Nevertheless, you
  7420. *** may want to report the problem to your system manager and/or to
  7421. *** bug-libtool@gnu.org
  7422. _LT_EOF
  7423. fi ;;
  7424. esac
  7425. fi
  7426. break
  7427. fi
  7428. done
  7429. IFS="$lt_save_ifs"
  7430. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7431. ;;
  7432. esac
  7433. fi
  7434. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7435. if test -n "$MAGIC_CMD"; then
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7437. $as_echo "$MAGIC_CMD" >&6; }
  7438. else
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7440. $as_echo "no" >&6; }
  7441. fi
  7442. else
  7443. MAGIC_CMD=:
  7444. fi
  7445. fi
  7446. fi
  7447. ;;
  7448. esac
  7449. # Use C for the default configuration in the libtool script
  7450. lt_save_CC="$CC"
  7451. ac_ext=c
  7452. ac_cpp='$CPP $CPPFLAGS'
  7453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7456. # Source file extension for C test sources.
  7457. ac_ext=c
  7458. # Object file extension for compiled C test sources.
  7459. objext=o
  7460. objext=$objext
  7461. # Code to be used in simple compile tests
  7462. lt_simple_compile_test_code="int some_variable = 0;"
  7463. # Code to be used in simple link tests
  7464. lt_simple_link_test_code='int main(){return(0);}'
  7465. # If no C compiler was specified, use CC.
  7466. LTCC=${LTCC-"$CC"}
  7467. # If no C compiler flags were specified, use CFLAGS.
  7468. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7469. # Allow CC to be a program name with arguments.
  7470. compiler=$CC
  7471. # Save the default compiler, since it gets overwritten when the other
  7472. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7473. compiler_DEFAULT=$CC
  7474. # save warnings/boilerplate of simple test code
  7475. ac_outfile=conftest.$ac_objext
  7476. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7477. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7478. _lt_compiler_boilerplate=`cat conftest.err`
  7479. $RM conftest*
  7480. ac_outfile=conftest.$ac_objext
  7481. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7482. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7483. _lt_linker_boilerplate=`cat conftest.err`
  7484. $RM -r conftest*
  7485. ## CAVEAT EMPTOR:
  7486. ## There is no encapsulation within the following macros, do not change
  7487. ## the running order or otherwise move them around unless you know exactly
  7488. ## what you are doing...
  7489. if test -n "$compiler"; then
  7490. lt_prog_compiler_no_builtin_flag=
  7491. if test "$GCC" = yes; then
  7492. case $cc_basename in
  7493. nvcc*)
  7494. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7495. *)
  7496. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7497. esac
  7498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7499. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7500. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7501. $as_echo_n "(cached) " >&6
  7502. else
  7503. lt_cv_prog_compiler_rtti_exceptions=no
  7504. ac_outfile=conftest.$ac_objext
  7505. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7506. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7507. # Insert the option either (1) after the last *FLAGS variable, or
  7508. # (2) before a word containing "conftest.", or (3) at the end.
  7509. # Note that $ac_compile itself does not contain backslashes and begins
  7510. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7511. # The option is referenced via a variable to avoid confusing sed.
  7512. lt_compile=`echo "$ac_compile" | $SED \
  7513. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7514. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7515. -e 's:$: $lt_compiler_flag:'`
  7516. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7517. (eval "$lt_compile" 2>conftest.err)
  7518. ac_status=$?
  7519. cat conftest.err >&5
  7520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7521. if (exit $ac_status) && test -s "$ac_outfile"; then
  7522. # The compiler can only warn and ignore the option if not recognized
  7523. # So say no if there are warnings other than the usual output.
  7524. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7525. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7526. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7527. lt_cv_prog_compiler_rtti_exceptions=yes
  7528. fi
  7529. fi
  7530. $RM conftest*
  7531. fi
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7533. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7534. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7535. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7536. else
  7537. :
  7538. fi
  7539. fi
  7540. lt_prog_compiler_wl=
  7541. lt_prog_compiler_pic=
  7542. lt_prog_compiler_static=
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7544. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7545. if test "$GCC" = yes; then
  7546. lt_prog_compiler_wl='-Wl,'
  7547. lt_prog_compiler_static='-static'
  7548. case $host_os in
  7549. aix*)
  7550. # All AIX code is PIC.
  7551. if test "$host_cpu" = ia64; then
  7552. # AIX 5 now supports IA64 processor
  7553. lt_prog_compiler_static='-Bstatic'
  7554. fi
  7555. lt_prog_compiler_pic='-fPIC'
  7556. ;;
  7557. amigaos*)
  7558. case $host_cpu in
  7559. powerpc)
  7560. # see comment about AmigaOS4 .so support
  7561. lt_prog_compiler_pic='-fPIC'
  7562. ;;
  7563. m68k)
  7564. # FIXME: we need at least 68020 code to build shared libraries, but
  7565. # adding the `-m68020' flag to GCC prevents building anything better,
  7566. # like `-m68040'.
  7567. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7568. ;;
  7569. esac
  7570. ;;
  7571. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7572. # PIC is the default for these OSes.
  7573. ;;
  7574. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7575. # This hack is so that the source file can tell whether it is being
  7576. # built for inclusion in a dll (and should export symbols for example).
  7577. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7578. # (--disable-auto-import) libraries
  7579. lt_prog_compiler_pic='-DDLL_EXPORT'
  7580. ;;
  7581. darwin* | rhapsody*)
  7582. # PIC is the default on this platform
  7583. # Common symbols not allowed in MH_DYLIB files
  7584. lt_prog_compiler_pic='-fno-common'
  7585. ;;
  7586. haiku*)
  7587. # PIC is the default for Haiku.
  7588. # The "-static" flag exists, but is broken.
  7589. lt_prog_compiler_static=
  7590. ;;
  7591. hpux*)
  7592. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7593. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7594. # sets the default TLS model and affects inlining.
  7595. case $host_cpu in
  7596. hppa*64*)
  7597. # +Z the default
  7598. ;;
  7599. *)
  7600. lt_prog_compiler_pic='-fPIC'
  7601. ;;
  7602. esac
  7603. ;;
  7604. interix[3-9]*)
  7605. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7606. # Instead, we relocate shared libraries at runtime.
  7607. ;;
  7608. msdosdjgpp*)
  7609. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7610. # on systems that don't support them.
  7611. lt_prog_compiler_can_build_shared=no
  7612. enable_shared=no
  7613. ;;
  7614. *nto* | *qnx*)
  7615. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7616. # it will coredump.
  7617. lt_prog_compiler_pic='-fPIC -shared'
  7618. ;;
  7619. sysv4*MP*)
  7620. if test -d /usr/nec; then
  7621. lt_prog_compiler_pic=-Kconform_pic
  7622. fi
  7623. ;;
  7624. *)
  7625. lt_prog_compiler_pic='-fPIC'
  7626. ;;
  7627. esac
  7628. case $cc_basename in
  7629. nvcc*) # Cuda Compiler Driver 2.2
  7630. lt_prog_compiler_wl='-Xlinker '
  7631. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7632. ;;
  7633. esac
  7634. else
  7635. # PORTME Check for flag to pass linker flags through the system compiler.
  7636. case $host_os in
  7637. aix*)
  7638. lt_prog_compiler_wl='-Wl,'
  7639. if test "$host_cpu" = ia64; then
  7640. # AIX 5 now supports IA64 processor
  7641. lt_prog_compiler_static='-Bstatic'
  7642. else
  7643. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7644. fi
  7645. ;;
  7646. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7647. # This hack is so that the source file can tell whether it is being
  7648. # built for inclusion in a dll (and should export symbols for example).
  7649. lt_prog_compiler_pic='-DDLL_EXPORT'
  7650. ;;
  7651. hpux9* | hpux10* | hpux11*)
  7652. lt_prog_compiler_wl='-Wl,'
  7653. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7654. # not for PA HP-UX.
  7655. case $host_cpu in
  7656. hppa*64*|ia64*)
  7657. # +Z the default
  7658. ;;
  7659. *)
  7660. lt_prog_compiler_pic='+Z'
  7661. ;;
  7662. esac
  7663. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7664. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7665. ;;
  7666. irix5* | irix6* | nonstopux*)
  7667. lt_prog_compiler_wl='-Wl,'
  7668. # PIC (with -KPIC) is the default.
  7669. lt_prog_compiler_static='-non_shared'
  7670. ;;
  7671. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7672. case $cc_basename in
  7673. # old Intel for x86_64 which still supported -KPIC.
  7674. ecc*)
  7675. lt_prog_compiler_wl='-Wl,'
  7676. lt_prog_compiler_pic='-KPIC'
  7677. lt_prog_compiler_static='-static'
  7678. ;;
  7679. # icc used to be incompatible with GCC.
  7680. # ICC 10 doesn't accept -KPIC any more.
  7681. icc* | ifort*)
  7682. lt_prog_compiler_wl='-Wl,'
  7683. lt_prog_compiler_pic='-fPIC'
  7684. lt_prog_compiler_static='-static'
  7685. ;;
  7686. # Lahey Fortran 8.1.
  7687. lf95*)
  7688. lt_prog_compiler_wl='-Wl,'
  7689. lt_prog_compiler_pic='--shared'
  7690. lt_prog_compiler_static='--static'
  7691. ;;
  7692. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7693. # Portland Group compilers (*not* the Pentium gcc compiler,
  7694. # which looks to be a dead project)
  7695. lt_prog_compiler_wl='-Wl,'
  7696. lt_prog_compiler_pic='-fpic'
  7697. lt_prog_compiler_static='-Bstatic'
  7698. ;;
  7699. ccc*)
  7700. lt_prog_compiler_wl='-Wl,'
  7701. # All Alpha code is PIC.
  7702. lt_prog_compiler_static='-non_shared'
  7703. ;;
  7704. xl* | bgxl* | bgf* | mpixl*)
  7705. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7706. lt_prog_compiler_wl='-Wl,'
  7707. lt_prog_compiler_pic='-qpic'
  7708. lt_prog_compiler_static='-qstaticlink'
  7709. ;;
  7710. *)
  7711. case `$CC -V 2>&1 | sed 5q` in
  7712. *Sun\ F* | *Sun*Fortran*)
  7713. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7714. lt_prog_compiler_pic='-KPIC'
  7715. lt_prog_compiler_static='-Bstatic'
  7716. lt_prog_compiler_wl=''
  7717. ;;
  7718. *Sun\ C*)
  7719. # Sun C 5.9
  7720. lt_prog_compiler_pic='-KPIC'
  7721. lt_prog_compiler_static='-Bstatic'
  7722. lt_prog_compiler_wl='-Wl,'
  7723. ;;
  7724. esac
  7725. ;;
  7726. esac
  7727. ;;
  7728. newsos6)
  7729. lt_prog_compiler_pic='-KPIC'
  7730. lt_prog_compiler_static='-Bstatic'
  7731. ;;
  7732. *nto* | *qnx*)
  7733. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7734. # it will coredump.
  7735. lt_prog_compiler_pic='-fPIC -shared'
  7736. ;;
  7737. osf3* | osf4* | osf5*)
  7738. lt_prog_compiler_wl='-Wl,'
  7739. # All OSF/1 code is PIC.
  7740. lt_prog_compiler_static='-non_shared'
  7741. ;;
  7742. rdos*)
  7743. lt_prog_compiler_static='-non_shared'
  7744. ;;
  7745. solaris*)
  7746. lt_prog_compiler_pic='-KPIC'
  7747. lt_prog_compiler_static='-Bstatic'
  7748. case $cc_basename in
  7749. f77* | f90* | f95*)
  7750. lt_prog_compiler_wl='-Qoption ld ';;
  7751. *)
  7752. lt_prog_compiler_wl='-Wl,';;
  7753. esac
  7754. ;;
  7755. sunos4*)
  7756. lt_prog_compiler_wl='-Qoption ld '
  7757. lt_prog_compiler_pic='-PIC'
  7758. lt_prog_compiler_static='-Bstatic'
  7759. ;;
  7760. sysv4 | sysv4.2uw2* | sysv4.3*)
  7761. lt_prog_compiler_wl='-Wl,'
  7762. lt_prog_compiler_pic='-KPIC'
  7763. lt_prog_compiler_static='-Bstatic'
  7764. ;;
  7765. sysv4*MP*)
  7766. if test -d /usr/nec ;then
  7767. lt_prog_compiler_pic='-Kconform_pic'
  7768. lt_prog_compiler_static='-Bstatic'
  7769. fi
  7770. ;;
  7771. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7772. lt_prog_compiler_wl='-Wl,'
  7773. lt_prog_compiler_pic='-KPIC'
  7774. lt_prog_compiler_static='-Bstatic'
  7775. ;;
  7776. unicos*)
  7777. lt_prog_compiler_wl='-Wl,'
  7778. lt_prog_compiler_can_build_shared=no
  7779. ;;
  7780. uts4*)
  7781. lt_prog_compiler_pic='-pic'
  7782. lt_prog_compiler_static='-Bstatic'
  7783. ;;
  7784. *)
  7785. lt_prog_compiler_can_build_shared=no
  7786. ;;
  7787. esac
  7788. fi
  7789. case $host_os in
  7790. # For platforms which do not support PIC, -DPIC is meaningless:
  7791. *djgpp*)
  7792. lt_prog_compiler_pic=
  7793. ;;
  7794. *)
  7795. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7796. ;;
  7797. esac
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7799. $as_echo "$lt_prog_compiler_pic" >&6; }
  7800. #
  7801. # Check to make sure the PIC flag actually works.
  7802. #
  7803. if test -n "$lt_prog_compiler_pic"; then
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7805. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7806. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7807. $as_echo_n "(cached) " >&6
  7808. else
  7809. lt_cv_prog_compiler_pic_works=no
  7810. ac_outfile=conftest.$ac_objext
  7811. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7812. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7813. # Insert the option either (1) after the last *FLAGS variable, or
  7814. # (2) before a word containing "conftest.", or (3) at the end.
  7815. # Note that $ac_compile itself does not contain backslashes and begins
  7816. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7817. # The option is referenced via a variable to avoid confusing sed.
  7818. lt_compile=`echo "$ac_compile" | $SED \
  7819. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7820. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7821. -e 's:$: $lt_compiler_flag:'`
  7822. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7823. (eval "$lt_compile" 2>conftest.err)
  7824. ac_status=$?
  7825. cat conftest.err >&5
  7826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7827. if (exit $ac_status) && test -s "$ac_outfile"; then
  7828. # The compiler can only warn and ignore the option if not recognized
  7829. # So say no if there are warnings other than the usual output.
  7830. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7831. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7832. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7833. lt_cv_prog_compiler_pic_works=yes
  7834. fi
  7835. fi
  7836. $RM conftest*
  7837. fi
  7838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7839. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7840. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7841. case $lt_prog_compiler_pic in
  7842. "" | " "*) ;;
  7843. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7844. esac
  7845. else
  7846. lt_prog_compiler_pic=
  7847. lt_prog_compiler_can_build_shared=no
  7848. fi
  7849. fi
  7850. #
  7851. # Check to make sure the static flag actually works.
  7852. #
  7853. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7855. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7856. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7857. $as_echo_n "(cached) " >&6
  7858. else
  7859. lt_cv_prog_compiler_static_works=no
  7860. save_LDFLAGS="$LDFLAGS"
  7861. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7862. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7863. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7864. # The linker can only warn and ignore the option if not recognized
  7865. # So say no if there are warnings
  7866. if test -s conftest.err; then
  7867. # Append any errors to the config.log.
  7868. cat conftest.err 1>&5
  7869. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7870. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7871. if diff conftest.exp conftest.er2 >/dev/null; then
  7872. lt_cv_prog_compiler_static_works=yes
  7873. fi
  7874. else
  7875. lt_cv_prog_compiler_static_works=yes
  7876. fi
  7877. fi
  7878. $RM -r conftest*
  7879. LDFLAGS="$save_LDFLAGS"
  7880. fi
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7882. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7883. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7884. :
  7885. else
  7886. lt_prog_compiler_static=
  7887. fi
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7889. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7890. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7891. $as_echo_n "(cached) " >&6
  7892. else
  7893. lt_cv_prog_compiler_c_o=no
  7894. $RM -r conftest 2>/dev/null
  7895. mkdir conftest
  7896. cd conftest
  7897. mkdir out
  7898. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7899. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7900. # Insert the option either (1) after the last *FLAGS variable, or
  7901. # (2) before a word containing "conftest.", or (3) at the end.
  7902. # Note that $ac_compile itself does not contain backslashes and begins
  7903. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7904. lt_compile=`echo "$ac_compile" | $SED \
  7905. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7906. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7907. -e 's:$: $lt_compiler_flag:'`
  7908. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7909. (eval "$lt_compile" 2>out/conftest.err)
  7910. ac_status=$?
  7911. cat out/conftest.err >&5
  7912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7913. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7914. then
  7915. # The compiler can only warn and ignore the option if not recognized
  7916. # So say no if there are warnings
  7917. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7918. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7919. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7920. lt_cv_prog_compiler_c_o=yes
  7921. fi
  7922. fi
  7923. chmod u+w . 2>&5
  7924. $RM conftest*
  7925. # SGI C++ compiler will create directory out/ii_files/ for
  7926. # template instantiation
  7927. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7928. $RM out/* && rmdir out
  7929. cd ..
  7930. $RM -r conftest
  7931. $RM conftest*
  7932. fi
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7934. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7936. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7937. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7938. $as_echo_n "(cached) " >&6
  7939. else
  7940. lt_cv_prog_compiler_c_o=no
  7941. $RM -r conftest 2>/dev/null
  7942. mkdir conftest
  7943. cd conftest
  7944. mkdir out
  7945. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7946. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7947. # Insert the option either (1) after the last *FLAGS variable, or
  7948. # (2) before a word containing "conftest.", or (3) at the end.
  7949. # Note that $ac_compile itself does not contain backslashes and begins
  7950. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7951. lt_compile=`echo "$ac_compile" | $SED \
  7952. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7953. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7954. -e 's:$: $lt_compiler_flag:'`
  7955. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7956. (eval "$lt_compile" 2>out/conftest.err)
  7957. ac_status=$?
  7958. cat out/conftest.err >&5
  7959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7960. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7961. then
  7962. # The compiler can only warn and ignore the option if not recognized
  7963. # So say no if there are warnings
  7964. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7965. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7966. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7967. lt_cv_prog_compiler_c_o=yes
  7968. fi
  7969. fi
  7970. chmod u+w . 2>&5
  7971. $RM conftest*
  7972. # SGI C++ compiler will create directory out/ii_files/ for
  7973. # template instantiation
  7974. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7975. $RM out/* && rmdir out
  7976. cd ..
  7977. $RM -r conftest
  7978. $RM conftest*
  7979. fi
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7981. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7982. hard_links="nottested"
  7983. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7984. # do not overwrite the value of need_locks provided by the user
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7986. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7987. hard_links=yes
  7988. $RM conftest*
  7989. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7990. touch conftest.a
  7991. ln conftest.a conftest.b 2>&5 || hard_links=no
  7992. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7994. $as_echo "$hard_links" >&6; }
  7995. if test "$hard_links" = no; then
  7996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7997. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7998. need_locks=warn
  7999. fi
  8000. else
  8001. need_locks=no
  8002. fi
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8004. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8005. runpath_var=
  8006. allow_undefined_flag=
  8007. always_export_symbols=no
  8008. archive_cmds=
  8009. archive_expsym_cmds=
  8010. compiler_needs_object=no
  8011. enable_shared_with_static_runtimes=no
  8012. export_dynamic_flag_spec=
  8013. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8014. hardcode_automatic=no
  8015. hardcode_direct=no
  8016. hardcode_direct_absolute=no
  8017. hardcode_libdir_flag_spec=
  8018. hardcode_libdir_flag_spec_ld=
  8019. hardcode_libdir_separator=
  8020. hardcode_minus_L=no
  8021. hardcode_shlibpath_var=unsupported
  8022. inherit_rpath=no
  8023. link_all_deplibs=unknown
  8024. module_cmds=
  8025. module_expsym_cmds=
  8026. old_archive_from_new_cmds=
  8027. old_archive_from_expsyms_cmds=
  8028. thread_safe_flag_spec=
  8029. whole_archive_flag_spec=
  8030. # include_expsyms should be a list of space-separated symbols to be *always*
  8031. # included in the symbol list
  8032. include_expsyms=
  8033. # exclude_expsyms can be an extended regexp of symbols to exclude
  8034. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8035. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8036. # as well as any symbol that contains `d'.
  8037. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8038. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8039. # platforms (ab)use it in PIC code, but their linkers get confused if
  8040. # the symbol is explicitly referenced. Since portable code cannot
  8041. # rely on this symbol name, it's probably fine to never include it in
  8042. # preloaded symbol tables.
  8043. # Exclude shared library initialization/finalization symbols.
  8044. extract_expsyms_cmds=
  8045. case $host_os in
  8046. cygwin* | mingw* | pw32* | cegcc*)
  8047. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8048. # When not using gcc, we currently assume that we are using
  8049. # Microsoft Visual C++.
  8050. if test "$GCC" != yes; then
  8051. with_gnu_ld=no
  8052. fi
  8053. ;;
  8054. interix*)
  8055. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8056. with_gnu_ld=yes
  8057. ;;
  8058. openbsd*)
  8059. with_gnu_ld=no
  8060. ;;
  8061. esac
  8062. ld_shlibs=yes
  8063. # On some targets, GNU ld is compatible enough with the native linker
  8064. # that we're better off using the native interface for both.
  8065. lt_use_gnu_ld_interface=no
  8066. if test "$with_gnu_ld" = yes; then
  8067. case $host_os in
  8068. aix*)
  8069. # The AIX port of GNU ld has always aspired to compatibility
  8070. # with the native linker. However, as the warning in the GNU ld
  8071. # block says, versions before 2.19.5* couldn't really create working
  8072. # shared libraries, regardless of the interface used.
  8073. case `$LD -v 2>&1` in
  8074. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8075. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8076. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8077. *)
  8078. lt_use_gnu_ld_interface=yes
  8079. ;;
  8080. esac
  8081. ;;
  8082. *)
  8083. lt_use_gnu_ld_interface=yes
  8084. ;;
  8085. esac
  8086. fi
  8087. if test "$lt_use_gnu_ld_interface" = yes; then
  8088. # If archive_cmds runs LD, not CC, wlarc should be empty
  8089. wlarc='${wl}'
  8090. # Set some defaults for GNU ld with shared library support. These
  8091. # are reset later if shared libraries are not supported. Putting them
  8092. # here allows them to be overridden if necessary.
  8093. runpath_var=LD_RUN_PATH
  8094. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8095. export_dynamic_flag_spec='${wl}--export-dynamic'
  8096. # ancient GNU ld didn't support --whole-archive et. al.
  8097. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8098. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8099. else
  8100. whole_archive_flag_spec=
  8101. fi
  8102. supports_anon_versioning=no
  8103. case `$LD -v 2>&1` in
  8104. *GNU\ gold*) supports_anon_versioning=yes ;;
  8105. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8106. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8107. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8108. *\ 2.11.*) ;; # other 2.11 versions
  8109. *) supports_anon_versioning=yes ;;
  8110. esac
  8111. # See if GNU ld supports shared libraries.
  8112. case $host_os in
  8113. aix[3-9]*)
  8114. # On AIX/PPC, the GNU linker is very broken
  8115. if test "$host_cpu" != ia64; then
  8116. ld_shlibs=no
  8117. cat <<_LT_EOF 1>&2
  8118. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8119. *** to be unable to reliably create shared libraries on AIX.
  8120. *** Therefore, libtool is disabling shared libraries support. If you
  8121. *** really care for shared libraries, you may want to install binutils
  8122. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8123. *** You will then need to restart the configuration process.
  8124. _LT_EOF
  8125. fi
  8126. ;;
  8127. amigaos*)
  8128. case $host_cpu in
  8129. powerpc)
  8130. # see comment about AmigaOS4 .so support
  8131. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8132. archive_expsym_cmds=''
  8133. ;;
  8134. m68k)
  8135. 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)'
  8136. hardcode_libdir_flag_spec='-L$libdir'
  8137. hardcode_minus_L=yes
  8138. ;;
  8139. esac
  8140. ;;
  8141. beos*)
  8142. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8143. allow_undefined_flag=unsupported
  8144. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8145. # support --undefined. This deserves some investigation. FIXME
  8146. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8147. else
  8148. ld_shlibs=no
  8149. fi
  8150. ;;
  8151. cygwin* | mingw* | pw32* | cegcc*)
  8152. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8153. # as there is no search path for DLLs.
  8154. hardcode_libdir_flag_spec='-L$libdir'
  8155. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8156. allow_undefined_flag=unsupported
  8157. always_export_symbols=no
  8158. enable_shared_with_static_runtimes=yes
  8159. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8160. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8161. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8162. # If the export-symbols file already is a .def file (1st line
  8163. # is EXPORTS), use it as is; otherwise, prepend...
  8164. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8165. cp $export_symbols $output_objdir/$soname.def;
  8166. else
  8167. echo EXPORTS > $output_objdir/$soname.def;
  8168. cat $export_symbols >> $output_objdir/$soname.def;
  8169. fi~
  8170. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8171. else
  8172. ld_shlibs=no
  8173. fi
  8174. ;;
  8175. haiku*)
  8176. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8177. link_all_deplibs=yes
  8178. ;;
  8179. interix[3-9]*)
  8180. hardcode_direct=no
  8181. hardcode_shlibpath_var=no
  8182. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8183. export_dynamic_flag_spec='${wl}-E'
  8184. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8185. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8186. # default) and relocated if they conflict, which is a slow very memory
  8187. # consuming and fragmenting process. To avoid this, we pick a random,
  8188. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8189. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8190. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8191. 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'
  8192. ;;
  8193. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8194. tmp_diet=no
  8195. if test "$host_os" = linux-dietlibc; then
  8196. case $cc_basename in
  8197. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8198. esac
  8199. fi
  8200. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8201. && test "$tmp_diet" = no
  8202. then
  8203. tmp_addflag=' $pic_flag'
  8204. tmp_sharedflag='-shared'
  8205. case $cc_basename,$host_cpu in
  8206. pgcc*) # Portland Group C compiler
  8207. 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'
  8208. tmp_addflag=' $pic_flag'
  8209. ;;
  8210. pgf77* | pgf90* | pgf95* | pgfortran*)
  8211. # Portland Group f77 and f90 compilers
  8212. 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'
  8213. tmp_addflag=' $pic_flag -Mnomain' ;;
  8214. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8215. tmp_addflag=' -i_dynamic' ;;
  8216. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8217. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8218. ifc* | ifort*) # Intel Fortran compiler
  8219. tmp_addflag=' -nofor_main' ;;
  8220. lf95*) # Lahey Fortran 8.1
  8221. whole_archive_flag_spec=
  8222. tmp_sharedflag='--shared' ;;
  8223. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8224. tmp_sharedflag='-qmkshrobj'
  8225. tmp_addflag= ;;
  8226. nvcc*) # Cuda Compiler Driver 2.2
  8227. 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'
  8228. compiler_needs_object=yes
  8229. ;;
  8230. esac
  8231. case `$CC -V 2>&1 | sed 5q` in
  8232. *Sun\ C*) # Sun C 5.9
  8233. 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'
  8234. compiler_needs_object=yes
  8235. tmp_sharedflag='-G' ;;
  8236. *Sun\ F*) # Sun Fortran 8.3
  8237. tmp_sharedflag='-G' ;;
  8238. esac
  8239. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8240. if test "x$supports_anon_versioning" = xyes; then
  8241. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8242. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8243. echo "local: *; };" >> $output_objdir/$libname.ver~
  8244. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8245. fi
  8246. case $cc_basename in
  8247. xlf* | bgf* | bgxlf* | mpixlf*)
  8248. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8249. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8250. hardcode_libdir_flag_spec=
  8251. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8252. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8253. if test "x$supports_anon_versioning" = xyes; then
  8254. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8255. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8256. echo "local: *; };" >> $output_objdir/$libname.ver~
  8257. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8258. fi
  8259. ;;
  8260. esac
  8261. else
  8262. ld_shlibs=no
  8263. fi
  8264. ;;
  8265. netbsd*)
  8266. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8267. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8268. wlarc=
  8269. else
  8270. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8271. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8272. fi
  8273. ;;
  8274. solaris*)
  8275. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8276. ld_shlibs=no
  8277. cat <<_LT_EOF 1>&2
  8278. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8279. *** create shared libraries on Solaris systems. Therefore, libtool
  8280. *** is disabling shared libraries support. We urge you to upgrade GNU
  8281. *** binutils to release 2.9.1 or newer. Another option is to modify
  8282. *** your PATH or compiler configuration so that the native linker is
  8283. *** used, and then restart.
  8284. _LT_EOF
  8285. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8286. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8287. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8288. else
  8289. ld_shlibs=no
  8290. fi
  8291. ;;
  8292. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8293. case `$LD -v 2>&1` in
  8294. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8295. ld_shlibs=no
  8296. cat <<_LT_EOF 1>&2
  8297. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8298. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8299. *** is disabling shared libraries support. We urge you to upgrade GNU
  8300. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8301. *** your PATH or compiler configuration so that the native linker is
  8302. *** used, and then restart.
  8303. _LT_EOF
  8304. ;;
  8305. *)
  8306. # For security reasons, it is highly recommended that you always
  8307. # use absolute paths for naming shared libraries, and exclude the
  8308. # DT_RUNPATH tag from executables and libraries. But doing so
  8309. # requires that you compile everything twice, which is a pain.
  8310. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8311. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8312. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8313. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8314. else
  8315. ld_shlibs=no
  8316. fi
  8317. ;;
  8318. esac
  8319. ;;
  8320. sunos4*)
  8321. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8322. wlarc=
  8323. hardcode_direct=yes
  8324. hardcode_shlibpath_var=no
  8325. ;;
  8326. *)
  8327. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8328. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8329. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8330. else
  8331. ld_shlibs=no
  8332. fi
  8333. ;;
  8334. esac
  8335. if test "$ld_shlibs" = no; then
  8336. runpath_var=
  8337. hardcode_libdir_flag_spec=
  8338. export_dynamic_flag_spec=
  8339. whole_archive_flag_spec=
  8340. fi
  8341. else
  8342. # PORTME fill in a description of your system's linker (not GNU ld)
  8343. case $host_os in
  8344. aix3*)
  8345. allow_undefined_flag=unsupported
  8346. always_export_symbols=yes
  8347. 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'
  8348. # Note: this linker hardcodes the directories in LIBPATH if there
  8349. # are no directories specified by -L.
  8350. hardcode_minus_L=yes
  8351. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8352. # Neither direct hardcoding nor static linking is supported with a
  8353. # broken collect2.
  8354. hardcode_direct=unsupported
  8355. fi
  8356. ;;
  8357. aix[4-9]*)
  8358. if test "$host_cpu" = ia64; then
  8359. # On IA64, the linker does run time linking by default, so we don't
  8360. # have to do anything special.
  8361. aix_use_runtimelinking=no
  8362. exp_sym_flag='-Bexport'
  8363. no_entry_flag=""
  8364. else
  8365. # If we're using GNU nm, then we don't want the "-C" option.
  8366. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8367. # Also, AIX nm treats weak defined symbols like other global
  8368. # defined symbols, whereas GNU nm marks them as "W".
  8369. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8370. 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'
  8371. else
  8372. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8373. fi
  8374. aix_use_runtimelinking=no
  8375. # Test if we are trying to use run time linking or normal
  8376. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8377. # need to do runtime linking.
  8378. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8379. for ld_flag in $LDFLAGS; do
  8380. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8381. aix_use_runtimelinking=yes
  8382. break
  8383. fi
  8384. done
  8385. ;;
  8386. esac
  8387. exp_sym_flag='-bexport'
  8388. no_entry_flag='-bnoentry'
  8389. fi
  8390. # When large executables or shared objects are built, AIX ld can
  8391. # have problems creating the table of contents. If linking a library
  8392. # or program results in "error TOC overflow" add -mminimal-toc to
  8393. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8394. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8395. archive_cmds=''
  8396. hardcode_direct=yes
  8397. hardcode_direct_absolute=yes
  8398. hardcode_libdir_separator=':'
  8399. link_all_deplibs=yes
  8400. file_list_spec='${wl}-f,'
  8401. if test "$GCC" = yes; then
  8402. case $host_os in aix4.[012]|aix4.[012].*)
  8403. # We only want to do this on AIX 4.2 and lower, the check
  8404. # below for broken collect2 doesn't work under 4.3+
  8405. collect2name=`${CC} -print-prog-name=collect2`
  8406. if test -f "$collect2name" &&
  8407. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8408. then
  8409. # We have reworked collect2
  8410. :
  8411. else
  8412. # We have old collect2
  8413. hardcode_direct=unsupported
  8414. # It fails to find uninstalled libraries when the uninstalled
  8415. # path is not listed in the libpath. Setting hardcode_minus_L
  8416. # to unsupported forces relinking
  8417. hardcode_minus_L=yes
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_libdir_separator=
  8420. fi
  8421. ;;
  8422. esac
  8423. shared_flag='-shared'
  8424. if test "$aix_use_runtimelinking" = yes; then
  8425. shared_flag="$shared_flag "'${wl}-G'
  8426. fi
  8427. else
  8428. # not using gcc
  8429. if test "$host_cpu" = ia64; then
  8430. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8431. # chokes on -Wl,-G. The following line is correct:
  8432. shared_flag='-G'
  8433. else
  8434. if test "$aix_use_runtimelinking" = yes; then
  8435. shared_flag='${wl}-G'
  8436. else
  8437. shared_flag='${wl}-bM:SRE'
  8438. fi
  8439. fi
  8440. fi
  8441. export_dynamic_flag_spec='${wl}-bexpall'
  8442. # It seems that -bexpall does not export symbols beginning with
  8443. # underscore (_), so it is better to generate a list of symbols to export.
  8444. always_export_symbols=yes
  8445. if test "$aix_use_runtimelinking" = yes; then
  8446. # Warning - without using the other runtime loading flags (-brtl),
  8447. # -berok will link without error, but may produce a broken library.
  8448. allow_undefined_flag='-berok'
  8449. # Determine the default libpath from the value encoded in an
  8450. # empty executable.
  8451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8452. /* end confdefs.h. */
  8453. int
  8454. main ()
  8455. {
  8456. ;
  8457. return 0;
  8458. }
  8459. _ACEOF
  8460. if ac_fn_c_try_link "$LINENO"; then :
  8461. lt_aix_libpath_sed='
  8462. /Import File Strings/,/^$/ {
  8463. /^0/ {
  8464. s/^0 *\(.*\)$/\1/
  8465. p
  8466. }
  8467. }'
  8468. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8469. # Check for a 64-bit object if we didn't find anything.
  8470. if test -z "$aix_libpath"; then
  8471. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8472. fi
  8473. fi
  8474. rm -f core conftest.err conftest.$ac_objext \
  8475. conftest$ac_exeext conftest.$ac_ext
  8476. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8477. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8478. 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"
  8479. else
  8480. if test "$host_cpu" = ia64; then
  8481. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8482. allow_undefined_flag="-z nodefs"
  8483. 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"
  8484. else
  8485. # Determine the default libpath from the value encoded in an
  8486. # empty executable.
  8487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8488. /* end confdefs.h. */
  8489. int
  8490. main ()
  8491. {
  8492. ;
  8493. return 0;
  8494. }
  8495. _ACEOF
  8496. if ac_fn_c_try_link "$LINENO"; then :
  8497. lt_aix_libpath_sed='
  8498. /Import File Strings/,/^$/ {
  8499. /^0/ {
  8500. s/^0 *\(.*\)$/\1/
  8501. p
  8502. }
  8503. }'
  8504. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8505. # Check for a 64-bit object if we didn't find anything.
  8506. if test -z "$aix_libpath"; then
  8507. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8508. fi
  8509. fi
  8510. rm -f core conftest.err conftest.$ac_objext \
  8511. conftest$ac_exeext conftest.$ac_ext
  8512. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8513. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8514. # Warning - without using the other run time loading flags,
  8515. # -berok will link without error, but may produce a broken library.
  8516. no_undefined_flag=' ${wl}-bernotok'
  8517. allow_undefined_flag=' ${wl}-berok'
  8518. if test "$with_gnu_ld" = yes; then
  8519. # We only use this code for GNU lds that support --whole-archive.
  8520. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8521. else
  8522. # Exported symbols can be pulled into shared objects from archives
  8523. whole_archive_flag_spec='$convenience'
  8524. fi
  8525. archive_cmds_need_lc=yes
  8526. # This is similar to how AIX traditionally builds its shared libraries.
  8527. 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'
  8528. fi
  8529. fi
  8530. ;;
  8531. amigaos*)
  8532. case $host_cpu in
  8533. powerpc)
  8534. # see comment about AmigaOS4 .so support
  8535. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8536. archive_expsym_cmds=''
  8537. ;;
  8538. m68k)
  8539. 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)'
  8540. hardcode_libdir_flag_spec='-L$libdir'
  8541. hardcode_minus_L=yes
  8542. ;;
  8543. esac
  8544. ;;
  8545. bsdi[45]*)
  8546. export_dynamic_flag_spec=-rdynamic
  8547. ;;
  8548. cygwin* | mingw* | pw32* | cegcc*)
  8549. # When not using gcc, we currently assume that we are using
  8550. # Microsoft Visual C++.
  8551. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8552. # no search path for DLLs.
  8553. hardcode_libdir_flag_spec=' '
  8554. allow_undefined_flag=unsupported
  8555. # Tell ltmain to make .lib files, not .a files.
  8556. libext=lib
  8557. # Tell ltmain to make .dll files, not .so files.
  8558. shrext_cmds=".dll"
  8559. # FIXME: Setting linknames here is a bad hack.
  8560. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8561. # The linker will automatically build a .lib file if we build a DLL.
  8562. old_archive_from_new_cmds='true'
  8563. # FIXME: Should let the user specify the lib program.
  8564. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8565. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8566. enable_shared_with_static_runtimes=yes
  8567. ;;
  8568. darwin* | rhapsody*)
  8569. archive_cmds_need_lc=no
  8570. hardcode_direct=no
  8571. hardcode_automatic=yes
  8572. hardcode_shlibpath_var=unsupported
  8573. if test "$lt_cv_ld_force_load" = "yes"; then
  8574. 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\"`'
  8575. else
  8576. whole_archive_flag_spec=''
  8577. fi
  8578. link_all_deplibs=yes
  8579. allow_undefined_flag="$_lt_dar_allow_undefined"
  8580. case $cc_basename in
  8581. ifort*) _lt_dar_can_shared=yes ;;
  8582. *) _lt_dar_can_shared=$GCC ;;
  8583. esac
  8584. if test "$_lt_dar_can_shared" = "yes"; then
  8585. output_verbose_link_cmd=func_echo_all
  8586. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8587. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8588. 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}"
  8589. 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}"
  8590. else
  8591. ld_shlibs=no
  8592. fi
  8593. ;;
  8594. dgux*)
  8595. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8596. hardcode_libdir_flag_spec='-L$libdir'
  8597. hardcode_shlibpath_var=no
  8598. ;;
  8599. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8600. # support. Future versions do this automatically, but an explicit c++rt0.o
  8601. # does not break anything, and helps significantly (at the cost of a little
  8602. # extra space).
  8603. freebsd2.2*)
  8604. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8605. hardcode_libdir_flag_spec='-R$libdir'
  8606. hardcode_direct=yes
  8607. hardcode_shlibpath_var=no
  8608. ;;
  8609. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8610. freebsd2.*)
  8611. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8612. hardcode_direct=yes
  8613. hardcode_minus_L=yes
  8614. hardcode_shlibpath_var=no
  8615. ;;
  8616. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8617. freebsd* | dragonfly*)
  8618. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8619. hardcode_libdir_flag_spec='-R$libdir'
  8620. hardcode_direct=yes
  8621. hardcode_shlibpath_var=no
  8622. ;;
  8623. hpux9*)
  8624. if test "$GCC" = yes; then
  8625. 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'
  8626. else
  8627. 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'
  8628. fi
  8629. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8630. hardcode_libdir_separator=:
  8631. hardcode_direct=yes
  8632. # hardcode_minus_L: Not really in the search PATH,
  8633. # but as the default location of the library.
  8634. hardcode_minus_L=yes
  8635. export_dynamic_flag_spec='${wl}-E'
  8636. ;;
  8637. hpux10*)
  8638. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8639. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8640. else
  8641. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8642. fi
  8643. if test "$with_gnu_ld" = no; then
  8644. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8645. hardcode_libdir_flag_spec_ld='+b $libdir'
  8646. hardcode_libdir_separator=:
  8647. hardcode_direct=yes
  8648. hardcode_direct_absolute=yes
  8649. export_dynamic_flag_spec='${wl}-E'
  8650. # hardcode_minus_L: Not really in the search PATH,
  8651. # but as the default location of the library.
  8652. hardcode_minus_L=yes
  8653. fi
  8654. ;;
  8655. hpux11*)
  8656. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8657. case $host_cpu in
  8658. hppa*64*)
  8659. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8660. ;;
  8661. ia64*)
  8662. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8663. ;;
  8664. *)
  8665. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8666. ;;
  8667. esac
  8668. else
  8669. case $host_cpu in
  8670. hppa*64*)
  8671. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8672. ;;
  8673. ia64*)
  8674. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8675. ;;
  8676. *)
  8677. # Older versions of the 11.00 compiler do not understand -b yet
  8678. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8680. $as_echo_n "checking if $CC understands -b... " >&6; }
  8681. if ${lt_cv_prog_compiler__b+:} false; then :
  8682. $as_echo_n "(cached) " >&6
  8683. else
  8684. lt_cv_prog_compiler__b=no
  8685. save_LDFLAGS="$LDFLAGS"
  8686. LDFLAGS="$LDFLAGS -b"
  8687. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8688. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8689. # The linker can only warn and ignore the option if not recognized
  8690. # So say no if there are warnings
  8691. if test -s conftest.err; then
  8692. # Append any errors to the config.log.
  8693. cat conftest.err 1>&5
  8694. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8695. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8696. if diff conftest.exp conftest.er2 >/dev/null; then
  8697. lt_cv_prog_compiler__b=yes
  8698. fi
  8699. else
  8700. lt_cv_prog_compiler__b=yes
  8701. fi
  8702. fi
  8703. $RM -r conftest*
  8704. LDFLAGS="$save_LDFLAGS"
  8705. fi
  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8707. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8708. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8709. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8710. else
  8711. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8712. fi
  8713. ;;
  8714. esac
  8715. fi
  8716. if test "$with_gnu_ld" = no; then
  8717. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8718. hardcode_libdir_separator=:
  8719. case $host_cpu in
  8720. hppa*64*|ia64*)
  8721. hardcode_direct=no
  8722. hardcode_shlibpath_var=no
  8723. ;;
  8724. *)
  8725. hardcode_direct=yes
  8726. hardcode_direct_absolute=yes
  8727. export_dynamic_flag_spec='${wl}-E'
  8728. # hardcode_minus_L: Not really in the search PATH,
  8729. # but as the default location of the library.
  8730. hardcode_minus_L=yes
  8731. ;;
  8732. esac
  8733. fi
  8734. ;;
  8735. irix5* | irix6* | nonstopux*)
  8736. if test "$GCC" = yes; then
  8737. 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'
  8738. # Try to use the -exported_symbol ld option, if it does not
  8739. # work, assume that -exports_file does not work either and
  8740. # implicitly export all symbols.
  8741. save_LDFLAGS="$LDFLAGS"
  8742. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8744. /* end confdefs.h. */
  8745. int foo(void) {}
  8746. _ACEOF
  8747. if ac_fn_c_try_link "$LINENO"; then :
  8748. 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'
  8749. fi
  8750. rm -f core conftest.err conftest.$ac_objext \
  8751. conftest$ac_exeext conftest.$ac_ext
  8752. LDFLAGS="$save_LDFLAGS"
  8753. else
  8754. 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'
  8755. 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'
  8756. fi
  8757. archive_cmds_need_lc='no'
  8758. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8759. hardcode_libdir_separator=:
  8760. inherit_rpath=yes
  8761. link_all_deplibs=yes
  8762. ;;
  8763. netbsd*)
  8764. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8765. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8766. else
  8767. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8768. fi
  8769. hardcode_libdir_flag_spec='-R$libdir'
  8770. hardcode_direct=yes
  8771. hardcode_shlibpath_var=no
  8772. ;;
  8773. newsos6)
  8774. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8775. hardcode_direct=yes
  8776. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8777. hardcode_libdir_separator=:
  8778. hardcode_shlibpath_var=no
  8779. ;;
  8780. *nto* | *qnx*)
  8781. ;;
  8782. openbsd*)
  8783. if test -f /usr/libexec/ld.so; then
  8784. hardcode_direct=yes
  8785. hardcode_shlibpath_var=no
  8786. hardcode_direct_absolute=yes
  8787. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8788. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8789. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8790. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8791. export_dynamic_flag_spec='${wl}-E'
  8792. else
  8793. case $host_os in
  8794. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8795. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8796. hardcode_libdir_flag_spec='-R$libdir'
  8797. ;;
  8798. *)
  8799. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8800. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8801. ;;
  8802. esac
  8803. fi
  8804. else
  8805. ld_shlibs=no
  8806. fi
  8807. ;;
  8808. os2*)
  8809. hardcode_libdir_flag_spec='-L$libdir'
  8810. hardcode_minus_L=yes
  8811. allow_undefined_flag=unsupported
  8812. 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'
  8813. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8814. ;;
  8815. osf3*)
  8816. if test "$GCC" = yes; then
  8817. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8818. 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'
  8819. else
  8820. allow_undefined_flag=' -expect_unresolved \*'
  8821. 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'
  8822. fi
  8823. archive_cmds_need_lc='no'
  8824. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8825. hardcode_libdir_separator=:
  8826. ;;
  8827. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8828. if test "$GCC" = yes; then
  8829. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8830. 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'
  8831. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8832. else
  8833. allow_undefined_flag=' -expect_unresolved \*'
  8834. 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'
  8835. 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~
  8836. $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'
  8837. # Both c and cxx compiler support -rpath directly
  8838. hardcode_libdir_flag_spec='-rpath $libdir'
  8839. fi
  8840. archive_cmds_need_lc='no'
  8841. hardcode_libdir_separator=:
  8842. ;;
  8843. solaris*)
  8844. no_undefined_flag=' -z defs'
  8845. if test "$GCC" = yes; then
  8846. wlarc='${wl}'
  8847. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8848. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8849. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8850. else
  8851. case `$CC -V 2>&1` in
  8852. *"Compilers 5.0"*)
  8853. wlarc=''
  8854. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8855. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8856. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8857. ;;
  8858. *)
  8859. wlarc='${wl}'
  8860. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8861. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8862. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8863. ;;
  8864. esac
  8865. fi
  8866. hardcode_libdir_flag_spec='-R$libdir'
  8867. hardcode_shlibpath_var=no
  8868. case $host_os in
  8869. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8870. *)
  8871. # The compiler driver will combine and reorder linker options,
  8872. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8873. # but is careful enough not to reorder.
  8874. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8875. if test "$GCC" = yes; then
  8876. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8877. else
  8878. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8879. fi
  8880. ;;
  8881. esac
  8882. link_all_deplibs=yes
  8883. ;;
  8884. sunos4*)
  8885. if test "x$host_vendor" = xsequent; then
  8886. # Use $CC to link under sequent, because it throws in some extra .o
  8887. # files that make .init and .fini sections work.
  8888. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8889. else
  8890. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8891. fi
  8892. hardcode_libdir_flag_spec='-L$libdir'
  8893. hardcode_direct=yes
  8894. hardcode_minus_L=yes
  8895. hardcode_shlibpath_var=no
  8896. ;;
  8897. sysv4)
  8898. case $host_vendor in
  8899. sni)
  8900. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8901. hardcode_direct=yes # is this really true???
  8902. ;;
  8903. siemens)
  8904. ## LD is ld it makes a PLAMLIB
  8905. ## CC just makes a GrossModule.
  8906. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8907. reload_cmds='$CC -r -o $output$reload_objs'
  8908. hardcode_direct=no
  8909. ;;
  8910. motorola)
  8911. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8912. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8913. ;;
  8914. esac
  8915. runpath_var='LD_RUN_PATH'
  8916. hardcode_shlibpath_var=no
  8917. ;;
  8918. sysv4.3*)
  8919. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8920. hardcode_shlibpath_var=no
  8921. export_dynamic_flag_spec='-Bexport'
  8922. ;;
  8923. sysv4*MP*)
  8924. if test -d /usr/nec; then
  8925. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8926. hardcode_shlibpath_var=no
  8927. runpath_var=LD_RUN_PATH
  8928. hardcode_runpath_var=yes
  8929. ld_shlibs=yes
  8930. fi
  8931. ;;
  8932. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8933. no_undefined_flag='${wl}-z,text'
  8934. archive_cmds_need_lc=no
  8935. hardcode_shlibpath_var=no
  8936. runpath_var='LD_RUN_PATH'
  8937. if test "$GCC" = yes; then
  8938. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8939. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8940. else
  8941. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8942. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8943. fi
  8944. ;;
  8945. sysv5* | sco3.2v5* | sco5v6*)
  8946. # Note: We can NOT use -z defs as we might desire, because we do not
  8947. # link with -lc, and that would cause any symbols used from libc to
  8948. # always be unresolved, which means just about no library would
  8949. # ever link correctly. If we're not using GNU ld we use -z text
  8950. # though, which does catch some bad symbols but isn't as heavy-handed
  8951. # as -z defs.
  8952. no_undefined_flag='${wl}-z,text'
  8953. allow_undefined_flag='${wl}-z,nodefs'
  8954. archive_cmds_need_lc=no
  8955. hardcode_shlibpath_var=no
  8956. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8957. hardcode_libdir_separator=':'
  8958. link_all_deplibs=yes
  8959. export_dynamic_flag_spec='${wl}-Bexport'
  8960. runpath_var='LD_RUN_PATH'
  8961. if test "$GCC" = yes; then
  8962. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8963. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8964. else
  8965. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8966. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8967. fi
  8968. ;;
  8969. uts4*)
  8970. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8971. hardcode_libdir_flag_spec='-L$libdir'
  8972. hardcode_shlibpath_var=no
  8973. ;;
  8974. *)
  8975. ld_shlibs=no
  8976. ;;
  8977. esac
  8978. if test x$host_vendor = xsni; then
  8979. case $host in
  8980. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8981. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8982. ;;
  8983. esac
  8984. fi
  8985. fi
  8986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8987. $as_echo "$ld_shlibs" >&6; }
  8988. test "$ld_shlibs" = no && can_build_shared=no
  8989. with_gnu_ld=$with_gnu_ld
  8990. #
  8991. # Do we need to explicitly link libc?
  8992. #
  8993. case "x$archive_cmds_need_lc" in
  8994. x|xyes)
  8995. # Assume -lc should be added
  8996. archive_cmds_need_lc=yes
  8997. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8998. case $archive_cmds in
  8999. *'~'*)
  9000. # FIXME: we may have to deal with multi-command sequences.
  9001. ;;
  9002. '$CC '*)
  9003. # Test whether the compiler implicitly links with -lc since on some
  9004. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9005. # to ld, don't add -lc before -lgcc.
  9006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9007. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9008. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9009. $as_echo_n "(cached) " >&6
  9010. else
  9011. $RM conftest*
  9012. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9013. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9014. (eval $ac_compile) 2>&5
  9015. ac_status=$?
  9016. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9017. test $ac_status = 0; } 2>conftest.err; then
  9018. soname=conftest
  9019. lib=conftest
  9020. libobjs=conftest.$ac_objext
  9021. deplibs=
  9022. wl=$lt_prog_compiler_wl
  9023. pic_flag=$lt_prog_compiler_pic
  9024. compiler_flags=-v
  9025. linker_flags=-v
  9026. verstring=
  9027. output_objdir=.
  9028. libname=conftest
  9029. lt_save_allow_undefined_flag=$allow_undefined_flag
  9030. allow_undefined_flag=
  9031. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9032. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9033. ac_status=$?
  9034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9035. test $ac_status = 0; }
  9036. then
  9037. lt_cv_archive_cmds_need_lc=no
  9038. else
  9039. lt_cv_archive_cmds_need_lc=yes
  9040. fi
  9041. allow_undefined_flag=$lt_save_allow_undefined_flag
  9042. else
  9043. cat conftest.err 1>&5
  9044. fi
  9045. $RM conftest*
  9046. fi
  9047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9048. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9049. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9050. ;;
  9051. esac
  9052. fi
  9053. ;;
  9054. esac
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9056. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9057. if test "$GCC" = yes; then
  9058. case $host_os in
  9059. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9060. *) lt_awk_arg="/^libraries:/" ;;
  9061. esac
  9062. case $host_os in
  9063. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9064. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9065. esac
  9066. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9067. case $lt_search_path_spec in
  9068. *\;*)
  9069. # if the path contains ";" then we assume it to be the separator
  9070. # otherwise default to the standard path separator (i.e. ":") - it is
  9071. # assumed that no part of a normal pathname contains ";" but that should
  9072. # okay in the real world where ";" in dirpaths is itself problematic.
  9073. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9074. ;;
  9075. *)
  9076. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9077. ;;
  9078. esac
  9079. # Ok, now we have the path, separated by spaces, we can step through it
  9080. # and add multilib dir if necessary.
  9081. lt_tmp_lt_search_path_spec=
  9082. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9083. for lt_sys_path in $lt_search_path_spec; do
  9084. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9085. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9086. else
  9087. test -d "$lt_sys_path" && \
  9088. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9089. fi
  9090. done
  9091. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9092. BEGIN {RS=" "; FS="/|\n";} {
  9093. lt_foo="";
  9094. lt_count=0;
  9095. for (lt_i = NF; lt_i > 0; lt_i--) {
  9096. if ($lt_i != "" && $lt_i != ".") {
  9097. if ($lt_i == "..") {
  9098. lt_count++;
  9099. } else {
  9100. if (lt_count == 0) {
  9101. lt_foo="/" $lt_i lt_foo;
  9102. } else {
  9103. lt_count--;
  9104. }
  9105. }
  9106. }
  9107. }
  9108. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9109. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9110. }'`
  9111. # AWK program above erroneously prepends '/' to C:/dos/paths
  9112. # for these hosts.
  9113. case $host_os in
  9114. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9115. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9116. esac
  9117. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9118. else
  9119. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9120. fi
  9121. library_names_spec=
  9122. libname_spec='lib$name'
  9123. soname_spec=
  9124. shrext_cmds=".so"
  9125. postinstall_cmds=
  9126. postuninstall_cmds=
  9127. finish_cmds=
  9128. finish_eval=
  9129. shlibpath_var=
  9130. shlibpath_overrides_runpath=unknown
  9131. version_type=none
  9132. dynamic_linker="$host_os ld.so"
  9133. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9134. need_lib_prefix=unknown
  9135. hardcode_into_libs=no
  9136. # when you set need_version to no, make sure it does not cause -set_version
  9137. # flags to be left without arguments
  9138. need_version=unknown
  9139. case $host_os in
  9140. aix3*)
  9141. version_type=linux
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9143. shlibpath_var=LIBPATH
  9144. # AIX 3 has no versioning support, so we append a major version to the name.
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. ;;
  9147. aix[4-9]*)
  9148. version_type=linux
  9149. need_lib_prefix=no
  9150. need_version=no
  9151. hardcode_into_libs=yes
  9152. if test "$host_cpu" = ia64; then
  9153. # AIX 5 supports IA64
  9154. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. else
  9157. # With GCC up to 2.95.x, collect2 would create an import file
  9158. # for dependence libraries. The import file would start with
  9159. # the line `#! .'. This would cause the generated library to
  9160. # depend on `.', always an invalid library. This was fixed in
  9161. # development snapshots of GCC prior to 3.0.
  9162. case $host_os in
  9163. aix4 | aix4.[01] | aix4.[01].*)
  9164. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9165. echo ' yes '
  9166. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9167. :
  9168. else
  9169. can_build_shared=no
  9170. fi
  9171. ;;
  9172. esac
  9173. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9174. # soname into executable. Probably we can add versioning support to
  9175. # collect2, so additional links can be useful in future.
  9176. if test "$aix_use_runtimelinking" = yes; then
  9177. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9178. # instead of lib<name>.a to let people know that these are not
  9179. # typical AIX shared libraries.
  9180. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9181. else
  9182. # We preserve .a as extension for shared libraries through AIX4.2
  9183. # and later when we are not doing run time linking.
  9184. library_names_spec='${libname}${release}.a $libname.a'
  9185. soname_spec='${libname}${release}${shared_ext}$major'
  9186. fi
  9187. shlibpath_var=LIBPATH
  9188. fi
  9189. ;;
  9190. amigaos*)
  9191. case $host_cpu in
  9192. powerpc)
  9193. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9194. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9195. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9196. ;;
  9197. m68k)
  9198. library_names_spec='$libname.ixlibrary $libname.a'
  9199. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9200. 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'
  9201. ;;
  9202. esac
  9203. ;;
  9204. beos*)
  9205. library_names_spec='${libname}${shared_ext}'
  9206. dynamic_linker="$host_os ld.so"
  9207. shlibpath_var=LIBRARY_PATH
  9208. ;;
  9209. bsdi[45]*)
  9210. version_type=linux
  9211. need_version=no
  9212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9213. soname_spec='${libname}${release}${shared_ext}$major'
  9214. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9217. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9218. # the default ld.so.conf also contains /usr/contrib/lib and
  9219. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9220. # libtool to hard-code these into programs
  9221. ;;
  9222. cygwin* | mingw* | pw32* | cegcc*)
  9223. version_type=windows
  9224. shrext_cmds=".dll"
  9225. need_version=no
  9226. need_lib_prefix=no
  9227. case $GCC,$host_os in
  9228. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9229. library_names_spec='$libname.dll.a'
  9230. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9231. postinstall_cmds='base_file=`basename \${file}`~
  9232. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9233. dldir=$destdir/`dirname \$dlpath`~
  9234. test -d \$dldir || mkdir -p \$dldir~
  9235. $install_prog $dir/$dlname \$dldir/$dlname~
  9236. chmod a+x \$dldir/$dlname~
  9237. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9238. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9239. fi'
  9240. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9241. dlpath=$dir/\$dldll~
  9242. $RM \$dlpath'
  9243. shlibpath_overrides_runpath=yes
  9244. case $host_os in
  9245. cygwin*)
  9246. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9247. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9248. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9249. ;;
  9250. mingw* | cegcc*)
  9251. # MinGW DLLs use traditional 'lib' prefix
  9252. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9253. ;;
  9254. pw32*)
  9255. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9256. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9257. ;;
  9258. esac
  9259. ;;
  9260. *)
  9261. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9262. ;;
  9263. esac
  9264. dynamic_linker='Win32 ld.exe'
  9265. # FIXME: first we should search . and the directory the executable is in
  9266. shlibpath_var=PATH
  9267. ;;
  9268. darwin* | rhapsody*)
  9269. dynamic_linker="$host_os dyld"
  9270. version_type=darwin
  9271. need_lib_prefix=no
  9272. need_version=no
  9273. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9274. soname_spec='${libname}${release}${major}$shared_ext'
  9275. shlibpath_overrides_runpath=yes
  9276. shlibpath_var=DYLD_LIBRARY_PATH
  9277. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9278. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9279. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9280. ;;
  9281. dgux*)
  9282. version_type=linux
  9283. need_lib_prefix=no
  9284. need_version=no
  9285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9286. soname_spec='${libname}${release}${shared_ext}$major'
  9287. shlibpath_var=LD_LIBRARY_PATH
  9288. ;;
  9289. freebsd* | dragonfly*)
  9290. # DragonFly does not have aout. When/if they implement a new
  9291. # versioning mechanism, adjust this.
  9292. if test -x /usr/bin/objformat; then
  9293. objformat=`/usr/bin/objformat`
  9294. else
  9295. case $host_os in
  9296. freebsd[23].*) objformat=aout ;;
  9297. *) objformat=elf ;;
  9298. esac
  9299. fi
  9300. version_type=freebsd-$objformat
  9301. case $version_type in
  9302. freebsd-elf*)
  9303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9304. need_version=no
  9305. need_lib_prefix=no
  9306. ;;
  9307. freebsd-*)
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9309. need_version=yes
  9310. ;;
  9311. esac
  9312. shlibpath_var=LD_LIBRARY_PATH
  9313. case $host_os in
  9314. freebsd2.*)
  9315. shlibpath_overrides_runpath=yes
  9316. ;;
  9317. freebsd3.[01]* | freebsdelf3.[01]*)
  9318. shlibpath_overrides_runpath=yes
  9319. hardcode_into_libs=yes
  9320. ;;
  9321. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9322. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9323. shlibpath_overrides_runpath=no
  9324. hardcode_into_libs=yes
  9325. ;;
  9326. *) # from 4.6 on, and DragonFly
  9327. shlibpath_overrides_runpath=yes
  9328. hardcode_into_libs=yes
  9329. ;;
  9330. esac
  9331. ;;
  9332. haiku*)
  9333. version_type=linux
  9334. need_lib_prefix=no
  9335. need_version=no
  9336. dynamic_linker="$host_os runtime_loader"
  9337. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9338. soname_spec='${libname}${release}${shared_ext}$major'
  9339. shlibpath_var=LIBRARY_PATH
  9340. shlibpath_overrides_runpath=yes
  9341. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9342. hardcode_into_libs=yes
  9343. ;;
  9344. hpux9* | hpux10* | hpux11*)
  9345. # Give a soname corresponding to the major version so that dld.sl refuses to
  9346. # link against other versions.
  9347. version_type=sunos
  9348. need_lib_prefix=no
  9349. need_version=no
  9350. case $host_cpu in
  9351. ia64*)
  9352. shrext_cmds='.so'
  9353. hardcode_into_libs=yes
  9354. dynamic_linker="$host_os dld.so"
  9355. shlibpath_var=LD_LIBRARY_PATH
  9356. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9358. soname_spec='${libname}${release}${shared_ext}$major'
  9359. if test "X$HPUX_IA64_MODE" = X32; then
  9360. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9361. else
  9362. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9363. fi
  9364. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9365. ;;
  9366. hppa*64*)
  9367. shrext_cmds='.sl'
  9368. hardcode_into_libs=yes
  9369. dynamic_linker="$host_os dld.sl"
  9370. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9371. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9372. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9373. soname_spec='${libname}${release}${shared_ext}$major'
  9374. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9375. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9376. ;;
  9377. *)
  9378. shrext_cmds='.sl'
  9379. dynamic_linker="$host_os dld.sl"
  9380. shlibpath_var=SHLIB_PATH
  9381. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9382. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9383. soname_spec='${libname}${release}${shared_ext}$major'
  9384. ;;
  9385. esac
  9386. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9387. postinstall_cmds='chmod 555 $lib'
  9388. # or fails outright, so override atomically:
  9389. install_override_mode=555
  9390. ;;
  9391. interix[3-9]*)
  9392. version_type=linux
  9393. need_lib_prefix=no
  9394. need_version=no
  9395. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9396. soname_spec='${libname}${release}${shared_ext}$major'
  9397. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9398. shlibpath_var=LD_LIBRARY_PATH
  9399. shlibpath_overrides_runpath=no
  9400. hardcode_into_libs=yes
  9401. ;;
  9402. irix5* | irix6* | nonstopux*)
  9403. case $host_os in
  9404. nonstopux*) version_type=nonstopux ;;
  9405. *)
  9406. if test "$lt_cv_prog_gnu_ld" = yes; then
  9407. version_type=linux
  9408. else
  9409. version_type=irix
  9410. fi ;;
  9411. esac
  9412. need_lib_prefix=no
  9413. need_version=no
  9414. soname_spec='${libname}${release}${shared_ext}$major'
  9415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9416. case $host_os in
  9417. irix5* | nonstopux*)
  9418. libsuff= shlibsuff=
  9419. ;;
  9420. *)
  9421. case $LD in # libtool.m4 will add one of these switches to LD
  9422. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9423. libsuff= shlibsuff= libmagic=32-bit;;
  9424. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9425. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9426. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9427. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9428. *) libsuff= shlibsuff= libmagic=never-match;;
  9429. esac
  9430. ;;
  9431. esac
  9432. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9433. shlibpath_overrides_runpath=no
  9434. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9435. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9436. hardcode_into_libs=yes
  9437. ;;
  9438. # No shared lib support for Linux oldld, aout, or coff.
  9439. linux*oldld* | linux*aout* | linux*coff*)
  9440. dynamic_linker=no
  9441. ;;
  9442. # This must be Linux ELF.
  9443. # uclinux* changes (here and below) have been submitted to the libtool
  9444. # project, but have not yet been accepted: they are GCC-local changes
  9445. # for the time being. (See
  9446. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9447. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9448. version_type=linux
  9449. need_lib_prefix=no
  9450. need_version=no
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9452. soname_spec='${libname}${release}${shared_ext}$major'
  9453. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9454. shlibpath_var=LD_LIBRARY_PATH
  9455. shlibpath_overrides_runpath=no
  9456. # Some binutils ld are patched to set DT_RUNPATH
  9457. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9458. $as_echo_n "(cached) " >&6
  9459. else
  9460. lt_cv_shlibpath_overrides_runpath=no
  9461. save_LDFLAGS=$LDFLAGS
  9462. save_libdir=$libdir
  9463. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9464. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9466. /* end confdefs.h. */
  9467. int
  9468. main ()
  9469. {
  9470. ;
  9471. return 0;
  9472. }
  9473. _ACEOF
  9474. if ac_fn_c_try_link "$LINENO"; then :
  9475. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9476. lt_cv_shlibpath_overrides_runpath=yes
  9477. fi
  9478. fi
  9479. rm -f core conftest.err conftest.$ac_objext \
  9480. conftest$ac_exeext conftest.$ac_ext
  9481. LDFLAGS=$save_LDFLAGS
  9482. libdir=$save_libdir
  9483. fi
  9484. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9485. # This implies no fast_install, which is unacceptable.
  9486. # Some rework will be needed to allow for fast_install
  9487. # before this can be enabled.
  9488. hardcode_into_libs=yes
  9489. # Append ld.so.conf contents to the search path
  9490. if test -f /etc/ld.so.conf; then
  9491. 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' ' '`
  9492. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9493. fi
  9494. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9495. # powerpc, because MkLinux only supported shared libraries with the
  9496. # GNU dynamic linker. Since this was broken with cross compilers,
  9497. # most powerpc-linux boxes support dynamic linking these days and
  9498. # people can always --disable-shared, the test was removed, and we
  9499. # assume the GNU/Linux dynamic linker is in use.
  9500. dynamic_linker='GNU/Linux ld.so'
  9501. ;;
  9502. netbsd*)
  9503. version_type=sunos
  9504. need_lib_prefix=no
  9505. need_version=no
  9506. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9508. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9509. dynamic_linker='NetBSD (a.out) ld.so'
  9510. else
  9511. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9512. soname_spec='${libname}${release}${shared_ext}$major'
  9513. dynamic_linker='NetBSD ld.elf_so'
  9514. fi
  9515. shlibpath_var=LD_LIBRARY_PATH
  9516. shlibpath_overrides_runpath=yes
  9517. hardcode_into_libs=yes
  9518. ;;
  9519. newsos6)
  9520. version_type=linux
  9521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9522. shlibpath_var=LD_LIBRARY_PATH
  9523. shlibpath_overrides_runpath=yes
  9524. ;;
  9525. *nto* | *qnx*)
  9526. version_type=qnx
  9527. need_lib_prefix=no
  9528. need_version=no
  9529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9530. soname_spec='${libname}${release}${shared_ext}$major'
  9531. shlibpath_var=LD_LIBRARY_PATH
  9532. shlibpath_overrides_runpath=no
  9533. hardcode_into_libs=yes
  9534. dynamic_linker='ldqnx.so'
  9535. ;;
  9536. openbsd*)
  9537. version_type=sunos
  9538. sys_lib_dlsearch_path_spec="/usr/lib"
  9539. need_lib_prefix=no
  9540. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9541. case $host_os in
  9542. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9543. *) need_version=no ;;
  9544. esac
  9545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9546. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9547. shlibpath_var=LD_LIBRARY_PATH
  9548. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9549. case $host_os in
  9550. openbsd2.[89] | openbsd2.[89].*)
  9551. shlibpath_overrides_runpath=no
  9552. ;;
  9553. *)
  9554. shlibpath_overrides_runpath=yes
  9555. ;;
  9556. esac
  9557. else
  9558. shlibpath_overrides_runpath=yes
  9559. fi
  9560. ;;
  9561. os2*)
  9562. libname_spec='$name'
  9563. shrext_cmds=".dll"
  9564. need_lib_prefix=no
  9565. library_names_spec='$libname${shared_ext} $libname.a'
  9566. dynamic_linker='OS/2 ld.exe'
  9567. shlibpath_var=LIBPATH
  9568. ;;
  9569. osf3* | osf4* | osf5*)
  9570. version_type=osf
  9571. need_lib_prefix=no
  9572. need_version=no
  9573. soname_spec='${libname}${release}${shared_ext}$major'
  9574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9577. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9578. ;;
  9579. rdos*)
  9580. dynamic_linker=no
  9581. ;;
  9582. solaris*)
  9583. version_type=linux
  9584. need_lib_prefix=no
  9585. need_version=no
  9586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9587. soname_spec='${libname}${release}${shared_ext}$major'
  9588. shlibpath_var=LD_LIBRARY_PATH
  9589. shlibpath_overrides_runpath=yes
  9590. hardcode_into_libs=yes
  9591. # ldd complains unless libraries are executable
  9592. postinstall_cmds='chmod +x $lib'
  9593. ;;
  9594. sunos4*)
  9595. version_type=sunos
  9596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9597. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. shlibpath_overrides_runpath=yes
  9600. if test "$with_gnu_ld" = yes; then
  9601. need_lib_prefix=no
  9602. fi
  9603. need_version=yes
  9604. ;;
  9605. sysv4 | sysv4.3*)
  9606. version_type=linux
  9607. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9608. soname_spec='${libname}${release}${shared_ext}$major'
  9609. shlibpath_var=LD_LIBRARY_PATH
  9610. case $host_vendor in
  9611. sni)
  9612. shlibpath_overrides_runpath=no
  9613. need_lib_prefix=no
  9614. runpath_var=LD_RUN_PATH
  9615. ;;
  9616. siemens)
  9617. need_lib_prefix=no
  9618. ;;
  9619. motorola)
  9620. need_lib_prefix=no
  9621. need_version=no
  9622. shlibpath_overrides_runpath=no
  9623. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9624. ;;
  9625. esac
  9626. ;;
  9627. sysv4*MP*)
  9628. if test -d /usr/nec ;then
  9629. version_type=linux
  9630. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9631. soname_spec='$libname${shared_ext}.$major'
  9632. shlibpath_var=LD_LIBRARY_PATH
  9633. fi
  9634. ;;
  9635. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9636. version_type=freebsd-elf
  9637. need_lib_prefix=no
  9638. need_version=no
  9639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9640. soname_spec='${libname}${release}${shared_ext}$major'
  9641. shlibpath_var=LD_LIBRARY_PATH
  9642. shlibpath_overrides_runpath=yes
  9643. hardcode_into_libs=yes
  9644. if test "$with_gnu_ld" = yes; then
  9645. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9646. else
  9647. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9648. case $host_os in
  9649. sco3.2v5*)
  9650. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9651. ;;
  9652. esac
  9653. fi
  9654. sys_lib_dlsearch_path_spec='/usr/lib'
  9655. ;;
  9656. tpf*)
  9657. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9658. version_type=linux
  9659. need_lib_prefix=no
  9660. need_version=no
  9661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=no
  9664. hardcode_into_libs=yes
  9665. ;;
  9666. uts4*)
  9667. version_type=linux
  9668. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9669. soname_spec='${libname}${release}${shared_ext}$major'
  9670. shlibpath_var=LD_LIBRARY_PATH
  9671. ;;
  9672. *)
  9673. dynamic_linker=no
  9674. ;;
  9675. esac
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9677. $as_echo "$dynamic_linker" >&6; }
  9678. test "$dynamic_linker" = no && can_build_shared=no
  9679. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9680. if test "$GCC" = yes; then
  9681. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9682. fi
  9683. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9684. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9685. fi
  9686. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9687. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9688. fi
  9689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9690. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9691. hardcode_action=
  9692. if test -n "$hardcode_libdir_flag_spec" ||
  9693. test -n "$runpath_var" ||
  9694. test "X$hardcode_automatic" = "Xyes" ; then
  9695. # We can hardcode non-existent directories.
  9696. if test "$hardcode_direct" != no &&
  9697. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9698. # have to relink, otherwise we might link with an installed library
  9699. # when we should be linking with a yet-to-be-installed one
  9700. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9701. test "$hardcode_minus_L" != no; then
  9702. # Linking always hardcodes the temporary library directory.
  9703. hardcode_action=relink
  9704. else
  9705. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9706. hardcode_action=immediate
  9707. fi
  9708. else
  9709. # We cannot hardcode anything, or else we can only hardcode existing
  9710. # directories.
  9711. hardcode_action=unsupported
  9712. fi
  9713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9714. $as_echo "$hardcode_action" >&6; }
  9715. if test "$hardcode_action" = relink ||
  9716. test "$inherit_rpath" = yes; then
  9717. # Fast installation is not supported
  9718. enable_fast_install=no
  9719. elif test "$shlibpath_overrides_runpath" = yes ||
  9720. test "$enable_shared" = no; then
  9721. # Fast installation is not necessary
  9722. enable_fast_install=needless
  9723. fi
  9724. if test "x$enable_dlopen" != xyes; then
  9725. enable_dlopen=unknown
  9726. enable_dlopen_self=unknown
  9727. enable_dlopen_self_static=unknown
  9728. else
  9729. lt_cv_dlopen=no
  9730. lt_cv_dlopen_libs=
  9731. case $host_os in
  9732. beos*)
  9733. lt_cv_dlopen="load_add_on"
  9734. lt_cv_dlopen_libs=
  9735. lt_cv_dlopen_self=yes
  9736. ;;
  9737. mingw* | pw32* | cegcc*)
  9738. lt_cv_dlopen="LoadLibrary"
  9739. lt_cv_dlopen_libs=
  9740. ;;
  9741. cygwin*)
  9742. lt_cv_dlopen="dlopen"
  9743. lt_cv_dlopen_libs=
  9744. ;;
  9745. darwin*)
  9746. # if libdl is installed we need to link against it
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9748. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9749. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9750. $as_echo_n "(cached) " >&6
  9751. else
  9752. ac_check_lib_save_LIBS=$LIBS
  9753. LIBS="-ldl $LIBS"
  9754. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9755. /* end confdefs.h. */
  9756. /* Override any GCC internal prototype to avoid an error.
  9757. Use char because int might match the return type of a GCC
  9758. builtin and then its argument prototype would still apply. */
  9759. #ifdef __cplusplus
  9760. extern "C"
  9761. #endif
  9762. char dlopen ();
  9763. int
  9764. main ()
  9765. {
  9766. return dlopen ();
  9767. ;
  9768. return 0;
  9769. }
  9770. _ACEOF
  9771. if ac_fn_c_try_link "$LINENO"; then :
  9772. ac_cv_lib_dl_dlopen=yes
  9773. else
  9774. ac_cv_lib_dl_dlopen=no
  9775. fi
  9776. rm -f core conftest.err conftest.$ac_objext \
  9777. conftest$ac_exeext conftest.$ac_ext
  9778. LIBS=$ac_check_lib_save_LIBS
  9779. fi
  9780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9781. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9782. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9783. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9784. else
  9785. lt_cv_dlopen="dyld"
  9786. lt_cv_dlopen_libs=
  9787. lt_cv_dlopen_self=yes
  9788. fi
  9789. ;;
  9790. *)
  9791. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9792. if test "x$ac_cv_func_shl_load" = xyes; then :
  9793. lt_cv_dlopen="shl_load"
  9794. else
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9796. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9797. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9798. $as_echo_n "(cached) " >&6
  9799. else
  9800. ac_check_lib_save_LIBS=$LIBS
  9801. LIBS="-ldld $LIBS"
  9802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9803. /* end confdefs.h. */
  9804. /* Override any GCC internal prototype to avoid an error.
  9805. Use char because int might match the return type of a GCC
  9806. builtin and then its argument prototype would still apply. */
  9807. #ifdef __cplusplus
  9808. extern "C"
  9809. #endif
  9810. char shl_load ();
  9811. int
  9812. main ()
  9813. {
  9814. return shl_load ();
  9815. ;
  9816. return 0;
  9817. }
  9818. _ACEOF
  9819. if ac_fn_c_try_link "$LINENO"; then :
  9820. ac_cv_lib_dld_shl_load=yes
  9821. else
  9822. ac_cv_lib_dld_shl_load=no
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext \
  9825. conftest$ac_exeext conftest.$ac_ext
  9826. LIBS=$ac_check_lib_save_LIBS
  9827. fi
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9829. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9830. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9831. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9832. else
  9833. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9834. if test "x$ac_cv_func_dlopen" = xyes; then :
  9835. lt_cv_dlopen="dlopen"
  9836. else
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9838. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9839. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9840. $as_echo_n "(cached) " >&6
  9841. else
  9842. ac_check_lib_save_LIBS=$LIBS
  9843. LIBS="-ldl $LIBS"
  9844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9845. /* end confdefs.h. */
  9846. /* Override any GCC internal prototype to avoid an error.
  9847. Use char because int might match the return type of a GCC
  9848. builtin and then its argument prototype would still apply. */
  9849. #ifdef __cplusplus
  9850. extern "C"
  9851. #endif
  9852. char dlopen ();
  9853. int
  9854. main ()
  9855. {
  9856. return dlopen ();
  9857. ;
  9858. return 0;
  9859. }
  9860. _ACEOF
  9861. if ac_fn_c_try_link "$LINENO"; then :
  9862. ac_cv_lib_dl_dlopen=yes
  9863. else
  9864. ac_cv_lib_dl_dlopen=no
  9865. fi
  9866. rm -f core conftest.err conftest.$ac_objext \
  9867. conftest$ac_exeext conftest.$ac_ext
  9868. LIBS=$ac_check_lib_save_LIBS
  9869. fi
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9871. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9872. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9873. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9874. else
  9875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9876. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9877. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9878. $as_echo_n "(cached) " >&6
  9879. else
  9880. ac_check_lib_save_LIBS=$LIBS
  9881. LIBS="-lsvld $LIBS"
  9882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9883. /* end confdefs.h. */
  9884. /* Override any GCC internal prototype to avoid an error.
  9885. Use char because int might match the return type of a GCC
  9886. builtin and then its argument prototype would still apply. */
  9887. #ifdef __cplusplus
  9888. extern "C"
  9889. #endif
  9890. char dlopen ();
  9891. int
  9892. main ()
  9893. {
  9894. return dlopen ();
  9895. ;
  9896. return 0;
  9897. }
  9898. _ACEOF
  9899. if ac_fn_c_try_link "$LINENO"; then :
  9900. ac_cv_lib_svld_dlopen=yes
  9901. else
  9902. ac_cv_lib_svld_dlopen=no
  9903. fi
  9904. rm -f core conftest.err conftest.$ac_objext \
  9905. conftest$ac_exeext conftest.$ac_ext
  9906. LIBS=$ac_check_lib_save_LIBS
  9907. fi
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9909. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9910. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9911. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9912. else
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9914. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9915. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. ac_check_lib_save_LIBS=$LIBS
  9919. LIBS="-ldld $LIBS"
  9920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9921. /* end confdefs.h. */
  9922. /* Override any GCC internal prototype to avoid an error.
  9923. Use char because int might match the return type of a GCC
  9924. builtin and then its argument prototype would still apply. */
  9925. #ifdef __cplusplus
  9926. extern "C"
  9927. #endif
  9928. char dld_link ();
  9929. int
  9930. main ()
  9931. {
  9932. return dld_link ();
  9933. ;
  9934. return 0;
  9935. }
  9936. _ACEOF
  9937. if ac_fn_c_try_link "$LINENO"; then :
  9938. ac_cv_lib_dld_dld_link=yes
  9939. else
  9940. ac_cv_lib_dld_dld_link=no
  9941. fi
  9942. rm -f core conftest.err conftest.$ac_objext \
  9943. conftest$ac_exeext conftest.$ac_ext
  9944. LIBS=$ac_check_lib_save_LIBS
  9945. fi
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9947. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9948. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9949. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9950. fi
  9951. fi
  9952. fi
  9953. fi
  9954. fi
  9955. fi
  9956. ;;
  9957. esac
  9958. if test "x$lt_cv_dlopen" != xno; then
  9959. enable_dlopen=yes
  9960. else
  9961. enable_dlopen=no
  9962. fi
  9963. case $lt_cv_dlopen in
  9964. dlopen)
  9965. save_CPPFLAGS="$CPPFLAGS"
  9966. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9967. save_LDFLAGS="$LDFLAGS"
  9968. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9969. save_LIBS="$LIBS"
  9970. LIBS="$lt_cv_dlopen_libs $LIBS"
  9971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9972. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9973. if ${lt_cv_dlopen_self+:} false; then :
  9974. $as_echo_n "(cached) " >&6
  9975. else
  9976. if test "$cross_compiling" = yes; then :
  9977. lt_cv_dlopen_self=cross
  9978. else
  9979. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9980. lt_status=$lt_dlunknown
  9981. cat > conftest.$ac_ext <<_LT_EOF
  9982. #line 11575 "configure"
  9983. #include "confdefs.h"
  9984. #if HAVE_DLFCN_H
  9985. #include <dlfcn.h>
  9986. #endif
  9987. #include <stdio.h>
  9988. #ifdef RTLD_GLOBAL
  9989. # define LT_DLGLOBAL RTLD_GLOBAL
  9990. #else
  9991. # ifdef DL_GLOBAL
  9992. # define LT_DLGLOBAL DL_GLOBAL
  9993. # else
  9994. # define LT_DLGLOBAL 0
  9995. # endif
  9996. #endif
  9997. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9998. find out it does not work in some platform. */
  9999. #ifndef LT_DLLAZY_OR_NOW
  10000. # ifdef RTLD_LAZY
  10001. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10002. # else
  10003. # ifdef DL_LAZY
  10004. # define LT_DLLAZY_OR_NOW DL_LAZY
  10005. # else
  10006. # ifdef RTLD_NOW
  10007. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10008. # else
  10009. # ifdef DL_NOW
  10010. # define LT_DLLAZY_OR_NOW DL_NOW
  10011. # else
  10012. # define LT_DLLAZY_OR_NOW 0
  10013. # endif
  10014. # endif
  10015. # endif
  10016. # endif
  10017. #endif
  10018. /* When -fvisbility=hidden is used, assume the code has been annotated
  10019. correspondingly for the symbols needed. */
  10020. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10021. void fnord () __attribute__((visibility("default")));
  10022. #endif
  10023. void fnord () { int i=42; }
  10024. int main ()
  10025. {
  10026. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10027. int status = $lt_dlunknown;
  10028. if (self)
  10029. {
  10030. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10031. else
  10032. {
  10033. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10034. else puts (dlerror ());
  10035. }
  10036. /* dlclose (self); */
  10037. }
  10038. else
  10039. puts (dlerror ());
  10040. return status;
  10041. }
  10042. _LT_EOF
  10043. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10044. (eval $ac_link) 2>&5
  10045. ac_status=$?
  10046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10047. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10048. (./conftest; exit; ) >&5 2>/dev/null
  10049. lt_status=$?
  10050. case x$lt_status in
  10051. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10052. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10053. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10054. esac
  10055. else :
  10056. # compilation failed
  10057. lt_cv_dlopen_self=no
  10058. fi
  10059. fi
  10060. rm -fr conftest*
  10061. fi
  10062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10063. $as_echo "$lt_cv_dlopen_self" >&6; }
  10064. if test "x$lt_cv_dlopen_self" = xyes; then
  10065. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10067. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10068. if ${lt_cv_dlopen_self_static+:} false; then :
  10069. $as_echo_n "(cached) " >&6
  10070. else
  10071. if test "$cross_compiling" = yes; then :
  10072. lt_cv_dlopen_self_static=cross
  10073. else
  10074. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10075. lt_status=$lt_dlunknown
  10076. cat > conftest.$ac_ext <<_LT_EOF
  10077. #line 11681 "configure"
  10078. #include "confdefs.h"
  10079. #if HAVE_DLFCN_H
  10080. #include <dlfcn.h>
  10081. #endif
  10082. #include <stdio.h>
  10083. #ifdef RTLD_GLOBAL
  10084. # define LT_DLGLOBAL RTLD_GLOBAL
  10085. #else
  10086. # ifdef DL_GLOBAL
  10087. # define LT_DLGLOBAL DL_GLOBAL
  10088. # else
  10089. # define LT_DLGLOBAL 0
  10090. # endif
  10091. #endif
  10092. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10093. find out it does not work in some platform. */
  10094. #ifndef LT_DLLAZY_OR_NOW
  10095. # ifdef RTLD_LAZY
  10096. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10097. # else
  10098. # ifdef DL_LAZY
  10099. # define LT_DLLAZY_OR_NOW DL_LAZY
  10100. # else
  10101. # ifdef RTLD_NOW
  10102. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10103. # else
  10104. # ifdef DL_NOW
  10105. # define LT_DLLAZY_OR_NOW DL_NOW
  10106. # else
  10107. # define LT_DLLAZY_OR_NOW 0
  10108. # endif
  10109. # endif
  10110. # endif
  10111. # endif
  10112. #endif
  10113. /* When -fvisbility=hidden is used, assume the code has been annotated
  10114. correspondingly for the symbols needed. */
  10115. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10116. void fnord () __attribute__((visibility("default")));
  10117. #endif
  10118. void fnord () { int i=42; }
  10119. int main ()
  10120. {
  10121. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10122. int status = $lt_dlunknown;
  10123. if (self)
  10124. {
  10125. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10126. else
  10127. {
  10128. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10129. else puts (dlerror ());
  10130. }
  10131. /* dlclose (self); */
  10132. }
  10133. else
  10134. puts (dlerror ());
  10135. return status;
  10136. }
  10137. _LT_EOF
  10138. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10139. (eval $ac_link) 2>&5
  10140. ac_status=$?
  10141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10142. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10143. (./conftest; exit; ) >&5 2>/dev/null
  10144. lt_status=$?
  10145. case x$lt_status in
  10146. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10147. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10148. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10149. esac
  10150. else :
  10151. # compilation failed
  10152. lt_cv_dlopen_self_static=no
  10153. fi
  10154. fi
  10155. rm -fr conftest*
  10156. fi
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10158. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10159. fi
  10160. CPPFLAGS="$save_CPPFLAGS"
  10161. LDFLAGS="$save_LDFLAGS"
  10162. LIBS="$save_LIBS"
  10163. ;;
  10164. esac
  10165. case $lt_cv_dlopen_self in
  10166. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10167. *) enable_dlopen_self=unknown ;;
  10168. esac
  10169. case $lt_cv_dlopen_self_static in
  10170. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10171. *) enable_dlopen_self_static=unknown ;;
  10172. esac
  10173. fi
  10174. striplib=
  10175. old_striplib=
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10177. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10178. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10179. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10180. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10182. $as_echo "yes" >&6; }
  10183. else
  10184. # FIXME - insert some real tests, host_os isn't really good enough
  10185. case $host_os in
  10186. darwin*)
  10187. if test -n "$STRIP" ; then
  10188. striplib="$STRIP -x"
  10189. old_striplib="$STRIP -S"
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10191. $as_echo "yes" >&6; }
  10192. else
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10194. $as_echo "no" >&6; }
  10195. fi
  10196. ;;
  10197. *)
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10199. $as_echo "no" >&6; }
  10200. ;;
  10201. esac
  10202. fi
  10203. # Report which library types will actually be built
  10204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10205. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10207. $as_echo "$can_build_shared" >&6; }
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10209. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10210. test "$can_build_shared" = "no" && enable_shared=no
  10211. # On AIX, shared libraries and static libraries use the same namespace, and
  10212. # are all built from PIC.
  10213. case $host_os in
  10214. aix3*)
  10215. test "$enable_shared" = yes && enable_static=no
  10216. if test -n "$RANLIB"; then
  10217. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10218. postinstall_cmds='$RANLIB $lib'
  10219. fi
  10220. ;;
  10221. aix[4-9]*)
  10222. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10223. test "$enable_shared" = yes && enable_static=no
  10224. fi
  10225. ;;
  10226. esac
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10228. $as_echo "$enable_shared" >&6; }
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10230. $as_echo_n "checking whether to build static libraries... " >&6; }
  10231. # Make sure either enable_shared or enable_static is yes.
  10232. test "$enable_shared" = yes || enable_static=yes
  10233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10234. $as_echo "$enable_static" >&6; }
  10235. fi
  10236. ac_ext=c
  10237. ac_cpp='$CPP $CPPFLAGS'
  10238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10241. CC="$lt_save_CC"
  10242. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10243. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10244. (test "X$CXX" != "Xg++"))) ; then
  10245. ac_ext=cpp
  10246. ac_cpp='$CXXCPP $CPPFLAGS'
  10247. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10248. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10249. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10251. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10252. if test -z "$CXXCPP"; then
  10253. if ${ac_cv_prog_CXXCPP+:} false; then :
  10254. $as_echo_n "(cached) " >&6
  10255. else
  10256. # Double quotes because CXXCPP needs to be expanded
  10257. for CXXCPP in "$CXX -E" "/lib/cpp"
  10258. do
  10259. ac_preproc_ok=false
  10260. for ac_cxx_preproc_warn_flag in '' yes
  10261. do
  10262. # Use a header file that comes with gcc, so configuring glibc
  10263. # with a fresh cross-compiler works.
  10264. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10265. # <limits.h> exists even on freestanding compilers.
  10266. # On the NeXT, cc -E runs the code through the compiler's parser,
  10267. # not just through cpp. "Syntax error" is here to catch this case.
  10268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10269. /* end confdefs.h. */
  10270. #ifdef __STDC__
  10271. # include <limits.h>
  10272. #else
  10273. # include <assert.h>
  10274. #endif
  10275. Syntax error
  10276. _ACEOF
  10277. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10278. else
  10279. # Broken: fails on valid input.
  10280. continue
  10281. fi
  10282. rm -f conftest.err conftest.i conftest.$ac_ext
  10283. # OK, works on sane cases. Now check whether nonexistent headers
  10284. # can be detected and how.
  10285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10286. /* end confdefs.h. */
  10287. #include <ac_nonexistent.h>
  10288. _ACEOF
  10289. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10290. # Broken: success on invalid input.
  10291. continue
  10292. else
  10293. # Passes both tests.
  10294. ac_preproc_ok=:
  10295. break
  10296. fi
  10297. rm -f conftest.err conftest.i conftest.$ac_ext
  10298. done
  10299. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10300. rm -f conftest.i conftest.err conftest.$ac_ext
  10301. if $ac_preproc_ok; then :
  10302. break
  10303. fi
  10304. done
  10305. ac_cv_prog_CXXCPP=$CXXCPP
  10306. fi
  10307. CXXCPP=$ac_cv_prog_CXXCPP
  10308. else
  10309. ac_cv_prog_CXXCPP=$CXXCPP
  10310. fi
  10311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10312. $as_echo "$CXXCPP" >&6; }
  10313. ac_preproc_ok=false
  10314. for ac_cxx_preproc_warn_flag in '' yes
  10315. do
  10316. # Use a header file that comes with gcc, so configuring glibc
  10317. # with a fresh cross-compiler works.
  10318. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10319. # <limits.h> exists even on freestanding compilers.
  10320. # On the NeXT, cc -E runs the code through the compiler's parser,
  10321. # not just through cpp. "Syntax error" is here to catch this case.
  10322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10323. /* end confdefs.h. */
  10324. #ifdef __STDC__
  10325. # include <limits.h>
  10326. #else
  10327. # include <assert.h>
  10328. #endif
  10329. Syntax error
  10330. _ACEOF
  10331. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10332. else
  10333. # Broken: fails on valid input.
  10334. continue
  10335. fi
  10336. rm -f conftest.err conftest.i conftest.$ac_ext
  10337. # OK, works on sane cases. Now check whether nonexistent headers
  10338. # can be detected and how.
  10339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10340. /* end confdefs.h. */
  10341. #include <ac_nonexistent.h>
  10342. _ACEOF
  10343. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10344. # Broken: success on invalid input.
  10345. continue
  10346. else
  10347. # Passes both tests.
  10348. ac_preproc_ok=:
  10349. break
  10350. fi
  10351. rm -f conftest.err conftest.i conftest.$ac_ext
  10352. done
  10353. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10354. rm -f conftest.i conftest.err conftest.$ac_ext
  10355. if $ac_preproc_ok; then :
  10356. else
  10357. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10358. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10359. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10360. See \`config.log' for more details" "$LINENO" 5; }
  10361. fi
  10362. ac_ext=c
  10363. ac_cpp='$CPP $CPPFLAGS'
  10364. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10365. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10366. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10367. else
  10368. _lt_caught_CXX_error=yes
  10369. fi
  10370. ac_ext=cpp
  10371. ac_cpp='$CXXCPP $CPPFLAGS'
  10372. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10373. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10374. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10375. archive_cmds_need_lc_CXX=no
  10376. allow_undefined_flag_CXX=
  10377. always_export_symbols_CXX=no
  10378. archive_expsym_cmds_CXX=
  10379. compiler_needs_object_CXX=no
  10380. export_dynamic_flag_spec_CXX=
  10381. hardcode_direct_CXX=no
  10382. hardcode_direct_absolute_CXX=no
  10383. hardcode_libdir_flag_spec_CXX=
  10384. hardcode_libdir_flag_spec_ld_CXX=
  10385. hardcode_libdir_separator_CXX=
  10386. hardcode_minus_L_CXX=no
  10387. hardcode_shlibpath_var_CXX=unsupported
  10388. hardcode_automatic_CXX=no
  10389. inherit_rpath_CXX=no
  10390. module_cmds_CXX=
  10391. module_expsym_cmds_CXX=
  10392. link_all_deplibs_CXX=unknown
  10393. old_archive_cmds_CXX=$old_archive_cmds
  10394. reload_flag_CXX=$reload_flag
  10395. reload_cmds_CXX=$reload_cmds
  10396. no_undefined_flag_CXX=
  10397. whole_archive_flag_spec_CXX=
  10398. enable_shared_with_static_runtimes_CXX=no
  10399. # Source file extension for C++ test sources.
  10400. ac_ext=cpp
  10401. # Object file extension for compiled C++ test sources.
  10402. objext=o
  10403. objext_CXX=$objext
  10404. # No sense in running all these tests if we already determined that
  10405. # the CXX compiler isn't working. Some variables (like enable_shared)
  10406. # are currently assumed to apply to all compilers on this platform,
  10407. # and will be corrupted by setting them based on a non-working compiler.
  10408. if test "$_lt_caught_CXX_error" != yes; then
  10409. # Code to be used in simple compile tests
  10410. lt_simple_compile_test_code="int some_variable = 0;"
  10411. # Code to be used in simple link tests
  10412. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10413. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10414. # If no C compiler was specified, use CC.
  10415. LTCC=${LTCC-"$CC"}
  10416. # If no C compiler flags were specified, use CFLAGS.
  10417. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10418. # Allow CC to be a program name with arguments.
  10419. compiler=$CC
  10420. # save warnings/boilerplate of simple test code
  10421. ac_outfile=conftest.$ac_objext
  10422. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10423. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10424. _lt_compiler_boilerplate=`cat conftest.err`
  10425. $RM conftest*
  10426. ac_outfile=conftest.$ac_objext
  10427. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10428. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10429. _lt_linker_boilerplate=`cat conftest.err`
  10430. $RM -r conftest*
  10431. # Allow CC to be a program name with arguments.
  10432. lt_save_CC=$CC
  10433. lt_save_LD=$LD
  10434. lt_save_GCC=$GCC
  10435. GCC=$GXX
  10436. lt_save_with_gnu_ld=$with_gnu_ld
  10437. lt_save_path_LD=$lt_cv_path_LD
  10438. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10439. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10440. else
  10441. $as_unset lt_cv_prog_gnu_ld
  10442. fi
  10443. if test -n "${lt_cv_path_LDCXX+set}"; then
  10444. lt_cv_path_LD=$lt_cv_path_LDCXX
  10445. else
  10446. $as_unset lt_cv_path_LD
  10447. fi
  10448. test -z "${LDCXX+set}" || LD=$LDCXX
  10449. CC=${CXX-"c++"}
  10450. compiler=$CC
  10451. compiler_CXX=$CC
  10452. for cc_temp in $compiler""; do
  10453. case $cc_temp in
  10454. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10455. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10456. \-*) ;;
  10457. *) break;;
  10458. esac
  10459. done
  10460. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10461. if test -n "$compiler"; then
  10462. # We don't want -fno-exception when compiling C++ code, so set the
  10463. # no_builtin_flag separately
  10464. if test "$GXX" = yes; then
  10465. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10466. else
  10467. lt_prog_compiler_no_builtin_flag_CXX=
  10468. fi
  10469. if test "$GXX" = yes; then
  10470. # Set up default GNU C++ configuration
  10471. # Check whether --with-gnu-ld was given.
  10472. if test "${with_gnu_ld+set}" = set; then :
  10473. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10474. else
  10475. with_gnu_ld=no
  10476. fi
  10477. ac_prog=ld
  10478. if test "$GCC" = yes; then
  10479. # Check if gcc -print-prog-name=ld gives a path.
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10481. $as_echo_n "checking for ld used by $CC... " >&6; }
  10482. case $host in
  10483. *-*-mingw*)
  10484. # gcc leaves a trailing carriage return which upsets mingw
  10485. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10486. *)
  10487. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10488. esac
  10489. case $ac_prog in
  10490. # Accept absolute paths.
  10491. [\\/]* | ?:[\\/]*)
  10492. re_direlt='/[^/][^/]*/\.\./'
  10493. # Canonicalize the pathname of ld
  10494. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10495. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10496. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10497. done
  10498. test -z "$LD" && LD="$ac_prog"
  10499. ;;
  10500. "")
  10501. # If it fails, then pretend we aren't using GCC.
  10502. ac_prog=ld
  10503. ;;
  10504. *)
  10505. # If it is relative, then search for the first ld in PATH.
  10506. with_gnu_ld=unknown
  10507. ;;
  10508. esac
  10509. elif test "$with_gnu_ld" = yes; then
  10510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10511. $as_echo_n "checking for GNU ld... " >&6; }
  10512. else
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10514. $as_echo_n "checking for non-GNU ld... " >&6; }
  10515. fi
  10516. if ${lt_cv_path_LD+:} false; then :
  10517. $as_echo_n "(cached) " >&6
  10518. else
  10519. if test -z "$LD"; then
  10520. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10521. for ac_dir in $PATH; do
  10522. IFS="$lt_save_ifs"
  10523. test -z "$ac_dir" && ac_dir=.
  10524. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10525. lt_cv_path_LD="$ac_dir/$ac_prog"
  10526. # Check to see if the program is GNU ld. I'd rather use --version,
  10527. # but apparently some variants of GNU ld only accept -v.
  10528. # Break only if it was the GNU/non-GNU ld that we prefer.
  10529. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10530. *GNU* | *'with BFD'*)
  10531. test "$with_gnu_ld" != no && break
  10532. ;;
  10533. *)
  10534. test "$with_gnu_ld" != yes && break
  10535. ;;
  10536. esac
  10537. fi
  10538. done
  10539. IFS="$lt_save_ifs"
  10540. else
  10541. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10542. fi
  10543. fi
  10544. LD="$lt_cv_path_LD"
  10545. if test -n "$LD"; then
  10546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10547. $as_echo "$LD" >&6; }
  10548. else
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10550. $as_echo "no" >&6; }
  10551. fi
  10552. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10554. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10555. if ${lt_cv_prog_gnu_ld+:} false; then :
  10556. $as_echo_n "(cached) " >&6
  10557. else
  10558. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10559. case `$LD -v 2>&1 </dev/null` in
  10560. *GNU* | *'with BFD'*)
  10561. lt_cv_prog_gnu_ld=yes
  10562. ;;
  10563. *)
  10564. lt_cv_prog_gnu_ld=no
  10565. ;;
  10566. esac
  10567. fi
  10568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10569. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10570. with_gnu_ld=$lt_cv_prog_gnu_ld
  10571. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10572. # archiving commands below assume that GNU ld is being used.
  10573. if test "$with_gnu_ld" = yes; then
  10574. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10575. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10576. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10577. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10578. # If archive_cmds runs LD, not CC, wlarc should be empty
  10579. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10580. # investigate it a little bit more. (MM)
  10581. wlarc='${wl}'
  10582. # ancient GNU ld didn't support --whole-archive et. al.
  10583. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10584. $GREP 'no-whole-archive' > /dev/null; then
  10585. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10586. else
  10587. whole_archive_flag_spec_CXX=
  10588. fi
  10589. else
  10590. with_gnu_ld=no
  10591. wlarc=
  10592. # A generic and very simple default shared library creation
  10593. # command for GNU C++ for the case where it uses the native
  10594. # linker, instead of GNU ld. If possible, this setting should
  10595. # overridden to take advantage of the native linker features on
  10596. # the platform it is being used on.
  10597. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10598. fi
  10599. # Commands to make compiler produce verbose output that lists
  10600. # what "hidden" libraries, object files and flags are used when
  10601. # linking a shared library.
  10602. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10603. else
  10604. GXX=no
  10605. with_gnu_ld=no
  10606. wlarc=
  10607. fi
  10608. # PORTME: fill in a description of your system's C++ link characteristics
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10610. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10611. ld_shlibs_CXX=yes
  10612. case $host_os in
  10613. aix3*)
  10614. # FIXME: insert proper C++ library support
  10615. ld_shlibs_CXX=no
  10616. ;;
  10617. aix[4-9]*)
  10618. if test "$host_cpu" = ia64; then
  10619. # On IA64, the linker does run time linking by default, so we don't
  10620. # have to do anything special.
  10621. aix_use_runtimelinking=no
  10622. exp_sym_flag='-Bexport'
  10623. no_entry_flag=""
  10624. else
  10625. aix_use_runtimelinking=no
  10626. # Test if we are trying to use run time linking or normal
  10627. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10628. # need to do runtime linking.
  10629. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10630. for ld_flag in $LDFLAGS; do
  10631. case $ld_flag in
  10632. *-brtl*)
  10633. aix_use_runtimelinking=yes
  10634. break
  10635. ;;
  10636. esac
  10637. done
  10638. ;;
  10639. esac
  10640. exp_sym_flag='-bexport'
  10641. no_entry_flag='-bnoentry'
  10642. fi
  10643. # When large executables or shared objects are built, AIX ld can
  10644. # have problems creating the table of contents. If linking a library
  10645. # or program results in "error TOC overflow" add -mminimal-toc to
  10646. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10647. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10648. archive_cmds_CXX=''
  10649. hardcode_direct_CXX=yes
  10650. hardcode_direct_absolute_CXX=yes
  10651. hardcode_libdir_separator_CXX=':'
  10652. link_all_deplibs_CXX=yes
  10653. file_list_spec_CXX='${wl}-f,'
  10654. if test "$GXX" = yes; then
  10655. case $host_os in aix4.[012]|aix4.[012].*)
  10656. # We only want to do this on AIX 4.2 and lower, the check
  10657. # below for broken collect2 doesn't work under 4.3+
  10658. collect2name=`${CC} -print-prog-name=collect2`
  10659. if test -f "$collect2name" &&
  10660. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10661. then
  10662. # We have reworked collect2
  10663. :
  10664. else
  10665. # We have old collect2
  10666. hardcode_direct_CXX=unsupported
  10667. # It fails to find uninstalled libraries when the uninstalled
  10668. # path is not listed in the libpath. Setting hardcode_minus_L
  10669. # to unsupported forces relinking
  10670. hardcode_minus_L_CXX=yes
  10671. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10672. hardcode_libdir_separator_CXX=
  10673. fi
  10674. esac
  10675. shared_flag='-shared'
  10676. if test "$aix_use_runtimelinking" = yes; then
  10677. shared_flag="$shared_flag "'${wl}-G'
  10678. fi
  10679. else
  10680. # not using gcc
  10681. if test "$host_cpu" = ia64; then
  10682. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10683. # chokes on -Wl,-G. The following line is correct:
  10684. shared_flag='-G'
  10685. else
  10686. if test "$aix_use_runtimelinking" = yes; then
  10687. shared_flag='${wl}-G'
  10688. else
  10689. shared_flag='${wl}-bM:SRE'
  10690. fi
  10691. fi
  10692. fi
  10693. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10694. # It seems that -bexpall does not export symbols beginning with
  10695. # underscore (_), so it is better to generate a list of symbols to
  10696. # export.
  10697. always_export_symbols_CXX=yes
  10698. if test "$aix_use_runtimelinking" = yes; then
  10699. # Warning - without using the other runtime loading flags (-brtl),
  10700. # -berok will link without error, but may produce a broken library.
  10701. allow_undefined_flag_CXX='-berok'
  10702. # Determine the default libpath from the value encoded in an empty
  10703. # executable.
  10704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10705. /* end confdefs.h. */
  10706. int
  10707. main ()
  10708. {
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_cxx_try_link "$LINENO"; then :
  10714. lt_aix_libpath_sed='
  10715. /Import File Strings/,/^$/ {
  10716. /^0/ {
  10717. s/^0 *\(.*\)$/\1/
  10718. p
  10719. }
  10720. }'
  10721. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10722. # Check for a 64-bit object if we didn't find anything.
  10723. if test -z "$aix_libpath"; then
  10724. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10725. fi
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10730. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10731. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10732. else
  10733. if test "$host_cpu" = ia64; then
  10734. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10735. allow_undefined_flag_CXX="-z nodefs"
  10736. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10737. else
  10738. # Determine the default libpath from the value encoded in an
  10739. # empty executable.
  10740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10741. /* end confdefs.h. */
  10742. int
  10743. main ()
  10744. {
  10745. ;
  10746. return 0;
  10747. }
  10748. _ACEOF
  10749. if ac_fn_cxx_try_link "$LINENO"; then :
  10750. lt_aix_libpath_sed='
  10751. /Import File Strings/,/^$/ {
  10752. /^0/ {
  10753. s/^0 *\(.*\)$/\1/
  10754. p
  10755. }
  10756. }'
  10757. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10758. # Check for a 64-bit object if we didn't find anything.
  10759. if test -z "$aix_libpath"; then
  10760. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10761. fi
  10762. fi
  10763. rm -f core conftest.err conftest.$ac_objext \
  10764. conftest$ac_exeext conftest.$ac_ext
  10765. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10766. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10767. # Warning - without using the other run time loading flags,
  10768. # -berok will link without error, but may produce a broken library.
  10769. no_undefined_flag_CXX=' ${wl}-bernotok'
  10770. allow_undefined_flag_CXX=' ${wl}-berok'
  10771. if test "$with_gnu_ld" = yes; then
  10772. # We only use this code for GNU lds that support --whole-archive.
  10773. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10774. else
  10775. # Exported symbols can be pulled into shared objects from archives
  10776. whole_archive_flag_spec_CXX='$convenience'
  10777. fi
  10778. archive_cmds_need_lc_CXX=yes
  10779. # This is similar to how AIX traditionally builds its shared
  10780. # libraries.
  10781. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10782. fi
  10783. fi
  10784. ;;
  10785. beos*)
  10786. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10787. allow_undefined_flag_CXX=unsupported
  10788. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10789. # support --undefined. This deserves some investigation. FIXME
  10790. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10791. else
  10792. ld_shlibs_CXX=no
  10793. fi
  10794. ;;
  10795. chorus*)
  10796. case $cc_basename in
  10797. *)
  10798. # FIXME: insert proper C++ library support
  10799. ld_shlibs_CXX=no
  10800. ;;
  10801. esac
  10802. ;;
  10803. cygwin* | mingw* | pw32* | cegcc*)
  10804. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10805. # as there is no search path for DLLs.
  10806. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10807. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10808. allow_undefined_flag_CXX=unsupported
  10809. always_export_symbols_CXX=no
  10810. enable_shared_with_static_runtimes_CXX=yes
  10811. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10812. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10813. # If the export-symbols file already is a .def file (1st line
  10814. # is EXPORTS), use it as is; otherwise, prepend...
  10815. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10816. cp $export_symbols $output_objdir/$soname.def;
  10817. else
  10818. echo EXPORTS > $output_objdir/$soname.def;
  10819. cat $export_symbols >> $output_objdir/$soname.def;
  10820. fi~
  10821. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10822. else
  10823. ld_shlibs_CXX=no
  10824. fi
  10825. ;;
  10826. darwin* | rhapsody*)
  10827. archive_cmds_need_lc_CXX=no
  10828. hardcode_direct_CXX=no
  10829. hardcode_automatic_CXX=yes
  10830. hardcode_shlibpath_var_CXX=unsupported
  10831. if test "$lt_cv_ld_force_load" = "yes"; then
  10832. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10833. else
  10834. whole_archive_flag_spec_CXX=''
  10835. fi
  10836. link_all_deplibs_CXX=yes
  10837. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10838. case $cc_basename in
  10839. ifort*) _lt_dar_can_shared=yes ;;
  10840. *) _lt_dar_can_shared=$GCC ;;
  10841. esac
  10842. if test "$_lt_dar_can_shared" = "yes"; then
  10843. output_verbose_link_cmd=func_echo_all
  10844. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10845. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10846. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10847. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10848. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10849. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10850. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10851. fi
  10852. else
  10853. ld_shlibs_CXX=no
  10854. fi
  10855. ;;
  10856. dgux*)
  10857. case $cc_basename in
  10858. ec++*)
  10859. # FIXME: insert proper C++ library support
  10860. ld_shlibs_CXX=no
  10861. ;;
  10862. ghcx*)
  10863. # Green Hills C++ Compiler
  10864. # FIXME: insert proper C++ library support
  10865. ld_shlibs_CXX=no
  10866. ;;
  10867. *)
  10868. # FIXME: insert proper C++ library support
  10869. ld_shlibs_CXX=no
  10870. ;;
  10871. esac
  10872. ;;
  10873. freebsd2.*)
  10874. # C++ shared libraries reported to be fairly broken before
  10875. # switch to ELF
  10876. ld_shlibs_CXX=no
  10877. ;;
  10878. freebsd-elf*)
  10879. archive_cmds_need_lc_CXX=no
  10880. ;;
  10881. freebsd* | dragonfly*)
  10882. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10883. # conventions
  10884. ld_shlibs_CXX=yes
  10885. ;;
  10886. gnu*)
  10887. ;;
  10888. haiku*)
  10889. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10890. link_all_deplibs_CXX=yes
  10891. ;;
  10892. hpux9*)
  10893. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10894. hardcode_libdir_separator_CXX=:
  10895. export_dynamic_flag_spec_CXX='${wl}-E'
  10896. hardcode_direct_CXX=yes
  10897. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10898. # but as the default
  10899. # location of the library.
  10900. case $cc_basename in
  10901. CC*)
  10902. # FIXME: insert proper C++ library support
  10903. ld_shlibs_CXX=no
  10904. ;;
  10905. aCC*)
  10906. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10907. # Commands to make compiler produce verbose output that lists
  10908. # what "hidden" libraries, object files and flags are used when
  10909. # linking a shared library.
  10910. #
  10911. # There doesn't appear to be a way to prevent this compiler from
  10912. # explicitly linking system object files so we need to strip them
  10913. # from the output so that they don't get included in the library
  10914. # dependencies.
  10915. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10916. ;;
  10917. *)
  10918. if test "$GXX" = yes; then
  10919. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10920. else
  10921. # FIXME: insert proper C++ library support
  10922. ld_shlibs_CXX=no
  10923. fi
  10924. ;;
  10925. esac
  10926. ;;
  10927. hpux10*|hpux11*)
  10928. if test $with_gnu_ld = no; then
  10929. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10930. hardcode_libdir_separator_CXX=:
  10931. case $host_cpu in
  10932. hppa*64*|ia64*)
  10933. ;;
  10934. *)
  10935. export_dynamic_flag_spec_CXX='${wl}-E'
  10936. ;;
  10937. esac
  10938. fi
  10939. case $host_cpu in
  10940. hppa*64*|ia64*)
  10941. hardcode_direct_CXX=no
  10942. hardcode_shlibpath_var_CXX=no
  10943. ;;
  10944. *)
  10945. hardcode_direct_CXX=yes
  10946. hardcode_direct_absolute_CXX=yes
  10947. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10948. # but as the default
  10949. # location of the library.
  10950. ;;
  10951. esac
  10952. case $cc_basename in
  10953. CC*)
  10954. # FIXME: insert proper C++ library support
  10955. ld_shlibs_CXX=no
  10956. ;;
  10957. aCC*)
  10958. case $host_cpu in
  10959. hppa*64*)
  10960. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10961. ;;
  10962. ia64*)
  10963. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10964. ;;
  10965. *)
  10966. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10967. ;;
  10968. esac
  10969. # Commands to make compiler produce verbose output that lists
  10970. # what "hidden" libraries, object files and flags are used when
  10971. # linking a shared library.
  10972. #
  10973. # There doesn't appear to be a way to prevent this compiler from
  10974. # explicitly linking system object files so we need to strip them
  10975. # from the output so that they don't get included in the library
  10976. # dependencies.
  10977. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10978. ;;
  10979. *)
  10980. if test "$GXX" = yes; then
  10981. if test $with_gnu_ld = no; then
  10982. case $host_cpu in
  10983. hppa*64*)
  10984. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10985. ;;
  10986. ia64*)
  10987. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10988. ;;
  10989. *)
  10990. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10991. ;;
  10992. esac
  10993. fi
  10994. else
  10995. # FIXME: insert proper C++ library support
  10996. ld_shlibs_CXX=no
  10997. fi
  10998. ;;
  10999. esac
  11000. ;;
  11001. interix[3-9]*)
  11002. hardcode_direct_CXX=no
  11003. hardcode_shlibpath_var_CXX=no
  11004. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11005. export_dynamic_flag_spec_CXX='${wl}-E'
  11006. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11007. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11008. # default) and relocated if they conflict, which is a slow very memory
  11009. # consuming and fragmenting process. To avoid this, we pick a random,
  11010. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11011. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11012. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11013. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11014. ;;
  11015. irix5* | irix6*)
  11016. case $cc_basename in
  11017. CC*)
  11018. # SGI C++
  11019. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11020. # Archives containing C++ object files must be created using
  11021. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11022. # necessary to make sure instantiated templates are included
  11023. # in the archive.
  11024. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11025. ;;
  11026. *)
  11027. if test "$GXX" = yes; then
  11028. if test "$with_gnu_ld" = no; then
  11029. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11030. else
  11031. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11032. fi
  11033. fi
  11034. link_all_deplibs_CXX=yes
  11035. ;;
  11036. esac
  11037. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11038. hardcode_libdir_separator_CXX=:
  11039. inherit_rpath_CXX=yes
  11040. ;;
  11041. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11042. case $cc_basename in
  11043. KCC*)
  11044. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11045. # KCC will only create a shared library if the output file
  11046. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11047. # to its proper name (with version) after linking.
  11048. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11049. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11050. # Commands to make compiler produce verbose output that lists
  11051. # what "hidden" libraries, object files and flags are used when
  11052. # linking a shared library.
  11053. #
  11054. # There doesn't appear to be a way to prevent this compiler from
  11055. # explicitly linking system object files so we need to strip them
  11056. # from the output so that they don't get included in the library
  11057. # dependencies.
  11058. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11059. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11060. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11061. # Archives containing C++ object files must be created using
  11062. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11063. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11064. ;;
  11065. icpc* | ecpc* )
  11066. # Intel C++
  11067. with_gnu_ld=yes
  11068. # version 8.0 and above of icpc choke on multiply defined symbols
  11069. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11070. # earlier do not add the objects themselves.
  11071. case `$CC -V 2>&1` in
  11072. *"Version 7."*)
  11073. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11074. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11075. ;;
  11076. *) # Version 8.0 or newer
  11077. tmp_idyn=
  11078. case $host_cpu in
  11079. ia64*) tmp_idyn=' -i_dynamic';;
  11080. esac
  11081. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11082. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11083. ;;
  11084. esac
  11085. archive_cmds_need_lc_CXX=no
  11086. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11087. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11088. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11089. ;;
  11090. pgCC* | pgcpp*)
  11091. # Portland Group C++ compiler
  11092. case `$CC -V` in
  11093. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11094. prelink_cmds_CXX='tpldir=Template.dir~
  11095. rm -rf $tpldir~
  11096. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11097. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11098. old_archive_cmds_CXX='tpldir=Template.dir~
  11099. rm -rf $tpldir~
  11100. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11101. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11102. $RANLIB $oldlib'
  11103. archive_cmds_CXX='tpldir=Template.dir~
  11104. rm -rf $tpldir~
  11105. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11106. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11107. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11108. rm -rf $tpldir~
  11109. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11110. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11111. ;;
  11112. *) # Version 6 and above use weak symbols
  11113. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11114. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11115. ;;
  11116. esac
  11117. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11118. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11119. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11120. ;;
  11121. cxx*)
  11122. # Compaq C++
  11123. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11124. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11125. runpath_var=LD_RUN_PATH
  11126. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11127. hardcode_libdir_separator_CXX=:
  11128. # Commands to make compiler produce verbose output that lists
  11129. # what "hidden" libraries, object files and flags are used when
  11130. # linking a shared library.
  11131. #
  11132. # There doesn't appear to be a way to prevent this compiler from
  11133. # explicitly linking system object files so we need to strip them
  11134. # from the output so that they don't get included in the library
  11135. # dependencies.
  11136. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11137. ;;
  11138. xl* | mpixl* | bgxl*)
  11139. # IBM XL 8.0 on PPC, with GNU ld
  11140. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11141. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11142. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11143. if test "x$supports_anon_versioning" = xyes; then
  11144. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11145. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11146. echo "local: *; };" >> $output_objdir/$libname.ver~
  11147. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11148. fi
  11149. ;;
  11150. *)
  11151. case `$CC -V 2>&1 | sed 5q` in
  11152. *Sun\ C*)
  11153. # Sun C++ 5.9
  11154. no_undefined_flag_CXX=' -zdefs'
  11155. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11156. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11157. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11158. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11159. compiler_needs_object_CXX=yes
  11160. # Not sure whether something based on
  11161. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11162. # would be better.
  11163. output_verbose_link_cmd='func_echo_all'
  11164. # Archives containing C++ object files must be created using
  11165. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11166. # necessary to make sure instantiated templates are included
  11167. # in the archive.
  11168. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11169. ;;
  11170. esac
  11171. ;;
  11172. esac
  11173. ;;
  11174. lynxos*)
  11175. # FIXME: insert proper C++ library support
  11176. ld_shlibs_CXX=no
  11177. ;;
  11178. m88k*)
  11179. # FIXME: insert proper C++ library support
  11180. ld_shlibs_CXX=no
  11181. ;;
  11182. mvs*)
  11183. case $cc_basename in
  11184. cxx*)
  11185. # FIXME: insert proper C++ library support
  11186. ld_shlibs_CXX=no
  11187. ;;
  11188. *)
  11189. # FIXME: insert proper C++ library support
  11190. ld_shlibs_CXX=no
  11191. ;;
  11192. esac
  11193. ;;
  11194. netbsd*)
  11195. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11196. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11197. wlarc=
  11198. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11199. hardcode_direct_CXX=yes
  11200. hardcode_shlibpath_var_CXX=no
  11201. fi
  11202. # Workaround some broken pre-1.5 toolchains
  11203. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11204. ;;
  11205. *nto* | *qnx*)
  11206. ld_shlibs_CXX=yes
  11207. ;;
  11208. openbsd2*)
  11209. # C++ shared libraries are fairly broken
  11210. ld_shlibs_CXX=no
  11211. ;;
  11212. openbsd*)
  11213. if test -f /usr/libexec/ld.so; then
  11214. hardcode_direct_CXX=yes
  11215. hardcode_shlibpath_var_CXX=no
  11216. hardcode_direct_absolute_CXX=yes
  11217. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11218. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11219. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11220. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11221. export_dynamic_flag_spec_CXX='${wl}-E'
  11222. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11223. fi
  11224. output_verbose_link_cmd=func_echo_all
  11225. else
  11226. ld_shlibs_CXX=no
  11227. fi
  11228. ;;
  11229. osf3* | osf4* | osf5*)
  11230. case $cc_basename in
  11231. KCC*)
  11232. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11233. # KCC will only create a shared library if the output file
  11234. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11235. # to its proper name (with version) after linking.
  11236. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11237. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11238. hardcode_libdir_separator_CXX=:
  11239. # Archives containing C++ object files must be created using
  11240. # the KAI C++ compiler.
  11241. case $host in
  11242. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11243. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11244. esac
  11245. ;;
  11246. RCC*)
  11247. # Rational C++ 2.4.1
  11248. # FIXME: insert proper C++ library support
  11249. ld_shlibs_CXX=no
  11250. ;;
  11251. cxx*)
  11252. case $host in
  11253. osf3*)
  11254. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11255. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11256. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11257. ;;
  11258. *)
  11259. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11260. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11261. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11262. echo "-hidden">> $lib.exp~
  11263. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11264. $RM $lib.exp'
  11265. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11266. ;;
  11267. esac
  11268. hardcode_libdir_separator_CXX=:
  11269. # Commands to make compiler produce verbose output that lists
  11270. # what "hidden" libraries, object files and flags are used when
  11271. # linking a shared library.
  11272. #
  11273. # There doesn't appear to be a way to prevent this compiler from
  11274. # explicitly linking system object files so we need to strip them
  11275. # from the output so that they don't get included in the library
  11276. # dependencies.
  11277. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11278. ;;
  11279. *)
  11280. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11281. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11282. case $host in
  11283. osf3*)
  11284. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11285. ;;
  11286. *)
  11287. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11288. ;;
  11289. esac
  11290. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11291. hardcode_libdir_separator_CXX=:
  11292. # Commands to make compiler produce verbose output that lists
  11293. # what "hidden" libraries, object files and flags are used when
  11294. # linking a shared library.
  11295. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11296. else
  11297. # FIXME: insert proper C++ library support
  11298. ld_shlibs_CXX=no
  11299. fi
  11300. ;;
  11301. esac
  11302. ;;
  11303. psos*)
  11304. # FIXME: insert proper C++ library support
  11305. ld_shlibs_CXX=no
  11306. ;;
  11307. sunos4*)
  11308. case $cc_basename in
  11309. CC*)
  11310. # Sun C++ 4.x
  11311. # FIXME: insert proper C++ library support
  11312. ld_shlibs_CXX=no
  11313. ;;
  11314. lcc*)
  11315. # Lucid
  11316. # FIXME: insert proper C++ library support
  11317. ld_shlibs_CXX=no
  11318. ;;
  11319. *)
  11320. # FIXME: insert proper C++ library support
  11321. ld_shlibs_CXX=no
  11322. ;;
  11323. esac
  11324. ;;
  11325. solaris*)
  11326. case $cc_basename in
  11327. CC*)
  11328. # Sun C++ 4.2, 5.x and Centerline C++
  11329. archive_cmds_need_lc_CXX=yes
  11330. no_undefined_flag_CXX=' -zdefs'
  11331. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11332. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11333. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11334. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11335. hardcode_shlibpath_var_CXX=no
  11336. case $host_os in
  11337. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11338. *)
  11339. # The compiler driver will combine and reorder linker options,
  11340. # but understands `-z linker_flag'.
  11341. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11342. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11343. ;;
  11344. esac
  11345. link_all_deplibs_CXX=yes
  11346. output_verbose_link_cmd='func_echo_all'
  11347. # Archives containing C++ object files must be created using
  11348. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11349. # necessary to make sure instantiated templates are included
  11350. # in the archive.
  11351. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11352. ;;
  11353. gcx*)
  11354. # Green Hills C++ Compiler
  11355. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11356. # The C++ compiler must be used to create the archive.
  11357. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11358. ;;
  11359. *)
  11360. # GNU C++ compiler with Solaris linker
  11361. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11362. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11363. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11364. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11365. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11366. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11367. # Commands to make compiler produce verbose output that lists
  11368. # what "hidden" libraries, object files and flags are used when
  11369. # linking a shared library.
  11370. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11371. else
  11372. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11373. # platform.
  11374. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11375. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11376. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11377. # Commands to make compiler produce verbose output that lists
  11378. # what "hidden" libraries, object files and flags are used when
  11379. # linking a shared library.
  11380. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11381. fi
  11382. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11383. case $host_os in
  11384. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11385. *)
  11386. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11387. ;;
  11388. esac
  11389. fi
  11390. ;;
  11391. esac
  11392. ;;
  11393. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11394. no_undefined_flag_CXX='${wl}-z,text'
  11395. archive_cmds_need_lc_CXX=no
  11396. hardcode_shlibpath_var_CXX=no
  11397. runpath_var='LD_RUN_PATH'
  11398. case $cc_basename in
  11399. CC*)
  11400. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11401. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11402. ;;
  11403. *)
  11404. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11405. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11406. ;;
  11407. esac
  11408. ;;
  11409. sysv5* | sco3.2v5* | sco5v6*)
  11410. # Note: We can NOT use -z defs as we might desire, because we do not
  11411. # link with -lc, and that would cause any symbols used from libc to
  11412. # always be unresolved, which means just about no library would
  11413. # ever link correctly. If we're not using GNU ld we use -z text
  11414. # though, which does catch some bad symbols but isn't as heavy-handed
  11415. # as -z defs.
  11416. no_undefined_flag_CXX='${wl}-z,text'
  11417. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11418. archive_cmds_need_lc_CXX=no
  11419. hardcode_shlibpath_var_CXX=no
  11420. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11421. hardcode_libdir_separator_CXX=':'
  11422. link_all_deplibs_CXX=yes
  11423. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11424. runpath_var='LD_RUN_PATH'
  11425. case $cc_basename in
  11426. CC*)
  11427. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11428. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11429. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11430. '"$old_archive_cmds_CXX"
  11431. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11432. '"$reload_cmds_CXX"
  11433. ;;
  11434. *)
  11435. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11436. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11437. ;;
  11438. esac
  11439. ;;
  11440. tandem*)
  11441. case $cc_basename in
  11442. NCC*)
  11443. # NonStop-UX NCC 3.20
  11444. # FIXME: insert proper C++ library support
  11445. ld_shlibs_CXX=no
  11446. ;;
  11447. *)
  11448. # FIXME: insert proper C++ library support
  11449. ld_shlibs_CXX=no
  11450. ;;
  11451. esac
  11452. ;;
  11453. vxworks*)
  11454. # FIXME: insert proper C++ library support
  11455. ld_shlibs_CXX=no
  11456. ;;
  11457. *)
  11458. # FIXME: insert proper C++ library support
  11459. ld_shlibs_CXX=no
  11460. ;;
  11461. esac
  11462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11463. $as_echo "$ld_shlibs_CXX" >&6; }
  11464. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11465. GCC_CXX="$GXX"
  11466. LD_CXX="$LD"
  11467. ## CAVEAT EMPTOR:
  11468. ## There is no encapsulation within the following macros, do not change
  11469. ## the running order or otherwise move them around unless you know exactly
  11470. ## what you are doing...
  11471. # Dependencies to place before and after the object being linked:
  11472. predep_objects_CXX=
  11473. postdep_objects_CXX=
  11474. predeps_CXX=
  11475. postdeps_CXX=
  11476. compiler_lib_search_path_CXX=
  11477. cat > conftest.$ac_ext <<_LT_EOF
  11478. class Foo
  11479. {
  11480. public:
  11481. Foo (void) { a = 0; }
  11482. private:
  11483. int a;
  11484. };
  11485. _LT_EOF
  11486. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11487. (eval $ac_compile) 2>&5
  11488. ac_status=$?
  11489. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11490. test $ac_status = 0; }; then
  11491. # Parse the compiler output and extract the necessary
  11492. # objects, libraries and library flags.
  11493. # Sentinel used to keep track of whether or not we are before
  11494. # the conftest object file.
  11495. pre_test_object_deps_done=no
  11496. for p in `eval "$output_verbose_link_cmd"`; do
  11497. case $p in
  11498. -L* | -R* | -l*)
  11499. # Some compilers place space between "-{L,R}" and the path.
  11500. # Remove the space.
  11501. if test $p = "-L" ||
  11502. test $p = "-R"; then
  11503. prev=$p
  11504. continue
  11505. else
  11506. prev=
  11507. fi
  11508. if test "$pre_test_object_deps_done" = no; then
  11509. case $p in
  11510. -L* | -R*)
  11511. # Internal compiler library paths should come after those
  11512. # provided the user. The postdeps already come after the
  11513. # user supplied libs so there is no need to process them.
  11514. if test -z "$compiler_lib_search_path_CXX"; then
  11515. compiler_lib_search_path_CXX="${prev}${p}"
  11516. else
  11517. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11518. fi
  11519. ;;
  11520. # The "-l" case would never come before the object being
  11521. # linked, so don't bother handling this case.
  11522. esac
  11523. else
  11524. if test -z "$postdeps_CXX"; then
  11525. postdeps_CXX="${prev}${p}"
  11526. else
  11527. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11528. fi
  11529. fi
  11530. ;;
  11531. *.$objext)
  11532. # This assumes that the test object file only shows up
  11533. # once in the compiler output.
  11534. if test "$p" = "conftest.$objext"; then
  11535. pre_test_object_deps_done=yes
  11536. continue
  11537. fi
  11538. if test "$pre_test_object_deps_done" = no; then
  11539. if test -z "$predep_objects_CXX"; then
  11540. predep_objects_CXX="$p"
  11541. else
  11542. predep_objects_CXX="$predep_objects_CXX $p"
  11543. fi
  11544. else
  11545. if test -z "$postdep_objects_CXX"; then
  11546. postdep_objects_CXX="$p"
  11547. else
  11548. postdep_objects_CXX="$postdep_objects_CXX $p"
  11549. fi
  11550. fi
  11551. ;;
  11552. *) ;; # Ignore the rest.
  11553. esac
  11554. done
  11555. # Clean up.
  11556. rm -f a.out a.exe
  11557. else
  11558. echo "libtool.m4: error: problem compiling CXX test program"
  11559. fi
  11560. $RM -f confest.$objext
  11561. # PORTME: override above test on systems where it is broken
  11562. case $host_os in
  11563. interix[3-9]*)
  11564. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11565. # hack all around it, let's just trust "g++" to DTRT.
  11566. predep_objects_CXX=
  11567. postdep_objects_CXX=
  11568. postdeps_CXX=
  11569. ;;
  11570. linux*)
  11571. case `$CC -V 2>&1 | sed 5q` in
  11572. *Sun\ C*)
  11573. # Sun C++ 5.9
  11574. # The more standards-conforming stlport4 library is
  11575. # incompatible with the Cstd library. Avoid specifying
  11576. # it if it's in CXXFLAGS. Ignore libCrun as
  11577. # -library=stlport4 depends on it.
  11578. case " $CXX $CXXFLAGS " in
  11579. *" -library=stlport4 "*)
  11580. solaris_use_stlport4=yes
  11581. ;;
  11582. esac
  11583. if test "$solaris_use_stlport4" != yes; then
  11584. postdeps_CXX='-library=Cstd -library=Crun'
  11585. fi
  11586. ;;
  11587. esac
  11588. ;;
  11589. solaris*)
  11590. case $cc_basename in
  11591. CC*)
  11592. # The more standards-conforming stlport4 library is
  11593. # incompatible with the Cstd library. Avoid specifying
  11594. # it if it's in CXXFLAGS. Ignore libCrun as
  11595. # -library=stlport4 depends on it.
  11596. case " $CXX $CXXFLAGS " in
  11597. *" -library=stlport4 "*)
  11598. solaris_use_stlport4=yes
  11599. ;;
  11600. esac
  11601. # Adding this requires a known-good setup of shared libraries for
  11602. # Sun compiler versions before 5.6, else PIC objects from an old
  11603. # archive will be linked into the output, leading to subtle bugs.
  11604. if test "$solaris_use_stlport4" != yes; then
  11605. postdeps_CXX='-library=Cstd -library=Crun'
  11606. fi
  11607. ;;
  11608. esac
  11609. ;;
  11610. esac
  11611. case " $postdeps_CXX " in
  11612. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11613. esac
  11614. compiler_lib_search_dirs_CXX=
  11615. if test -n "${compiler_lib_search_path_CXX}"; then
  11616. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11617. fi
  11618. lt_prog_compiler_wl_CXX=
  11619. lt_prog_compiler_pic_CXX=
  11620. lt_prog_compiler_static_CXX=
  11621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11622. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11623. # C++ specific cases for pic, static, wl, etc.
  11624. if test "$GXX" = yes; then
  11625. lt_prog_compiler_wl_CXX='-Wl,'
  11626. lt_prog_compiler_static_CXX='-static'
  11627. case $host_os in
  11628. aix*)
  11629. # All AIX code is PIC.
  11630. if test "$host_cpu" = ia64; then
  11631. # AIX 5 now supports IA64 processor
  11632. lt_prog_compiler_static_CXX='-Bstatic'
  11633. fi
  11634. lt_prog_compiler_pic_CXX='-fPIC'
  11635. ;;
  11636. amigaos*)
  11637. case $host_cpu in
  11638. powerpc)
  11639. # see comment about AmigaOS4 .so support
  11640. lt_prog_compiler_pic_CXX='-fPIC'
  11641. ;;
  11642. m68k)
  11643. # FIXME: we need at least 68020 code to build shared libraries, but
  11644. # adding the `-m68020' flag to GCC prevents building anything better,
  11645. # like `-m68040'.
  11646. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11647. ;;
  11648. esac
  11649. ;;
  11650. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11651. # PIC is the default for these OSes.
  11652. ;;
  11653. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11654. # This hack is so that the source file can tell whether it is being
  11655. # built for inclusion in a dll (and should export symbols for example).
  11656. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11657. # (--disable-auto-import) libraries
  11658. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11659. ;;
  11660. darwin* | rhapsody*)
  11661. # PIC is the default on this platform
  11662. # Common symbols not allowed in MH_DYLIB files
  11663. lt_prog_compiler_pic_CXX='-fno-common'
  11664. ;;
  11665. *djgpp*)
  11666. # DJGPP does not support shared libraries at all
  11667. lt_prog_compiler_pic_CXX=
  11668. ;;
  11669. haiku*)
  11670. # PIC is the default for Haiku.
  11671. # The "-static" flag exists, but is broken.
  11672. lt_prog_compiler_static_CXX=
  11673. ;;
  11674. interix[3-9]*)
  11675. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11676. # Instead, we relocate shared libraries at runtime.
  11677. ;;
  11678. sysv4*MP*)
  11679. if test -d /usr/nec; then
  11680. lt_prog_compiler_pic_CXX=-Kconform_pic
  11681. fi
  11682. ;;
  11683. hpux*)
  11684. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11685. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11686. # sets the default TLS model and affects inlining.
  11687. case $host_cpu in
  11688. hppa*64*)
  11689. ;;
  11690. *)
  11691. lt_prog_compiler_pic_CXX='-fPIC'
  11692. ;;
  11693. esac
  11694. ;;
  11695. *qnx* | *nto*)
  11696. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11697. # it will coredump.
  11698. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11699. ;;
  11700. *)
  11701. lt_prog_compiler_pic_CXX='-fPIC'
  11702. ;;
  11703. esac
  11704. else
  11705. case $host_os in
  11706. aix[4-9]*)
  11707. # All AIX code is PIC.
  11708. if test "$host_cpu" = ia64; then
  11709. # AIX 5 now supports IA64 processor
  11710. lt_prog_compiler_static_CXX='-Bstatic'
  11711. else
  11712. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11713. fi
  11714. ;;
  11715. chorus*)
  11716. case $cc_basename in
  11717. cxch68*)
  11718. # Green Hills C++ Compiler
  11719. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11720. ;;
  11721. esac
  11722. ;;
  11723. dgux*)
  11724. case $cc_basename in
  11725. ec++*)
  11726. lt_prog_compiler_pic_CXX='-KPIC'
  11727. ;;
  11728. ghcx*)
  11729. # Green Hills C++ Compiler
  11730. lt_prog_compiler_pic_CXX='-pic'
  11731. ;;
  11732. *)
  11733. ;;
  11734. esac
  11735. ;;
  11736. freebsd* | dragonfly*)
  11737. # FreeBSD uses GNU C++
  11738. ;;
  11739. hpux9* | hpux10* | hpux11*)
  11740. case $cc_basename in
  11741. CC*)
  11742. lt_prog_compiler_wl_CXX='-Wl,'
  11743. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11744. if test "$host_cpu" != ia64; then
  11745. lt_prog_compiler_pic_CXX='+Z'
  11746. fi
  11747. ;;
  11748. aCC*)
  11749. lt_prog_compiler_wl_CXX='-Wl,'
  11750. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11751. case $host_cpu in
  11752. hppa*64*|ia64*)
  11753. # +Z the default
  11754. ;;
  11755. *)
  11756. lt_prog_compiler_pic_CXX='+Z'
  11757. ;;
  11758. esac
  11759. ;;
  11760. *)
  11761. ;;
  11762. esac
  11763. ;;
  11764. interix*)
  11765. # This is c89, which is MS Visual C++ (no shared libs)
  11766. # Anyone wants to do a port?
  11767. ;;
  11768. irix5* | irix6* | nonstopux*)
  11769. case $cc_basename in
  11770. CC*)
  11771. lt_prog_compiler_wl_CXX='-Wl,'
  11772. lt_prog_compiler_static_CXX='-non_shared'
  11773. # CC pic flag -KPIC is the default.
  11774. ;;
  11775. *)
  11776. ;;
  11777. esac
  11778. ;;
  11779. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11780. case $cc_basename in
  11781. KCC*)
  11782. # KAI C++ Compiler
  11783. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11784. lt_prog_compiler_pic_CXX='-fPIC'
  11785. ;;
  11786. ecpc* )
  11787. # old Intel C++ for x86_64 which still supported -KPIC.
  11788. lt_prog_compiler_wl_CXX='-Wl,'
  11789. lt_prog_compiler_pic_CXX='-KPIC'
  11790. lt_prog_compiler_static_CXX='-static'
  11791. ;;
  11792. icpc* )
  11793. # Intel C++, used to be incompatible with GCC.
  11794. # ICC 10 doesn't accept -KPIC any more.
  11795. lt_prog_compiler_wl_CXX='-Wl,'
  11796. lt_prog_compiler_pic_CXX='-fPIC'
  11797. lt_prog_compiler_static_CXX='-static'
  11798. ;;
  11799. pgCC* | pgcpp*)
  11800. # Portland Group C++ compiler
  11801. lt_prog_compiler_wl_CXX='-Wl,'
  11802. lt_prog_compiler_pic_CXX='-fpic'
  11803. lt_prog_compiler_static_CXX='-Bstatic'
  11804. ;;
  11805. cxx*)
  11806. # Compaq C++
  11807. # Make sure the PIC flag is empty. It appears that all Alpha
  11808. # Linux and Compaq Tru64 Unix objects are PIC.
  11809. lt_prog_compiler_pic_CXX=
  11810. lt_prog_compiler_static_CXX='-non_shared'
  11811. ;;
  11812. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11813. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11814. lt_prog_compiler_wl_CXX='-Wl,'
  11815. lt_prog_compiler_pic_CXX='-qpic'
  11816. lt_prog_compiler_static_CXX='-qstaticlink'
  11817. ;;
  11818. *)
  11819. case `$CC -V 2>&1 | sed 5q` in
  11820. *Sun\ C*)
  11821. # Sun C++ 5.9
  11822. lt_prog_compiler_pic_CXX='-KPIC'
  11823. lt_prog_compiler_static_CXX='-Bstatic'
  11824. lt_prog_compiler_wl_CXX='-Qoption ld '
  11825. ;;
  11826. esac
  11827. ;;
  11828. esac
  11829. ;;
  11830. lynxos*)
  11831. ;;
  11832. m88k*)
  11833. ;;
  11834. mvs*)
  11835. case $cc_basename in
  11836. cxx*)
  11837. lt_prog_compiler_pic_CXX='-W c,exportall'
  11838. ;;
  11839. *)
  11840. ;;
  11841. esac
  11842. ;;
  11843. netbsd*)
  11844. ;;
  11845. *qnx* | *nto*)
  11846. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11847. # it will coredump.
  11848. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11849. ;;
  11850. osf3* | osf4* | osf5*)
  11851. case $cc_basename in
  11852. KCC*)
  11853. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11854. ;;
  11855. RCC*)
  11856. # Rational C++ 2.4.1
  11857. lt_prog_compiler_pic_CXX='-pic'
  11858. ;;
  11859. cxx*)
  11860. # Digital/Compaq C++
  11861. lt_prog_compiler_wl_CXX='-Wl,'
  11862. # Make sure the PIC flag is empty. It appears that all Alpha
  11863. # Linux and Compaq Tru64 Unix objects are PIC.
  11864. lt_prog_compiler_pic_CXX=
  11865. lt_prog_compiler_static_CXX='-non_shared'
  11866. ;;
  11867. *)
  11868. ;;
  11869. esac
  11870. ;;
  11871. psos*)
  11872. ;;
  11873. solaris*)
  11874. case $cc_basename in
  11875. CC*)
  11876. # Sun C++ 4.2, 5.x and Centerline C++
  11877. lt_prog_compiler_pic_CXX='-KPIC'
  11878. lt_prog_compiler_static_CXX='-Bstatic'
  11879. lt_prog_compiler_wl_CXX='-Qoption ld '
  11880. ;;
  11881. gcx*)
  11882. # Green Hills C++ Compiler
  11883. lt_prog_compiler_pic_CXX='-PIC'
  11884. ;;
  11885. *)
  11886. ;;
  11887. esac
  11888. ;;
  11889. sunos4*)
  11890. case $cc_basename in
  11891. CC*)
  11892. # Sun C++ 4.x
  11893. lt_prog_compiler_pic_CXX='-pic'
  11894. lt_prog_compiler_static_CXX='-Bstatic'
  11895. ;;
  11896. lcc*)
  11897. # Lucid
  11898. lt_prog_compiler_pic_CXX='-pic'
  11899. ;;
  11900. *)
  11901. ;;
  11902. esac
  11903. ;;
  11904. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11905. case $cc_basename in
  11906. CC*)
  11907. lt_prog_compiler_wl_CXX='-Wl,'
  11908. lt_prog_compiler_pic_CXX='-KPIC'
  11909. lt_prog_compiler_static_CXX='-Bstatic'
  11910. ;;
  11911. esac
  11912. ;;
  11913. tandem*)
  11914. case $cc_basename in
  11915. NCC*)
  11916. # NonStop-UX NCC 3.20
  11917. lt_prog_compiler_pic_CXX='-KPIC'
  11918. ;;
  11919. *)
  11920. ;;
  11921. esac
  11922. ;;
  11923. vxworks*)
  11924. ;;
  11925. *)
  11926. lt_prog_compiler_can_build_shared_CXX=no
  11927. ;;
  11928. esac
  11929. fi
  11930. case $host_os in
  11931. # For platforms which do not support PIC, -DPIC is meaningless:
  11932. *djgpp*)
  11933. lt_prog_compiler_pic_CXX=
  11934. ;;
  11935. *)
  11936. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11937. ;;
  11938. esac
  11939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11940. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11941. #
  11942. # Check to make sure the PIC flag actually works.
  11943. #
  11944. if test -n "$lt_prog_compiler_pic_CXX"; then
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11946. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11947. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11948. $as_echo_n "(cached) " >&6
  11949. else
  11950. lt_cv_prog_compiler_pic_works_CXX=no
  11951. ac_outfile=conftest.$ac_objext
  11952. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11953. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11954. # Insert the option either (1) after the last *FLAGS variable, or
  11955. # (2) before a word containing "conftest.", or (3) at the end.
  11956. # Note that $ac_compile itself does not contain backslashes and begins
  11957. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11958. # The option is referenced via a variable to avoid confusing sed.
  11959. lt_compile=`echo "$ac_compile" | $SED \
  11960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11962. -e 's:$: $lt_compiler_flag:'`
  11963. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11964. (eval "$lt_compile" 2>conftest.err)
  11965. ac_status=$?
  11966. cat conftest.err >&5
  11967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11968. if (exit $ac_status) && test -s "$ac_outfile"; then
  11969. # The compiler can only warn and ignore the option if not recognized
  11970. # So say no if there are warnings other than the usual output.
  11971. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11972. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11973. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11974. lt_cv_prog_compiler_pic_works_CXX=yes
  11975. fi
  11976. fi
  11977. $RM conftest*
  11978. fi
  11979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11980. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11981. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11982. case $lt_prog_compiler_pic_CXX in
  11983. "" | " "*) ;;
  11984. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11985. esac
  11986. else
  11987. lt_prog_compiler_pic_CXX=
  11988. lt_prog_compiler_can_build_shared_CXX=no
  11989. fi
  11990. fi
  11991. #
  11992. # Check to make sure the static flag actually works.
  11993. #
  11994. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11996. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11997. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11998. $as_echo_n "(cached) " >&6
  11999. else
  12000. lt_cv_prog_compiler_static_works_CXX=no
  12001. save_LDFLAGS="$LDFLAGS"
  12002. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12003. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12004. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12005. # The linker can only warn and ignore the option if not recognized
  12006. # So say no if there are warnings
  12007. if test -s conftest.err; then
  12008. # Append any errors to the config.log.
  12009. cat conftest.err 1>&5
  12010. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12011. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12012. if diff conftest.exp conftest.er2 >/dev/null; then
  12013. lt_cv_prog_compiler_static_works_CXX=yes
  12014. fi
  12015. else
  12016. lt_cv_prog_compiler_static_works_CXX=yes
  12017. fi
  12018. fi
  12019. $RM -r conftest*
  12020. LDFLAGS="$save_LDFLAGS"
  12021. fi
  12022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12023. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12024. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12025. :
  12026. else
  12027. lt_prog_compiler_static_CXX=
  12028. fi
  12029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12030. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12031. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12032. $as_echo_n "(cached) " >&6
  12033. else
  12034. lt_cv_prog_compiler_c_o_CXX=no
  12035. $RM -r conftest 2>/dev/null
  12036. mkdir conftest
  12037. cd conftest
  12038. mkdir out
  12039. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12040. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12041. # Insert the option either (1) after the last *FLAGS variable, or
  12042. # (2) before a word containing "conftest.", or (3) at the end.
  12043. # Note that $ac_compile itself does not contain backslashes and begins
  12044. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12045. lt_compile=`echo "$ac_compile" | $SED \
  12046. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12047. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12048. -e 's:$: $lt_compiler_flag:'`
  12049. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12050. (eval "$lt_compile" 2>out/conftest.err)
  12051. ac_status=$?
  12052. cat out/conftest.err >&5
  12053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12054. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12055. then
  12056. # The compiler can only warn and ignore the option if not recognized
  12057. # So say no if there are warnings
  12058. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12059. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12060. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12061. lt_cv_prog_compiler_c_o_CXX=yes
  12062. fi
  12063. fi
  12064. chmod u+w . 2>&5
  12065. $RM conftest*
  12066. # SGI C++ compiler will create directory out/ii_files/ for
  12067. # template instantiation
  12068. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12069. $RM out/* && rmdir out
  12070. cd ..
  12071. $RM -r conftest
  12072. $RM conftest*
  12073. fi
  12074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12075. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12077. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12078. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12079. $as_echo_n "(cached) " >&6
  12080. else
  12081. lt_cv_prog_compiler_c_o_CXX=no
  12082. $RM -r conftest 2>/dev/null
  12083. mkdir conftest
  12084. cd conftest
  12085. mkdir out
  12086. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12087. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12088. # Insert the option either (1) after the last *FLAGS variable, or
  12089. # (2) before a word containing "conftest.", or (3) at the end.
  12090. # Note that $ac_compile itself does not contain backslashes and begins
  12091. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12092. lt_compile=`echo "$ac_compile" | $SED \
  12093. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12094. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12095. -e 's:$: $lt_compiler_flag:'`
  12096. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12097. (eval "$lt_compile" 2>out/conftest.err)
  12098. ac_status=$?
  12099. cat out/conftest.err >&5
  12100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12101. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12102. then
  12103. # The compiler can only warn and ignore the option if not recognized
  12104. # So say no if there are warnings
  12105. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12106. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12107. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12108. lt_cv_prog_compiler_c_o_CXX=yes
  12109. fi
  12110. fi
  12111. chmod u+w . 2>&5
  12112. $RM conftest*
  12113. # SGI C++ compiler will create directory out/ii_files/ for
  12114. # template instantiation
  12115. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12116. $RM out/* && rmdir out
  12117. cd ..
  12118. $RM -r conftest
  12119. $RM conftest*
  12120. fi
  12121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12122. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12123. hard_links="nottested"
  12124. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12125. # do not overwrite the value of need_locks provided by the user
  12126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12127. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12128. hard_links=yes
  12129. $RM conftest*
  12130. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12131. touch conftest.a
  12132. ln conftest.a conftest.b 2>&5 || hard_links=no
  12133. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12135. $as_echo "$hard_links" >&6; }
  12136. if test "$hard_links" = no; then
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12138. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12139. need_locks=warn
  12140. fi
  12141. else
  12142. need_locks=no
  12143. fi
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12145. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12146. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12147. case $host_os in
  12148. aix[4-9]*)
  12149. # If we're using GNU nm, then we don't want the "-C" option.
  12150. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12151. # Also, AIX nm treats weak defined symbols like other global defined
  12152. # symbols, whereas GNU nm marks them as "W".
  12153. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12154. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12155. else
  12156. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12157. fi
  12158. ;;
  12159. pw32*)
  12160. export_symbols_cmds_CXX="$ltdll_cmds"
  12161. ;;
  12162. cygwin* | mingw* | cegcc*)
  12163. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12164. ;;
  12165. *)
  12166. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12167. ;;
  12168. esac
  12169. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12171. $as_echo "$ld_shlibs_CXX" >&6; }
  12172. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12173. with_gnu_ld_CXX=$with_gnu_ld
  12174. #
  12175. # Do we need to explicitly link libc?
  12176. #
  12177. case "x$archive_cmds_need_lc_CXX" in
  12178. x|xyes)
  12179. # Assume -lc should be added
  12180. archive_cmds_need_lc_CXX=yes
  12181. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12182. case $archive_cmds_CXX in
  12183. *'~'*)
  12184. # FIXME: we may have to deal with multi-command sequences.
  12185. ;;
  12186. '$CC '*)
  12187. # Test whether the compiler implicitly links with -lc since on some
  12188. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12189. # to ld, don't add -lc before -lgcc.
  12190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12191. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12192. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12193. $as_echo_n "(cached) " >&6
  12194. else
  12195. $RM conftest*
  12196. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12198. (eval $ac_compile) 2>&5
  12199. ac_status=$?
  12200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12201. test $ac_status = 0; } 2>conftest.err; then
  12202. soname=conftest
  12203. lib=conftest
  12204. libobjs=conftest.$ac_objext
  12205. deplibs=
  12206. wl=$lt_prog_compiler_wl_CXX
  12207. pic_flag=$lt_prog_compiler_pic_CXX
  12208. compiler_flags=-v
  12209. linker_flags=-v
  12210. verstring=
  12211. output_objdir=.
  12212. libname=conftest
  12213. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12214. allow_undefined_flag_CXX=
  12215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12216. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12217. ac_status=$?
  12218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12219. test $ac_status = 0; }
  12220. then
  12221. lt_cv_archive_cmds_need_lc_CXX=no
  12222. else
  12223. lt_cv_archive_cmds_need_lc_CXX=yes
  12224. fi
  12225. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12226. else
  12227. cat conftest.err 1>&5
  12228. fi
  12229. $RM conftest*
  12230. fi
  12231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12232. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12233. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12234. ;;
  12235. esac
  12236. fi
  12237. ;;
  12238. esac
  12239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12240. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12241. library_names_spec=
  12242. libname_spec='lib$name'
  12243. soname_spec=
  12244. shrext_cmds=".so"
  12245. postinstall_cmds=
  12246. postuninstall_cmds=
  12247. finish_cmds=
  12248. finish_eval=
  12249. shlibpath_var=
  12250. shlibpath_overrides_runpath=unknown
  12251. version_type=none
  12252. dynamic_linker="$host_os ld.so"
  12253. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12254. need_lib_prefix=unknown
  12255. hardcode_into_libs=no
  12256. # when you set need_version to no, make sure it does not cause -set_version
  12257. # flags to be left without arguments
  12258. need_version=unknown
  12259. case $host_os in
  12260. aix3*)
  12261. version_type=linux
  12262. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12263. shlibpath_var=LIBPATH
  12264. # AIX 3 has no versioning support, so we append a major version to the name.
  12265. soname_spec='${libname}${release}${shared_ext}$major'
  12266. ;;
  12267. aix[4-9]*)
  12268. version_type=linux
  12269. need_lib_prefix=no
  12270. need_version=no
  12271. hardcode_into_libs=yes
  12272. if test "$host_cpu" = ia64; then
  12273. # AIX 5 supports IA64
  12274. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12275. shlibpath_var=LD_LIBRARY_PATH
  12276. else
  12277. # With GCC up to 2.95.x, collect2 would create an import file
  12278. # for dependence libraries. The import file would start with
  12279. # the line `#! .'. This would cause the generated library to
  12280. # depend on `.', always an invalid library. This was fixed in
  12281. # development snapshots of GCC prior to 3.0.
  12282. case $host_os in
  12283. aix4 | aix4.[01] | aix4.[01].*)
  12284. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12285. echo ' yes '
  12286. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12287. :
  12288. else
  12289. can_build_shared=no
  12290. fi
  12291. ;;
  12292. esac
  12293. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12294. # soname into executable. Probably we can add versioning support to
  12295. # collect2, so additional links can be useful in future.
  12296. if test "$aix_use_runtimelinking" = yes; then
  12297. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12298. # instead of lib<name>.a to let people know that these are not
  12299. # typical AIX shared libraries.
  12300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12301. else
  12302. # We preserve .a as extension for shared libraries through AIX4.2
  12303. # and later when we are not doing run time linking.
  12304. library_names_spec='${libname}${release}.a $libname.a'
  12305. soname_spec='${libname}${release}${shared_ext}$major'
  12306. fi
  12307. shlibpath_var=LIBPATH
  12308. fi
  12309. ;;
  12310. amigaos*)
  12311. case $host_cpu in
  12312. powerpc)
  12313. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12314. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12315. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12316. ;;
  12317. m68k)
  12318. library_names_spec='$libname.ixlibrary $libname.a'
  12319. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12320. 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'
  12321. ;;
  12322. esac
  12323. ;;
  12324. beos*)
  12325. library_names_spec='${libname}${shared_ext}'
  12326. dynamic_linker="$host_os ld.so"
  12327. shlibpath_var=LIBRARY_PATH
  12328. ;;
  12329. bsdi[45]*)
  12330. version_type=linux
  12331. need_version=no
  12332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12333. soname_spec='${libname}${release}${shared_ext}$major'
  12334. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12335. shlibpath_var=LD_LIBRARY_PATH
  12336. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12337. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12338. # the default ld.so.conf also contains /usr/contrib/lib and
  12339. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12340. # libtool to hard-code these into programs
  12341. ;;
  12342. cygwin* | mingw* | pw32* | cegcc*)
  12343. version_type=windows
  12344. shrext_cmds=".dll"
  12345. need_version=no
  12346. need_lib_prefix=no
  12347. case $GCC,$host_os in
  12348. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12349. library_names_spec='$libname.dll.a'
  12350. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12351. postinstall_cmds='base_file=`basename \${file}`~
  12352. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12353. dldir=$destdir/`dirname \$dlpath`~
  12354. test -d \$dldir || mkdir -p \$dldir~
  12355. $install_prog $dir/$dlname \$dldir/$dlname~
  12356. chmod a+x \$dldir/$dlname~
  12357. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12358. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12359. fi'
  12360. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12361. dlpath=$dir/\$dldll~
  12362. $RM \$dlpath'
  12363. shlibpath_overrides_runpath=yes
  12364. case $host_os in
  12365. cygwin*)
  12366. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12367. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12368. ;;
  12369. mingw* | cegcc*)
  12370. # MinGW DLLs use traditional 'lib' prefix
  12371. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12372. ;;
  12373. pw32*)
  12374. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12375. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12376. ;;
  12377. esac
  12378. ;;
  12379. *)
  12380. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12381. ;;
  12382. esac
  12383. dynamic_linker='Win32 ld.exe'
  12384. # FIXME: first we should search . and the directory the executable is in
  12385. shlibpath_var=PATH
  12386. ;;
  12387. darwin* | rhapsody*)
  12388. dynamic_linker="$host_os dyld"
  12389. version_type=darwin
  12390. need_lib_prefix=no
  12391. need_version=no
  12392. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12393. soname_spec='${libname}${release}${major}$shared_ext'
  12394. shlibpath_overrides_runpath=yes
  12395. shlibpath_var=DYLD_LIBRARY_PATH
  12396. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12397. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12398. ;;
  12399. dgux*)
  12400. version_type=linux
  12401. need_lib_prefix=no
  12402. need_version=no
  12403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12404. soname_spec='${libname}${release}${shared_ext}$major'
  12405. shlibpath_var=LD_LIBRARY_PATH
  12406. ;;
  12407. freebsd* | dragonfly*)
  12408. # DragonFly does not have aout. When/if they implement a new
  12409. # versioning mechanism, adjust this.
  12410. if test -x /usr/bin/objformat; then
  12411. objformat=`/usr/bin/objformat`
  12412. else
  12413. case $host_os in
  12414. freebsd[23].*) objformat=aout ;;
  12415. *) objformat=elf ;;
  12416. esac
  12417. fi
  12418. version_type=freebsd-$objformat
  12419. case $version_type in
  12420. freebsd-elf*)
  12421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12422. need_version=no
  12423. need_lib_prefix=no
  12424. ;;
  12425. freebsd-*)
  12426. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12427. need_version=yes
  12428. ;;
  12429. esac
  12430. shlibpath_var=LD_LIBRARY_PATH
  12431. case $host_os in
  12432. freebsd2.*)
  12433. shlibpath_overrides_runpath=yes
  12434. ;;
  12435. freebsd3.[01]* | freebsdelf3.[01]*)
  12436. shlibpath_overrides_runpath=yes
  12437. hardcode_into_libs=yes
  12438. ;;
  12439. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12440. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12441. shlibpath_overrides_runpath=no
  12442. hardcode_into_libs=yes
  12443. ;;
  12444. *) # from 4.6 on, and DragonFly
  12445. shlibpath_overrides_runpath=yes
  12446. hardcode_into_libs=yes
  12447. ;;
  12448. esac
  12449. ;;
  12450. haiku*)
  12451. version_type=linux
  12452. need_lib_prefix=no
  12453. need_version=no
  12454. dynamic_linker="$host_os runtime_loader"
  12455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12456. soname_spec='${libname}${release}${shared_ext}$major'
  12457. shlibpath_var=LIBRARY_PATH
  12458. shlibpath_overrides_runpath=yes
  12459. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12460. hardcode_into_libs=yes
  12461. ;;
  12462. hpux9* | hpux10* | hpux11*)
  12463. # Give a soname corresponding to the major version so that dld.sl refuses to
  12464. # link against other versions.
  12465. version_type=sunos
  12466. need_lib_prefix=no
  12467. need_version=no
  12468. case $host_cpu in
  12469. ia64*)
  12470. shrext_cmds='.so'
  12471. hardcode_into_libs=yes
  12472. dynamic_linker="$host_os dld.so"
  12473. shlibpath_var=LD_LIBRARY_PATH
  12474. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12476. soname_spec='${libname}${release}${shared_ext}$major'
  12477. if test "X$HPUX_IA64_MODE" = X32; then
  12478. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12479. else
  12480. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12481. fi
  12482. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12483. ;;
  12484. hppa*64*)
  12485. shrext_cmds='.sl'
  12486. hardcode_into_libs=yes
  12487. dynamic_linker="$host_os dld.sl"
  12488. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12489. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12490. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12491. soname_spec='${libname}${release}${shared_ext}$major'
  12492. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12493. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12494. ;;
  12495. *)
  12496. shrext_cmds='.sl'
  12497. dynamic_linker="$host_os dld.sl"
  12498. shlibpath_var=SHLIB_PATH
  12499. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12500. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12501. soname_spec='${libname}${release}${shared_ext}$major'
  12502. ;;
  12503. esac
  12504. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12505. postinstall_cmds='chmod 555 $lib'
  12506. # or fails outright, so override atomically:
  12507. install_override_mode=555
  12508. ;;
  12509. interix[3-9]*)
  12510. version_type=linux
  12511. need_lib_prefix=no
  12512. need_version=no
  12513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12514. soname_spec='${libname}${release}${shared_ext}$major'
  12515. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12516. shlibpath_var=LD_LIBRARY_PATH
  12517. shlibpath_overrides_runpath=no
  12518. hardcode_into_libs=yes
  12519. ;;
  12520. irix5* | irix6* | nonstopux*)
  12521. case $host_os in
  12522. nonstopux*) version_type=nonstopux ;;
  12523. *)
  12524. if test "$lt_cv_prog_gnu_ld" = yes; then
  12525. version_type=linux
  12526. else
  12527. version_type=irix
  12528. fi ;;
  12529. esac
  12530. need_lib_prefix=no
  12531. need_version=no
  12532. soname_spec='${libname}${release}${shared_ext}$major'
  12533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12534. case $host_os in
  12535. irix5* | nonstopux*)
  12536. libsuff= shlibsuff=
  12537. ;;
  12538. *)
  12539. case $LD in # libtool.m4 will add one of these switches to LD
  12540. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12541. libsuff= shlibsuff= libmagic=32-bit;;
  12542. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12543. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12544. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12545. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12546. *) libsuff= shlibsuff= libmagic=never-match;;
  12547. esac
  12548. ;;
  12549. esac
  12550. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12551. shlibpath_overrides_runpath=no
  12552. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12553. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12554. hardcode_into_libs=yes
  12555. ;;
  12556. # No shared lib support for Linux oldld, aout, or coff.
  12557. linux*oldld* | linux*aout* | linux*coff*)
  12558. dynamic_linker=no
  12559. ;;
  12560. # This must be Linux ELF.
  12561. # uclinux* changes (here and below) have been submitted to the libtool
  12562. # project, but have not yet been accepted: they are GCC-local changes
  12563. # for the time being. (See
  12564. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  12565. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  12566. version_type=linux
  12567. need_lib_prefix=no
  12568. need_version=no
  12569. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12570. soname_spec='${libname}${release}${shared_ext}$major'
  12571. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12572. shlibpath_var=LD_LIBRARY_PATH
  12573. shlibpath_overrides_runpath=no
  12574. # Some binutils ld are patched to set DT_RUNPATH
  12575. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12576. $as_echo_n "(cached) " >&6
  12577. else
  12578. lt_cv_shlibpath_overrides_runpath=no
  12579. save_LDFLAGS=$LDFLAGS
  12580. save_libdir=$libdir
  12581. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12582. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12584. /* end confdefs.h. */
  12585. int
  12586. main ()
  12587. {
  12588. ;
  12589. return 0;
  12590. }
  12591. _ACEOF
  12592. if ac_fn_cxx_try_link "$LINENO"; then :
  12593. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12594. lt_cv_shlibpath_overrides_runpath=yes
  12595. fi
  12596. fi
  12597. rm -f core conftest.err conftest.$ac_objext \
  12598. conftest$ac_exeext conftest.$ac_ext
  12599. LDFLAGS=$save_LDFLAGS
  12600. libdir=$save_libdir
  12601. fi
  12602. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12603. # This implies no fast_install, which is unacceptable.
  12604. # Some rework will be needed to allow for fast_install
  12605. # before this can be enabled.
  12606. hardcode_into_libs=yes
  12607. # Append ld.so.conf contents to the search path
  12608. if test -f /etc/ld.so.conf; then
  12609. 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' ' '`
  12610. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12611. fi
  12612. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12613. # powerpc, because MkLinux only supported shared libraries with the
  12614. # GNU dynamic linker. Since this was broken with cross compilers,
  12615. # most powerpc-linux boxes support dynamic linking these days and
  12616. # people can always --disable-shared, the test was removed, and we
  12617. # assume the GNU/Linux dynamic linker is in use.
  12618. dynamic_linker='GNU/Linux ld.so'
  12619. ;;
  12620. netbsd*)
  12621. version_type=sunos
  12622. need_lib_prefix=no
  12623. need_version=no
  12624. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12625. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12626. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12627. dynamic_linker='NetBSD (a.out) ld.so'
  12628. else
  12629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12630. soname_spec='${libname}${release}${shared_ext}$major'
  12631. dynamic_linker='NetBSD ld.elf_so'
  12632. fi
  12633. shlibpath_var=LD_LIBRARY_PATH
  12634. shlibpath_overrides_runpath=yes
  12635. hardcode_into_libs=yes
  12636. ;;
  12637. newsos6)
  12638. version_type=linux
  12639. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12640. shlibpath_var=LD_LIBRARY_PATH
  12641. shlibpath_overrides_runpath=yes
  12642. ;;
  12643. *nto* | *qnx*)
  12644. version_type=qnx
  12645. need_lib_prefix=no
  12646. need_version=no
  12647. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12648. soname_spec='${libname}${release}${shared_ext}$major'
  12649. shlibpath_var=LD_LIBRARY_PATH
  12650. shlibpath_overrides_runpath=no
  12651. hardcode_into_libs=yes
  12652. dynamic_linker='ldqnx.so'
  12653. ;;
  12654. openbsd*)
  12655. version_type=sunos
  12656. sys_lib_dlsearch_path_spec="/usr/lib"
  12657. need_lib_prefix=no
  12658. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12659. case $host_os in
  12660. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12661. *) need_version=no ;;
  12662. esac
  12663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12664. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12665. shlibpath_var=LD_LIBRARY_PATH
  12666. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12667. case $host_os in
  12668. openbsd2.[89] | openbsd2.[89].*)
  12669. shlibpath_overrides_runpath=no
  12670. ;;
  12671. *)
  12672. shlibpath_overrides_runpath=yes
  12673. ;;
  12674. esac
  12675. else
  12676. shlibpath_overrides_runpath=yes
  12677. fi
  12678. ;;
  12679. os2*)
  12680. libname_spec='$name'
  12681. shrext_cmds=".dll"
  12682. need_lib_prefix=no
  12683. library_names_spec='$libname${shared_ext} $libname.a'
  12684. dynamic_linker='OS/2 ld.exe'
  12685. shlibpath_var=LIBPATH
  12686. ;;
  12687. osf3* | osf4* | osf5*)
  12688. version_type=osf
  12689. need_lib_prefix=no
  12690. need_version=no
  12691. soname_spec='${libname}${release}${shared_ext}$major'
  12692. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12693. shlibpath_var=LD_LIBRARY_PATH
  12694. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12695. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12696. ;;
  12697. rdos*)
  12698. dynamic_linker=no
  12699. ;;
  12700. solaris*)
  12701. version_type=linux
  12702. need_lib_prefix=no
  12703. need_version=no
  12704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12705. soname_spec='${libname}${release}${shared_ext}$major'
  12706. shlibpath_var=LD_LIBRARY_PATH
  12707. shlibpath_overrides_runpath=yes
  12708. hardcode_into_libs=yes
  12709. # ldd complains unless libraries are executable
  12710. postinstall_cmds='chmod +x $lib'
  12711. ;;
  12712. sunos4*)
  12713. version_type=sunos
  12714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12715. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12716. shlibpath_var=LD_LIBRARY_PATH
  12717. shlibpath_overrides_runpath=yes
  12718. if test "$with_gnu_ld" = yes; then
  12719. need_lib_prefix=no
  12720. fi
  12721. need_version=yes
  12722. ;;
  12723. sysv4 | sysv4.3*)
  12724. version_type=linux
  12725. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12726. soname_spec='${libname}${release}${shared_ext}$major'
  12727. shlibpath_var=LD_LIBRARY_PATH
  12728. case $host_vendor in
  12729. sni)
  12730. shlibpath_overrides_runpath=no
  12731. need_lib_prefix=no
  12732. runpath_var=LD_RUN_PATH
  12733. ;;
  12734. siemens)
  12735. need_lib_prefix=no
  12736. ;;
  12737. motorola)
  12738. need_lib_prefix=no
  12739. need_version=no
  12740. shlibpath_overrides_runpath=no
  12741. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12742. ;;
  12743. esac
  12744. ;;
  12745. sysv4*MP*)
  12746. if test -d /usr/nec ;then
  12747. version_type=linux
  12748. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12749. soname_spec='$libname${shared_ext}.$major'
  12750. shlibpath_var=LD_LIBRARY_PATH
  12751. fi
  12752. ;;
  12753. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12754. version_type=freebsd-elf
  12755. need_lib_prefix=no
  12756. need_version=no
  12757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12758. soname_spec='${libname}${release}${shared_ext}$major'
  12759. shlibpath_var=LD_LIBRARY_PATH
  12760. shlibpath_overrides_runpath=yes
  12761. hardcode_into_libs=yes
  12762. if test "$with_gnu_ld" = yes; then
  12763. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12764. else
  12765. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12766. case $host_os in
  12767. sco3.2v5*)
  12768. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12769. ;;
  12770. esac
  12771. fi
  12772. sys_lib_dlsearch_path_spec='/usr/lib'
  12773. ;;
  12774. tpf*)
  12775. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12776. version_type=linux
  12777. need_lib_prefix=no
  12778. need_version=no
  12779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12780. shlibpath_var=LD_LIBRARY_PATH
  12781. shlibpath_overrides_runpath=no
  12782. hardcode_into_libs=yes
  12783. ;;
  12784. uts4*)
  12785. version_type=linux
  12786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12787. soname_spec='${libname}${release}${shared_ext}$major'
  12788. shlibpath_var=LD_LIBRARY_PATH
  12789. ;;
  12790. *)
  12791. dynamic_linker=no
  12792. ;;
  12793. esac
  12794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12795. $as_echo "$dynamic_linker" >&6; }
  12796. test "$dynamic_linker" = no && can_build_shared=no
  12797. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12798. if test "$GCC" = yes; then
  12799. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12800. fi
  12801. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12802. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12803. fi
  12804. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12805. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12806. fi
  12807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12808. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12809. hardcode_action_CXX=
  12810. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12811. test -n "$runpath_var_CXX" ||
  12812. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12813. # We can hardcode non-existent directories.
  12814. if test "$hardcode_direct_CXX" != no &&
  12815. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12816. # have to relink, otherwise we might link with an installed library
  12817. # when we should be linking with a yet-to-be-installed one
  12818. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12819. test "$hardcode_minus_L_CXX" != no; then
  12820. # Linking always hardcodes the temporary library directory.
  12821. hardcode_action_CXX=relink
  12822. else
  12823. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12824. hardcode_action_CXX=immediate
  12825. fi
  12826. else
  12827. # We cannot hardcode anything, or else we can only hardcode existing
  12828. # directories.
  12829. hardcode_action_CXX=unsupported
  12830. fi
  12831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12832. $as_echo "$hardcode_action_CXX" >&6; }
  12833. if test "$hardcode_action_CXX" = relink ||
  12834. test "$inherit_rpath_CXX" = yes; then
  12835. # Fast installation is not supported
  12836. enable_fast_install=no
  12837. elif test "$shlibpath_overrides_runpath" = yes ||
  12838. test "$enable_shared" = no; then
  12839. # Fast installation is not necessary
  12840. enable_fast_install=needless
  12841. fi
  12842. fi # test -n "$compiler"
  12843. CC=$lt_save_CC
  12844. LDCXX=$LD
  12845. LD=$lt_save_LD
  12846. GCC=$lt_save_GCC
  12847. with_gnu_ld=$lt_save_with_gnu_ld
  12848. lt_cv_path_LDCXX=$lt_cv_path_LD
  12849. lt_cv_path_LD=$lt_save_path_LD
  12850. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12851. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12852. fi # test "$_lt_caught_CXX_error" != yes
  12853. ac_ext=c
  12854. ac_cpp='$CPP $CPPFLAGS'
  12855. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12856. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12857. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12858. ac_config_commands="$ac_config_commands libtool"
  12859. # Only expand once:
  12860. if test -n "$ac_tool_prefix"; then
  12861. # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
  12862. set dummy ${ac_tool_prefix}readelf; ac_word=$2
  12863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12864. $as_echo_n "checking for $ac_word... " >&6; }
  12865. if ${ac_cv_prog_READELF+:} false; then :
  12866. $as_echo_n "(cached) " >&6
  12867. else
  12868. if test -n "$READELF"; then
  12869. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  12870. else
  12871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12872. for as_dir in $PATH
  12873. do
  12874. IFS=$as_save_IFS
  12875. test -z "$as_dir" && as_dir=.
  12876. for ac_exec_ext in '' $ac_executable_extensions; do
  12877. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12878. ac_cv_prog_READELF="${ac_tool_prefix}readelf"
  12879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12880. break 2
  12881. fi
  12882. done
  12883. done
  12884. IFS=$as_save_IFS
  12885. fi
  12886. fi
  12887. READELF=$ac_cv_prog_READELF
  12888. if test -n "$READELF"; then
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  12890. $as_echo "$READELF" >&6; }
  12891. else
  12892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12893. $as_echo "no" >&6; }
  12894. fi
  12895. fi
  12896. if test -z "$ac_cv_prog_READELF"; then
  12897. ac_ct_READELF=$READELF
  12898. # Extract the first word of "readelf", so it can be a program name with args.
  12899. set dummy readelf; ac_word=$2
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12901. $as_echo_n "checking for $ac_word... " >&6; }
  12902. if ${ac_cv_prog_ac_ct_READELF+:} false; then :
  12903. $as_echo_n "(cached) " >&6
  12904. else
  12905. if test -n "$ac_ct_READELF"; then
  12906. ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
  12907. else
  12908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12909. for as_dir in $PATH
  12910. do
  12911. IFS=$as_save_IFS
  12912. test -z "$as_dir" && as_dir=.
  12913. for ac_exec_ext in '' $ac_executable_extensions; do
  12914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12915. ac_cv_prog_ac_ct_READELF="readelf"
  12916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12917. break 2
  12918. fi
  12919. done
  12920. done
  12921. IFS=$as_save_IFS
  12922. fi
  12923. fi
  12924. ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
  12925. if test -n "$ac_ct_READELF"; then
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
  12927. $as_echo "$ac_ct_READELF" >&6; }
  12928. else
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12930. $as_echo "no" >&6; }
  12931. fi
  12932. if test "x$ac_ct_READELF" = x; then
  12933. READELF=""
  12934. else
  12935. case $cross_compiling:$ac_tool_warned in
  12936. yes:)
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12938. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12939. ac_tool_warned=yes ;;
  12940. esac
  12941. READELF=$ac_ct_READELF
  12942. fi
  12943. else
  12944. READELF="$ac_cv_prog_READELF"
  12945. fi
  12946. # Test for 64-bit build.
  12947. # The cast to long int works around a bug in the HP C Compiler
  12948. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12949. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12950. # This bug is HP SR number 8606223364.
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  12952. $as_echo_n "checking size of size_t... " >&6; }
  12953. if ${ac_cv_sizeof_size_t+:} false; then :
  12954. $as_echo_n "(cached) " >&6
  12955. else
  12956. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  12957. else
  12958. if test "$ac_cv_type_size_t" = yes; then
  12959. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12960. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12961. as_fn_error 77 "cannot compute sizeof (size_t)
  12962. See \`config.log' for more details" "$LINENO" 5; }
  12963. else
  12964. ac_cv_sizeof_size_t=0
  12965. fi
  12966. fi
  12967. fi
  12968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  12969. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  12970. cat >>confdefs.h <<_ACEOF
  12971. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  12972. _ACEOF
  12973. cat > local.exp <<EOF
  12974. set CC_FOR_TARGET "$CC"
  12975. set CXX_FOR_TARGET "$CXX"
  12976. set compiler_vendor "$ax_cv_c_compiler_vendor"
  12977. EOF
  12978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  12979. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  12980. # Check whether --enable-maintainer-mode was given.
  12981. if test "${enable_maintainer_mode+set}" = set; then :
  12982. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  12983. else
  12984. USE_MAINTAINER_MODE=no
  12985. fi
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  12987. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  12988. if test $USE_MAINTAINER_MODE = yes; then
  12989. MAINTAINER_MODE_TRUE=
  12990. MAINTAINER_MODE_FALSE='#'
  12991. else
  12992. MAINTAINER_MODE_TRUE='#'
  12993. MAINTAINER_MODE_FALSE=
  12994. fi
  12995. MAINT=$MAINTAINER_MODE_TRUE
  12996. for ac_header in sys/memfd.h
  12997. do :
  12998. ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
  12999. if test "x$ac_cv_header_sys_memfd_h" = xyes; then :
  13000. cat >>confdefs.h <<_ACEOF
  13001. #define HAVE_SYS_MEMFD_H 1
  13002. _ACEOF
  13003. fi
  13004. done
  13005. for ac_func in memfd_create
  13006. do :
  13007. ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
  13008. if test "x$ac_cv_func_memfd_create" = xyes; then :
  13009. cat >>confdefs.h <<_ACEOF
  13010. #define HAVE_MEMFD_CREATE 1
  13011. _ACEOF
  13012. fi
  13013. done
  13014. for ac_header in sys/mman.h
  13015. do :
  13016. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  13017. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  13018. cat >>confdefs.h <<_ACEOF
  13019. #define HAVE_SYS_MMAN_H 1
  13020. _ACEOF
  13021. fi
  13022. done
  13023. for ac_func in mmap mkostemp mkstemp
  13024. do :
  13025. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13026. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13027. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13028. cat >>confdefs.h <<_ACEOF
  13029. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13030. _ACEOF
  13031. fi
  13032. done
  13033. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  13034. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  13035. libffi_header_sys_mman_h=yes
  13036. else
  13037. libffi_header_sys_mman_h=no
  13038. fi
  13039. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  13040. if test "x$ac_cv_func_mmap" = xyes; then :
  13041. libffi_func_mmap=yes
  13042. else
  13043. libffi_func_mmap=no
  13044. fi
  13045. if test "$libffi_header_sys_mman_h" != yes \
  13046. || test "$libffi_func_mmap" != yes; then
  13047. ac_cv_func_mmap_file=no
  13048. ac_cv_func_mmap_dev_zero=no
  13049. ac_cv_func_mmap_anon=no
  13050. else
  13051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  13052. $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  13053. if ${ac_cv_func_mmap_file+:} false; then :
  13054. $as_echo_n "(cached) " >&6
  13055. else
  13056. # Add a system to this blacklist if
  13057. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  13058. # memory area containing the same data that you'd get if you applied
  13059. # read() to the same fd. The only system known to have a problem here
  13060. # is VMS, where text files have record structure.
  13061. case "$host_os" in
  13062. vms* | ultrix*)
  13063. ac_cv_func_mmap_file=no ;;
  13064. *)
  13065. ac_cv_func_mmap_file=yes;;
  13066. esac
  13067. fi
  13068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
  13069. $as_echo "$ac_cv_func_mmap_file" >&6; }
  13070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  13071. $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  13072. if ${ac_cv_func_mmap_dev_zero+:} false; then :
  13073. $as_echo_n "(cached) " >&6
  13074. else
  13075. # Add a system to this blacklist if it has mmap() but /dev/zero
  13076. # does not exist, or if mmapping /dev/zero does not give anonymous
  13077. # zeroed pages with both the following properties:
  13078. # 1. If you map N consecutive pages in with one call, and then
  13079. # unmap any subset of those pages, the pages that were not
  13080. # explicitly unmapped remain accessible.
  13081. # 2. If you map two adjacent blocks of memory and then unmap them
  13082. # both at once, they must both go away.
  13083. # Systems known to be in this category are Windows (all variants),
  13084. # VMS, and Darwin.
  13085. case "$host_os" in
  13086. vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  13087. ac_cv_func_mmap_dev_zero=no ;;
  13088. *)
  13089. ac_cv_func_mmap_dev_zero=yes;;
  13090. esac
  13091. fi
  13092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
  13093. $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
  13094. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  13095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  13096. $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  13097. if ${ac_cv_decl_map_anon+:} false; then :
  13098. $as_echo_n "(cached) " >&6
  13099. else
  13100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13101. /* end confdefs.h. */
  13102. #include <sys/types.h>
  13103. #include <sys/mman.h>
  13104. #include <unistd.h>
  13105. #ifndef MAP_ANONYMOUS
  13106. #define MAP_ANONYMOUS MAP_ANON
  13107. #endif
  13108. int
  13109. main ()
  13110. {
  13111. int n = MAP_ANONYMOUS;
  13112. ;
  13113. return 0;
  13114. }
  13115. _ACEOF
  13116. if ac_fn_c_try_compile "$LINENO"; then :
  13117. ac_cv_decl_map_anon=yes
  13118. else
  13119. ac_cv_decl_map_anon=no
  13120. fi
  13121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13122. fi
  13123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
  13124. $as_echo "$ac_cv_decl_map_anon" >&6; }
  13125. if test $ac_cv_decl_map_anon = no; then
  13126. ac_cv_func_mmap_anon=no
  13127. else
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  13129. $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  13130. if ${ac_cv_func_mmap_anon+:} false; then :
  13131. $as_echo_n "(cached) " >&6
  13132. else
  13133. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  13134. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  13135. # doesn't give anonymous zeroed pages with the same properties listed
  13136. # above for use of /dev/zero.
  13137. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  13138. case "$host_os" in
  13139. vms* | cygwin* | pe | mingw* | sco* | udk* )
  13140. ac_cv_func_mmap_anon=no ;;
  13141. *)
  13142. ac_cv_func_mmap_anon=yes;;
  13143. esac
  13144. fi
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
  13146. $as_echo "$ac_cv_func_mmap_anon" >&6; }
  13147. fi
  13148. fi
  13149. if test $ac_cv_func_mmap_file = yes; then
  13150. $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  13151. fi
  13152. if test $ac_cv_func_mmap_dev_zero = yes; then
  13153. $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  13154. fi
  13155. if test $ac_cv_func_mmap_anon = yes; then
  13156. $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  13157. fi
  13158. if test -d $srcdir/testsuite; then
  13159. TESTSUBDIR_TRUE=
  13160. TESTSUBDIR_FALSE='#'
  13161. else
  13162. TESTSUBDIR_TRUE='#'
  13163. TESTSUBDIR_FALSE=
  13164. fi
  13165. TARGETDIR="unknown"
  13166. HAVE_LONG_DOUBLE_VARIANT=0
  13167. . ${srcdir}/configure.host
  13168. if test -n "${UNSUPPORTED}"; then
  13169. as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
  13170. fi
  13171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13172. $as_echo_n "checking for ANSI C header files... " >&6; }
  13173. if ${ac_cv_header_stdc+:} false; then :
  13174. $as_echo_n "(cached) " >&6
  13175. else
  13176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13177. /* end confdefs.h. */
  13178. #include <stdlib.h>
  13179. #include <stdarg.h>
  13180. #include <string.h>
  13181. #include <float.h>
  13182. int
  13183. main ()
  13184. {
  13185. ;
  13186. return 0;
  13187. }
  13188. _ACEOF
  13189. if ac_fn_c_try_compile "$LINENO"; then :
  13190. ac_cv_header_stdc=yes
  13191. else
  13192. ac_cv_header_stdc=no
  13193. fi
  13194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13195. if test $ac_cv_header_stdc = yes; then
  13196. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13198. /* end confdefs.h. */
  13199. #include <string.h>
  13200. _ACEOF
  13201. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13202. $EGREP "memchr" >/dev/null 2>&1; then :
  13203. else
  13204. ac_cv_header_stdc=no
  13205. fi
  13206. rm -f conftest*
  13207. fi
  13208. if test $ac_cv_header_stdc = yes; then
  13209. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13211. /* end confdefs.h. */
  13212. #include <stdlib.h>
  13213. _ACEOF
  13214. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13215. $EGREP "free" >/dev/null 2>&1; then :
  13216. else
  13217. ac_cv_header_stdc=no
  13218. fi
  13219. rm -f conftest*
  13220. fi
  13221. if test $ac_cv_header_stdc = yes; then
  13222. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13223. if test "$cross_compiling" = yes; then :
  13224. :
  13225. else
  13226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13227. /* end confdefs.h. */
  13228. #include <ctype.h>
  13229. #include <stdlib.h>
  13230. #if ((' ' & 0x0FF) == 0x020)
  13231. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13232. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13233. #else
  13234. # define ISLOWER(c) \
  13235. (('a' <= (c) && (c) <= 'i') \
  13236. || ('j' <= (c) && (c) <= 'r') \
  13237. || ('s' <= (c) && (c) <= 'z'))
  13238. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13239. #endif
  13240. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13241. int
  13242. main ()
  13243. {
  13244. int i;
  13245. for (i = 0; i < 256; i++)
  13246. if (XOR (islower (i), ISLOWER (i))
  13247. || toupper (i) != TOUPPER (i))
  13248. return 2;
  13249. return 0;
  13250. }
  13251. _ACEOF
  13252. if ac_fn_c_try_run "$LINENO"; then :
  13253. else
  13254. ac_cv_header_stdc=no
  13255. fi
  13256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13257. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13258. fi
  13259. fi
  13260. fi
  13261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13262. $as_echo "$ac_cv_header_stdc" >&6; }
  13263. if test $ac_cv_header_stdc = yes; then
  13264. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13265. fi
  13266. for ac_func in memcpy
  13267. do :
  13268. ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
  13269. if test "x$ac_cv_func_memcpy" = xyes; then :
  13270. cat >>confdefs.h <<_ACEOF
  13271. #define HAVE_MEMCPY 1
  13272. _ACEOF
  13273. fi
  13274. done
  13275. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13276. if test "x$ac_cv_type_size_t" = xyes; then :
  13277. else
  13278. cat >>confdefs.h <<_ACEOF
  13279. #define size_t unsigned int
  13280. _ACEOF
  13281. fi
  13282. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  13283. # for constant arguments. Useless!
  13284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  13285. $as_echo_n "checking for working alloca.h... " >&6; }
  13286. if ${ac_cv_working_alloca_h+:} false; then :
  13287. $as_echo_n "(cached) " >&6
  13288. else
  13289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13290. /* end confdefs.h. */
  13291. #include <alloca.h>
  13292. int
  13293. main ()
  13294. {
  13295. char *p = (char *) alloca (2 * sizeof (int));
  13296. if (p) return 0;
  13297. ;
  13298. return 0;
  13299. }
  13300. _ACEOF
  13301. if ac_fn_c_try_link "$LINENO"; then :
  13302. ac_cv_working_alloca_h=yes
  13303. else
  13304. ac_cv_working_alloca_h=no
  13305. fi
  13306. rm -f core conftest.err conftest.$ac_objext \
  13307. conftest$ac_exeext conftest.$ac_ext
  13308. fi
  13309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  13310. $as_echo "$ac_cv_working_alloca_h" >&6; }
  13311. if test $ac_cv_working_alloca_h = yes; then
  13312. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
  13313. fi
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  13315. $as_echo_n "checking for alloca... " >&6; }
  13316. if ${ac_cv_func_alloca_works+:} false; then :
  13317. $as_echo_n "(cached) " >&6
  13318. else
  13319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13320. /* end confdefs.h. */
  13321. #ifdef __GNUC__
  13322. # define alloca __builtin_alloca
  13323. #else
  13324. # ifdef _MSC_VER
  13325. # include <malloc.h>
  13326. # define alloca _alloca
  13327. # else
  13328. # ifdef HAVE_ALLOCA_H
  13329. # include <alloca.h>
  13330. # else
  13331. # ifdef _AIX
  13332. #pragma alloca
  13333. # else
  13334. # ifndef alloca /* predefined by HP cc +Olibcalls */
  13335. void *alloca (size_t);
  13336. # endif
  13337. # endif
  13338. # endif
  13339. # endif
  13340. #endif
  13341. int
  13342. main ()
  13343. {
  13344. char *p = (char *) alloca (1);
  13345. if (p) return 0;
  13346. ;
  13347. return 0;
  13348. }
  13349. _ACEOF
  13350. if ac_fn_c_try_link "$LINENO"; then :
  13351. ac_cv_func_alloca_works=yes
  13352. else
  13353. ac_cv_func_alloca_works=no
  13354. fi
  13355. rm -f core conftest.err conftest.$ac_objext \
  13356. conftest$ac_exeext conftest.$ac_ext
  13357. fi
  13358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  13359. $as_echo "$ac_cv_func_alloca_works" >&6; }
  13360. if test $ac_cv_func_alloca_works = yes; then
  13361. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
  13362. else
  13363. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  13364. # that cause trouble. Some versions do not even contain alloca or
  13365. # contain a buggy version. If you still want to use their alloca,
  13366. # use ar to extract alloca.o from them instead of compiling alloca.c.
  13367. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  13368. $as_echo "#define C_ALLOCA 1" >>confdefs.h
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  13370. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  13371. if ${ac_cv_os_cray+:} false; then :
  13372. $as_echo_n "(cached) " >&6
  13373. else
  13374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13375. /* end confdefs.h. */
  13376. #if defined CRAY && ! defined CRAY2
  13377. webecray
  13378. #else
  13379. wenotbecray
  13380. #endif
  13381. _ACEOF
  13382. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13383. $EGREP "webecray" >/dev/null 2>&1; then :
  13384. ac_cv_os_cray=yes
  13385. else
  13386. ac_cv_os_cray=no
  13387. fi
  13388. rm -f conftest*
  13389. fi
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  13391. $as_echo "$ac_cv_os_cray" >&6; }
  13392. if test $ac_cv_os_cray = yes; then
  13393. for ac_func in _getb67 GETB67 getb67; do
  13394. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13395. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13396. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13397. cat >>confdefs.h <<_ACEOF
  13398. #define CRAY_STACKSEG_END $ac_func
  13399. _ACEOF
  13400. break
  13401. fi
  13402. done
  13403. fi
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  13405. $as_echo_n "checking stack direction for C alloca... " >&6; }
  13406. if ${ac_cv_c_stack_direction+:} false; then :
  13407. $as_echo_n "(cached) " >&6
  13408. else
  13409. if test "$cross_compiling" = yes; then :
  13410. ac_cv_c_stack_direction=0
  13411. else
  13412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13413. /* end confdefs.h. */
  13414. $ac_includes_default
  13415. int
  13416. find_stack_direction (int *addr, int depth)
  13417. {
  13418. int dir, dummy = 0;
  13419. if (! addr)
  13420. addr = &dummy;
  13421. *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
  13422. dir = depth ? find_stack_direction (addr, depth - 1) : 0;
  13423. return dir + dummy;
  13424. }
  13425. int
  13426. main (int argc, char **argv)
  13427. {
  13428. return find_stack_direction (0, argc + !argv + 20) < 0;
  13429. }
  13430. _ACEOF
  13431. if ac_fn_c_try_run "$LINENO"; then :
  13432. ac_cv_c_stack_direction=1
  13433. else
  13434. ac_cv_c_stack_direction=-1
  13435. fi
  13436. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13437. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13438. fi
  13439. fi
  13440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  13441. $as_echo "$ac_cv_c_stack_direction" >&6; }
  13442. cat >>confdefs.h <<_ACEOF
  13443. #define STACK_DIRECTION $ac_cv_c_stack_direction
  13444. _ACEOF
  13445. fi
  13446. # The cast to long int works around a bug in the HP C Compiler
  13447. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13448. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13449. # This bug is HP SR number 8606223364.
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
  13451. $as_echo_n "checking size of double... " >&6; }
  13452. if ${ac_cv_sizeof_double+:} false; then :
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
  13456. else
  13457. if test "$ac_cv_type_double" = yes; then
  13458. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13459. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13460. as_fn_error 77 "cannot compute sizeof (double)
  13461. See \`config.log' for more details" "$LINENO" 5; }
  13462. else
  13463. ac_cv_sizeof_double=0
  13464. fi
  13465. fi
  13466. fi
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
  13468. $as_echo "$ac_cv_sizeof_double" >&6; }
  13469. cat >>confdefs.h <<_ACEOF
  13470. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  13471. _ACEOF
  13472. # The cast to long int works around a bug in the HP C Compiler
  13473. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13474. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13475. # This bug is HP SR number 8606223364.
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
  13477. $as_echo_n "checking size of long double... " >&6; }
  13478. if ${ac_cv_sizeof_long_double+:} false; then :
  13479. $as_echo_n "(cached) " >&6
  13480. else
  13481. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
  13482. else
  13483. if test "$ac_cv_type_long_double" = yes; then
  13484. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13486. as_fn_error 77 "cannot compute sizeof (long double)
  13487. See \`config.log' for more details" "$LINENO" 5; }
  13488. else
  13489. ac_cv_sizeof_long_double=0
  13490. fi
  13491. fi
  13492. fi
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
  13494. $as_echo "$ac_cv_sizeof_long_double" >&6; }
  13495. cat >>confdefs.h <<_ACEOF
  13496. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  13497. _ACEOF
  13498. # Also AC_SUBST this variable for ffi.h.
  13499. if test -z "$HAVE_LONG_DOUBLE"; then
  13500. HAVE_LONG_DOUBLE=0
  13501. if test $ac_cv_sizeof_long_double != 0; then
  13502. if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
  13503. $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
  13504. HAVE_LONG_DOUBLE=1
  13505. else
  13506. if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
  13507. HAVE_LONG_DOUBLE=1
  13508. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
  13509. fi
  13510. fi
  13511. fi
  13512. fi
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13514. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13515. if ${ac_cv_c_bigendian+:} false; then :
  13516. $as_echo_n "(cached) " >&6
  13517. else
  13518. ac_cv_c_bigendian=unknown
  13519. # See if we're dealing with a universal compiler.
  13520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13521. /* end confdefs.h. */
  13522. #ifndef __APPLE_CC__
  13523. not a universal capable compiler
  13524. #endif
  13525. typedef int dummy;
  13526. _ACEOF
  13527. if ac_fn_c_try_compile "$LINENO"; then :
  13528. # Check for potential -arch flags. It is not universal unless
  13529. # there are at least two -arch flags with different values.
  13530. ac_arch=
  13531. ac_prev=
  13532. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13533. if test -n "$ac_prev"; then
  13534. case $ac_word in
  13535. i?86 | x86_64 | ppc | ppc64)
  13536. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13537. ac_arch=$ac_word
  13538. else
  13539. ac_cv_c_bigendian=universal
  13540. break
  13541. fi
  13542. ;;
  13543. esac
  13544. ac_prev=
  13545. elif test "x$ac_word" = "x-arch"; then
  13546. ac_prev=arch
  13547. fi
  13548. done
  13549. fi
  13550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13551. if test $ac_cv_c_bigendian = unknown; then
  13552. # See if sys/param.h defines the BYTE_ORDER macro.
  13553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13554. /* end confdefs.h. */
  13555. #include <sys/types.h>
  13556. #include <sys/param.h>
  13557. int
  13558. main ()
  13559. {
  13560. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  13561. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  13562. && LITTLE_ENDIAN)
  13563. bogus endian macros
  13564. #endif
  13565. ;
  13566. return 0;
  13567. }
  13568. _ACEOF
  13569. if ac_fn_c_try_compile "$LINENO"; then :
  13570. # It does; now see whether it defined to BIG_ENDIAN or not.
  13571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13572. /* end confdefs.h. */
  13573. #include <sys/types.h>
  13574. #include <sys/param.h>
  13575. int
  13576. main ()
  13577. {
  13578. #if BYTE_ORDER != BIG_ENDIAN
  13579. not big endian
  13580. #endif
  13581. ;
  13582. return 0;
  13583. }
  13584. _ACEOF
  13585. if ac_fn_c_try_compile "$LINENO"; then :
  13586. ac_cv_c_bigendian=yes
  13587. else
  13588. ac_cv_c_bigendian=no
  13589. fi
  13590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13591. fi
  13592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13593. fi
  13594. if test $ac_cv_c_bigendian = unknown; then
  13595. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  13596. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13597. /* end confdefs.h. */
  13598. #include <limits.h>
  13599. int
  13600. main ()
  13601. {
  13602. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  13603. bogus endian macros
  13604. #endif
  13605. ;
  13606. return 0;
  13607. }
  13608. _ACEOF
  13609. if ac_fn_c_try_compile "$LINENO"; then :
  13610. # It does; now see whether it defined to _BIG_ENDIAN or not.
  13611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13612. /* end confdefs.h. */
  13613. #include <limits.h>
  13614. int
  13615. main ()
  13616. {
  13617. #ifndef _BIG_ENDIAN
  13618. not big endian
  13619. #endif
  13620. ;
  13621. return 0;
  13622. }
  13623. _ACEOF
  13624. if ac_fn_c_try_compile "$LINENO"; then :
  13625. ac_cv_c_bigendian=yes
  13626. else
  13627. ac_cv_c_bigendian=no
  13628. fi
  13629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13630. fi
  13631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13632. fi
  13633. if test $ac_cv_c_bigendian = unknown; then
  13634. # Compile a test program.
  13635. if test "$cross_compiling" = yes; then :
  13636. # Try to guess by grepping values from an object file.
  13637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13638. /* end confdefs.h. */
  13639. short int ascii_mm[] =
  13640. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13641. short int ascii_ii[] =
  13642. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13643. int use_ascii (int i) {
  13644. return ascii_mm[i] + ascii_ii[i];
  13645. }
  13646. short int ebcdic_ii[] =
  13647. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13648. short int ebcdic_mm[] =
  13649. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13650. int use_ebcdic (int i) {
  13651. return ebcdic_mm[i] + ebcdic_ii[i];
  13652. }
  13653. extern int foo;
  13654. int
  13655. main ()
  13656. {
  13657. return use_ascii (foo) == use_ebcdic (foo);
  13658. ;
  13659. return 0;
  13660. }
  13661. _ACEOF
  13662. if ac_fn_c_try_compile "$LINENO"; then :
  13663. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  13664. ac_cv_c_bigendian=yes
  13665. fi
  13666. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13667. if test "$ac_cv_c_bigendian" = unknown; then
  13668. ac_cv_c_bigendian=no
  13669. else
  13670. # finding both strings is unlikely to happen, but who knows?
  13671. ac_cv_c_bigendian=unknown
  13672. fi
  13673. fi
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13676. else
  13677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13678. /* end confdefs.h. */
  13679. $ac_includes_default
  13680. int
  13681. main ()
  13682. {
  13683. /* Are we little or big endian? From Harbison&Steele. */
  13684. union
  13685. {
  13686. long int l;
  13687. char c[sizeof (long int)];
  13688. } u;
  13689. u.l = 1;
  13690. return u.c[sizeof (long int) - 1] == 1;
  13691. ;
  13692. return 0;
  13693. }
  13694. _ACEOF
  13695. if ac_fn_c_try_run "$LINENO"; then :
  13696. ac_cv_c_bigendian=no
  13697. else
  13698. ac_cv_c_bigendian=yes
  13699. fi
  13700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13701. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13702. fi
  13703. fi
  13704. fi
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  13706. $as_echo "$ac_cv_c_bigendian" >&6; }
  13707. case $ac_cv_c_bigendian in #(
  13708. yes)
  13709. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  13710. ;; #(
  13711. no)
  13712. ;; #(
  13713. universal)
  13714. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  13715. ;; #(
  13716. *)
  13717. as_fn_error $? "unknown endianness
  13718. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  13719. esac
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
  13721. $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
  13722. if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
  13723. $as_echo_n "(cached) " >&6
  13724. else
  13725. gcc_cv_as_cfi_pseudo_op=unknown
  13726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13727. /* end confdefs.h. */
  13728. asm (".cfi_startproc\n\t.cfi_endproc");
  13729. int
  13730. main ()
  13731. {
  13732. ;
  13733. return 0;
  13734. }
  13735. _ACEOF
  13736. if ac_fn_c_try_compile "$LINENO"; then :
  13737. gcc_cv_as_cfi_pseudo_op=yes
  13738. else
  13739. gcc_cv_as_cfi_pseudo_op=no
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13742. fi
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
  13744. $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
  13745. if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
  13746. $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
  13747. fi
  13748. case "$TARGET" in
  13749. SPARC)
  13750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
  13751. $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
  13752. if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
  13753. $as_echo_n "(cached) " >&6
  13754. else
  13755. save_CFLAGS="$CFLAGS"
  13756. save_LDFLAGS="$LDFLAGS"
  13757. CFLAGS="$CFLAGS -fpic"
  13758. LDFLAGS="$LDFLAGS -shared"
  13759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13760. /* end confdefs.h. */
  13761. asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
  13762. int
  13763. main ()
  13764. {
  13765. ;
  13766. return 0;
  13767. }
  13768. _ACEOF
  13769. if ac_fn_c_try_link "$LINENO"; then :
  13770. libffi_cv_as_sparc_ua_pcrel=yes
  13771. else
  13772. libffi_cv_as_sparc_ua_pcrel=no
  13773. fi
  13774. rm -f core conftest.err conftest.$ac_objext \
  13775. conftest$ac_exeext conftest.$ac_ext
  13776. CFLAGS="$save_CFLAGS"
  13777. LDFLAGS="$save_LDFLAGS"
  13778. fi
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
  13780. $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
  13781. if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
  13782. $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
  13783. fi
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
  13785. $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
  13786. if ${libffi_cv_as_register_pseudo_op+:} false; then :
  13787. $as_echo_n "(cached) " >&6
  13788. else
  13789. libffi_cv_as_register_pseudo_op=unknown
  13790. # Check if we have .register
  13791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13792. /* end confdefs.h. */
  13793. int
  13794. main ()
  13795. {
  13796. asm (".register %g2, #scratch");
  13797. ;
  13798. return 0;
  13799. }
  13800. _ACEOF
  13801. if ac_fn_c_try_compile "$LINENO"; then :
  13802. libffi_cv_as_register_pseudo_op=yes
  13803. else
  13804. libffi_cv_as_register_pseudo_op=no
  13805. fi
  13806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13807. fi
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
  13809. $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
  13810. if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
  13811. $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
  13812. fi
  13813. ;;
  13814. X86*)
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
  13816. $as_echo_n "checking assembler supports pc related relocs... " >&6; }
  13817. if ${libffi_cv_as_x86_pcrel+:} false; then :
  13818. $as_echo_n "(cached) " >&6
  13819. else
  13820. libffi_cv_as_x86_pcrel=no
  13821. echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
  13822. if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
  13823. libffi_cv_as_x86_pcrel=yes
  13824. fi
  13825. fi
  13826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
  13827. $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
  13828. if test "x$libffi_cv_as_x86_pcrel" = xyes; then
  13829. $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
  13830. fi
  13831. ;;
  13832. S390)
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
  13834. $as_echo_n "checking compiler uses zarch features... " >&6; }
  13835. if ${libffi_cv_as_s390_zarch+:} false; then :
  13836. $as_echo_n "(cached) " >&6
  13837. else
  13838. libffi_cv_as_s390_zarch=no
  13839. echo 'void foo(void) { bar(); bar(); }' > conftest.c
  13840. if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
  13841. if grep -q brasl conftest.s; then
  13842. libffi_cv_as_s390_zarch=yes
  13843. fi
  13844. fi
  13845. fi
  13846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
  13847. $as_echo "$libffi_cv_as_s390_zarch" >&6; }
  13848. if test "x$libffi_cv_as_s390_zarch" = xyes; then
  13849. $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
  13850. fi
  13851. ;;
  13852. esac
  13853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports pointer authentication" >&5
  13854. $as_echo_n "checking whether compiler supports pointer authentication... " >&6; }
  13855. if ${libffi_cv_as_ptrauth+:} false; then :
  13856. $as_echo_n "(cached) " >&6
  13857. else
  13858. libffi_cv_as_ptrauth=unknown
  13859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13860. /* end confdefs.h. */
  13861. int
  13862. main ()
  13863. {
  13864. #ifdef __clang__
  13865. # if __has_feature(ptrauth_calls)
  13866. # define HAVE_PTRAUTH 1
  13867. # endif
  13868. #endif
  13869. #ifndef HAVE_PTRAUTH
  13870. # error Pointer authentication not supported
  13871. #endif
  13872. ;
  13873. return 0;
  13874. }
  13875. _ACEOF
  13876. if ac_fn_c_try_compile "$LINENO"; then :
  13877. libffi_cv_as_ptrauth=yes
  13878. else
  13879. libffi_cv_as_ptrauth=no
  13880. fi
  13881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13882. fi
  13883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ptrauth" >&5
  13884. $as_echo "$libffi_cv_as_ptrauth" >&6; }
  13885. if test "x$libffi_cv_as_ptrauth" = xyes; then
  13886. $as_echo "#define HAVE_PTRAUTH 1" >>confdefs.h
  13887. fi
  13888. # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
  13889. # Check whether --enable-pax_emutramp was given.
  13890. if test "${enable_pax_emutramp+set}" = set; then :
  13891. enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
  13892. $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
  13893. fi
  13894. fi
  13895. FFI_EXEC_TRAMPOLINE_TABLE=0
  13896. case "$target" in
  13897. *arm*-apple-* | aarch64-apple-*)
  13898. FFI_EXEC_TRAMPOLINE_TABLE=1
  13899. $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
  13900. ;;
  13901. *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
  13902. $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
  13903. ;;
  13904. esac
  13905. if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
  13906. FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
  13907. FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
  13908. else
  13909. FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
  13910. FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
  13911. fi
  13912. if test x$TARGET = xX86_64; then
  13913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
  13914. $as_echo_n "checking toolchain supports unwind section type... " >&6; }
  13915. if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
  13916. $as_echo_n "(cached) " >&6
  13917. else
  13918. cat > conftest1.s << EOF
  13919. .text
  13920. .globl foo
  13921. foo:
  13922. jmp bar
  13923. .section .eh_frame,"a",@unwind
  13924. bar:
  13925. EOF
  13926. cat > conftest2.c << EOF
  13927. extern void foo();
  13928. int main(){foo();}
  13929. EOF
  13930. libffi_cv_as_x86_64_unwind_section_type=no
  13931. # we ensure that we can compile _and_ link an assembly file containing an @unwind section
  13932. # since the compiler can support it and not the linker (ie old binutils)
  13933. if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
  13934. $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
  13935. libffi_cv_as_x86_64_unwind_section_type=yes
  13936. fi
  13937. fi
  13938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
  13939. $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
  13940. if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
  13941. $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
  13942. fi
  13943. fi
  13944. if test "x$GCC" = "xyes"; then
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
  13946. $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
  13947. if ${libffi_cv_ro_eh_frame+:} false; then :
  13948. $as_echo_n "(cached) " >&6
  13949. else
  13950. libffi_cv_ro_eh_frame=yes
  13951. echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
  13952. if $CC $CFLAGS -c -fpic -fexceptions -fno-lto -o conftest.o conftest.c > /dev/null 2>&1; then
  13953. if $READELF -WS conftest.o | grep -q -n 'eh_frame .* WA'; then
  13954. libffi_cv_ro_eh_frame=no
  13955. fi
  13956. fi
  13957. rm -f conftest.*
  13958. fi
  13959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
  13960. $as_echo "$libffi_cv_ro_eh_frame" >&6; }
  13961. if test "x$libffi_cv_ro_eh_frame" = xyes; then
  13962. $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
  13963. $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
  13964. else
  13965. $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
  13966. fi
  13967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
  13968. $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
  13969. if ${libffi_cv_hidden_visibility_attribute+:} false; then :
  13970. $as_echo_n "(cached) " >&6
  13971. else
  13972. echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
  13973. libffi_cv_hidden_visibility_attribute=no
  13974. if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
  13975. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
  13976. (eval $ac_try) 2>&5
  13977. ac_status=$?
  13978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13979. test $ac_status = 0; }; }; then
  13980. if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
  13981. libffi_cv_hidden_visibility_attribute=yes
  13982. fi
  13983. fi
  13984. rm -f conftest.*
  13985. fi
  13986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
  13987. $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
  13988. if test $libffi_cv_hidden_visibility_attribute = yes; then
  13989. $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
  13990. fi
  13991. fi
  13992. # See if makeinfo has been installed and is modern enough
  13993. # that we can use it.
  13994. # Extract the first word of "makeinfo", so it can be a program name with args.
  13995. set dummy makeinfo; ac_word=$2
  13996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13997. $as_echo_n "checking for $ac_word... " >&6; }
  13998. if ${ac_cv_prog_MAKEINFO+:} false; then :
  13999. $as_echo_n "(cached) " >&6
  14000. else
  14001. if test -n "$MAKEINFO"; then
  14002. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  14003. else
  14004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14005. for as_dir in $PATH
  14006. do
  14007. IFS=$as_save_IFS
  14008. test -z "$as_dir" && as_dir=.
  14009. for ac_exec_ext in '' $ac_executable_extensions; do
  14010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14011. ac_cv_prog_MAKEINFO="makeinfo"
  14012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14013. break 2
  14014. fi
  14015. done
  14016. done
  14017. IFS=$as_save_IFS
  14018. fi
  14019. fi
  14020. MAKEINFO=$ac_cv_prog_MAKEINFO
  14021. if test -n "$MAKEINFO"; then
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  14023. $as_echo "$MAKEINFO" >&6; }
  14024. else
  14025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14026. $as_echo "no" >&6; }
  14027. fi
  14028. if test -n "$MAKEINFO"; then
  14029. # Found it, now check the version.
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  14031. $as_echo_n "checking for modern makeinfo... " >&6; }
  14032. if ${gcc_cv_prog_makeinfo_modern+:} false; then :
  14033. $as_echo_n "(cached) " >&6
  14034. else
  14035. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  14036. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  14037. case $ac_prog_version in
  14038. '') gcc_cv_prog_makeinfo_modern=no;;
  14039. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  14040. *) gcc_cv_prog_makeinfo_modern=no;;
  14041. esac
  14042. fi
  14043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  14044. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  14045. else
  14046. gcc_cv_prog_makeinfo_modern=no
  14047. fi
  14048. if test $gcc_cv_prog_makeinfo_modern = no; then
  14049. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  14050. fi
  14051. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  14052. BUILD_DOCS_TRUE=
  14053. BUILD_DOCS_FALSE='#'
  14054. else
  14055. BUILD_DOCS_TRUE='#'
  14056. BUILD_DOCS_FALSE=
  14057. fi
  14058. TARGET_OBJ=
  14059. for i in $SOURCES; do
  14060. TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
  14061. done
  14062. # Check whether --enable-debug was given.
  14063. if test "${enable_debug+set}" = set; then :
  14064. enableval=$enable_debug; if test "$enable_debug" = "yes"; then
  14065. $as_echo "#define FFI_DEBUG 1" >>confdefs.h
  14066. fi
  14067. fi
  14068. if test "$enable_debug" = "yes"; then
  14069. FFI_DEBUG_TRUE=
  14070. FFI_DEBUG_FALSE='#'
  14071. else
  14072. FFI_DEBUG_TRUE='#'
  14073. FFI_DEBUG_FALSE=
  14074. fi
  14075. # Check whether --enable-structs was given.
  14076. if test "${enable_structs+set}" = set; then :
  14077. enableval=$enable_structs; if test "$enable_structs" = "no"; then
  14078. $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
  14079. fi
  14080. fi
  14081. if test "$enable_debug" = "yes"; then
  14082. FFI_DEBUG_TRUE=
  14083. FFI_DEBUG_FALSE='#'
  14084. else
  14085. FFI_DEBUG_TRUE='#'
  14086. FFI_DEBUG_FALSE=
  14087. fi
  14088. # Check whether --enable-raw-api was given.
  14089. if test "${enable_raw_api+set}" = set; then :
  14090. enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
  14091. $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
  14092. fi
  14093. fi
  14094. # Check whether --enable-exec-static-tramp was given.
  14095. if test "${enable_exec_static_tramp+set}" = set; then :
  14096. enableval=$enable_exec_static_tramp;
  14097. fi
  14098. if test "$enable_exec_static_tramp" = yes; then
  14099. case "$target" in
  14100. *-cygwin*)
  14101. ;;
  14102. *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-*)
  14103. $as_echo "#define FFI_EXEC_STATIC_TRAMP 1" >>confdefs.h
  14104. ;;
  14105. esac
  14106. fi
  14107. # Check whether --enable-purify-safety was given.
  14108. if test "${enable_purify_safety+set}" = set; then :
  14109. enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
  14110. $as_echo "#define USING_PURIFY 1" >>confdefs.h
  14111. fi
  14112. fi
  14113. # Check whether --with-toolexeclibdir was given.
  14114. if test "${with_toolexeclibdir+set}" = set; then :
  14115. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  14116. /)
  14117. ;;
  14118. */)
  14119. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  14120. ;;
  14121. esac
  14122. else
  14123. with_toolexeclibdir=no
  14124. fi
  14125. if test -n "$with_cross_host" &&
  14126. test x"$with_cross_host" != x"no"; then
  14127. toolexecdir='$(exec_prefix)/$(target_alias)'
  14128. case ${with_toolexeclibdir} in
  14129. no)
  14130. toolexeclibdir='$(toolexecdir)/lib'
  14131. ;;
  14132. *)
  14133. toolexeclibdir=${with_toolexeclibdir}
  14134. ;;
  14135. esac
  14136. else
  14137. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  14138. toolexeclibdir='$(libdir)'
  14139. fi
  14140. multi_os_directory=`$CC -print-multi-os-directory`
  14141. case $multi_os_directory in
  14142. .) ;; # Avoid trailing /.
  14143. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  14144. esac
  14145. if test "${multilib}" = "yes"; then
  14146. multilib_arg="--enable-multilib"
  14147. else
  14148. multilib_arg=
  14149. fi
  14150. # Check linker support.
  14151. # Check whether --with-gnu-ld was given.
  14152. if test "${with_gnu_ld+set}" = set; then :
  14153. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14154. else
  14155. with_gnu_ld=no
  14156. fi
  14157. ac_prog=ld
  14158. if test "$GCC" = yes; then
  14159. # Check if gcc -print-prog-name=ld gives a path.
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14161. $as_echo_n "checking for ld used by $CC... " >&6; }
  14162. case $host in
  14163. *-*-mingw*)
  14164. # gcc leaves a trailing carriage return which upsets mingw
  14165. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14166. *)
  14167. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14168. esac
  14169. case $ac_prog in
  14170. # Accept absolute paths.
  14171. [\\/]* | ?:[\\/]*)
  14172. re_direlt='/[^/][^/]*/\.\./'
  14173. # Canonicalize the pathname of ld
  14174. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14175. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14176. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14177. done
  14178. test -z "$LD" && LD="$ac_prog"
  14179. ;;
  14180. "")
  14181. # If it fails, then pretend we aren't using GCC.
  14182. ac_prog=ld
  14183. ;;
  14184. *)
  14185. # If it is relative, then search for the first ld in PATH.
  14186. with_gnu_ld=unknown
  14187. ;;
  14188. esac
  14189. elif test "$with_gnu_ld" = yes; then
  14190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14191. $as_echo_n "checking for GNU ld... " >&6; }
  14192. else
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14194. $as_echo_n "checking for non-GNU ld... " >&6; }
  14195. fi
  14196. if ${lt_cv_path_LD+:} false; then :
  14197. $as_echo_n "(cached) " >&6
  14198. else
  14199. if test -z "$LD"; then
  14200. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14201. for ac_dir in $PATH; do
  14202. IFS="$lt_save_ifs"
  14203. test -z "$ac_dir" && ac_dir=.
  14204. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14205. lt_cv_path_LD="$ac_dir/$ac_prog"
  14206. # Check to see if the program is GNU ld. I'd rather use --version,
  14207. # but apparently some variants of GNU ld only accept -v.
  14208. # Break only if it was the GNU/non-GNU ld that we prefer.
  14209. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  14210. *GNU* | *'with BFD'*)
  14211. test "$with_gnu_ld" != no && break
  14212. ;;
  14213. *)
  14214. test "$with_gnu_ld" != yes && break
  14215. ;;
  14216. esac
  14217. fi
  14218. done
  14219. IFS="$lt_save_ifs"
  14220. else
  14221. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  14222. fi
  14223. fi
  14224. LD="$lt_cv_path_LD"
  14225. if test -n "$LD"; then
  14226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14227. $as_echo "$LD" >&6; }
  14228. else
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14230. $as_echo "no" >&6; }
  14231. fi
  14232. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14234. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  14235. if ${lt_cv_prog_gnu_ld+:} false; then :
  14236. $as_echo_n "(cached) " >&6
  14237. else
  14238. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14239. case `$LD -v 2>&1 </dev/null` in
  14240. *GNU* | *'with BFD'*)
  14241. lt_cv_prog_gnu_ld=yes
  14242. ;;
  14243. *)
  14244. lt_cv_prog_gnu_ld=no
  14245. ;;
  14246. esac
  14247. fi
  14248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14249. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  14250. with_gnu_ld=$lt_cv_prog_gnu_ld
  14251. # If we're not using GNU ld, then there's no point in even trying these
  14252. # tests. Check for that first. We should have already tested for gld
  14253. # by now (in libtool), but require it now just to be safe...
  14254. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  14255. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  14256. # The name set by libtool depends on the version of libtool. Shame on us
  14257. # for depending on an impl detail, but c'est la vie. Older versions used
  14258. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  14259. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  14260. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  14261. # set (hence we're using an older libtool), then set it.
  14262. if test x${with_gnu_ld+set} != xset; then
  14263. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  14264. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  14265. with_gnu_ld=no
  14266. else
  14267. with_gnu_ld=$ac_cv_prog_gnu_ld
  14268. fi
  14269. fi
  14270. # Start by getting the version number. I think the libtool test already
  14271. # does some of this, but throws away the result.
  14272. libat_ld_is_gold=no
  14273. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  14274. libat_ld_is_gold=yes
  14275. fi
  14276. libat_ld_is_lld=no
  14277. if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
  14278. libat_ld_is_lld=yes
  14279. fi
  14280. ldver=`$LD --version 2>/dev/null |
  14281. 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'`
  14282. libat_gnu_ld_version=`echo $ldver | \
  14283. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  14284. # Set --gc-sections.
  14285. if test "$with_gnu_ld" = "notbroken"; then
  14286. # GNU ld it is! Joy and bunny rabbits!
  14287. # All these tests are for C++; save the language and the compiler flags.
  14288. # Need to do this so that g++ won't try to link in libstdc++
  14289. ac_test_CFLAGS="${CFLAGS+set}"
  14290. ac_save_CFLAGS="$CFLAGS"
  14291. CFLAGS='-x c++ -Wl,--gc-sections'
  14292. # Check for -Wl,--gc-sections
  14293. # XXX This test is broken at the moment, as symbols required for linking
  14294. # are now in libsupc++ (not built yet). In addition, this test has
  14295. # cored on solaris in the past. In addition, --gc-sections doesn't
  14296. # really work at the moment (keeps on discarding used sections, first
  14297. # .eh_frame and now some of the glibc sections for iconv).
  14298. # Bzzzzt. Thanks for playing, maybe next time.
  14299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  14300. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  14301. if test "$cross_compiling" = yes; then :
  14302. ac_sectionLDflags=yes
  14303. else
  14304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14305. /* end confdefs.h. */
  14306. int main(void)
  14307. {
  14308. try { throw 1; }
  14309. catch (...) { };
  14310. return 0;
  14311. }
  14312. _ACEOF
  14313. if ac_fn_c_try_run "$LINENO"; then :
  14314. ac_sectionLDflags=yes
  14315. else
  14316. ac_sectionLDflags=no
  14317. fi
  14318. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14319. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14320. fi
  14321. if test "$ac_test_CFLAGS" = set; then
  14322. CFLAGS="$ac_save_CFLAGS"
  14323. else
  14324. # this is the suspicious part
  14325. CFLAGS=''
  14326. fi
  14327. if test "$ac_sectionLDflags" = "yes"; then
  14328. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  14329. fi
  14330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  14331. $as_echo "$ac_sectionLDflags" >&6; }
  14332. fi
  14333. # Set linker optimization flags.
  14334. if test x"$with_gnu_ld" = x"yes"; then
  14335. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  14336. fi
  14337. # Check whether --enable-symvers was given.
  14338. if test "${enable_symvers+set}" = set; then :
  14339. enableval=$enable_symvers;
  14340. case "$enableval" in
  14341. yes|no|gnu*|sun) ;;
  14342. *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  14343. esac
  14344. else
  14345. enable_symvers=yes
  14346. fi
  14347. # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
  14348. # don't know enough about $LD to do tricks...
  14349. # Turn a 'yes' into a suitable default.
  14350. if test x$enable_symvers = xyes ; then
  14351. # FIXME The following test is too strict, in theory.
  14352. if test $enable_shared = no || test "x$LD" = x; then
  14353. enable_symvers=no
  14354. else
  14355. if test $with_gnu_ld = yes ; then
  14356. enable_symvers=gnu
  14357. else
  14358. case ${target_os} in
  14359. # Sun symbol versioning exists since Solaris 2.5.
  14360. solaris2.[5-9]* | solaris2.1[0-9]*)
  14361. enable_symvers=sun ;;
  14362. *)
  14363. enable_symvers=no ;;
  14364. esac
  14365. fi
  14366. fi
  14367. fi
  14368. # Check if 'sun' was requested on non-Solaris 2 platforms.
  14369. if test x$enable_symvers = xsun ; then
  14370. case ${target_os} in
  14371. solaris2*)
  14372. # All fine.
  14373. ;;
  14374. *)
  14375. # Unlikely to work.
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  14377. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  14379. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  14380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14381. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14382. enable_symvers=no
  14383. ;;
  14384. esac
  14385. fi
  14386. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  14387. if test $enable_symvers != no; then
  14388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  14389. $as_echo_n "checking for shared libgcc... " >&6; }
  14390. ac_save_CFLAGS="$CFLAGS"
  14391. CFLAGS=' -lgcc_s'
  14392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14393. /* end confdefs.h. */
  14394. int
  14395. main ()
  14396. {
  14397. return 0;
  14398. ;
  14399. return 0;
  14400. }
  14401. _ACEOF
  14402. if ac_fn_c_try_link "$LINENO"; then :
  14403. libat_shared_libgcc=yes
  14404. else
  14405. libat_shared_libgcc=no
  14406. fi
  14407. rm -f core conftest.err conftest.$ac_objext \
  14408. conftest$ac_exeext conftest.$ac_ext
  14409. CFLAGS="$ac_save_CFLAGS"
  14410. if test $libat_shared_libgcc = no; then
  14411. cat > conftest.c <<EOF
  14412. int main (void) { return 0; }
  14413. EOF
  14414. libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  14415. -shared -shared-libgcc -o conftest.so \
  14416. conftest.c -v 2>&1 >/dev/null \
  14417. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  14418. rm -f conftest.c conftest.so
  14419. if test x${libat_libgcc_s_suffix+set} = xset; then
  14420. CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
  14421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14422. /* end confdefs.h. */
  14423. int
  14424. main ()
  14425. {
  14426. return 0;
  14427. ;
  14428. return 0;
  14429. }
  14430. _ACEOF
  14431. if ac_fn_c_try_link "$LINENO"; then :
  14432. libat_shared_libgcc=yes
  14433. fi
  14434. rm -f core conftest.err conftest.$ac_objext \
  14435. conftest$ac_exeext conftest.$ac_ext
  14436. CFLAGS="$ac_save_CFLAGS"
  14437. fi
  14438. fi
  14439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
  14440. $as_echo "$libat_shared_libgcc" >&6; }
  14441. fi
  14442. # For GNU ld, we need at least this version. The format is described in
  14443. # LIBFFI_CHECK_LINKER_FEATURES above.
  14444. libat_min_gnu_ld_version=21400
  14445. # XXXXXXXXXXX libat_gnu_ld_version=21390
  14446. # Check to see if unspecified "yes" value can win, given results above.
  14447. # Change "yes" into either "no" or a style name.
  14448. if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
  14449. if test $with_gnu_ld = yes; then
  14450. if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
  14451. enable_symvers=gnu
  14452. elif test $libat_ld_is_gold = yes ; then
  14453. enable_symvers=gnu
  14454. elif test $libat_ld_is_lld = yes ; then
  14455. enable_symvers=gnu
  14456. else
  14457. # The right tools, the right setup, but too old. Fallbacks?
  14458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
  14459. $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
  14460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  14461. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  14463. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  14464. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
  14465. $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
  14466. if test $libat_gnu_ld_version -ge 21200 ; then
  14467. # Globbing fix is present, proper block support is not.
  14468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14469. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14470. enable_symvers=no
  14471. else
  14472. # 2.11 or older.
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14474. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14475. enable_symvers=no
  14476. fi
  14477. fi
  14478. elif test $enable_symvers = sun; then
  14479. : All interesting versions of Sun ld support sun style symbol versioning.
  14480. else
  14481. # just fail for now
  14482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  14483. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  14484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  14485. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  14486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  14487. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14489. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14490. enable_symvers=no
  14491. fi
  14492. fi
  14493. if test $enable_symvers = gnu; then
  14494. $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  14495. fi
  14496. if test $enable_symvers != no; then
  14497. LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
  14498. LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
  14499. else
  14500. LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
  14501. LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
  14502. fi
  14503. if test $enable_symvers = gnu; then
  14504. LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  14505. LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  14506. else
  14507. LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  14508. LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  14509. fi
  14510. if test $enable_symvers = sun; then
  14511. LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  14512. LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  14513. else
  14514. LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  14515. LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  14516. fi
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  14518. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  14519. # Determine what GCC version number to use in filesystem paths.
  14520. get_gcc_base_ver="cat"
  14521. # Check whether --with-gcc-major-version-only was given.
  14522. if test "${with_gcc_major_version_only+set}" = set; then :
  14523. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  14524. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  14525. fi
  14526. fi
  14527. ac_config_commands="$ac_config_commands include"
  14528. ac_config_commands="$ac_config_commands src"
  14529. ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
  14530. ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
  14531. cat >confcache <<\_ACEOF
  14532. # This file is a shell script that caches the results of configure
  14533. # tests run on this system so they can be shared between configure
  14534. # scripts and configure runs, see configure's option --config-cache.
  14535. # It is not useful on other systems. If it contains results you don't
  14536. # want to keep, you may remove or edit it.
  14537. #
  14538. # config.status only pays attention to the cache file if you give it
  14539. # the --recheck option to rerun configure.
  14540. #
  14541. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14542. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14543. # following values.
  14544. _ACEOF
  14545. # The following way of writing the cache mishandles newlines in values,
  14546. # but we know of no workaround that is simple, portable, and efficient.
  14547. # So, we kill variables containing newlines.
  14548. # Ultrix sh set writes to stderr and can't be redirected directly,
  14549. # and sets the high bit in the cache file unless we assign to the vars.
  14550. (
  14551. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14552. eval ac_val=\$$ac_var
  14553. case $ac_val in #(
  14554. *${as_nl}*)
  14555. case $ac_var in #(
  14556. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14557. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14558. esac
  14559. case $ac_var in #(
  14560. _ | IFS | as_nl) ;; #(
  14561. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14562. *) { eval $ac_var=; unset $ac_var;} ;;
  14563. esac ;;
  14564. esac
  14565. done
  14566. (set) 2>&1 |
  14567. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14568. *${as_nl}ac_space=\ *)
  14569. # `set' does not quote correctly, so add quotes: double-quote
  14570. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14571. sed -n \
  14572. "s/'/'\\\\''/g;
  14573. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14574. ;; #(
  14575. *)
  14576. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14577. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14578. ;;
  14579. esac |
  14580. sort
  14581. ) |
  14582. sed '
  14583. /^ac_cv_env_/b end
  14584. t clear
  14585. :clear
  14586. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14587. t end
  14588. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14589. :end' >>confcache
  14590. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14591. if test -w "$cache_file"; then
  14592. if test "x$cache_file" != "x/dev/null"; then
  14593. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14594. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14595. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14596. cat confcache >"$cache_file"
  14597. else
  14598. case $cache_file in #(
  14599. */* | ?:*)
  14600. mv -f confcache "$cache_file"$$ &&
  14601. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14602. *)
  14603. mv -f confcache "$cache_file" ;;
  14604. esac
  14605. fi
  14606. fi
  14607. else
  14608. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14609. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14610. fi
  14611. fi
  14612. rm -f confcache
  14613. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14614. # Let make expand exec_prefix.
  14615. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14616. DEFS=-DHAVE_CONFIG_H
  14617. ac_libobjs=
  14618. ac_ltlibobjs=
  14619. U=
  14620. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14621. # 1. Remove the extension, and $U if already installed.
  14622. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14623. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14624. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14625. # will be set to the directory where LIBOBJS objects are built.
  14626. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14627. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14628. done
  14629. LIBOBJS=$ac_libobjs
  14630. LTLIBOBJS=$ac_ltlibobjs
  14631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14632. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14633. if test -n "$am_sleep_pid"; then
  14634. # Hide warnings about reused PIDs.
  14635. wait $am_sleep_pid 2>/dev/null
  14636. fi
  14637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14638. $as_echo "done" >&6; }
  14639. if test -n "$EXEEXT"; then
  14640. am__EXEEXT_TRUE=
  14641. am__EXEEXT_FALSE='#'
  14642. else
  14643. am__EXEEXT_TRUE='#'
  14644. am__EXEEXT_FALSE=
  14645. fi
  14646. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  14647. as_fn_error $? "conditional \"GENINSRC\" was never defined.
  14648. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14649. fi
  14650. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14651. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14652. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14653. fi
  14654. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14655. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14656. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14657. fi
  14658. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14659. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14660. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14661. fi
  14662. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  14663. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  14664. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14665. fi
  14666. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  14667. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  14668. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14669. fi
  14670. if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
  14671. as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
  14672. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14673. fi
  14674. if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
  14675. as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
  14676. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14677. fi
  14678. if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
  14679. as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
  14680. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14681. fi
  14682. if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
  14683. as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
  14684. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14685. fi
  14686. if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
  14687. as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
  14688. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14689. fi
  14690. if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
  14691. as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
  14692. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14693. fi
  14694. if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  14695. as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  14696. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14697. fi
  14698. if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  14699. as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  14700. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14701. fi
  14702. : "${CONFIG_STATUS=./config.status}"
  14703. ac_write_fail=0
  14704. ac_clean_files_save=$ac_clean_files
  14705. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14707. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14708. as_write_fail=0
  14709. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14710. #! $SHELL
  14711. # Generated by $as_me.
  14712. # Run this file to recreate the current configuration.
  14713. # Compiler output produced by configure, useful for debugging
  14714. # configure, is in config.log if it exists.
  14715. debug=false
  14716. ac_cs_recheck=false
  14717. ac_cs_silent=false
  14718. SHELL=\${CONFIG_SHELL-$SHELL}
  14719. export SHELL
  14720. _ASEOF
  14721. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14722. ## -------------------- ##
  14723. ## M4sh Initialization. ##
  14724. ## -------------------- ##
  14725. # Be more Bourne compatible
  14726. DUALCASE=1; export DUALCASE # for MKS sh
  14727. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14728. emulate sh
  14729. NULLCMD=:
  14730. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14731. # is contrary to our usage. Disable this feature.
  14732. alias -g '${1+"$@"}'='"$@"'
  14733. setopt NO_GLOB_SUBST
  14734. else
  14735. case `(set -o) 2>/dev/null` in #(
  14736. *posix*) :
  14737. set -o posix ;; #(
  14738. *) :
  14739. ;;
  14740. esac
  14741. fi
  14742. as_nl='
  14743. '
  14744. export as_nl
  14745. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14746. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14747. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14748. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14749. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14750. # but without wasting forks for bash or zsh.
  14751. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14752. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14753. as_echo='print -r --'
  14754. as_echo_n='print -rn --'
  14755. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14756. as_echo='printf %s\n'
  14757. as_echo_n='printf %s'
  14758. else
  14759. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14760. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14761. as_echo_n='/usr/ucb/echo -n'
  14762. else
  14763. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14764. as_echo_n_body='eval
  14765. arg=$1;
  14766. case $arg in #(
  14767. *"$as_nl"*)
  14768. expr "X$arg" : "X\\(.*\\)$as_nl";
  14769. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14770. esac;
  14771. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14772. '
  14773. export as_echo_n_body
  14774. as_echo_n='sh -c $as_echo_n_body as_echo'
  14775. fi
  14776. export as_echo_body
  14777. as_echo='sh -c $as_echo_body as_echo'
  14778. fi
  14779. # The user is always right.
  14780. if test "${PATH_SEPARATOR+set}" != set; then
  14781. PATH_SEPARATOR=:
  14782. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14783. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14784. PATH_SEPARATOR=';'
  14785. }
  14786. fi
  14787. # IFS
  14788. # We need space, tab and new line, in precisely that order. Quoting is
  14789. # there to prevent editors from complaining about space-tab.
  14790. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14791. # splitting by setting IFS to empty value.)
  14792. IFS=" "" $as_nl"
  14793. # Find who we are. Look in the path if we contain no directory separator.
  14794. as_myself=
  14795. case $0 in #((
  14796. *[\\/]* ) as_myself=$0 ;;
  14797. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14798. for as_dir in $PATH
  14799. do
  14800. IFS=$as_save_IFS
  14801. test -z "$as_dir" && as_dir=.
  14802. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14803. done
  14804. IFS=$as_save_IFS
  14805. ;;
  14806. esac
  14807. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14808. # in which case we are not to be found in the path.
  14809. if test "x$as_myself" = x; then
  14810. as_myself=$0
  14811. fi
  14812. if test ! -f "$as_myself"; then
  14813. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14814. exit 1
  14815. fi
  14816. # Unset variables that we do not need and which cause bugs (e.g. in
  14817. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14818. # suppresses any "Segmentation fault" message there. '((' could
  14819. # trigger a bug in pdksh 5.2.14.
  14820. for as_var in BASH_ENV ENV MAIL MAILPATH
  14821. do eval test x\${$as_var+set} = xset \
  14822. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14823. done
  14824. PS1='$ '
  14825. PS2='> '
  14826. PS4='+ '
  14827. # NLS nuisances.
  14828. LC_ALL=C
  14829. export LC_ALL
  14830. LANGUAGE=C
  14831. export LANGUAGE
  14832. # CDPATH.
  14833. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14834. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14835. # ----------------------------------------
  14836. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14837. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14838. # script with STATUS, using 1 if that was 0.
  14839. as_fn_error ()
  14840. {
  14841. as_status=$1; test $as_status -eq 0 && as_status=1
  14842. if test "$4"; then
  14843. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14844. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14845. fi
  14846. $as_echo "$as_me: error: $2" >&2
  14847. as_fn_exit $as_status
  14848. } # as_fn_error
  14849. # as_fn_set_status STATUS
  14850. # -----------------------
  14851. # Set $? to STATUS, without forking.
  14852. as_fn_set_status ()
  14853. {
  14854. return $1
  14855. } # as_fn_set_status
  14856. # as_fn_exit STATUS
  14857. # -----------------
  14858. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14859. as_fn_exit ()
  14860. {
  14861. set +e
  14862. as_fn_set_status $1
  14863. exit $1
  14864. } # as_fn_exit
  14865. # as_fn_unset VAR
  14866. # ---------------
  14867. # Portably unset VAR.
  14868. as_fn_unset ()
  14869. {
  14870. { eval $1=; unset $1;}
  14871. }
  14872. as_unset=as_fn_unset
  14873. # as_fn_append VAR VALUE
  14874. # ----------------------
  14875. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14876. # advantage of any shell optimizations that allow amortized linear growth over
  14877. # repeated appends, instead of the typical quadratic growth present in naive
  14878. # implementations.
  14879. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14880. eval 'as_fn_append ()
  14881. {
  14882. eval $1+=\$2
  14883. }'
  14884. else
  14885. as_fn_append ()
  14886. {
  14887. eval $1=\$$1\$2
  14888. }
  14889. fi # as_fn_append
  14890. # as_fn_arith ARG...
  14891. # ------------------
  14892. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14893. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14894. # must be portable across $(()) and expr.
  14895. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14896. eval 'as_fn_arith ()
  14897. {
  14898. as_val=$(( $* ))
  14899. }'
  14900. else
  14901. as_fn_arith ()
  14902. {
  14903. as_val=`expr "$@" || test $? -eq 1`
  14904. }
  14905. fi # as_fn_arith
  14906. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14907. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14908. as_expr=expr
  14909. else
  14910. as_expr=false
  14911. fi
  14912. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14913. as_basename=basename
  14914. else
  14915. as_basename=false
  14916. fi
  14917. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14918. as_dirname=dirname
  14919. else
  14920. as_dirname=false
  14921. fi
  14922. as_me=`$as_basename -- "$0" ||
  14923. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14924. X"$0" : 'X\(//\)$' \| \
  14925. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14926. $as_echo X/"$0" |
  14927. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14928. s//\1/
  14929. q
  14930. }
  14931. /^X\/\(\/\/\)$/{
  14932. s//\1/
  14933. q
  14934. }
  14935. /^X\/\(\/\).*/{
  14936. s//\1/
  14937. q
  14938. }
  14939. s/.*/./; q'`
  14940. # Avoid depending upon Character Ranges.
  14941. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14942. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14943. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14944. as_cr_digits='0123456789'
  14945. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14946. ECHO_C= ECHO_N= ECHO_T=
  14947. case `echo -n x` in #(((((
  14948. -n*)
  14949. case `echo 'xy\c'` in
  14950. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14951. xy) ECHO_C='\c';;
  14952. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14953. ECHO_T=' ';;
  14954. esac;;
  14955. *)
  14956. ECHO_N='-n';;
  14957. esac
  14958. rm -f conf$$ conf$$.exe conf$$.file
  14959. if test -d conf$$.dir; then
  14960. rm -f conf$$.dir/conf$$.file
  14961. else
  14962. rm -f conf$$.dir
  14963. mkdir conf$$.dir 2>/dev/null
  14964. fi
  14965. if (echo >conf$$.file) 2>/dev/null; then
  14966. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14967. as_ln_s='ln -s'
  14968. # ... but there are two gotchas:
  14969. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14970. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14971. # In both cases, we have to default to `cp -pR'.
  14972. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14973. as_ln_s='cp -pR'
  14974. elif ln conf$$.file conf$$ 2>/dev/null; then
  14975. as_ln_s=ln
  14976. else
  14977. as_ln_s='cp -pR'
  14978. fi
  14979. else
  14980. as_ln_s='cp -pR'
  14981. fi
  14982. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14983. rmdir conf$$.dir 2>/dev/null
  14984. # as_fn_mkdir_p
  14985. # -------------
  14986. # Create "$as_dir" as a directory, including parents if necessary.
  14987. as_fn_mkdir_p ()
  14988. {
  14989. case $as_dir in #(
  14990. -*) as_dir=./$as_dir;;
  14991. esac
  14992. test -d "$as_dir" || eval $as_mkdir_p || {
  14993. as_dirs=
  14994. while :; do
  14995. case $as_dir in #(
  14996. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14997. *) as_qdir=$as_dir;;
  14998. esac
  14999. as_dirs="'$as_qdir' $as_dirs"
  15000. as_dir=`$as_dirname -- "$as_dir" ||
  15001. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15002. X"$as_dir" : 'X\(//\)[^/]' \| \
  15003. X"$as_dir" : 'X\(//\)$' \| \
  15004. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15005. $as_echo X"$as_dir" |
  15006. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15007. s//\1/
  15008. q
  15009. }
  15010. /^X\(\/\/\)[^/].*/{
  15011. s//\1/
  15012. q
  15013. }
  15014. /^X\(\/\/\)$/{
  15015. s//\1/
  15016. q
  15017. }
  15018. /^X\(\/\).*/{
  15019. s//\1/
  15020. q
  15021. }
  15022. s/.*/./; q'`
  15023. test -d "$as_dir" && break
  15024. done
  15025. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15026. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15027. } # as_fn_mkdir_p
  15028. if mkdir -p . 2>/dev/null; then
  15029. as_mkdir_p='mkdir -p "$as_dir"'
  15030. else
  15031. test -d ./-p && rmdir ./-p
  15032. as_mkdir_p=false
  15033. fi
  15034. # as_fn_executable_p FILE
  15035. # -----------------------
  15036. # Test if FILE is an executable regular file.
  15037. as_fn_executable_p ()
  15038. {
  15039. test -f "$1" && test -x "$1"
  15040. } # as_fn_executable_p
  15041. as_test_x='test -x'
  15042. as_executable_p=as_fn_executable_p
  15043. # Sed expression to map a string onto a valid CPP name.
  15044. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15045. # Sed expression to map a string onto a valid variable name.
  15046. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15047. exec 6>&1
  15048. ## ----------------------------------- ##
  15049. ## Main body of $CONFIG_STATUS script. ##
  15050. ## ----------------------------------- ##
  15051. _ASEOF
  15052. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15053. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15054. # Save the log message, to keep $0 and so on meaningful, and to
  15055. # report actual input values of CONFIG_FILES etc. instead of their
  15056. # values after options handling.
  15057. ac_log="
  15058. This file was extended by libffi $as_me 3.4.2, which was
  15059. generated by GNU Autoconf 2.69. Invocation command line was
  15060. CONFIG_FILES = $CONFIG_FILES
  15061. CONFIG_HEADERS = $CONFIG_HEADERS
  15062. CONFIG_LINKS = $CONFIG_LINKS
  15063. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15064. $ $0 $@
  15065. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15066. "
  15067. _ACEOF
  15068. case $ac_config_files in *"
  15069. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15070. esac
  15071. case $ac_config_headers in *"
  15072. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15073. esac
  15074. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15075. # Files that config.status was made for.
  15076. config_files="$ac_config_files"
  15077. config_headers="$ac_config_headers"
  15078. config_links="$ac_config_links"
  15079. config_commands="$ac_config_commands"
  15080. _ACEOF
  15081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15082. ac_cs_usage="\
  15083. \`$as_me' instantiates files and other configuration actions
  15084. from templates according to the current configuration. Unless the files
  15085. and actions are specified as TAGs, all are instantiated by default.
  15086. Usage: $0 [OPTION]... [TAG]...
  15087. -h, --help print this help, then exit
  15088. -V, --version print version number and configuration settings, then exit
  15089. --config print configuration, then exit
  15090. -q, --quiet, --silent
  15091. do not print progress messages
  15092. -d, --debug don't remove temporary files
  15093. --recheck update $as_me by reconfiguring in the same conditions
  15094. --file=FILE[:TEMPLATE]
  15095. instantiate the configuration file FILE
  15096. --header=FILE[:TEMPLATE]
  15097. instantiate the configuration header FILE
  15098. Configuration files:
  15099. $config_files
  15100. Configuration headers:
  15101. $config_headers
  15102. Configuration links:
  15103. $config_links
  15104. Configuration commands:
  15105. $config_commands
  15106. Report bugs to <http://github.com/libffi/libffi/issues>."
  15107. _ACEOF
  15108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15109. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15110. ac_cs_version="\\
  15111. libffi config.status 3.4.2
  15112. configured by $0, generated by GNU Autoconf 2.69,
  15113. with options \\"\$ac_cs_config\\"
  15114. Copyright (C) 2012 Free Software Foundation, Inc.
  15115. This config.status script is free software; the Free Software Foundation
  15116. gives unlimited permission to copy, distribute and modify it."
  15117. ac_pwd='$ac_pwd'
  15118. srcdir='$srcdir'
  15119. INSTALL='$INSTALL'
  15120. MKDIR_P='$MKDIR_P'
  15121. AWK='$AWK'
  15122. test -n "\$AWK" || AWK=awk
  15123. _ACEOF
  15124. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15125. # The default lists apply if the user does not specify any file.
  15126. ac_need_defaults=:
  15127. while test $# != 0
  15128. do
  15129. case $1 in
  15130. --*=?*)
  15131. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15132. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15133. ac_shift=:
  15134. ;;
  15135. --*=)
  15136. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15137. ac_optarg=
  15138. ac_shift=:
  15139. ;;
  15140. *)
  15141. ac_option=$1
  15142. ac_optarg=$2
  15143. ac_shift=shift
  15144. ;;
  15145. esac
  15146. case $ac_option in
  15147. # Handling of the options.
  15148. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15149. ac_cs_recheck=: ;;
  15150. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15151. $as_echo "$ac_cs_version"; exit ;;
  15152. --config | --confi | --conf | --con | --co | --c )
  15153. $as_echo "$ac_cs_config"; exit ;;
  15154. --debug | --debu | --deb | --de | --d | -d )
  15155. debug=: ;;
  15156. --file | --fil | --fi | --f )
  15157. $ac_shift
  15158. case $ac_optarg in
  15159. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15160. '') as_fn_error $? "missing file argument" ;;
  15161. esac
  15162. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15163. ac_need_defaults=false;;
  15164. --header | --heade | --head | --hea )
  15165. $ac_shift
  15166. case $ac_optarg in
  15167. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15168. esac
  15169. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15170. ac_need_defaults=false;;
  15171. --he | --h)
  15172. # Conflict between --help and --header
  15173. as_fn_error $? "ambiguous option: \`$1'
  15174. Try \`$0 --help' for more information.";;
  15175. --help | --hel | -h )
  15176. $as_echo "$ac_cs_usage"; exit ;;
  15177. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15178. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15179. ac_cs_silent=: ;;
  15180. # This is an error.
  15181. -*) as_fn_error $? "unrecognized option: \`$1'
  15182. Try \`$0 --help' for more information." ;;
  15183. *) as_fn_append ac_config_targets " $1"
  15184. ac_need_defaults=false ;;
  15185. esac
  15186. shift
  15187. done
  15188. ac_configure_extra_args=
  15189. if $ac_cs_silent; then
  15190. exec 6>/dev/null
  15191. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15192. fi
  15193. _ACEOF
  15194. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15195. if \$ac_cs_recheck; then
  15196. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15197. shift
  15198. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15199. CONFIG_SHELL='$SHELL'
  15200. export CONFIG_SHELL
  15201. exec "\$@"
  15202. fi
  15203. _ACEOF
  15204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15205. exec 5>>config.log
  15206. {
  15207. echo
  15208. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15209. ## Running $as_me. ##
  15210. _ASBOX
  15211. $as_echo "$ac_log"
  15212. } >&5
  15213. _ACEOF
  15214. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15215. #
  15216. # INIT-COMMANDS
  15217. #
  15218. srcdir="$srcdir"
  15219. host="$host"
  15220. target="$target"
  15221. with_multisubdir="$with_multisubdir"
  15222. with_multisrctop="$with_multisrctop"
  15223. with_target_subdir="$with_target_subdir"
  15224. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  15225. multi_basedir="$multi_basedir"
  15226. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  15227. CC="$CC"
  15228. CXX="$CXX"
  15229. GFORTRAN="$GFORTRAN"
  15230. GDC="$GDC"
  15231. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15232. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15233. # if CDPATH is set.
  15234. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15235. sed_quote_subst='$sed_quote_subst'
  15236. double_quote_subst='$double_quote_subst'
  15237. delay_variable_subst='$delay_variable_subst'
  15238. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15239. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15240. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15241. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15242. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15243. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15244. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15245. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15246. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15247. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15248. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15249. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15250. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15251. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15252. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15253. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15254. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15255. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15256. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15257. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15258. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15259. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15260. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15261. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15262. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15263. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15264. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15265. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15266. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15267. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15268. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15269. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15270. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15271. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15272. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15273. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15274. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15275. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15276. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15277. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15278. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15279. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15280. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15281. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15282. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15283. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15284. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15285. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15286. 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"`'
  15287. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15288. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15289. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15290. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15291. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15292. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15293. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15294. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15295. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15296. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15297. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15298. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15299. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15300. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15301. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15302. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15303. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15304. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15305. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15306. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15307. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15308. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15309. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15310. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15311. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15312. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15313. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15314. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15315. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15316. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15317. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15318. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15319. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15320. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15321. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15322. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15323. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15324. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15325. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15326. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15327. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  15328. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15329. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15330. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15331. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15332. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15333. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15334. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15335. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15336. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15337. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15338. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15339. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15340. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15341. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15342. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15343. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15344. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15345. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15346. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15347. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15348. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15349. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15350. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15351. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15352. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15353. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15354. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15355. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15356. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15357. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15358. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15359. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15360. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15361. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15362. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15363. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15364. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15365. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15366. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15367. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15368. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15369. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15370. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15371. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15372. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15373. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15374. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15375. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15376. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15377. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15378. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15379. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15380. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15381. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15382. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15383. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15384. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15385. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15386. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15387. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15388. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15389. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15390. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15391. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15392. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15393. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15394. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15395. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15396. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15397. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15398. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15399. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  15400. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15401. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15402. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15403. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15404. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15405. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15406. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15407. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15408. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15409. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15410. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15411. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15412. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15413. LTCC='$LTCC'
  15414. LTCFLAGS='$LTCFLAGS'
  15415. compiler='$compiler_DEFAULT'
  15416. # A function that is used when there is no print builtin or printf.
  15417. func_fallback_echo ()
  15418. {
  15419. eval 'cat <<_LTECHO_EOF
  15420. \$1
  15421. _LTECHO_EOF'
  15422. }
  15423. # Quote evaled strings.
  15424. for var in SHELL \
  15425. ECHO \
  15426. SED \
  15427. GREP \
  15428. EGREP \
  15429. FGREP \
  15430. LD \
  15431. NM \
  15432. LN_S \
  15433. lt_SP2NL \
  15434. lt_NL2SP \
  15435. reload_flag \
  15436. OBJDUMP \
  15437. deplibs_check_method \
  15438. file_magic_cmd \
  15439. AR \
  15440. AR_FLAGS \
  15441. STRIP \
  15442. RANLIB \
  15443. CC \
  15444. CFLAGS \
  15445. compiler \
  15446. lt_cv_sys_global_symbol_pipe \
  15447. lt_cv_sys_global_symbol_to_cdecl \
  15448. lt_cv_sys_global_symbol_to_c_name_address \
  15449. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15450. lt_prog_compiler_no_builtin_flag \
  15451. lt_prog_compiler_wl \
  15452. lt_prog_compiler_pic \
  15453. lt_prog_compiler_static \
  15454. lt_cv_prog_compiler_c_o \
  15455. need_locks \
  15456. DSYMUTIL \
  15457. NMEDIT \
  15458. LIPO \
  15459. OTOOL \
  15460. OTOOL64 \
  15461. shrext_cmds \
  15462. export_dynamic_flag_spec \
  15463. whole_archive_flag_spec \
  15464. compiler_needs_object \
  15465. with_gnu_ld \
  15466. allow_undefined_flag \
  15467. no_undefined_flag \
  15468. hardcode_libdir_flag_spec \
  15469. hardcode_libdir_flag_spec_ld \
  15470. hardcode_libdir_separator \
  15471. fix_srcfile_path \
  15472. exclude_expsyms \
  15473. include_expsyms \
  15474. file_list_spec \
  15475. variables_saved_for_relink \
  15476. libname_spec \
  15477. library_names_spec \
  15478. soname_spec \
  15479. install_override_mode \
  15480. finish_eval \
  15481. old_striplib \
  15482. striplib \
  15483. compiler_lib_search_dirs \
  15484. predep_objects \
  15485. postdep_objects \
  15486. predeps \
  15487. postdeps \
  15488. compiler_lib_search_path \
  15489. LD_CXX \
  15490. reload_flag_CXX \
  15491. compiler_CXX \
  15492. lt_prog_compiler_no_builtin_flag_CXX \
  15493. lt_prog_compiler_wl_CXX \
  15494. lt_prog_compiler_pic_CXX \
  15495. lt_prog_compiler_static_CXX \
  15496. lt_cv_prog_compiler_c_o_CXX \
  15497. export_dynamic_flag_spec_CXX \
  15498. whole_archive_flag_spec_CXX \
  15499. compiler_needs_object_CXX \
  15500. with_gnu_ld_CXX \
  15501. allow_undefined_flag_CXX \
  15502. no_undefined_flag_CXX \
  15503. hardcode_libdir_flag_spec_CXX \
  15504. hardcode_libdir_flag_spec_ld_CXX \
  15505. hardcode_libdir_separator_CXX \
  15506. fix_srcfile_path_CXX \
  15507. exclude_expsyms_CXX \
  15508. include_expsyms_CXX \
  15509. file_list_spec_CXX \
  15510. compiler_lib_search_dirs_CXX \
  15511. predep_objects_CXX \
  15512. postdep_objects_CXX \
  15513. predeps_CXX \
  15514. postdeps_CXX \
  15515. compiler_lib_search_path_CXX; do
  15516. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15517. *[\\\\\\\`\\"\\\$]*)
  15518. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15519. ;;
  15520. *)
  15521. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15522. ;;
  15523. esac
  15524. done
  15525. # Double-quote double-evaled strings.
  15526. for var in reload_cmds \
  15527. old_postinstall_cmds \
  15528. old_postuninstall_cmds \
  15529. old_archive_cmds \
  15530. extract_expsyms_cmds \
  15531. old_archive_from_new_cmds \
  15532. old_archive_from_expsyms_cmds \
  15533. archive_cmds \
  15534. archive_expsym_cmds \
  15535. module_cmds \
  15536. module_expsym_cmds \
  15537. export_symbols_cmds \
  15538. prelink_cmds \
  15539. postinstall_cmds \
  15540. postuninstall_cmds \
  15541. finish_cmds \
  15542. sys_lib_search_path_spec \
  15543. sys_lib_dlsearch_path_spec \
  15544. reload_cmds_CXX \
  15545. old_archive_cmds_CXX \
  15546. old_archive_from_new_cmds_CXX \
  15547. old_archive_from_expsyms_cmds_CXX \
  15548. archive_cmds_CXX \
  15549. archive_expsym_cmds_CXX \
  15550. module_cmds_CXX \
  15551. module_expsym_cmds_CXX \
  15552. export_symbols_cmds_CXX \
  15553. prelink_cmds_CXX; do
  15554. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15555. *[\\\\\\\`\\"\\\$]*)
  15556. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15557. ;;
  15558. *)
  15559. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15560. ;;
  15561. esac
  15562. done
  15563. ac_aux_dir='$ac_aux_dir'
  15564. xsi_shell='$xsi_shell'
  15565. lt_shell_append='$lt_shell_append'
  15566. # See if we are running on zsh, and set the options which allow our
  15567. # commands through without removal of \ escapes INIT.
  15568. if test -n "\${ZSH_VERSION+set}" ; then
  15569. setopt NO_GLOB_SUBST
  15570. fi
  15571. PACKAGE='$PACKAGE'
  15572. VERSION='$VERSION'
  15573. TIMESTAMP='$TIMESTAMP'
  15574. RM='$RM'
  15575. ofile='$ofile'
  15576. TARGETDIR="$TARGETDIR"
  15577. _ACEOF
  15578. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15579. # Handling of arguments.
  15580. for ac_config_target in $ac_config_targets
  15581. do
  15582. case $ac_config_target in
  15583. "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
  15584. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  15585. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15586. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15587. "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
  15588. "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
  15589. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  15590. "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
  15591. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15592. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  15593. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  15594. "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
  15595. "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
  15596. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15597. esac
  15598. done
  15599. # If the user did not use the arguments to specify the items to instantiate,
  15600. # then the envvar interface is used. Set only those that are not.
  15601. # We use the long form for the default assignment because of an extremely
  15602. # bizarre bug on SunOS 4.1.3.
  15603. if $ac_need_defaults; then
  15604. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15605. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15606. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  15607. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15608. fi
  15609. # Have a temporary directory for convenience. Make it in the build tree
  15610. # simply because there is no reason against having it here, and in addition,
  15611. # creating and moving files from /tmp can sometimes cause problems.
  15612. # Hook for its removal unless debugging.
  15613. # Note that there is a small window in which the directory will not be cleaned:
  15614. # after its creation but before its name has been assigned to `$tmp'.
  15615. $debug ||
  15616. {
  15617. tmp= ac_tmp=
  15618. trap 'exit_status=$?
  15619. : "${ac_tmp:=$tmp}"
  15620. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15621. ' 0
  15622. trap 'as_fn_exit 1' 1 2 13 15
  15623. }
  15624. # Create a (secure) tmp directory for tmp files.
  15625. {
  15626. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15627. test -d "$tmp"
  15628. } ||
  15629. {
  15630. tmp=./conf$$-$RANDOM
  15631. (umask 077 && mkdir "$tmp")
  15632. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15633. ac_tmp=$tmp
  15634. # Set up the scripts for CONFIG_FILES section.
  15635. # No need to generate them if there are no CONFIG_FILES.
  15636. # This happens for instance with `./config.status config.h'.
  15637. if test -n "$CONFIG_FILES"; then
  15638. ac_cr=`echo X | tr X '\015'`
  15639. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15640. # But we know of no other shell where ac_cr would be empty at this
  15641. # point, so we can use a bashism as a fallback.
  15642. if test "x$ac_cr" = x; then
  15643. eval ac_cr=\$\'\\r\'
  15644. fi
  15645. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15646. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15647. ac_cs_awk_cr='\\r'
  15648. else
  15649. ac_cs_awk_cr=$ac_cr
  15650. fi
  15651. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15652. _ACEOF
  15653. {
  15654. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15655. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15656. echo "_ACEOF"
  15657. } >conf$$subs.sh ||
  15658. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15659. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15660. ac_delim='%!_!# '
  15661. for ac_last_try in false false false false false :; do
  15662. . ./conf$$subs.sh ||
  15663. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15664. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15665. if test $ac_delim_n = $ac_delim_num; then
  15666. break
  15667. elif $ac_last_try; then
  15668. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15669. else
  15670. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15671. fi
  15672. done
  15673. rm -f conf$$subs.sh
  15674. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15675. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15676. _ACEOF
  15677. sed -n '
  15678. h
  15679. s/^/S["/; s/!.*/"]=/
  15680. p
  15681. g
  15682. s/^[^!]*!//
  15683. :repl
  15684. t repl
  15685. s/'"$ac_delim"'$//
  15686. t delim
  15687. :nl
  15688. h
  15689. s/\(.\{148\}\)..*/\1/
  15690. t more1
  15691. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15692. p
  15693. n
  15694. b repl
  15695. :more1
  15696. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15697. p
  15698. g
  15699. s/.\{148\}//
  15700. t nl
  15701. :delim
  15702. h
  15703. s/\(.\{148\}\)..*/\1/
  15704. t more2
  15705. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15706. p
  15707. b
  15708. :more2
  15709. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15710. p
  15711. g
  15712. s/.\{148\}//
  15713. t delim
  15714. ' <conf$$subs.awk | sed '
  15715. /^[^""]/{
  15716. N
  15717. s/\n//
  15718. }
  15719. ' >>$CONFIG_STATUS || ac_write_fail=1
  15720. rm -f conf$$subs.awk
  15721. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15722. _ACAWK
  15723. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15724. for (key in S) S_is_set[key] = 1
  15725. FS = ""
  15726. }
  15727. {
  15728. line = $ 0
  15729. nfields = split(line, field, "@")
  15730. substed = 0
  15731. len = length(field[1])
  15732. for (i = 2; i < nfields; i++) {
  15733. key = field[i]
  15734. keylen = length(key)
  15735. if (S_is_set[key]) {
  15736. value = S[key]
  15737. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15738. len += length(value) + length(field[++i])
  15739. substed = 1
  15740. } else
  15741. len += 1 + keylen
  15742. }
  15743. print line
  15744. }
  15745. _ACAWK
  15746. _ACEOF
  15747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15748. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15749. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15750. else
  15751. cat
  15752. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15753. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15754. _ACEOF
  15755. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15756. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15757. # trailing colons and then remove the whole line if VPATH becomes empty
  15758. # (actually we leave an empty line to preserve line numbers).
  15759. if test "x$srcdir" = x.; then
  15760. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15761. h
  15762. s///
  15763. s/^/:/
  15764. s/[ ]*$/:/
  15765. s/:\$(srcdir):/:/g
  15766. s/:\${srcdir}:/:/g
  15767. s/:@srcdir@:/:/g
  15768. s/^:*//
  15769. s/:*$//
  15770. x
  15771. s/\(=[ ]*\).*/\1/
  15772. G
  15773. s/\n//
  15774. s/^[^=]*=[ ]*$//
  15775. }'
  15776. fi
  15777. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15778. fi # test -n "$CONFIG_FILES"
  15779. # Set up the scripts for CONFIG_HEADERS section.
  15780. # No need to generate them if there are no CONFIG_HEADERS.
  15781. # This happens for instance with `./config.status Makefile'.
  15782. if test -n "$CONFIG_HEADERS"; then
  15783. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15784. BEGIN {
  15785. _ACEOF
  15786. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15787. # here-document in config.status, that substitutes the proper values into
  15788. # config.h.in to produce config.h.
  15789. # Create a delimiter string that does not exist in confdefs.h, to ease
  15790. # handling of long lines.
  15791. ac_delim='%!_!# '
  15792. for ac_last_try in false false :; do
  15793. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15794. if test -z "$ac_tt"; then
  15795. break
  15796. elif $ac_last_try; then
  15797. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15798. else
  15799. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15800. fi
  15801. done
  15802. # For the awk script, D is an array of macro values keyed by name,
  15803. # likewise P contains macro parameters if any. Preserve backslash
  15804. # newline sequences.
  15805. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15806. sed -n '
  15807. s/.\{148\}/&'"$ac_delim"'/g
  15808. t rset
  15809. :rset
  15810. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15811. t def
  15812. d
  15813. :def
  15814. s/\\$//
  15815. t bsnl
  15816. s/["\\]/\\&/g
  15817. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15818. D["\1"]=" \3"/p
  15819. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15820. d
  15821. :bsnl
  15822. s/["\\]/\\&/g
  15823. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15824. D["\1"]=" \3\\\\\\n"\\/p
  15825. t cont
  15826. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15827. t cont
  15828. d
  15829. :cont
  15830. n
  15831. s/.\{148\}/&'"$ac_delim"'/g
  15832. t clear
  15833. :clear
  15834. s/\\$//
  15835. t bsnlc
  15836. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15837. d
  15838. :bsnlc
  15839. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15840. b cont
  15841. ' <confdefs.h | sed '
  15842. s/'"$ac_delim"'/"\\\
  15843. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15844. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15845. for (key in D) D_is_set[key] = 1
  15846. FS = ""
  15847. }
  15848. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15849. line = \$ 0
  15850. split(line, arg, " ")
  15851. if (arg[1] == "#") {
  15852. defundef = arg[2]
  15853. mac1 = arg[3]
  15854. } else {
  15855. defundef = substr(arg[1], 2)
  15856. mac1 = arg[2]
  15857. }
  15858. split(mac1, mac2, "(") #)
  15859. macro = mac2[1]
  15860. prefix = substr(line, 1, index(line, defundef) - 1)
  15861. if (D_is_set[macro]) {
  15862. # Preserve the white space surrounding the "#".
  15863. print prefix "define", macro P[macro] D[macro]
  15864. next
  15865. } else {
  15866. # Replace #undef with comments. This is necessary, for example,
  15867. # in the case of _POSIX_SOURCE, which is predefined and required
  15868. # on some systems where configure will not decide to define it.
  15869. if (defundef == "undef") {
  15870. print "/*", prefix defundef, macro, "*/"
  15871. next
  15872. }
  15873. }
  15874. }
  15875. { print }
  15876. _ACAWK
  15877. _ACEOF
  15878. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15879. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15880. fi # test -n "$CONFIG_HEADERS"
  15881. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
  15882. shift
  15883. for ac_tag
  15884. do
  15885. case $ac_tag in
  15886. :[FHLC]) ac_mode=$ac_tag; continue;;
  15887. esac
  15888. case $ac_mode$ac_tag in
  15889. :[FHL]*:*);;
  15890. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15891. :[FH]-) ac_tag=-:-;;
  15892. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15893. esac
  15894. ac_save_IFS=$IFS
  15895. IFS=:
  15896. set x $ac_tag
  15897. IFS=$ac_save_IFS
  15898. shift
  15899. ac_file=$1
  15900. shift
  15901. case $ac_mode in
  15902. :L) ac_source=$1;;
  15903. :[FH])
  15904. ac_file_inputs=
  15905. for ac_f
  15906. do
  15907. case $ac_f in
  15908. -) ac_f="$ac_tmp/stdin";;
  15909. *) # Look for the file first in the build tree, then in the source tree
  15910. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15911. # because $ac_f cannot contain `:'.
  15912. test -f "$ac_f" ||
  15913. case $ac_f in
  15914. [\\/$]*) false;;
  15915. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15916. esac ||
  15917. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15918. esac
  15919. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15920. as_fn_append ac_file_inputs " '$ac_f'"
  15921. done
  15922. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15923. # use $as_me), people would be surprised to read:
  15924. # /* config.h. Generated by config.status. */
  15925. configure_input='Generated from '`
  15926. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15927. `' by configure.'
  15928. if test x"$ac_file" != x-; then
  15929. configure_input="$ac_file. $configure_input"
  15930. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15931. $as_echo "$as_me: creating $ac_file" >&6;}
  15932. fi
  15933. # Neutralize special characters interpreted by sed in replacement strings.
  15934. case $configure_input in #(
  15935. *\&* | *\|* | *\\* )
  15936. ac_sed_conf_input=`$as_echo "$configure_input" |
  15937. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15938. *) ac_sed_conf_input=$configure_input;;
  15939. esac
  15940. case $ac_tag in
  15941. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15942. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15943. esac
  15944. ;;
  15945. esac
  15946. ac_dir=`$as_dirname -- "$ac_file" ||
  15947. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15948. X"$ac_file" : 'X\(//\)[^/]' \| \
  15949. X"$ac_file" : 'X\(//\)$' \| \
  15950. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15951. $as_echo X"$ac_file" |
  15952. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15953. s//\1/
  15954. q
  15955. }
  15956. /^X\(\/\/\)[^/].*/{
  15957. s//\1/
  15958. q
  15959. }
  15960. /^X\(\/\/\)$/{
  15961. s//\1/
  15962. q
  15963. }
  15964. /^X\(\/\).*/{
  15965. s//\1/
  15966. q
  15967. }
  15968. s/.*/./; q'`
  15969. as_dir="$ac_dir"; as_fn_mkdir_p
  15970. ac_builddir=.
  15971. case "$ac_dir" in
  15972. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15973. *)
  15974. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15975. # A ".." for each directory in $ac_dir_suffix.
  15976. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15977. case $ac_top_builddir_sub in
  15978. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15979. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15980. esac ;;
  15981. esac
  15982. ac_abs_top_builddir=$ac_pwd
  15983. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15984. # for backward compatibility:
  15985. ac_top_builddir=$ac_top_build_prefix
  15986. case $srcdir in
  15987. .) # We are building in place.
  15988. ac_srcdir=.
  15989. ac_top_srcdir=$ac_top_builddir_sub
  15990. ac_abs_top_srcdir=$ac_pwd ;;
  15991. [\\/]* | ?:[\\/]* ) # Absolute name.
  15992. ac_srcdir=$srcdir$ac_dir_suffix;
  15993. ac_top_srcdir=$srcdir
  15994. ac_abs_top_srcdir=$srcdir ;;
  15995. *) # Relative name.
  15996. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15997. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15998. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15999. esac
  16000. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16001. case $ac_mode in
  16002. :F)
  16003. #
  16004. # CONFIG_FILE
  16005. #
  16006. case $INSTALL in
  16007. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16008. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16009. esac
  16010. ac_MKDIR_P=$MKDIR_P
  16011. case $MKDIR_P in
  16012. [\\/$]* | ?:[\\/]* ) ;;
  16013. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16014. esac
  16015. _ACEOF
  16016. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16017. # If the template does not know about datarootdir, expand it.
  16018. # FIXME: This hack should be removed a few years after 2.60.
  16019. ac_datarootdir_hack=; ac_datarootdir_seen=
  16020. ac_sed_dataroot='
  16021. /datarootdir/ {
  16022. p
  16023. q
  16024. }
  16025. /@datadir@/p
  16026. /@docdir@/p
  16027. /@infodir@/p
  16028. /@localedir@/p
  16029. /@mandir@/p'
  16030. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16031. *datarootdir*) ac_datarootdir_seen=yes;;
  16032. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16034. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16035. _ACEOF
  16036. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16037. ac_datarootdir_hack='
  16038. s&@datadir@&$datadir&g
  16039. s&@docdir@&$docdir&g
  16040. s&@infodir@&$infodir&g
  16041. s&@localedir@&$localedir&g
  16042. s&@mandir@&$mandir&g
  16043. s&\\\${datarootdir}&$datarootdir&g' ;;
  16044. esac
  16045. _ACEOF
  16046. # Neutralize VPATH when `$srcdir' = `.'.
  16047. # Shell code in configure.ac might set extrasub.
  16048. # FIXME: do we really want to maintain this feature?
  16049. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16050. ac_sed_extra="$ac_vpsub
  16051. $extrasub
  16052. _ACEOF
  16053. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16054. :t
  16055. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16056. s|@configure_input@|$ac_sed_conf_input|;t t
  16057. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16058. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16059. s&@srcdir@&$ac_srcdir&;t t
  16060. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16061. s&@top_srcdir@&$ac_top_srcdir&;t t
  16062. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16063. s&@builddir@&$ac_builddir&;t t
  16064. s&@abs_builddir@&$ac_abs_builddir&;t t
  16065. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16066. s&@INSTALL@&$ac_INSTALL&;t t
  16067. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16068. $ac_datarootdir_hack
  16069. "
  16070. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16071. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16072. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16073. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16074. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16075. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16077. which seems to be undefined. Please make sure it is defined" >&5
  16078. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16079. which seems to be undefined. Please make sure it is defined" >&2;}
  16080. rm -f "$ac_tmp/stdin"
  16081. case $ac_file in
  16082. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16083. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16084. esac \
  16085. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16086. ;;
  16087. :H)
  16088. #
  16089. # CONFIG_HEADER
  16090. #
  16091. if test x"$ac_file" != x-; then
  16092. {
  16093. $as_echo "/* $configure_input */" \
  16094. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16095. } >"$ac_tmp/config.h" \
  16096. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16097. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16098. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16099. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16100. else
  16101. rm -f "$ac_file"
  16102. mv "$ac_tmp/config.h" "$ac_file" \
  16103. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16104. fi
  16105. else
  16106. $as_echo "/* $configure_input */" \
  16107. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16108. || as_fn_error $? "could not create -" "$LINENO" 5
  16109. fi
  16110. # Compute "$ac_file"'s index in $config_headers.
  16111. _am_arg="$ac_file"
  16112. _am_stamp_count=1
  16113. for _am_header in $config_headers :; do
  16114. case $_am_header in
  16115. $_am_arg | $_am_arg:* )
  16116. break ;;
  16117. * )
  16118. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16119. esac
  16120. done
  16121. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16122. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16123. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16124. X"$_am_arg" : 'X\(//\)$' \| \
  16125. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16126. $as_echo X"$_am_arg" |
  16127. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16128. s//\1/
  16129. q
  16130. }
  16131. /^X\(\/\/\)[^/].*/{
  16132. s//\1/
  16133. q
  16134. }
  16135. /^X\(\/\/\)$/{
  16136. s//\1/
  16137. q
  16138. }
  16139. /^X\(\/\).*/{
  16140. s//\1/
  16141. q
  16142. }
  16143. s/.*/./; q'`/stamp-h$_am_stamp_count
  16144. ;;
  16145. :L)
  16146. #
  16147. # CONFIG_LINK
  16148. #
  16149. if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  16150. :
  16151. else
  16152. # Prefer the file from the source tree if names are identical.
  16153. if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  16154. ac_source=$srcdir/$ac_source
  16155. fi
  16156. { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  16157. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
  16158. if test ! -r "$ac_source"; then
  16159. as_fn_error $? "$ac_source: file not found" "$LINENO" 5
  16160. fi
  16161. rm -f "$ac_file"
  16162. # Try a relative symlink, then a hard link, then a copy.
  16163. case $ac_source in
  16164. [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  16165. *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  16166. esac
  16167. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  16168. ln "$ac_source" "$ac_file" 2>/dev/null ||
  16169. cp -p "$ac_source" "$ac_file" ||
  16170. as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  16171. fi
  16172. ;;
  16173. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16174. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16175. ;;
  16176. esac
  16177. case $ac_file$ac_mode in
  16178. "default-1":C)
  16179. # Only add multilib support code if we just rebuilt the top-level
  16180. # Makefile.
  16181. case " $CONFIG_FILES " in
  16182. *" Makefile "*)
  16183. ac_file=Makefile . ${multi_basedir}/config-ml.in
  16184. ;;
  16185. esac ;;
  16186. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16187. # Older Autoconf quotes --file arguments for eval, but not when files
  16188. # are listed without --file. Let's play safe and only enable the eval
  16189. # if we detect the quoting.
  16190. case $CONFIG_FILES in
  16191. *\'*) eval set x "$CONFIG_FILES" ;;
  16192. *) set x $CONFIG_FILES ;;
  16193. esac
  16194. shift
  16195. for mf
  16196. do
  16197. # Strip MF so we end up with the name of the file.
  16198. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16199. # Check whether this is an Automake generated Makefile or not.
  16200. # We used to match only the files named 'Makefile.in', but
  16201. # some people rename them; so instead we look at the file content.
  16202. # Grep'ing the first line is not enough: some people post-process
  16203. # each Makefile.in and add a new line on top of each file to say so.
  16204. # Grep'ing the whole file is not good either: AIX grep has a line
  16205. # limit of 2048, but all sed's we know have understand at least 4000.
  16206. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16207. dirpart=`$as_dirname -- "$mf" ||
  16208. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16209. X"$mf" : 'X\(//\)[^/]' \| \
  16210. X"$mf" : 'X\(//\)$' \| \
  16211. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16212. $as_echo X"$mf" |
  16213. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16214. s//\1/
  16215. q
  16216. }
  16217. /^X\(\/\/\)[^/].*/{
  16218. s//\1/
  16219. q
  16220. }
  16221. /^X\(\/\/\)$/{
  16222. s//\1/
  16223. q
  16224. }
  16225. /^X\(\/\).*/{
  16226. s//\1/
  16227. q
  16228. }
  16229. s/.*/./; q'`
  16230. else
  16231. continue
  16232. fi
  16233. # Extract the definition of DEPDIR, am__include, and am__quote
  16234. # from the Makefile without running 'make'.
  16235. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16236. test -z "$DEPDIR" && continue
  16237. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16238. test -z "$am__include" && continue
  16239. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16240. # Find all dependency output files, they are included files with
  16241. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16242. # simplest approach to changing $(DEPDIR) to its actual value in the
  16243. # expansion.
  16244. for file in `sed -n "
  16245. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16246. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16247. # Make sure the directory exists.
  16248. test -f "$dirpart/$file" && continue
  16249. fdir=`$as_dirname -- "$file" ||
  16250. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16251. X"$file" : 'X\(//\)[^/]' \| \
  16252. X"$file" : 'X\(//\)$' \| \
  16253. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16254. $as_echo X"$file" |
  16255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16256. s//\1/
  16257. q
  16258. }
  16259. /^X\(\/\/\)[^/].*/{
  16260. s//\1/
  16261. q
  16262. }
  16263. /^X\(\/\/\)$/{
  16264. s//\1/
  16265. q
  16266. }
  16267. /^X\(\/\).*/{
  16268. s//\1/
  16269. q
  16270. }
  16271. s/.*/./; q'`
  16272. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16273. # echo "creating $dirpart/$file"
  16274. echo '# dummy' > "$dirpart/$file"
  16275. done
  16276. done
  16277. }
  16278. ;;
  16279. "libtool":C)
  16280. # See if we are running on zsh, and set the options which allow our
  16281. # commands through without removal of \ escapes.
  16282. if test -n "${ZSH_VERSION+set}" ; then
  16283. setopt NO_GLOB_SUBST
  16284. fi
  16285. cfgfile="${ofile}T"
  16286. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16287. $RM "$cfgfile"
  16288. cat <<_LT_EOF >> "$cfgfile"
  16289. #! $SHELL
  16290. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16291. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16292. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16293. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16294. #
  16295. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16296. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  16297. # Written by Gordon Matzigkeit, 1996
  16298. #
  16299. # This file is part of GNU Libtool.
  16300. #
  16301. # GNU Libtool is free software; you can redistribute it and/or
  16302. # modify it under the terms of the GNU General Public License as
  16303. # published by the Free Software Foundation; either version 2 of
  16304. # the License, or (at your option) any later version.
  16305. #
  16306. # As a special exception to the GNU General Public License,
  16307. # if you distribute this file as part of a program or library that
  16308. # is built using GNU Libtool, you may include this file under the
  16309. # same distribution terms that you use for the rest of that program.
  16310. #
  16311. # GNU Libtool is distributed in the hope that it will be useful,
  16312. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16313. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16314. # GNU General Public License for more details.
  16315. #
  16316. # You should have received a copy of the GNU General Public License
  16317. # along with GNU Libtool; see the file COPYING. If not, a copy
  16318. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16319. # obtained by writing to the Free Software Foundation, Inc.,
  16320. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16321. # The names of the tagged configurations supported by this script.
  16322. available_tags="CXX "
  16323. # ### BEGIN LIBTOOL CONFIG
  16324. # Which release of libtool.m4 was used?
  16325. macro_version=$macro_version
  16326. macro_revision=$macro_revision
  16327. # Whether or not to build shared libraries.
  16328. build_libtool_libs=$enable_shared
  16329. # Whether or not to build static libraries.
  16330. build_old_libs=$enable_static
  16331. # What type of objects to build.
  16332. pic_mode=$pic_mode
  16333. # Whether or not to optimize for fast installation.
  16334. fast_install=$enable_fast_install
  16335. # Shell to use when invoking shell scripts.
  16336. SHELL=$lt_SHELL
  16337. # An echo program that protects backslashes.
  16338. ECHO=$lt_ECHO
  16339. # The host system.
  16340. host_alias=$host_alias
  16341. host=$host
  16342. host_os=$host_os
  16343. # The build system.
  16344. build_alias=$build_alias
  16345. build=$build
  16346. build_os=$build_os
  16347. # A sed program that does not truncate output.
  16348. SED=$lt_SED
  16349. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16350. Xsed="\$SED -e 1s/^X//"
  16351. # A grep program that handles long lines.
  16352. GREP=$lt_GREP
  16353. # An ERE matcher.
  16354. EGREP=$lt_EGREP
  16355. # A literal string matcher.
  16356. FGREP=$lt_FGREP
  16357. # A BSD- or MS-compatible name lister.
  16358. NM=$lt_NM
  16359. # Whether we need soft or hard links.
  16360. LN_S=$lt_LN_S
  16361. # What is the maximum length of a command?
  16362. max_cmd_len=$max_cmd_len
  16363. # Object file suffix (normally "o").
  16364. objext=$ac_objext
  16365. # Executable file suffix (normally "").
  16366. exeext=$exeext
  16367. # whether the shell understands "unset".
  16368. lt_unset=$lt_unset
  16369. # turn spaces into newlines.
  16370. SP2NL=$lt_lt_SP2NL
  16371. # turn newlines into spaces.
  16372. NL2SP=$lt_lt_NL2SP
  16373. # An object symbol dumper.
  16374. OBJDUMP=$lt_OBJDUMP
  16375. # Method to check whether dependent libraries are shared objects.
  16376. deplibs_check_method=$lt_deplibs_check_method
  16377. # Command to use when deplibs_check_method == "file_magic".
  16378. file_magic_cmd=$lt_file_magic_cmd
  16379. # The archiver.
  16380. AR=$lt_AR
  16381. AR_FLAGS=$lt_AR_FLAGS
  16382. # A symbol stripping program.
  16383. STRIP=$lt_STRIP
  16384. # Commands used to install an old-style archive.
  16385. RANLIB=$lt_RANLIB
  16386. old_postinstall_cmds=$lt_old_postinstall_cmds
  16387. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16388. # Whether to use a lock for old archive extraction.
  16389. lock_old_archive_extraction=$lock_old_archive_extraction
  16390. # A C compiler.
  16391. LTCC=$lt_CC
  16392. # LTCC compiler flags.
  16393. LTCFLAGS=$lt_CFLAGS
  16394. # Take the output of nm and produce a listing of raw symbols and C names.
  16395. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16396. # Transform the output of nm in a proper C declaration.
  16397. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16398. # Transform the output of nm in a C name address pair.
  16399. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16400. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16401. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16402. # The name of the directory that contains temporary libtool files.
  16403. objdir=$objdir
  16404. # Used to examine libraries when file_magic_cmd begins with "file".
  16405. MAGIC_CMD=$MAGIC_CMD
  16406. # Must we lock files when doing compilation?
  16407. need_locks=$lt_need_locks
  16408. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16409. DSYMUTIL=$lt_DSYMUTIL
  16410. # Tool to change global to local symbols on Mac OS X.
  16411. NMEDIT=$lt_NMEDIT
  16412. # Tool to manipulate fat objects and archives on Mac OS X.
  16413. LIPO=$lt_LIPO
  16414. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16415. OTOOL=$lt_OTOOL
  16416. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16417. OTOOL64=$lt_OTOOL64
  16418. # Old archive suffix (normally "a").
  16419. libext=$libext
  16420. # Shared library suffix (normally ".so").
  16421. shrext_cmds=$lt_shrext_cmds
  16422. # The commands to extract the exported symbol list from a shared archive.
  16423. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16424. # Variables whose values should be saved in libtool wrapper scripts and
  16425. # restored at link time.
  16426. variables_saved_for_relink=$lt_variables_saved_for_relink
  16427. # Do we need the "lib" prefix for modules?
  16428. need_lib_prefix=$need_lib_prefix
  16429. # Do we need a version for libraries?
  16430. need_version=$need_version
  16431. # Library versioning type.
  16432. version_type=$version_type
  16433. # Shared library runtime path variable.
  16434. runpath_var=$runpath_var
  16435. # Shared library path variable.
  16436. shlibpath_var=$shlibpath_var
  16437. # Is shlibpath searched before the hard-coded library search path?
  16438. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16439. # Format of library name prefix.
  16440. libname_spec=$lt_libname_spec
  16441. # List of archive names. First name is the real one, the rest are links.
  16442. # The last name is the one that the linker finds with -lNAME
  16443. library_names_spec=$lt_library_names_spec
  16444. # The coded name of the library, if different from the real name.
  16445. soname_spec=$lt_soname_spec
  16446. # Permission mode override for installation of shared libraries.
  16447. install_override_mode=$lt_install_override_mode
  16448. # Command to use after installation of a shared archive.
  16449. postinstall_cmds=$lt_postinstall_cmds
  16450. # Command to use after uninstallation of a shared archive.
  16451. postuninstall_cmds=$lt_postuninstall_cmds
  16452. # Commands used to finish a libtool library installation in a directory.
  16453. finish_cmds=$lt_finish_cmds
  16454. # As "finish_cmds", except a single script fragment to be evaled but
  16455. # not shown.
  16456. finish_eval=$lt_finish_eval
  16457. # Whether we should hardcode library paths into libraries.
  16458. hardcode_into_libs=$hardcode_into_libs
  16459. # Compile-time system search path for libraries.
  16460. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16461. # Run-time system search path for libraries.
  16462. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16463. # Whether dlopen is supported.
  16464. dlopen_support=$enable_dlopen
  16465. # Whether dlopen of programs is supported.
  16466. dlopen_self=$enable_dlopen_self
  16467. # Whether dlopen of statically linked programs is supported.
  16468. dlopen_self_static=$enable_dlopen_self_static
  16469. # Commands to strip libraries.
  16470. old_striplib=$lt_old_striplib
  16471. striplib=$lt_striplib
  16472. # The linker used to build libraries.
  16473. LD=$lt_LD
  16474. # How to create reloadable object files.
  16475. reload_flag=$lt_reload_flag
  16476. reload_cmds=$lt_reload_cmds
  16477. # Commands used to build an old-style archive.
  16478. old_archive_cmds=$lt_old_archive_cmds
  16479. # A language specific compiler.
  16480. CC=$lt_compiler
  16481. # Is the compiler the GNU compiler?
  16482. with_gcc=$GCC
  16483. # Compiler flag to turn off builtin functions.
  16484. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16485. # How to pass a linker flag through the compiler.
  16486. wl=$lt_lt_prog_compiler_wl
  16487. # Additional compiler flags for building library objects.
  16488. pic_flag=$lt_lt_prog_compiler_pic
  16489. # Compiler flag to prevent dynamic linking.
  16490. link_static_flag=$lt_lt_prog_compiler_static
  16491. # Does compiler simultaneously support -c and -o options?
  16492. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16493. # Whether or not to add -lc for building shared libraries.
  16494. build_libtool_need_lc=$archive_cmds_need_lc
  16495. # Whether or not to disallow shared libs when runtime libs are static.
  16496. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16497. # Compiler flag to allow reflexive dlopens.
  16498. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16499. # Compiler flag to generate shared objects directly from archives.
  16500. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16501. # Whether the compiler copes with passing no objects directly.
  16502. compiler_needs_object=$lt_compiler_needs_object
  16503. # Create an old-style archive from a shared archive.
  16504. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16505. # Create a temporary old-style archive to link instead of a shared archive.
  16506. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16507. # Commands used to build a shared archive.
  16508. archive_cmds=$lt_archive_cmds
  16509. archive_expsym_cmds=$lt_archive_expsym_cmds
  16510. # Commands used to build a loadable module if different from building
  16511. # a shared archive.
  16512. module_cmds=$lt_module_cmds
  16513. module_expsym_cmds=$lt_module_expsym_cmds
  16514. # Whether we are building with GNU ld or not.
  16515. with_gnu_ld=$lt_with_gnu_ld
  16516. # Flag that allows shared libraries with undefined symbols to be built.
  16517. allow_undefined_flag=$lt_allow_undefined_flag
  16518. # Flag that enforces no undefined symbols.
  16519. no_undefined_flag=$lt_no_undefined_flag
  16520. # Flag to hardcode \$libdir into a binary during linking.
  16521. # This must work even if \$libdir does not exist
  16522. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16523. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16524. # during linking. This must work even if \$libdir does not exist.
  16525. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16526. # Whether we need a single "-rpath" flag with a separated argument.
  16527. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16528. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16529. # DIR into the resulting binary.
  16530. hardcode_direct=$hardcode_direct
  16531. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16532. # DIR into the resulting binary and the resulting library dependency is
  16533. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16534. # library is relocated.
  16535. hardcode_direct_absolute=$hardcode_direct_absolute
  16536. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16537. # into the resulting binary.
  16538. hardcode_minus_L=$hardcode_minus_L
  16539. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16540. # into the resulting binary.
  16541. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16542. # Set to "yes" if building a shared library automatically hardcodes DIR
  16543. # into the library and all subsequent libraries and executables linked
  16544. # against it.
  16545. hardcode_automatic=$hardcode_automatic
  16546. # Set to yes if linker adds runtime paths of dependent libraries
  16547. # to runtime path list.
  16548. inherit_rpath=$inherit_rpath
  16549. # Whether libtool must link a program against all its dependency libraries.
  16550. link_all_deplibs=$link_all_deplibs
  16551. # Fix the shell variable \$srcfile for the compiler.
  16552. fix_srcfile_path=$lt_fix_srcfile_path
  16553. # Set to "yes" if exported symbols are required.
  16554. always_export_symbols=$always_export_symbols
  16555. # The commands to list exported symbols.
  16556. export_symbols_cmds=$lt_export_symbols_cmds
  16557. # Symbols that should not be listed in the preloaded symbols.
  16558. exclude_expsyms=$lt_exclude_expsyms
  16559. # Symbols that must always be exported.
  16560. include_expsyms=$lt_include_expsyms
  16561. # Commands necessary for linking programs (against libraries) with templates.
  16562. prelink_cmds=$lt_prelink_cmds
  16563. # Specify filename containing input files.
  16564. file_list_spec=$lt_file_list_spec
  16565. # How to hardcode a shared library path into an executable.
  16566. hardcode_action=$hardcode_action
  16567. # The directories searched by this compiler when creating a shared library.
  16568. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16569. # Dependencies to place before and after the objects being linked to
  16570. # create a shared library.
  16571. predep_objects=$lt_predep_objects
  16572. postdep_objects=$lt_postdep_objects
  16573. predeps=$lt_predeps
  16574. postdeps=$lt_postdeps
  16575. # The library search path used internally by the compiler when linking
  16576. # a shared library.
  16577. compiler_lib_search_path=$lt_compiler_lib_search_path
  16578. # ### END LIBTOOL CONFIG
  16579. _LT_EOF
  16580. case $host_os in
  16581. aix3*)
  16582. cat <<\_LT_EOF >> "$cfgfile"
  16583. # AIX sometimes has problems with the GCC collect2 program. For some
  16584. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16585. # vanish in a puff of smoke.
  16586. if test "X${COLLECT_NAMES+set}" != Xset; then
  16587. COLLECT_NAMES=
  16588. export COLLECT_NAMES
  16589. fi
  16590. _LT_EOF
  16591. ;;
  16592. esac
  16593. ltmain="$ac_aux_dir/ltmain.sh"
  16594. # We use sed instead of cat because bash on DJGPP gets confused if
  16595. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16596. # text mode, it properly converts lines to CR/LF. This bash problem
  16597. # is reportedly fixed, but why not run on old versions too?
  16598. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16599. || (rm -f "$cfgfile"; exit 1)
  16600. case $xsi_shell in
  16601. yes)
  16602. cat << \_LT_EOF >> "$cfgfile"
  16603. # func_dirname file append nondir_replacement
  16604. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16605. # otherwise set result to NONDIR_REPLACEMENT.
  16606. func_dirname ()
  16607. {
  16608. case ${1} in
  16609. */*) func_dirname_result="${1%/*}${2}" ;;
  16610. * ) func_dirname_result="${3}" ;;
  16611. esac
  16612. }
  16613. # func_basename file
  16614. func_basename ()
  16615. {
  16616. func_basename_result="${1##*/}"
  16617. }
  16618. # func_dirname_and_basename file append nondir_replacement
  16619. # perform func_basename and func_dirname in a single function
  16620. # call:
  16621. # dirname: Compute the dirname of FILE. If nonempty,
  16622. # add APPEND to the result, otherwise set result
  16623. # to NONDIR_REPLACEMENT.
  16624. # value returned in "$func_dirname_result"
  16625. # basename: Compute filename of FILE.
  16626. # value retuned in "$func_basename_result"
  16627. # Implementation must be kept synchronized with func_dirname
  16628. # and func_basename. For efficiency, we do not delegate to
  16629. # those functions but instead duplicate the functionality here.
  16630. func_dirname_and_basename ()
  16631. {
  16632. case ${1} in
  16633. */*) func_dirname_result="${1%/*}${2}" ;;
  16634. * ) func_dirname_result="${3}" ;;
  16635. esac
  16636. func_basename_result="${1##*/}"
  16637. }
  16638. # func_stripname prefix suffix name
  16639. # strip PREFIX and SUFFIX off of NAME.
  16640. # PREFIX and SUFFIX must not contain globbing or regex special
  16641. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16642. # dot (in which case that matches only a dot).
  16643. func_stripname ()
  16644. {
  16645. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16646. # positional parameters, so assign one to ordinary parameter first.
  16647. func_stripname_result=${3}
  16648. func_stripname_result=${func_stripname_result#"${1}"}
  16649. func_stripname_result=${func_stripname_result%"${2}"}
  16650. }
  16651. # func_opt_split
  16652. func_opt_split ()
  16653. {
  16654. func_opt_split_opt=${1%%=*}
  16655. func_opt_split_arg=${1#*=}
  16656. }
  16657. # func_lo2o object
  16658. func_lo2o ()
  16659. {
  16660. case ${1} in
  16661. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16662. *) func_lo2o_result=${1} ;;
  16663. esac
  16664. }
  16665. # func_xform libobj-or-source
  16666. func_xform ()
  16667. {
  16668. func_xform_result=${1%.*}.lo
  16669. }
  16670. # func_arith arithmetic-term...
  16671. func_arith ()
  16672. {
  16673. func_arith_result=$(( $* ))
  16674. }
  16675. # func_len string
  16676. # STRING may not start with a hyphen.
  16677. func_len ()
  16678. {
  16679. func_len_result=${#1}
  16680. }
  16681. _LT_EOF
  16682. ;;
  16683. *) # Bourne compatible functions.
  16684. cat << \_LT_EOF >> "$cfgfile"
  16685. # func_dirname file append nondir_replacement
  16686. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16687. # otherwise set result to NONDIR_REPLACEMENT.
  16688. func_dirname ()
  16689. {
  16690. # Extract subdirectory from the argument.
  16691. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  16692. if test "X$func_dirname_result" = "X${1}"; then
  16693. func_dirname_result="${3}"
  16694. else
  16695. func_dirname_result="$func_dirname_result${2}"
  16696. fi
  16697. }
  16698. # func_basename file
  16699. func_basename ()
  16700. {
  16701. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  16702. }
  16703. # func_stripname prefix suffix name
  16704. # strip PREFIX and SUFFIX off of NAME.
  16705. # PREFIX and SUFFIX must not contain globbing or regex special
  16706. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16707. # dot (in which case that matches only a dot).
  16708. # func_strip_suffix prefix name
  16709. func_stripname ()
  16710. {
  16711. case ${2} in
  16712. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  16713. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  16714. esac
  16715. }
  16716. # sed scripts:
  16717. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16718. my_sed_long_arg='1s/^-[^=]*=//'
  16719. # func_opt_split
  16720. func_opt_split ()
  16721. {
  16722. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  16723. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  16724. }
  16725. # func_lo2o object
  16726. func_lo2o ()
  16727. {
  16728. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  16729. }
  16730. # func_xform libobj-or-source
  16731. func_xform ()
  16732. {
  16733. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  16734. }
  16735. # func_arith arithmetic-term...
  16736. func_arith ()
  16737. {
  16738. func_arith_result=`expr "$@"`
  16739. }
  16740. # func_len string
  16741. # STRING may not start with a hyphen.
  16742. func_len ()
  16743. {
  16744. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16745. }
  16746. _LT_EOF
  16747. esac
  16748. case $lt_shell_append in
  16749. yes)
  16750. cat << \_LT_EOF >> "$cfgfile"
  16751. # func_append var value
  16752. # Append VALUE to the end of shell variable VAR.
  16753. func_append ()
  16754. {
  16755. eval "$1+=\$2"
  16756. }
  16757. _LT_EOF
  16758. ;;
  16759. *)
  16760. cat << \_LT_EOF >> "$cfgfile"
  16761. # func_append var value
  16762. # Append VALUE to the end of shell variable VAR.
  16763. func_append ()
  16764. {
  16765. eval "$1=\$$1\$2"
  16766. }
  16767. _LT_EOF
  16768. ;;
  16769. esac
  16770. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16771. || (rm -f "$cfgfile"; exit 1)
  16772. mv -f "$cfgfile" "$ofile" ||
  16773. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16774. chmod +x "$ofile"
  16775. cat <<_LT_EOF >> "$ofile"
  16776. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16777. # The linker used to build libraries.
  16778. LD=$lt_LD_CXX
  16779. # How to create reloadable object files.
  16780. reload_flag=$lt_reload_flag_CXX
  16781. reload_cmds=$lt_reload_cmds_CXX
  16782. # Commands used to build an old-style archive.
  16783. old_archive_cmds=$lt_old_archive_cmds_CXX
  16784. # A language specific compiler.
  16785. CC=$lt_compiler_CXX
  16786. # Is the compiler the GNU compiler?
  16787. with_gcc=$GCC_CXX
  16788. # Compiler flag to turn off builtin functions.
  16789. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16790. # How to pass a linker flag through the compiler.
  16791. wl=$lt_lt_prog_compiler_wl_CXX
  16792. # Additional compiler flags for building library objects.
  16793. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16794. # Compiler flag to prevent dynamic linking.
  16795. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16796. # Does compiler simultaneously support -c and -o options?
  16797. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16798. # Whether or not to add -lc for building shared libraries.
  16799. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16800. # Whether or not to disallow shared libs when runtime libs are static.
  16801. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16802. # Compiler flag to allow reflexive dlopens.
  16803. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16804. # Compiler flag to generate shared objects directly from archives.
  16805. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16806. # Whether the compiler copes with passing no objects directly.
  16807. compiler_needs_object=$lt_compiler_needs_object_CXX
  16808. # Create an old-style archive from a shared archive.
  16809. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16810. # Create a temporary old-style archive to link instead of a shared archive.
  16811. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16812. # Commands used to build a shared archive.
  16813. archive_cmds=$lt_archive_cmds_CXX
  16814. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16815. # Commands used to build a loadable module if different from building
  16816. # a shared archive.
  16817. module_cmds=$lt_module_cmds_CXX
  16818. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16819. # Whether we are building with GNU ld or not.
  16820. with_gnu_ld=$lt_with_gnu_ld_CXX
  16821. # Flag that allows shared libraries with undefined symbols to be built.
  16822. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16823. # Flag that enforces no undefined symbols.
  16824. no_undefined_flag=$lt_no_undefined_flag_CXX
  16825. # Flag to hardcode \$libdir into a binary during linking.
  16826. # This must work even if \$libdir does not exist
  16827. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16828. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16829. # during linking. This must work even if \$libdir does not exist.
  16830. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16831. # Whether we need a single "-rpath" flag with a separated argument.
  16832. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16833. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16834. # DIR into the resulting binary.
  16835. hardcode_direct=$hardcode_direct_CXX
  16836. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16837. # DIR into the resulting binary and the resulting library dependency is
  16838. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16839. # library is relocated.
  16840. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16841. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16842. # into the resulting binary.
  16843. hardcode_minus_L=$hardcode_minus_L_CXX
  16844. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16845. # into the resulting binary.
  16846. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16847. # Set to "yes" if building a shared library automatically hardcodes DIR
  16848. # into the library and all subsequent libraries and executables linked
  16849. # against it.
  16850. hardcode_automatic=$hardcode_automatic_CXX
  16851. # Set to yes if linker adds runtime paths of dependent libraries
  16852. # to runtime path list.
  16853. inherit_rpath=$inherit_rpath_CXX
  16854. # Whether libtool must link a program against all its dependency libraries.
  16855. link_all_deplibs=$link_all_deplibs_CXX
  16856. # Fix the shell variable \$srcfile for the compiler.
  16857. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16858. # Set to "yes" if exported symbols are required.
  16859. always_export_symbols=$always_export_symbols_CXX
  16860. # The commands to list exported symbols.
  16861. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16862. # Symbols that should not be listed in the preloaded symbols.
  16863. exclude_expsyms=$lt_exclude_expsyms_CXX
  16864. # Symbols that must always be exported.
  16865. include_expsyms=$lt_include_expsyms_CXX
  16866. # Commands necessary for linking programs (against libraries) with templates.
  16867. prelink_cmds=$lt_prelink_cmds_CXX
  16868. # Specify filename containing input files.
  16869. file_list_spec=$lt_file_list_spec_CXX
  16870. # How to hardcode a shared library path into an executable.
  16871. hardcode_action=$hardcode_action_CXX
  16872. # The directories searched by this compiler when creating a shared library.
  16873. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16874. # Dependencies to place before and after the objects being linked to
  16875. # create a shared library.
  16876. predep_objects=$lt_predep_objects_CXX
  16877. postdep_objects=$lt_postdep_objects_CXX
  16878. predeps=$lt_predeps_CXX
  16879. postdeps=$lt_postdeps_CXX
  16880. # The library search path used internally by the compiler when linking
  16881. # a shared library.
  16882. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16883. # ### END LIBTOOL TAG CONFIG: CXX
  16884. _LT_EOF
  16885. ;;
  16886. "include":C) test -d include || mkdir include ;;
  16887. "src":C)
  16888. test -d src || mkdir src
  16889. test -d src/$TARGETDIR || mkdir src/$TARGETDIR
  16890. ;;
  16891. esac
  16892. done # for ac_tag
  16893. as_fn_exit 0
  16894. _ACEOF
  16895. ac_clean_files=$ac_clean_files_save
  16896. test $ac_write_fail = 0 ||
  16897. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16898. # configure is writing to config.log, and then calls config.status.
  16899. # config.status does its own redirection, appending to config.log.
  16900. # Unfortunately, on DOS this fails, as config.log is still kept open
  16901. # by configure, so config.status won't be able to write to it; its
  16902. # output is simply discarded. So we exec the FD to /dev/null,
  16903. # effectively closing config.log, so it can be properly (re)opened and
  16904. # appended to by config.status. When coming back to configure, we
  16905. # need to make the FD available again.
  16906. if test "$no_create" != yes; then
  16907. ac_cs_success=:
  16908. ac_config_status_args=
  16909. test "$silent" = yes &&
  16910. ac_config_status_args="$ac_config_status_args --quiet"
  16911. exec 5>/dev/null
  16912. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16913. exec 5>>config.log
  16914. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16915. # would make configure fail if this is the last instruction.
  16916. $ac_cs_success || as_fn_exit 1
  16917. fi
  16918. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16920. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16921. fi