configure 622 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='GNU TM Runtime Library'
  539. PACKAGE_TARNAME='libitm'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='GNU TM Runtime Library 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL='http://www.gnu.org/software/libitm/'
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. get_gcc_base_ver
  584. ARCH_FUTEX_FALSE
  585. ARCH_FUTEX_TRUE
  586. ARCH_X86_AVX_FALSE
  587. ARCH_X86_AVX_TRUE
  588. ARCH_X86_FALSE
  589. ARCH_X86_TRUE
  590. ARCH_ARM_FALSE
  591. ARCH_ARM_TRUE
  592. link_itm
  593. XLDFLAGS
  594. XCFLAGS
  595. config_path
  596. LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
  597. LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
  598. LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
  599. LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
  600. LIBITM_BUILD_VERSIONED_SHLIB_FALSE
  601. LIBITM_BUILD_VERSIONED_SHLIB_TRUE
  602. OPT_LDFLAGS
  603. SECTION_LDFLAGS
  604. HAVE_HWCAP_FALSE
  605. HAVE_HWCAP_TRUE
  606. HWCAP_LDFLAGS
  607. libtool_VERSION
  608. MAINT
  609. MAINTAINER_MODE_FALSE
  610. MAINTAINER_MODE_TRUE
  611. enable_static
  612. enable_shared
  613. CXXCPP
  614. CPP
  615. OTOOL64
  616. OTOOL
  617. LIPO
  618. NMEDIT
  619. DSYMUTIL
  620. OBJDUMP
  621. LN_S
  622. ac_ct_DUMPBIN
  623. DUMPBIN
  624. LD
  625. FGREP
  626. EGREP
  627. GREP
  628. SED
  629. LIBTOOL
  630. BUILD_INFO_FALSE
  631. BUILD_INFO_TRUE
  632. PERL
  633. RANLIB
  634. NM
  635. AR
  636. am__fastdepCCAS_FALSE
  637. am__fastdepCCAS_TRUE
  638. CCASDEPMODE
  639. CCASFLAGS
  640. CCAS
  641. am__fastdepCXX_FALSE
  642. am__fastdepCXX_TRUE
  643. CXXDEPMODE
  644. ac_ct_CXX
  645. CXXFLAGS
  646. CXX
  647. am__fastdepCC_FALSE
  648. am__fastdepCC_TRUE
  649. CCDEPMODE
  650. am__nodep
  651. AMDEPBACKSLASH
  652. AMDEP_FALSE
  653. AMDEP_TRUE
  654. am__quote
  655. am__include
  656. DEPDIR
  657. OBJEXT
  658. EXEEXT
  659. ac_ct_CC
  660. CPPFLAGS
  661. LDFLAGS
  662. CFLAGS
  663. CC
  664. toolexeclibdir
  665. toolexecdir
  666. multi_basedir
  667. AM_BACKSLASH
  668. AM_DEFAULT_VERBOSITY
  669. AM_DEFAULT_V
  670. AM_V
  671. am__untar
  672. am__tar
  673. AMTAR
  674. am__leading_dot
  675. SET_MAKE
  676. AWK
  677. mkdir_p
  678. MKDIR_P
  679. INSTALL_STRIP_PROGRAM
  680. STRIP
  681. install_sh
  682. MAKEINFO
  683. AUTOHEADER
  684. AUTOMAKE
  685. AUTOCONF
  686. ACLOCAL
  687. VERSION
  688. PACKAGE
  689. CYGPATH_W
  690. am__isrc
  691. INSTALL_DATA
  692. INSTALL_SCRIPT
  693. INSTALL_PROGRAM
  694. target_os
  695. target_vendor
  696. target_cpu
  697. target
  698. host_os
  699. host_vendor
  700. host_cpu
  701. host
  702. build_os
  703. build_vendor
  704. build_cpu
  705. build
  706. GENINSRC_FALSE
  707. GENINSRC_TRUE
  708. target_alias
  709. host_alias
  710. build_alias
  711. LIBS
  712. ECHO_T
  713. ECHO_N
  714. ECHO_C
  715. DEFS
  716. mandir
  717. localedir
  718. libdir
  719. psdir
  720. pdfdir
  721. dvidir
  722. htmldir
  723. infodir
  724. docdir
  725. oldincludedir
  726. includedir
  727. localstatedir
  728. sharedstatedir
  729. sysconfdir
  730. datadir
  731. datarootdir
  732. libexecdir
  733. sbindir
  734. bindir
  735. program_transform_name
  736. prefix
  737. exec_prefix
  738. PACKAGE_URL
  739. PACKAGE_BUGREPORT
  740. PACKAGE_STRING
  741. PACKAGE_VERSION
  742. PACKAGE_TARNAME
  743. PACKAGE_NAME
  744. PATH_SEPARATOR
  745. SHELL'
  746. ac_subst_files=''
  747. ac_user_opts='
  748. enable_option_checking
  749. enable_version_specific_runtime_libs
  750. enable_generated_files_in_srcdir
  751. enable_silent_rules
  752. enable_multilib
  753. with_toolexeclibdir
  754. enable_dependency_tracking
  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_linux_futex
  763. enable_tls
  764. enable_symvers
  765. enable_werror
  766. enable_cet
  767. with_gcc_major_version_only
  768. '
  769. ac_precious_vars='build_alias
  770. host_alias
  771. target_alias
  772. CPP
  773. CPPFLAGS
  774. CXXCPP'
  775. # Initialize some variables set by options.
  776. ac_init_help=
  777. ac_init_version=false
  778. ac_unrecognized_opts=
  779. ac_unrecognized_sep=
  780. # The variables have the same names as the options, with
  781. # dashes changed to underlines.
  782. cache_file=/dev/null
  783. exec_prefix=NONE
  784. no_create=
  785. no_recursion=
  786. prefix=NONE
  787. program_prefix=NONE
  788. program_suffix=NONE
  789. program_transform_name=s,x,x,
  790. silent=
  791. site=
  792. srcdir=
  793. verbose=
  794. x_includes=NONE
  795. x_libraries=NONE
  796. # Installation directory options.
  797. # These are left unexpanded so users can "make install exec_prefix=/foo"
  798. # and all the variables that are supposed to be based on exec_prefix
  799. # by default will actually change.
  800. # Use braces instead of parens because sh, perl, etc. also accept them.
  801. # (The list follows the same order as the GNU Coding Standards.)
  802. bindir='${exec_prefix}/bin'
  803. sbindir='${exec_prefix}/sbin'
  804. libexecdir='${exec_prefix}/libexec'
  805. datarootdir='${prefix}/share'
  806. datadir='${datarootdir}'
  807. sysconfdir='${prefix}/etc'
  808. sharedstatedir='${prefix}/com'
  809. localstatedir='${prefix}/var'
  810. includedir='${prefix}/include'
  811. oldincludedir='/usr/include'
  812. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  813. infodir='${datarootdir}/info'
  814. htmldir='${docdir}'
  815. dvidir='${docdir}'
  816. pdfdir='${docdir}'
  817. psdir='${docdir}'
  818. libdir='${exec_prefix}/lib'
  819. localedir='${datarootdir}/locale'
  820. mandir='${datarootdir}/man'
  821. ac_prev=
  822. ac_dashdash=
  823. for ac_option
  824. do
  825. # If the previous option needs an argument, assign it.
  826. if test -n "$ac_prev"; then
  827. eval $ac_prev=\$ac_option
  828. ac_prev=
  829. continue
  830. fi
  831. case $ac_option in
  832. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  833. *=) ac_optarg= ;;
  834. *) ac_optarg=yes ;;
  835. esac
  836. # Accept the important Cygnus configure options, so we can diagnose typos.
  837. case $ac_dashdash$ac_option in
  838. --)
  839. ac_dashdash=yes ;;
  840. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  841. ac_prev=bindir ;;
  842. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  843. bindir=$ac_optarg ;;
  844. -build | --build | --buil | --bui | --bu)
  845. ac_prev=build_alias ;;
  846. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  847. build_alias=$ac_optarg ;;
  848. -cache-file | --cache-file | --cache-fil | --cache-fi \
  849. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  850. ac_prev=cache_file ;;
  851. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  852. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  853. cache_file=$ac_optarg ;;
  854. --config-cache | -C)
  855. cache_file=config.cache ;;
  856. -datadir | --datadir | --datadi | --datad)
  857. ac_prev=datadir ;;
  858. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  859. datadir=$ac_optarg ;;
  860. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  861. | --dataroo | --dataro | --datar)
  862. ac_prev=datarootdir ;;
  863. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  864. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  865. datarootdir=$ac_optarg ;;
  866. -disable-* | --disable-*)
  867. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  868. # Reject names that are not valid shell variable names.
  869. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  870. as_fn_error $? "invalid feature name: $ac_useropt"
  871. ac_useropt_orig=$ac_useropt
  872. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  873. case $ac_user_opts in
  874. *"
  875. "enable_$ac_useropt"
  876. "*) ;;
  877. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  878. ac_unrecognized_sep=', ';;
  879. esac
  880. eval enable_$ac_useropt=no ;;
  881. -docdir | --docdir | --docdi | --doc | --do)
  882. ac_prev=docdir ;;
  883. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  884. docdir=$ac_optarg ;;
  885. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  886. ac_prev=dvidir ;;
  887. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  888. dvidir=$ac_optarg ;;
  889. -enable-* | --enable-*)
  890. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  891. # Reject names that are not valid shell variable names.
  892. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  893. as_fn_error $? "invalid feature name: $ac_useropt"
  894. ac_useropt_orig=$ac_useropt
  895. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  896. case $ac_user_opts in
  897. *"
  898. "enable_$ac_useropt"
  899. "*) ;;
  900. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  901. ac_unrecognized_sep=', ';;
  902. esac
  903. eval enable_$ac_useropt=\$ac_optarg ;;
  904. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  905. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  906. | --exec | --exe | --ex)
  907. ac_prev=exec_prefix ;;
  908. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  909. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  910. | --exec=* | --exe=* | --ex=*)
  911. exec_prefix=$ac_optarg ;;
  912. -gas | --gas | --ga | --g)
  913. # Obsolete; use --with-gas.
  914. with_gas=yes ;;
  915. -help | --help | --hel | --he | -h)
  916. ac_init_help=long ;;
  917. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  918. ac_init_help=recursive ;;
  919. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  920. ac_init_help=short ;;
  921. -host | --host | --hos | --ho)
  922. ac_prev=host_alias ;;
  923. -host=* | --host=* | --hos=* | --ho=*)
  924. host_alias=$ac_optarg ;;
  925. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  926. ac_prev=htmldir ;;
  927. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  928. | --ht=*)
  929. htmldir=$ac_optarg ;;
  930. -includedir | --includedir | --includedi | --included | --include \
  931. | --includ | --inclu | --incl | --inc)
  932. ac_prev=includedir ;;
  933. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  934. | --includ=* | --inclu=* | --incl=* | --inc=*)
  935. includedir=$ac_optarg ;;
  936. -infodir | --infodir | --infodi | --infod | --info | --inf)
  937. ac_prev=infodir ;;
  938. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  939. infodir=$ac_optarg ;;
  940. -libdir | --libdir | --libdi | --libd)
  941. ac_prev=libdir ;;
  942. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  943. libdir=$ac_optarg ;;
  944. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  945. | --libexe | --libex | --libe)
  946. ac_prev=libexecdir ;;
  947. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  948. | --libexe=* | --libex=* | --libe=*)
  949. libexecdir=$ac_optarg ;;
  950. -localedir | --localedir | --localedi | --localed | --locale)
  951. ac_prev=localedir ;;
  952. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  953. localedir=$ac_optarg ;;
  954. -localstatedir | --localstatedir | --localstatedi | --localstated \
  955. | --localstate | --localstat | --localsta | --localst | --locals)
  956. ac_prev=localstatedir ;;
  957. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  958. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  959. localstatedir=$ac_optarg ;;
  960. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  961. ac_prev=mandir ;;
  962. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  963. mandir=$ac_optarg ;;
  964. -nfp | --nfp | --nf)
  965. # Obsolete; use --without-fp.
  966. with_fp=no ;;
  967. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  968. | --no-cr | --no-c | -n)
  969. no_create=yes ;;
  970. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  971. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  972. no_recursion=yes ;;
  973. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  974. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  975. | --oldin | --oldi | --old | --ol | --o)
  976. ac_prev=oldincludedir ;;
  977. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  978. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  979. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  980. oldincludedir=$ac_optarg ;;
  981. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  982. ac_prev=prefix ;;
  983. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  984. prefix=$ac_optarg ;;
  985. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  986. | --program-pre | --program-pr | --program-p)
  987. ac_prev=program_prefix ;;
  988. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  989. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  990. program_prefix=$ac_optarg ;;
  991. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  992. | --program-suf | --program-su | --program-s)
  993. ac_prev=program_suffix ;;
  994. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  995. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  996. program_suffix=$ac_optarg ;;
  997. -program-transform-name | --program-transform-name \
  998. | --program-transform-nam | --program-transform-na \
  999. | --program-transform-n | --program-transform- \
  1000. | --program-transform | --program-transfor \
  1001. | --program-transfo | --program-transf \
  1002. | --program-trans | --program-tran \
  1003. | --progr-tra | --program-tr | --program-t)
  1004. ac_prev=program_transform_name ;;
  1005. -program-transform-name=* | --program-transform-name=* \
  1006. | --program-transform-nam=* | --program-transform-na=* \
  1007. | --program-transform-n=* | --program-transform-=* \
  1008. | --program-transform=* | --program-transfor=* \
  1009. | --program-transfo=* | --program-transf=* \
  1010. | --program-trans=* | --program-tran=* \
  1011. | --progr-tra=* | --program-tr=* | --program-t=*)
  1012. program_transform_name=$ac_optarg ;;
  1013. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1014. ac_prev=pdfdir ;;
  1015. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1016. pdfdir=$ac_optarg ;;
  1017. -psdir | --psdir | --psdi | --psd | --ps)
  1018. ac_prev=psdir ;;
  1019. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1020. psdir=$ac_optarg ;;
  1021. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1022. | -silent | --silent | --silen | --sile | --sil)
  1023. silent=yes ;;
  1024. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1025. ac_prev=sbindir ;;
  1026. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1027. | --sbi=* | --sb=*)
  1028. sbindir=$ac_optarg ;;
  1029. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1030. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1031. | --sharedst | --shareds | --shared | --share | --shar \
  1032. | --sha | --sh)
  1033. ac_prev=sharedstatedir ;;
  1034. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1035. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1036. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1037. | --sha=* | --sh=*)
  1038. sharedstatedir=$ac_optarg ;;
  1039. -site | --site | --sit)
  1040. ac_prev=site ;;
  1041. -site=* | --site=* | --sit=*)
  1042. site=$ac_optarg ;;
  1043. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1044. ac_prev=srcdir ;;
  1045. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1046. srcdir=$ac_optarg ;;
  1047. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1048. | --syscon | --sysco | --sysc | --sys | --sy)
  1049. ac_prev=sysconfdir ;;
  1050. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1051. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1052. sysconfdir=$ac_optarg ;;
  1053. -target | --target | --targe | --targ | --tar | --ta | --t)
  1054. ac_prev=target_alias ;;
  1055. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1056. target_alias=$ac_optarg ;;
  1057. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1058. verbose=yes ;;
  1059. -version | --version | --versio | --versi | --vers | -V)
  1060. ac_init_version=: ;;
  1061. -with-* | --with-*)
  1062. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1063. # Reject names that are not valid shell variable names.
  1064. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1065. as_fn_error $? "invalid package name: $ac_useropt"
  1066. ac_useropt_orig=$ac_useropt
  1067. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1068. case $ac_user_opts in
  1069. *"
  1070. "with_$ac_useropt"
  1071. "*) ;;
  1072. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1073. ac_unrecognized_sep=', ';;
  1074. esac
  1075. eval with_$ac_useropt=\$ac_optarg ;;
  1076. -without-* | --without-*)
  1077. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1078. # Reject names that are not valid shell variable names.
  1079. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1080. as_fn_error $? "invalid package name: $ac_useropt"
  1081. ac_useropt_orig=$ac_useropt
  1082. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1083. case $ac_user_opts in
  1084. *"
  1085. "with_$ac_useropt"
  1086. "*) ;;
  1087. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1088. ac_unrecognized_sep=', ';;
  1089. esac
  1090. eval with_$ac_useropt=no ;;
  1091. --x)
  1092. # Obsolete; use --with-x.
  1093. with_x=yes ;;
  1094. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1095. | --x-incl | --x-inc | --x-in | --x-i)
  1096. ac_prev=x_includes ;;
  1097. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1098. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1099. x_includes=$ac_optarg ;;
  1100. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1101. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1102. ac_prev=x_libraries ;;
  1103. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1104. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1105. x_libraries=$ac_optarg ;;
  1106. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1107. Try \`$0 --help' for more information"
  1108. ;;
  1109. *=*)
  1110. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1111. # Reject names that are not valid shell variable names.
  1112. case $ac_envvar in #(
  1113. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1114. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1115. esac
  1116. eval $ac_envvar=\$ac_optarg
  1117. export $ac_envvar ;;
  1118. *)
  1119. # FIXME: should be removed in autoconf 3.0.
  1120. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1121. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1122. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1123. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1124. ;;
  1125. esac
  1126. done
  1127. if test -n "$ac_prev"; then
  1128. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1129. as_fn_error $? "missing argument to $ac_option"
  1130. fi
  1131. if test -n "$ac_unrecognized_opts"; then
  1132. case $enable_option_checking in
  1133. no) ;;
  1134. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1135. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1136. esac
  1137. fi
  1138. # Check all directory arguments for consistency.
  1139. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1140. datadir sysconfdir sharedstatedir localstatedir includedir \
  1141. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1142. libdir localedir mandir
  1143. do
  1144. eval ac_val=\$$ac_var
  1145. # Remove trailing slashes.
  1146. case $ac_val in
  1147. */ )
  1148. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1149. eval $ac_var=\$ac_val;;
  1150. esac
  1151. # Be sure to have absolute directory names.
  1152. case $ac_val in
  1153. [\\/$]* | ?:[\\/]* ) continue;;
  1154. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1155. esac
  1156. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1157. done
  1158. # There might be people who depend on the old broken behavior: `$host'
  1159. # used to hold the argument of --host etc.
  1160. # FIXME: To remove some day.
  1161. build=$build_alias
  1162. host=$host_alias
  1163. target=$target_alias
  1164. # FIXME: To remove some day.
  1165. if test "x$host_alias" != x; then
  1166. if test "x$build_alias" = x; then
  1167. cross_compiling=maybe
  1168. elif test "x$build_alias" != "x$host_alias"; then
  1169. cross_compiling=yes
  1170. fi
  1171. fi
  1172. ac_tool_prefix=
  1173. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1174. test "$silent" = yes && exec 6>/dev/null
  1175. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1176. ac_ls_di=`ls -di .` &&
  1177. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1178. as_fn_error $? "working directory cannot be determined"
  1179. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1180. as_fn_error $? "pwd does not report name of working directory"
  1181. # Find the source files, if location was not specified.
  1182. if test -z "$srcdir"; then
  1183. ac_srcdir_defaulted=yes
  1184. # Try the directory containing this script, then the parent directory.
  1185. ac_confdir=`$as_dirname -- "$as_myself" ||
  1186. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1187. X"$as_myself" : 'X\(//\)[^/]' \| \
  1188. X"$as_myself" : 'X\(//\)$' \| \
  1189. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1190. $as_echo X"$as_myself" |
  1191. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1192. s//\1/
  1193. q
  1194. }
  1195. /^X\(\/\/\)[^/].*/{
  1196. s//\1/
  1197. q
  1198. }
  1199. /^X\(\/\/\)$/{
  1200. s//\1/
  1201. q
  1202. }
  1203. /^X\(\/\).*/{
  1204. s//\1/
  1205. q
  1206. }
  1207. s/.*/./; q'`
  1208. srcdir=$ac_confdir
  1209. if test ! -r "$srcdir/$ac_unique_file"; then
  1210. srcdir=..
  1211. fi
  1212. else
  1213. ac_srcdir_defaulted=no
  1214. fi
  1215. if test ! -r "$srcdir/$ac_unique_file"; then
  1216. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1217. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1218. fi
  1219. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1220. ac_abs_confdir=`(
  1221. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1222. pwd)`
  1223. # When building in place, set srcdir=.
  1224. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1225. srcdir=.
  1226. fi
  1227. # Remove unnecessary trailing slashes from srcdir.
  1228. # Double slashes in file names in object file debugging info
  1229. # mess up M-x gdb in Emacs.
  1230. case $srcdir in
  1231. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1232. esac
  1233. for ac_var in $ac_precious_vars; do
  1234. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1235. eval ac_env_${ac_var}_value=\$${ac_var}
  1236. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1237. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1238. done
  1239. #
  1240. # Report the --help message.
  1241. #
  1242. if test "$ac_init_help" = "long"; then
  1243. # Omit some internal or obsolete options to make the list less imposing.
  1244. # This message is too long to be a string in the A/UX 3.1 sh.
  1245. cat <<_ACEOF
  1246. \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
  1247. Usage: $0 [OPTION]... [VAR=VALUE]...
  1248. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1249. VAR=VALUE. See below for descriptions of some of the useful variables.
  1250. Defaults for the options are specified in brackets.
  1251. Configuration:
  1252. -h, --help display this help and exit
  1253. --help=short display options specific to this package
  1254. --help=recursive display the short help of all the included packages
  1255. -V, --version display version information and exit
  1256. -q, --quiet, --silent do not print \`checking ...' messages
  1257. --cache-file=FILE cache test results in FILE [disabled]
  1258. -C, --config-cache alias for \`--cache-file=config.cache'
  1259. -n, --no-create do not create output files
  1260. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1261. Installation directories:
  1262. --prefix=PREFIX install architecture-independent files in PREFIX
  1263. [$ac_default_prefix]
  1264. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1265. [PREFIX]
  1266. By default, \`make install' will install all the files in
  1267. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1268. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1269. for instance \`--prefix=\$HOME'.
  1270. For better control, use the options below.
  1271. Fine tuning of the installation directories:
  1272. --bindir=DIR user executables [EPREFIX/bin]
  1273. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1274. --libexecdir=DIR program executables [EPREFIX/libexec]
  1275. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1276. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1277. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1278. --libdir=DIR object code libraries [EPREFIX/lib]
  1279. --includedir=DIR C header files [PREFIX/include]
  1280. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1281. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1282. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1283. --infodir=DIR info documentation [DATAROOTDIR/info]
  1284. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1285. --mandir=DIR man documentation [DATAROOTDIR/man]
  1286. --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
  1287. --htmldir=DIR html documentation [DOCDIR]
  1288. --dvidir=DIR dvi documentation [DOCDIR]
  1289. --pdfdir=DIR pdf documentation [DOCDIR]
  1290. --psdir=DIR ps documentation [DOCDIR]
  1291. _ACEOF
  1292. cat <<\_ACEOF
  1293. Program names:
  1294. --program-prefix=PREFIX prepend PREFIX to installed program names
  1295. --program-suffix=SUFFIX append SUFFIX to installed program names
  1296. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1297. System types:
  1298. --build=BUILD configure for building on BUILD [guessed]
  1299. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1300. --target=TARGET configure for building compilers for TARGET [HOST]
  1301. _ACEOF
  1302. fi
  1303. if test -n "$ac_init_help"; then
  1304. case $ac_init_help in
  1305. short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
  1306. esac
  1307. cat <<\_ACEOF
  1308. Optional Features:
  1309. --disable-option-checking ignore unrecognized --enable/--with options
  1310. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1311. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1312. --enable-version-specific-runtime-libs
  1313. Specify that runtime libraries should be installed
  1314. in a compiler-specific directory [default=no]
  1315. --enable-generated-files-in-srcdir
  1316. put copies of generated files in source dir intended
  1317. for creating source tarballs for users without
  1318. texinfo bison or flex. [default=no]
  1319. --enable-silent-rules less verbose build output (undo: "make V=1")
  1320. --disable-silent-rules verbose build output (undo: "make V=0")
  1321. --enable-multilib build many library versions (default)
  1322. --enable-dependency-tracking
  1323. do not reject slow dependency extractors
  1324. --disable-dependency-tracking
  1325. speeds up one-time build
  1326. --enable-shared[=PKGS] build shared libraries [default=yes]
  1327. --enable-static[=PKGS] build static libraries [default=yes]
  1328. --enable-fast-install[=PKGS]
  1329. optimize for fast installation [default=yes]
  1330. --disable-libtool-lock avoid locking (might break parallel builds)
  1331. --enable-maintainer-mode
  1332. enable make rules and dependencies not useful (and
  1333. sometimes confusing) to the casual installer
  1334. --enable-linux-futex use the Linux futex system call [default=default]
  1335. --enable-tls Use thread-local storage [default=yes]
  1336. --enable-symvers=STYLE enables symbol versioning of the shared library
  1337. [default=yes]
  1338. --disable-werror disable building with -Werror
  1339. --enable-cet enable Intel CET in target libraries [default=auto]
  1340. Optional Packages:
  1341. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1342. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1343. --with-toolexeclibdir=DIR
  1344. install libraries built with a cross compiler within
  1345. DIR
  1346. --with-pic try to use only PIC/non-PIC objects [default=use
  1347. both]
  1348. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1349. --with-gcc-major-version-only
  1350. use only GCC major number in filesystem paths
  1351. Some influential environment variables:
  1352. CC C compiler command
  1353. CFLAGS C compiler flags
  1354. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1355. nonstandard directory <lib dir>
  1356. LIBS libraries to pass to the linker, e.g. -l<library>
  1357. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1358. you have headers in a nonstandard directory <include dir>
  1359. CXX C++ compiler command
  1360. CXXFLAGS C++ compiler flags
  1361. CCAS assembler compiler command (defaults to CC)
  1362. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1363. CPP C preprocessor
  1364. CXXCPP C++ preprocessor
  1365. Use these variables to override the choices made by `configure' or to help
  1366. it to find libraries and programs with nonstandard names/locations.
  1367. Report bugs to the package provider.
  1368. GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
  1369. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1370. _ACEOF
  1371. ac_status=$?
  1372. fi
  1373. if test "$ac_init_help" = "recursive"; then
  1374. # If there are subdirs, report their specific --help.
  1375. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1376. test -d "$ac_dir" ||
  1377. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1378. continue
  1379. ac_builddir=.
  1380. case "$ac_dir" in
  1381. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1382. *)
  1383. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1384. # A ".." for each directory in $ac_dir_suffix.
  1385. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1386. case $ac_top_builddir_sub in
  1387. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1388. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1389. esac ;;
  1390. esac
  1391. ac_abs_top_builddir=$ac_pwd
  1392. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1393. # for backward compatibility:
  1394. ac_top_builddir=$ac_top_build_prefix
  1395. case $srcdir in
  1396. .) # We are building in place.
  1397. ac_srcdir=.
  1398. ac_top_srcdir=$ac_top_builddir_sub
  1399. ac_abs_top_srcdir=$ac_pwd ;;
  1400. [\\/]* | ?:[\\/]* ) # Absolute name.
  1401. ac_srcdir=$srcdir$ac_dir_suffix;
  1402. ac_top_srcdir=$srcdir
  1403. ac_abs_top_srcdir=$srcdir ;;
  1404. *) # Relative name.
  1405. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1406. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1407. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1408. esac
  1409. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1410. cd "$ac_dir" || { ac_status=$?; continue; }
  1411. # Check for guested configure.
  1412. if test -f "$ac_srcdir/configure.gnu"; then
  1413. echo &&
  1414. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1415. elif test -f "$ac_srcdir/configure"; then
  1416. echo &&
  1417. $SHELL "$ac_srcdir/configure" --help=recursive
  1418. else
  1419. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1420. fi || ac_status=$?
  1421. cd "$ac_pwd" || { ac_status=$?; break; }
  1422. done
  1423. fi
  1424. test -n "$ac_init_help" && exit $ac_status
  1425. if $ac_init_version; then
  1426. cat <<\_ACEOF
  1427. GNU TM Runtime Library configure 1.0
  1428. generated by GNU Autoconf 2.69
  1429. Copyright (C) 2012 Free Software Foundation, Inc.
  1430. This configure script is free software; the Free Software Foundation
  1431. gives unlimited permission to copy, distribute and modify it.
  1432. _ACEOF
  1433. exit
  1434. fi
  1435. ## ------------------------ ##
  1436. ## Autoconf initialization. ##
  1437. ## ------------------------ ##
  1438. # ac_fn_c_try_compile LINENO
  1439. # --------------------------
  1440. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1441. ac_fn_c_try_compile ()
  1442. {
  1443. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1444. rm -f conftest.$ac_objext
  1445. if { { ac_try="$ac_compile"
  1446. case "(($ac_try" in
  1447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1448. *) ac_try_echo=$ac_try;;
  1449. esac
  1450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1451. $as_echo "$ac_try_echo"; } >&5
  1452. (eval "$ac_compile") 2>conftest.err
  1453. ac_status=$?
  1454. if test -s conftest.err; then
  1455. grep -v '^ *+' conftest.err >conftest.er1
  1456. cat conftest.er1 >&5
  1457. mv -f conftest.er1 conftest.err
  1458. fi
  1459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1460. test $ac_status = 0; } && {
  1461. test -z "$ac_c_werror_flag" ||
  1462. test ! -s conftest.err
  1463. } && test -s conftest.$ac_objext; then :
  1464. ac_retval=0
  1465. else
  1466. $as_echo "$as_me: failed program was:" >&5
  1467. sed 's/^/| /' conftest.$ac_ext >&5
  1468. ac_retval=1
  1469. fi
  1470. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1471. as_fn_set_status $ac_retval
  1472. } # ac_fn_c_try_compile
  1473. # ac_fn_cxx_try_compile LINENO
  1474. # ----------------------------
  1475. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1476. ac_fn_cxx_try_compile ()
  1477. {
  1478. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1479. rm -f conftest.$ac_objext
  1480. if { { ac_try="$ac_compile"
  1481. case "(($ac_try" in
  1482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1483. *) ac_try_echo=$ac_try;;
  1484. esac
  1485. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1486. $as_echo "$ac_try_echo"; } >&5
  1487. (eval "$ac_compile") 2>conftest.err
  1488. ac_status=$?
  1489. if test -s conftest.err; then
  1490. grep -v '^ *+' conftest.err >conftest.er1
  1491. cat conftest.er1 >&5
  1492. mv -f conftest.er1 conftest.err
  1493. fi
  1494. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1495. test $ac_status = 0; } && {
  1496. test -z "$ac_cxx_werror_flag" ||
  1497. test ! -s conftest.err
  1498. } && test -s conftest.$ac_objext; then :
  1499. ac_retval=0
  1500. else
  1501. $as_echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. ac_retval=1
  1504. fi
  1505. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1506. as_fn_set_status $ac_retval
  1507. } # ac_fn_cxx_try_compile
  1508. # ac_fn_c_try_link LINENO
  1509. # -----------------------
  1510. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1511. ac_fn_c_try_link ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. rm -f conftest.$ac_objext conftest$ac_exeext
  1515. if { { ac_try="$ac_link"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_link") 2>conftest.err
  1523. ac_status=$?
  1524. if test -s conftest.err; then
  1525. grep -v '^ *+' conftest.err >conftest.er1
  1526. cat conftest.er1 >&5
  1527. mv -f conftest.er1 conftest.err
  1528. fi
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } && {
  1531. test -z "$ac_c_werror_flag" ||
  1532. test ! -s conftest.err
  1533. } && test -s conftest$ac_exeext && {
  1534. test "$cross_compiling" = yes ||
  1535. test -x conftest$ac_exeext
  1536. }; then :
  1537. ac_retval=0
  1538. else
  1539. $as_echo "$as_me: failed program was:" >&5
  1540. sed 's/^/| /' conftest.$ac_ext >&5
  1541. ac_retval=1
  1542. fi
  1543. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1544. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1545. # interfere with the next link command; also delete a directory that is
  1546. # left behind by Apple's compiler. We do this before executing the actions.
  1547. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1548. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1549. as_fn_set_status $ac_retval
  1550. } # ac_fn_c_try_link
  1551. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1552. # -------------------------------------------------------
  1553. # Tests whether HEADER exists and can be compiled using the include files in
  1554. # INCLUDES, setting the cache variable VAR accordingly.
  1555. ac_fn_c_check_header_compile ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1559. $as_echo_n "checking for $2... " >&6; }
  1560. if eval \${$3+:} false; then :
  1561. $as_echo_n "(cached) " >&6
  1562. else
  1563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1564. /* end confdefs.h. */
  1565. $4
  1566. #include <$2>
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. eval "$3=yes"
  1570. else
  1571. eval "$3=no"
  1572. fi
  1573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1574. fi
  1575. eval ac_res=\$$3
  1576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1577. $as_echo "$ac_res" >&6; }
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. } # ac_fn_c_check_header_compile
  1580. # ac_fn_c_try_cpp LINENO
  1581. # ----------------------
  1582. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1583. ac_fn_c_try_cpp ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1587. case "(($ac_try" in
  1588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1589. *) ac_try_echo=$ac_try;;
  1590. esac
  1591. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1592. $as_echo "$ac_try_echo"; } >&5
  1593. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1594. ac_status=$?
  1595. if test -s conftest.err; then
  1596. grep -v '^ *+' conftest.err >conftest.er1
  1597. cat conftest.er1 >&5
  1598. mv -f conftest.er1 conftest.err
  1599. fi
  1600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1601. test $ac_status = 0; } > conftest.i && {
  1602. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1603. test ! -s conftest.err
  1604. }; then :
  1605. ac_retval=0
  1606. else
  1607. $as_echo "$as_me: failed program was:" >&5
  1608. sed 's/^/| /' conftest.$ac_ext >&5
  1609. ac_retval=1
  1610. fi
  1611. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1612. as_fn_set_status $ac_retval
  1613. } # ac_fn_c_try_cpp
  1614. # ac_fn_c_try_run LINENO
  1615. # ----------------------
  1616. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1617. # that executables *can* be run.
  1618. ac_fn_c_try_run ()
  1619. {
  1620. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1621. if { { ac_try="$ac_link"
  1622. case "(($ac_try" in
  1623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1624. *) ac_try_echo=$ac_try;;
  1625. esac
  1626. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1627. $as_echo "$ac_try_echo"; } >&5
  1628. (eval "$ac_link") 2>&5
  1629. ac_status=$?
  1630. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1631. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1632. { { case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. $as_echo "$ac_try_echo"; } >&5
  1638. (eval "$ac_try") 2>&5
  1639. ac_status=$?
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; }; }; then :
  1642. ac_retval=0
  1643. else
  1644. $as_echo "$as_me: program exited with status $ac_status" >&5
  1645. $as_echo "$as_me: failed program was:" >&5
  1646. sed 's/^/| /' conftest.$ac_ext >&5
  1647. ac_retval=$ac_status
  1648. fi
  1649. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. as_fn_set_status $ac_retval
  1652. } # ac_fn_c_try_run
  1653. # ac_fn_c_check_func LINENO FUNC VAR
  1654. # ----------------------------------
  1655. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1656. ac_fn_c_check_func ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if eval \${$3+:} false; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1668. #define $2 innocuous_$2
  1669. /* System header to define __stub macros and hopefully few prototypes,
  1670. which can conflict with char $2 (); below.
  1671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1672. <limits.h> exists even on freestanding compilers. */
  1673. #ifdef __STDC__
  1674. # include <limits.h>
  1675. #else
  1676. # include <assert.h>
  1677. #endif
  1678. #undef $2
  1679. /* Override any GCC internal prototype to avoid an error.
  1680. Use char because int might match the return type of a GCC
  1681. builtin and then its argument prototype would still apply. */
  1682. #ifdef __cplusplus
  1683. extern "C"
  1684. #endif
  1685. char $2 ();
  1686. /* The GNU C library defines this for functions which it implements
  1687. to always fail with ENOSYS. Some functions are actually named
  1688. something starting with __ and the normal name is an alias. */
  1689. #if defined __stub_$2 || defined __stub___$2
  1690. choke me
  1691. #endif
  1692. int
  1693. main ()
  1694. {
  1695. return $2 ();
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_link "$LINENO"; then :
  1701. eval "$3=yes"
  1702. else
  1703. eval "$3=no"
  1704. fi
  1705. rm -f core conftest.err conftest.$ac_objext \
  1706. conftest$ac_exeext conftest.$ac_ext
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1712. } # ac_fn_c_check_func
  1713. # ac_fn_cxx_try_cpp LINENO
  1714. # ------------------------
  1715. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1716. ac_fn_cxx_try_cpp ()
  1717. {
  1718. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1719. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1720. case "(($ac_try" in
  1721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1722. *) ac_try_echo=$ac_try;;
  1723. esac
  1724. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1725. $as_echo "$ac_try_echo"; } >&5
  1726. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1727. ac_status=$?
  1728. if test -s conftest.err; then
  1729. grep -v '^ *+' conftest.err >conftest.er1
  1730. cat conftest.er1 >&5
  1731. mv -f conftest.er1 conftest.err
  1732. fi
  1733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1734. test $ac_status = 0; } > conftest.i && {
  1735. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1736. test ! -s conftest.err
  1737. }; then :
  1738. ac_retval=0
  1739. else
  1740. $as_echo "$as_me: failed program was:" >&5
  1741. sed 's/^/| /' conftest.$ac_ext >&5
  1742. ac_retval=1
  1743. fi
  1744. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1745. as_fn_set_status $ac_retval
  1746. } # ac_fn_cxx_try_cpp
  1747. # ac_fn_cxx_try_link LINENO
  1748. # -------------------------
  1749. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1750. ac_fn_cxx_try_link ()
  1751. {
  1752. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1753. rm -f conftest.$ac_objext conftest$ac_exeext
  1754. if { { ac_try="$ac_link"
  1755. case "(($ac_try" in
  1756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1757. *) ac_try_echo=$ac_try;;
  1758. esac
  1759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1760. $as_echo "$ac_try_echo"; } >&5
  1761. (eval "$ac_link") 2>conftest.err
  1762. ac_status=$?
  1763. if test -s conftest.err; then
  1764. grep -v '^ *+' conftest.err >conftest.er1
  1765. cat conftest.er1 >&5
  1766. mv -f conftest.er1 conftest.err
  1767. fi
  1768. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1769. test $ac_status = 0; } && {
  1770. test -z "$ac_cxx_werror_flag" ||
  1771. test ! -s conftest.err
  1772. } && test -s conftest$ac_exeext && {
  1773. test "$cross_compiling" = yes ||
  1774. test -x conftest$ac_exeext
  1775. }; then :
  1776. ac_retval=0
  1777. else
  1778. $as_echo "$as_me: failed program was:" >&5
  1779. sed 's/^/| /' conftest.$ac_ext >&5
  1780. ac_retval=1
  1781. fi
  1782. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1783. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1784. # interfere with the next link command; also delete a directory that is
  1785. # left behind by Apple's compiler. We do this before executing the actions.
  1786. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1787. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1788. as_fn_set_status $ac_retval
  1789. } # ac_fn_cxx_try_link
  1790. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1791. # -------------------------------------------------------
  1792. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1793. # the include files in INCLUDES and setting the cache variable VAR
  1794. # accordingly.
  1795. ac_fn_c_check_header_mongrel ()
  1796. {
  1797. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1798. if eval \${$3+:} false; then :
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1800. $as_echo_n "checking for $2... " >&6; }
  1801. if eval \${$3+:} false; then :
  1802. $as_echo_n "(cached) " >&6
  1803. fi
  1804. eval ac_res=\$$3
  1805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1806. $as_echo "$ac_res" >&6; }
  1807. else
  1808. # Is the header compilable?
  1809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1810. $as_echo_n "checking $2 usability... " >&6; }
  1811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1812. /* end confdefs.h. */
  1813. $4
  1814. #include <$2>
  1815. _ACEOF
  1816. if ac_fn_c_try_compile "$LINENO"; then :
  1817. ac_header_compiler=yes
  1818. else
  1819. ac_header_compiler=no
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1823. $as_echo "$ac_header_compiler" >&6; }
  1824. # Is the header present?
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1826. $as_echo_n "checking $2 presence... " >&6; }
  1827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1828. /* end confdefs.h. */
  1829. #include <$2>
  1830. _ACEOF
  1831. if ac_fn_c_try_cpp "$LINENO"; then :
  1832. ac_header_preproc=yes
  1833. else
  1834. ac_header_preproc=no
  1835. fi
  1836. rm -f conftest.err conftest.i conftest.$ac_ext
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1838. $as_echo "$ac_header_preproc" >&6; }
  1839. # So? What about this header?
  1840. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1841. yes:no: )
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1843. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1845. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1846. ;;
  1847. no:yes:* )
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1849. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1851. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1853. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1855. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1857. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1858. ;;
  1859. esac
  1860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1861. $as_echo_n "checking for $2... " >&6; }
  1862. if eval \${$3+:} false; then :
  1863. $as_echo_n "(cached) " >&6
  1864. else
  1865. eval "$3=\$ac_header_compiler"
  1866. fi
  1867. eval ac_res=\$$3
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1869. $as_echo "$ac_res" >&6; }
  1870. fi
  1871. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1872. } # ac_fn_c_check_header_mongrel
  1873. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1874. # -------------------------------------------
  1875. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1876. # variable VAR accordingly.
  1877. ac_fn_c_check_type ()
  1878. {
  1879. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1881. $as_echo_n "checking for $2... " >&6; }
  1882. if eval \${$3+:} false; then :
  1883. $as_echo_n "(cached) " >&6
  1884. else
  1885. eval "$3=no"
  1886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1887. /* end confdefs.h. */
  1888. $4
  1889. int
  1890. main ()
  1891. {
  1892. if (sizeof ($2))
  1893. return 0;
  1894. ;
  1895. return 0;
  1896. }
  1897. _ACEOF
  1898. if ac_fn_c_try_compile "$LINENO"; then :
  1899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1900. /* end confdefs.h. */
  1901. $4
  1902. int
  1903. main ()
  1904. {
  1905. if (sizeof (($2)))
  1906. return 0;
  1907. ;
  1908. return 0;
  1909. }
  1910. _ACEOF
  1911. if ac_fn_c_try_compile "$LINENO"; then :
  1912. else
  1913. eval "$3=yes"
  1914. fi
  1915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1916. fi
  1917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1918. fi
  1919. eval ac_res=\$$3
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1921. $as_echo "$ac_res" >&6; }
  1922. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1923. } # ac_fn_c_check_type
  1924. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1925. # --------------------------------------------
  1926. # Tries to find the compile-time value of EXPR in a program that includes
  1927. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1928. # computed
  1929. ac_fn_c_compute_int ()
  1930. {
  1931. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1932. if test "$cross_compiling" = yes; then
  1933. # Depending upon the size, compute the lo and hi bounds.
  1934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1935. /* end confdefs.h. */
  1936. $4
  1937. int
  1938. main ()
  1939. {
  1940. static int test_array [1 - 2 * !(($2) >= 0)];
  1941. test_array [0] = 0;
  1942. return test_array [0];
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. if ac_fn_c_try_compile "$LINENO"; then :
  1948. ac_lo=0 ac_mid=0
  1949. while :; do
  1950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1951. /* end confdefs.h. */
  1952. $4
  1953. int
  1954. main ()
  1955. {
  1956. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1957. test_array [0] = 0;
  1958. return test_array [0];
  1959. ;
  1960. return 0;
  1961. }
  1962. _ACEOF
  1963. if ac_fn_c_try_compile "$LINENO"; then :
  1964. ac_hi=$ac_mid; break
  1965. else
  1966. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1967. if test $ac_lo -le $ac_mid; then
  1968. ac_lo= ac_hi=
  1969. break
  1970. fi
  1971. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1972. fi
  1973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1974. done
  1975. else
  1976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1977. /* end confdefs.h. */
  1978. $4
  1979. int
  1980. main ()
  1981. {
  1982. static int test_array [1 - 2 * !(($2) < 0)];
  1983. test_array [0] = 0;
  1984. return test_array [0];
  1985. ;
  1986. return 0;
  1987. }
  1988. _ACEOF
  1989. if ac_fn_c_try_compile "$LINENO"; then :
  1990. ac_hi=-1 ac_mid=-1
  1991. while :; do
  1992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1993. /* end confdefs.h. */
  1994. $4
  1995. int
  1996. main ()
  1997. {
  1998. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1999. test_array [0] = 0;
  2000. return test_array [0];
  2001. ;
  2002. return 0;
  2003. }
  2004. _ACEOF
  2005. if ac_fn_c_try_compile "$LINENO"; then :
  2006. ac_lo=$ac_mid; break
  2007. else
  2008. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2009. if test $ac_mid -le $ac_hi; then
  2010. ac_lo= ac_hi=
  2011. break
  2012. fi
  2013. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2014. fi
  2015. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. done
  2017. else
  2018. ac_lo= ac_hi=
  2019. fi
  2020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. fi
  2022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2023. # Binary search between lo and hi bounds.
  2024. while test "x$ac_lo" != "x$ac_hi"; do
  2025. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2027. /* end confdefs.h. */
  2028. $4
  2029. int
  2030. main ()
  2031. {
  2032. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2033. test_array [0] = 0;
  2034. return test_array [0];
  2035. ;
  2036. return 0;
  2037. }
  2038. _ACEOF
  2039. if ac_fn_c_try_compile "$LINENO"; then :
  2040. ac_hi=$ac_mid
  2041. else
  2042. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2043. fi
  2044. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2045. done
  2046. case $ac_lo in #((
  2047. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2048. '') ac_retval=1 ;;
  2049. esac
  2050. else
  2051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052. /* end confdefs.h. */
  2053. $4
  2054. static long int longval () { return $2; }
  2055. static unsigned long int ulongval () { return $2; }
  2056. #include <stdio.h>
  2057. #include <stdlib.h>
  2058. int
  2059. main ()
  2060. {
  2061. FILE *f = fopen ("conftest.val", "w");
  2062. if (! f)
  2063. return 1;
  2064. if (($2) < 0)
  2065. {
  2066. long int i = longval ();
  2067. if (i != ($2))
  2068. return 1;
  2069. fprintf (f, "%ld", i);
  2070. }
  2071. else
  2072. {
  2073. unsigned long int i = ulongval ();
  2074. if (i != ($2))
  2075. return 1;
  2076. fprintf (f, "%lu", i);
  2077. }
  2078. /* Do not output a trailing newline, as this causes \r\n confusion
  2079. on some platforms. */
  2080. return ferror (f) || fclose (f) != 0;
  2081. ;
  2082. return 0;
  2083. }
  2084. _ACEOF
  2085. if ac_fn_c_try_run "$LINENO"; then :
  2086. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2087. else
  2088. ac_retval=1
  2089. fi
  2090. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2091. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2092. rm -f conftest.val
  2093. fi
  2094. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2095. as_fn_set_status $ac_retval
  2096. } # ac_fn_c_compute_int
  2097. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  2098. # ---------------------------------------------
  2099. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  2100. # accordingly.
  2101. ac_fn_c_check_decl ()
  2102. {
  2103. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2104. as_decl_name=`echo $2|sed 's/ *(.*//'`
  2105. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2107. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2108. if eval \${$3+:} false; then :
  2109. $as_echo_n "(cached) " >&6
  2110. else
  2111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2112. /* end confdefs.h. */
  2113. $4
  2114. int
  2115. main ()
  2116. {
  2117. #ifndef $as_decl_name
  2118. #ifdef __cplusplus
  2119. (void) $as_decl_use;
  2120. #else
  2121. (void) $as_decl_name;
  2122. #endif
  2123. #endif
  2124. ;
  2125. return 0;
  2126. }
  2127. _ACEOF
  2128. if ac_fn_c_try_compile "$LINENO"; then :
  2129. eval "$3=yes"
  2130. else
  2131. eval "$3=no"
  2132. fi
  2133. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2134. fi
  2135. eval ac_res=\$$3
  2136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2137. $as_echo "$ac_res" >&6; }
  2138. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2139. } # ac_fn_c_check_decl
  2140. cat >config.log <<_ACEOF
  2141. This file contains any messages produced by compilers while
  2142. running configure, to aid debugging if configure makes a mistake.
  2143. It was created by GNU TM Runtime Library $as_me 1.0, which was
  2144. generated by GNU Autoconf 2.69. Invocation command line was
  2145. $ $0 $@
  2146. _ACEOF
  2147. exec 5>>config.log
  2148. {
  2149. cat <<_ASUNAME
  2150. ## --------- ##
  2151. ## Platform. ##
  2152. ## --------- ##
  2153. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2154. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2155. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2156. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2157. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2158. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2159. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2160. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2161. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2162. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2163. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2164. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2165. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2166. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2167. _ASUNAME
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. $as_echo "PATH: $as_dir"
  2174. done
  2175. IFS=$as_save_IFS
  2176. } >&5
  2177. cat >&5 <<_ACEOF
  2178. ## ----------- ##
  2179. ## Core tests. ##
  2180. ## ----------- ##
  2181. _ACEOF
  2182. # Keep a trace of the command line.
  2183. # Strip out --no-create and --no-recursion so they do not pile up.
  2184. # Strip out --silent because we don't want to record it for future runs.
  2185. # Also quote any args containing shell meta-characters.
  2186. # Make two passes to allow for proper duplicate-argument suppression.
  2187. ac_configure_args=
  2188. ac_configure_args0=
  2189. ac_configure_args1=
  2190. ac_must_keep_next=false
  2191. for ac_pass in 1 2
  2192. do
  2193. for ac_arg
  2194. do
  2195. case $ac_arg in
  2196. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2197. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2198. | -silent | --silent | --silen | --sile | --sil)
  2199. continue ;;
  2200. *\'*)
  2201. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2202. esac
  2203. case $ac_pass in
  2204. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2205. 2)
  2206. as_fn_append ac_configure_args1 " '$ac_arg'"
  2207. if test $ac_must_keep_next = true; then
  2208. ac_must_keep_next=false # Got value, back to normal.
  2209. else
  2210. case $ac_arg in
  2211. *=* | --config-cache | -C | -disable-* | --disable-* \
  2212. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2213. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2214. | -with-* | --with-* | -without-* | --without-* | --x)
  2215. case "$ac_configure_args0 " in
  2216. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2217. esac
  2218. ;;
  2219. -* ) ac_must_keep_next=true ;;
  2220. esac
  2221. fi
  2222. as_fn_append ac_configure_args " '$ac_arg'"
  2223. ;;
  2224. esac
  2225. done
  2226. done
  2227. { ac_configure_args0=; unset ac_configure_args0;}
  2228. { ac_configure_args1=; unset ac_configure_args1;}
  2229. # When interrupted or exit'd, cleanup temporary files, and complete
  2230. # config.log. We remove comments because anyway the quotes in there
  2231. # would cause problems or look ugly.
  2232. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2233. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2234. trap 'exit_status=$?
  2235. # Save into config.log some information that might help in debugging.
  2236. {
  2237. echo
  2238. $as_echo "## ---------------- ##
  2239. ## Cache variables. ##
  2240. ## ---------------- ##"
  2241. echo
  2242. # The following way of writing the cache mishandles newlines in values,
  2243. (
  2244. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2245. eval ac_val=\$$ac_var
  2246. case $ac_val in #(
  2247. *${as_nl}*)
  2248. case $ac_var in #(
  2249. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2250. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2251. esac
  2252. case $ac_var in #(
  2253. _ | IFS | as_nl) ;; #(
  2254. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2255. *) { eval $ac_var=; unset $ac_var;} ;;
  2256. esac ;;
  2257. esac
  2258. done
  2259. (set) 2>&1 |
  2260. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2261. *${as_nl}ac_space=\ *)
  2262. sed -n \
  2263. "s/'\''/'\''\\\\'\'''\''/g;
  2264. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2265. ;; #(
  2266. *)
  2267. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2268. ;;
  2269. esac |
  2270. sort
  2271. )
  2272. echo
  2273. $as_echo "## ----------------- ##
  2274. ## Output variables. ##
  2275. ## ----------------- ##"
  2276. echo
  2277. for ac_var in $ac_subst_vars
  2278. do
  2279. eval ac_val=\$$ac_var
  2280. case $ac_val in
  2281. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2282. esac
  2283. $as_echo "$ac_var='\''$ac_val'\''"
  2284. done | sort
  2285. echo
  2286. if test -n "$ac_subst_files"; then
  2287. $as_echo "## ------------------- ##
  2288. ## File substitutions. ##
  2289. ## ------------------- ##"
  2290. echo
  2291. for ac_var in $ac_subst_files
  2292. do
  2293. eval ac_val=\$$ac_var
  2294. case $ac_val in
  2295. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2296. esac
  2297. $as_echo "$ac_var='\''$ac_val'\''"
  2298. done | sort
  2299. echo
  2300. fi
  2301. if test -s confdefs.h; then
  2302. $as_echo "## ----------- ##
  2303. ## confdefs.h. ##
  2304. ## ----------- ##"
  2305. echo
  2306. cat confdefs.h
  2307. echo
  2308. fi
  2309. test "$ac_signal" != 0 &&
  2310. $as_echo "$as_me: caught signal $ac_signal"
  2311. $as_echo "$as_me: exit $exit_status"
  2312. } >&5
  2313. rm -f core *.core core.conftest.* &&
  2314. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2315. exit $exit_status
  2316. ' 0
  2317. for ac_signal in 1 2 13 15; do
  2318. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2319. done
  2320. ac_signal=0
  2321. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2322. rm -f -r conftest* confdefs.h
  2323. $as_echo "/* confdefs.h */" > confdefs.h
  2324. # Predefined preprocessor variables.
  2325. cat >>confdefs.h <<_ACEOF
  2326. #define PACKAGE_NAME "$PACKAGE_NAME"
  2327. _ACEOF
  2328. cat >>confdefs.h <<_ACEOF
  2329. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2330. _ACEOF
  2331. cat >>confdefs.h <<_ACEOF
  2332. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2333. _ACEOF
  2334. cat >>confdefs.h <<_ACEOF
  2335. #define PACKAGE_STRING "$PACKAGE_STRING"
  2336. _ACEOF
  2337. cat >>confdefs.h <<_ACEOF
  2338. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2339. _ACEOF
  2340. cat >>confdefs.h <<_ACEOF
  2341. #define PACKAGE_URL "$PACKAGE_URL"
  2342. _ACEOF
  2343. # Let the site file select an alternate cache file if it wants to.
  2344. # Prefer an explicitly selected file to automatically selected ones.
  2345. ac_site_file1=NONE
  2346. ac_site_file2=NONE
  2347. if test -n "$CONFIG_SITE"; then
  2348. # We do not want a PATH search for config.site.
  2349. case $CONFIG_SITE in #((
  2350. -*) ac_site_file1=./$CONFIG_SITE;;
  2351. */*) ac_site_file1=$CONFIG_SITE;;
  2352. *) ac_site_file1=./$CONFIG_SITE;;
  2353. esac
  2354. elif test "x$prefix" != xNONE; then
  2355. ac_site_file1=$prefix/share/config.site
  2356. ac_site_file2=$prefix/etc/config.site
  2357. else
  2358. ac_site_file1=$ac_default_prefix/share/config.site
  2359. ac_site_file2=$ac_default_prefix/etc/config.site
  2360. fi
  2361. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2362. do
  2363. test "x$ac_site_file" = xNONE && continue
  2364. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2366. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2367. sed 's/^/| /' "$ac_site_file" >&5
  2368. . "$ac_site_file" \
  2369. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2370. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2371. as_fn_error $? "failed to load site script $ac_site_file
  2372. See \`config.log' for more details" "$LINENO" 5; }
  2373. fi
  2374. done
  2375. if test -r "$cache_file"; then
  2376. # Some versions of bash will fail to source /dev/null (special files
  2377. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2378. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2380. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2381. case $cache_file in
  2382. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2383. *) . "./$cache_file";;
  2384. esac
  2385. fi
  2386. else
  2387. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2388. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2389. >$cache_file
  2390. fi
  2391. # Check that the precious variables saved in the cache have kept the same
  2392. # value.
  2393. ac_cache_corrupted=false
  2394. for ac_var in $ac_precious_vars; do
  2395. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2396. eval ac_new_set=\$ac_env_${ac_var}_set
  2397. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2398. eval ac_new_val=\$ac_env_${ac_var}_value
  2399. case $ac_old_set,$ac_new_set in
  2400. set,)
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2402. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2403. ac_cache_corrupted=: ;;
  2404. ,set)
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2406. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2407. ac_cache_corrupted=: ;;
  2408. ,);;
  2409. *)
  2410. if test "x$ac_old_val" != "x$ac_new_val"; then
  2411. # differences in whitespace do not lead to failure.
  2412. ac_old_val_w=`echo x $ac_old_val`
  2413. ac_new_val_w=`echo x $ac_new_val`
  2414. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2416. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2417. ac_cache_corrupted=:
  2418. else
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2420. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2421. eval $ac_var=\$ac_old_val
  2422. fi
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2424. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2426. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2427. fi;;
  2428. esac
  2429. # Pass precious variables to config.status.
  2430. if test "$ac_new_set" = set; then
  2431. case $ac_new_val in
  2432. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2433. *) ac_arg=$ac_var=$ac_new_val ;;
  2434. esac
  2435. case " $ac_configure_args " in
  2436. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2437. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2438. esac
  2439. fi
  2440. done
  2441. if $ac_cache_corrupted; then
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2443. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2444. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2445. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2446. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2447. fi
  2448. ## -------------------- ##
  2449. ## Main body of script. ##
  2450. ## -------------------- ##
  2451. ac_ext=c
  2452. ac_cpp='$CPP $CPPFLAGS'
  2453. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2454. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2455. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2456. ac_config_headers="$ac_config_headers config.h"
  2457. # -------
  2458. # Options
  2459. # -------
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2461. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2462. # Check whether --enable-version-specific-runtime-libs was given.
  2463. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2464. enableval=$enable_version_specific_runtime_libs;
  2465. case "$enableval" in
  2466. yes|no) ;;
  2467. *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
  2468. esac
  2469. else
  2470. enable_version_specific_runtime_libs=no
  2471. fi
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  2473. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  2474. # We would like our source tree to be readonly. However when releases or
  2475. # pre-releases are generated, the flex/bison generated files as well as the
  2476. # various formats of manuals need to be included along with the rest of the
  2477. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2478. # just that.
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
  2480. $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
  2481. # Check whether --enable-generated-files-in-srcdir was given.
  2482. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2483. enableval=$enable_generated_files_in_srcdir;
  2484. case "$enableval" in
  2485. yes|no) ;;
  2486. *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
  2487. esac
  2488. else
  2489. enable_generated_files_in_srcdir=no
  2490. fi
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2492. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2493. if test "$enable_generated_files_in_srcdir" = yes; then
  2494. GENINSRC_TRUE=
  2495. GENINSRC_FALSE='#'
  2496. else
  2497. GENINSRC_TRUE='#'
  2498. GENINSRC_FALSE=
  2499. fi
  2500. # -------
  2501. # -------
  2502. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2503. #
  2504. # You will slowly go insane if you do not grok the following fact: when
  2505. # building this library, the top-level /target/ becomes the library's /host/.
  2506. #
  2507. # configure then causes --target to default to --host, exactly like any
  2508. # other package using autoconf. Therefore, 'target' and 'host' will
  2509. # always be the same. This makes sense both for native and cross compilers
  2510. # just think about it for a little while. :-)
  2511. #
  2512. # Also, if this library is being configured as part of a cross compiler, the
  2513. # top-level configure script will pass the "real" host as $with_cross_host.
  2514. #
  2515. # Do not delete or change the following two lines. For why, see
  2516. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2517. ac_aux_dir=
  2518. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2519. if test -f "$ac_dir/install-sh"; then
  2520. ac_aux_dir=$ac_dir
  2521. ac_install_sh="$ac_aux_dir/install-sh -c"
  2522. break
  2523. elif test -f "$ac_dir/install.sh"; then
  2524. ac_aux_dir=$ac_dir
  2525. ac_install_sh="$ac_aux_dir/install.sh -c"
  2526. break
  2527. elif test -f "$ac_dir/shtool"; then
  2528. ac_aux_dir=$ac_dir
  2529. ac_install_sh="$ac_aux_dir/shtool install -c"
  2530. break
  2531. fi
  2532. done
  2533. if test -z "$ac_aux_dir"; then
  2534. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2535. fi
  2536. # These three variables are undocumented and unsupported,
  2537. # and are intended to be withdrawn in a future Autoconf release.
  2538. # They can cause serious problems if a builder's source tree is in a directory
  2539. # whose full name contains unusual characters.
  2540. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2541. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2542. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2543. # Make sure we can run config.sub.
  2544. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2545. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2547. $as_echo_n "checking build system type... " >&6; }
  2548. if ${ac_cv_build+:} false; then :
  2549. $as_echo_n "(cached) " >&6
  2550. else
  2551. ac_build_alias=$build_alias
  2552. test "x$ac_build_alias" = x &&
  2553. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2554. test "x$ac_build_alias" = x &&
  2555. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2556. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2557. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2558. fi
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2560. $as_echo "$ac_cv_build" >&6; }
  2561. case $ac_cv_build in
  2562. *-*-*) ;;
  2563. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2564. esac
  2565. build=$ac_cv_build
  2566. ac_save_IFS=$IFS; IFS='-'
  2567. set x $ac_cv_build
  2568. shift
  2569. build_cpu=$1
  2570. build_vendor=$2
  2571. shift; shift
  2572. # Remember, the first character of IFS is used to create $*,
  2573. # except with old shells:
  2574. build_os=$*
  2575. IFS=$ac_save_IFS
  2576. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2578. $as_echo_n "checking host system type... " >&6; }
  2579. if ${ac_cv_host+:} false; then :
  2580. $as_echo_n "(cached) " >&6
  2581. else
  2582. if test "x$host_alias" = x; then
  2583. ac_cv_host=$ac_cv_build
  2584. else
  2585. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2586. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2587. fi
  2588. fi
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2590. $as_echo "$ac_cv_host" >&6; }
  2591. case $ac_cv_host in
  2592. *-*-*) ;;
  2593. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2594. esac
  2595. host=$ac_cv_host
  2596. ac_save_IFS=$IFS; IFS='-'
  2597. set x $ac_cv_host
  2598. shift
  2599. host_cpu=$1
  2600. host_vendor=$2
  2601. shift; shift
  2602. # Remember, the first character of IFS is used to create $*,
  2603. # except with old shells:
  2604. host_os=$*
  2605. IFS=$ac_save_IFS
  2606. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2608. $as_echo_n "checking target system type... " >&6; }
  2609. if ${ac_cv_target+:} false; then :
  2610. $as_echo_n "(cached) " >&6
  2611. else
  2612. if test "x$target_alias" = x; then
  2613. ac_cv_target=$ac_cv_host
  2614. else
  2615. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2616. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2617. fi
  2618. fi
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2620. $as_echo "$ac_cv_target" >&6; }
  2621. case $ac_cv_target in
  2622. *-*-*) ;;
  2623. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2624. esac
  2625. target=$ac_cv_target
  2626. ac_save_IFS=$IFS; IFS='-'
  2627. set x $ac_cv_target
  2628. shift
  2629. target_cpu=$1
  2630. target_vendor=$2
  2631. shift; shift
  2632. # Remember, the first character of IFS is used to create $*,
  2633. # except with old shells:
  2634. target_os=$*
  2635. IFS=$ac_save_IFS
  2636. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2637. # The aliases save the names the user supplied, while $host etc.
  2638. # will get canonicalized.
  2639. test -n "$target_alias" &&
  2640. test "$program_prefix$program_suffix$program_transform_name" = \
  2641. NONENONEs,x,x, &&
  2642. program_prefix=${target_alias}-
  2643. target_alias=${target_alias-$host_alias}
  2644. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2645. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2646. # 1.9.0: minimum required version
  2647. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2648. # of other PACKAGE_* variables will, however, and there's nothing
  2649. # we can do about that; they come from AC_INIT).
  2650. # no-dist: we don't want 'dist' and related rules.
  2651. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2652. # file in the top srcdir, etc, etc), so stop complaining.
  2653. # -Wall: turns on all automake warnings...
  2654. # -Wno-portability: ...except this one, since GNU make is required.
  2655. # -Wno-override: ... and this one, since we do want this in testsuite.
  2656. am__api_version='1.15'
  2657. # Find a good install program. We prefer a C program (faster),
  2658. # so one script is as good as another. But avoid the broken or
  2659. # incompatible versions:
  2660. # SysV /etc/install, /usr/sbin/install
  2661. # SunOS /usr/etc/install
  2662. # IRIX /sbin/install
  2663. # AIX /bin/install
  2664. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2665. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2666. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2667. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2668. # OS/2's system install, which has a completely different semantic
  2669. # ./install, which can be erroneously created by make from ./install.sh.
  2670. # Reject install programs that cannot install multiple files.
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2672. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2673. if test -z "$INSTALL"; then
  2674. if ${ac_cv_path_install+:} false; then :
  2675. $as_echo_n "(cached) " >&6
  2676. else
  2677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2678. for as_dir in $PATH
  2679. do
  2680. IFS=$as_save_IFS
  2681. test -z "$as_dir" && as_dir=.
  2682. # Account for people who put trailing slashes in PATH elements.
  2683. case $as_dir/ in #((
  2684. ./ | .// | /[cC]/* | \
  2685. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2686. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2687. /usr/ucb/* ) ;;
  2688. *)
  2689. # OSF1 and SCO ODT 3.0 have their own names for install.
  2690. # Don't use installbsd from OSF since it installs stuff as root
  2691. # by default.
  2692. for ac_prog in ginstall scoinst install; do
  2693. for ac_exec_ext in '' $ac_executable_extensions; do
  2694. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2695. if test $ac_prog = install &&
  2696. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2697. # AIX install. It has an incompatible calling convention.
  2698. :
  2699. elif test $ac_prog = install &&
  2700. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2701. # program-specific install script used by HP pwplus--don't use.
  2702. :
  2703. else
  2704. rm -rf conftest.one conftest.two conftest.dir
  2705. echo one > conftest.one
  2706. echo two > conftest.two
  2707. mkdir conftest.dir
  2708. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2709. test -s conftest.one && test -s conftest.two &&
  2710. test -s conftest.dir/conftest.one &&
  2711. test -s conftest.dir/conftest.two
  2712. then
  2713. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2714. break 3
  2715. fi
  2716. fi
  2717. fi
  2718. done
  2719. done
  2720. ;;
  2721. esac
  2722. done
  2723. IFS=$as_save_IFS
  2724. rm -rf conftest.one conftest.two conftest.dir
  2725. fi
  2726. if test "${ac_cv_path_install+set}" = set; then
  2727. INSTALL=$ac_cv_path_install
  2728. else
  2729. # As a last resort, use the slow shell script. Don't cache a
  2730. # value for INSTALL within a source directory, because that will
  2731. # break other packages using the cache if that directory is
  2732. # removed, or if the value is a relative name.
  2733. INSTALL=$ac_install_sh
  2734. fi
  2735. fi
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2737. $as_echo "$INSTALL" >&6; }
  2738. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2739. # It thinks the first close brace ends the variable substitution.
  2740. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2741. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2742. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2744. $as_echo_n "checking whether build environment is sane... " >&6; }
  2745. # Reject unsafe characters in $srcdir or the absolute working directory
  2746. # name. Accept space and tab only in the latter.
  2747. am_lf='
  2748. '
  2749. case `pwd` in
  2750. *[\\\"\#\$\&\'\`$am_lf]*)
  2751. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2752. esac
  2753. case $srcdir in
  2754. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2755. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2756. esac
  2757. # Do 'set' in a subshell so we don't clobber the current shell's
  2758. # arguments. Must try -L first in case configure is actually a
  2759. # symlink; some systems play weird games with the mod time of symlinks
  2760. # (eg FreeBSD returns the mod time of the symlink's containing
  2761. # directory).
  2762. if (
  2763. am_has_slept=no
  2764. for am_try in 1 2; do
  2765. echo "timestamp, slept: $am_has_slept" > conftest.file
  2766. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2767. if test "$*" = "X"; then
  2768. # -L didn't work.
  2769. set X `ls -t "$srcdir/configure" conftest.file`
  2770. fi
  2771. if test "$*" != "X $srcdir/configure conftest.file" \
  2772. && test "$*" != "X conftest.file $srcdir/configure"; then
  2773. # If neither matched, then we have a broken ls. This can happen
  2774. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2775. # broken ls alias from the environment. This has actually
  2776. # happened. Such a system could not be considered "sane".
  2777. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2778. alias in your environment" "$LINENO" 5
  2779. fi
  2780. if test "$2" = conftest.file || test $am_try -eq 2; then
  2781. break
  2782. fi
  2783. # Just in case.
  2784. sleep 1
  2785. am_has_slept=yes
  2786. done
  2787. test "$2" = conftest.file
  2788. )
  2789. then
  2790. # Ok.
  2791. :
  2792. else
  2793. as_fn_error $? "newly created file is older than distributed files!
  2794. Check your system clock" "$LINENO" 5
  2795. fi
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2797. $as_echo "yes" >&6; }
  2798. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2799. # generated files are strictly newer.
  2800. am_sleep_pid=
  2801. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2802. ( sleep 1 ) &
  2803. am_sleep_pid=$!
  2804. fi
  2805. rm -f conftest.file
  2806. test "$program_prefix" != NONE &&
  2807. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2808. # Use a double $ so make ignores it.
  2809. test "$program_suffix" != NONE &&
  2810. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2811. # Double any \ or $.
  2812. # By default was `s,x,x', remove it if useless.
  2813. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2814. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2815. # Expand $ac_aux_dir to an absolute path.
  2816. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2817. if test x"${MISSING+set}" != xset; then
  2818. case $am_aux_dir in
  2819. *\ * | *\ *)
  2820. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2821. *)
  2822. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2823. esac
  2824. fi
  2825. # Use eval to expand $SHELL
  2826. if eval "$MISSING --is-lightweight"; then
  2827. am_missing_run="$MISSING "
  2828. else
  2829. am_missing_run=
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2831. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2832. fi
  2833. if test x"${install_sh+set}" != xset; then
  2834. case $am_aux_dir in
  2835. *\ * | *\ *)
  2836. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2837. *)
  2838. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2839. esac
  2840. fi
  2841. # Installed binaries are usually stripped using 'strip' when the user
  2842. # run "make install-strip". However 'strip' might not be the right
  2843. # tool to use in cross-compilation environments, therefore Automake
  2844. # will honor the 'STRIP' environment variable to overrule this program.
  2845. if test "$cross_compiling" != no; then
  2846. if test -n "$ac_tool_prefix"; then
  2847. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2848. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2850. $as_echo_n "checking for $ac_word... " >&6; }
  2851. if ${ac_cv_prog_STRIP+:} false; then :
  2852. $as_echo_n "(cached) " >&6
  2853. else
  2854. if test -n "$STRIP"; then
  2855. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2856. else
  2857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2858. for as_dir in $PATH
  2859. do
  2860. IFS=$as_save_IFS
  2861. test -z "$as_dir" && as_dir=.
  2862. for ac_exec_ext in '' $ac_executable_extensions; do
  2863. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2864. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2866. break 2
  2867. fi
  2868. done
  2869. done
  2870. IFS=$as_save_IFS
  2871. fi
  2872. fi
  2873. STRIP=$ac_cv_prog_STRIP
  2874. if test -n "$STRIP"; then
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2876. $as_echo "$STRIP" >&6; }
  2877. else
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2879. $as_echo "no" >&6; }
  2880. fi
  2881. fi
  2882. if test -z "$ac_cv_prog_STRIP"; then
  2883. ac_ct_STRIP=$STRIP
  2884. # Extract the first word of "strip", so it can be a program name with args.
  2885. set dummy strip; ac_word=$2
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2887. $as_echo_n "checking for $ac_word... " >&6; }
  2888. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2889. $as_echo_n "(cached) " >&6
  2890. else
  2891. if test -n "$ac_ct_STRIP"; then
  2892. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2893. else
  2894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2895. for as_dir in $PATH
  2896. do
  2897. IFS=$as_save_IFS
  2898. test -z "$as_dir" && as_dir=.
  2899. for ac_exec_ext in '' $ac_executable_extensions; do
  2900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2901. ac_cv_prog_ac_ct_STRIP="strip"
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2903. break 2
  2904. fi
  2905. done
  2906. done
  2907. IFS=$as_save_IFS
  2908. fi
  2909. fi
  2910. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2911. if test -n "$ac_ct_STRIP"; then
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2913. $as_echo "$ac_ct_STRIP" >&6; }
  2914. else
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2916. $as_echo "no" >&6; }
  2917. fi
  2918. if test "x$ac_ct_STRIP" = x; then
  2919. STRIP=":"
  2920. else
  2921. case $cross_compiling:$ac_tool_warned in
  2922. yes:)
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2925. ac_tool_warned=yes ;;
  2926. esac
  2927. STRIP=$ac_ct_STRIP
  2928. fi
  2929. else
  2930. STRIP="$ac_cv_prog_STRIP"
  2931. fi
  2932. fi
  2933. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2935. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2936. if test -z "$MKDIR_P"; then
  2937. if ${ac_cv_path_mkdir+:} false; then :
  2938. $as_echo_n "(cached) " >&6
  2939. else
  2940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2941. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2942. do
  2943. IFS=$as_save_IFS
  2944. test -z "$as_dir" && as_dir=.
  2945. for ac_prog in mkdir gmkdir; do
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2948. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2949. 'mkdir (GNU coreutils) '* | \
  2950. 'mkdir (coreutils) '* | \
  2951. 'mkdir (fileutils) '4.1*)
  2952. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2953. break 3;;
  2954. esac
  2955. done
  2956. done
  2957. done
  2958. IFS=$as_save_IFS
  2959. fi
  2960. test -d ./--version && rmdir ./--version
  2961. if test "${ac_cv_path_mkdir+set}" = set; then
  2962. MKDIR_P="$ac_cv_path_mkdir -p"
  2963. else
  2964. # As a last resort, use the slow shell script. Don't cache a
  2965. # value for MKDIR_P within a source directory, because that will
  2966. # break other packages using the cache if that directory is
  2967. # removed, or if the value is a relative name.
  2968. MKDIR_P="$ac_install_sh -d"
  2969. fi
  2970. fi
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2972. $as_echo "$MKDIR_P" >&6; }
  2973. for ac_prog in gawk mawk nawk awk
  2974. do
  2975. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2976. set dummy $ac_prog; ac_word=$2
  2977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2978. $as_echo_n "checking for $ac_word... " >&6; }
  2979. if ${ac_cv_prog_AWK+:} false; then :
  2980. $as_echo_n "(cached) " >&6
  2981. else
  2982. if test -n "$AWK"; then
  2983. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2984. else
  2985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2986. for as_dir in $PATH
  2987. do
  2988. IFS=$as_save_IFS
  2989. test -z "$as_dir" && as_dir=.
  2990. for ac_exec_ext in '' $ac_executable_extensions; do
  2991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2992. ac_cv_prog_AWK="$ac_prog"
  2993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2994. break 2
  2995. fi
  2996. done
  2997. done
  2998. IFS=$as_save_IFS
  2999. fi
  3000. fi
  3001. AWK=$ac_cv_prog_AWK
  3002. if test -n "$AWK"; then
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3004. $as_echo "$AWK" >&6; }
  3005. else
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3007. $as_echo "no" >&6; }
  3008. fi
  3009. test -n "$AWK" && break
  3010. done
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3012. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3013. set x ${MAKE-make}
  3014. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3015. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. cat >conftest.make <<\_ACEOF
  3019. SHELL = /bin/sh
  3020. all:
  3021. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3022. _ACEOF
  3023. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3024. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3025. *@@@%%%=?*=@@@%%%*)
  3026. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3027. *)
  3028. eval ac_cv_prog_make_${ac_make}_set=no;;
  3029. esac
  3030. rm -f conftest.make
  3031. fi
  3032. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3034. $as_echo "yes" >&6; }
  3035. SET_MAKE=
  3036. else
  3037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3038. $as_echo "no" >&6; }
  3039. SET_MAKE="MAKE=${MAKE-make}"
  3040. fi
  3041. rm -rf .tst 2>/dev/null
  3042. mkdir .tst 2>/dev/null
  3043. if test -d .tst; then
  3044. am__leading_dot=.
  3045. else
  3046. am__leading_dot=_
  3047. fi
  3048. rmdir .tst 2>/dev/null
  3049. # Check whether --enable-silent-rules was given.
  3050. if test "${enable_silent_rules+set}" = set; then :
  3051. enableval=$enable_silent_rules;
  3052. fi
  3053. case $enable_silent_rules in # (((
  3054. yes) AM_DEFAULT_VERBOSITY=0;;
  3055. no) AM_DEFAULT_VERBOSITY=1;;
  3056. *) AM_DEFAULT_VERBOSITY=1;;
  3057. esac
  3058. am_make=${MAKE-make}
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  3060. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  3061. if ${am_cv_make_support_nested_variables+:} false; then :
  3062. $as_echo_n "(cached) " >&6
  3063. else
  3064. if $as_echo 'TRUE=$(BAR$(V))
  3065. BAR0=false
  3066. BAR1=true
  3067. V=1
  3068. am__doit:
  3069. @$(TRUE)
  3070. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  3071. am_cv_make_support_nested_variables=yes
  3072. else
  3073. am_cv_make_support_nested_variables=no
  3074. fi
  3075. fi
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  3077. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  3078. if test $am_cv_make_support_nested_variables = yes; then
  3079. AM_V='$(V)'
  3080. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  3081. else
  3082. AM_V=$AM_DEFAULT_VERBOSITY
  3083. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  3084. fi
  3085. AM_BACKSLASH='\'
  3086. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3087. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3088. # is not polluted with repeated "-I."
  3089. am__isrc=' -I$(srcdir)'
  3090. # test to see if srcdir already configured
  3091. if test -f $srcdir/config.status; then
  3092. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3093. fi
  3094. fi
  3095. # test whether we have cygpath
  3096. if test -z "$CYGPATH_W"; then
  3097. if (cygpath --version) >/dev/null 2>/dev/null; then
  3098. CYGPATH_W='cygpath -w'
  3099. else
  3100. CYGPATH_W=echo
  3101. fi
  3102. fi
  3103. # Define the identity of the package.
  3104. PACKAGE='libitm'
  3105. VERSION='1.0'
  3106. cat >>confdefs.h <<_ACEOF
  3107. #define PACKAGE "$PACKAGE"
  3108. _ACEOF
  3109. cat >>confdefs.h <<_ACEOF
  3110. #define VERSION "$VERSION"
  3111. _ACEOF
  3112. # Some tools Automake needs.
  3113. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3114. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3115. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3116. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3117. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3118. # For better backward compatibility. To be removed once Automake 1.9.x
  3119. # dies out for good. For more background, see:
  3120. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3121. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3122. mkdir_p='$(MKDIR_P)'
  3123. # We need awk for the "check" target (and possibly the TAP driver). The
  3124. # system "awk" is bad on some platforms.
  3125. # Always define AMTAR for backward compatibility. Yes, it's still used
  3126. # in the wild :-( We should find a proper way to deprecate it ...
  3127. AMTAR='$${TAR-tar}'
  3128. # We'll loop over all known methods to create a tar archive until one works.
  3129. _am_tools='gnutar pax cpio none'
  3130. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3131. # POSIX will say in a future version that running "rm -f" with no argument
  3132. # is OK; and we want to be able to make that assumption in our Makefile
  3133. # recipes. So use an aggressive probe to check that the usage we want is
  3134. # actually supported "in the wild" to an acceptable degree.
  3135. # See automake bug#10828.
  3136. # To make any issue more visible, cause the running configure to be aborted
  3137. # by default if the 'rm' program in use doesn't match our expectations; the
  3138. # user can still override this though.
  3139. if rm -f && rm -fr && rm -rf; then : OK; else
  3140. cat >&2 <<'END'
  3141. Oops!
  3142. Your 'rm' program seems unable to run without file operands specified
  3143. on the command line, even when the '-f' option is present. This is contrary
  3144. to the behaviour of most rm programs out there, and not conforming with
  3145. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3146. Please tell bug-automake@gnu.org about your system, including the value
  3147. of your $PATH and any error possibly output before this message. This
  3148. can help us improve future automake versions.
  3149. END
  3150. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3151. echo 'Configuration will proceed anyway, since you have set the' >&2
  3152. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3153. echo >&2
  3154. else
  3155. cat >&2 <<'END'
  3156. Aborting the configuration process, to ensure you take notice of the issue.
  3157. You can download and install GNU coreutils to get an 'rm' implementation
  3158. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3159. If you want to complete the configuration process using your problematic
  3160. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3161. to "yes", and re-run configure.
  3162. END
  3163. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3164. fi
  3165. fi
  3166. # Default to --enable-multilib
  3167. # Check whether --enable-multilib was given.
  3168. if test "${enable_multilib+set}" = set; then :
  3169. enableval=$enable_multilib; case "$enableval" in
  3170. yes) multilib=yes ;;
  3171. no) multilib=no ;;
  3172. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3173. esac
  3174. else
  3175. multilib=yes
  3176. fi
  3177. # We may get other options which we leave undocumented:
  3178. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3179. # See config-ml.in if you want the gory details.
  3180. if test "$srcdir" = "."; then
  3181. if test "$with_target_subdir" != "."; then
  3182. multi_basedir="$srcdir/$with_multisrctop../.."
  3183. else
  3184. multi_basedir="$srcdir/$with_multisrctop.."
  3185. fi
  3186. else
  3187. multi_basedir="$srcdir/.."
  3188. fi
  3189. # Even if the default multilib is not a cross compilation,
  3190. # it may be that some of the other multilibs are.
  3191. if test $cross_compiling = no && test $multilib = yes \
  3192. && test "x${with_multisubdir}" != x ; then
  3193. cross_compiling=maybe
  3194. fi
  3195. ac_config_commands="$ac_config_commands default-1"
  3196. # Check whether --with-toolexeclibdir was given.
  3197. if test "${with_toolexeclibdir+set}" = set; then :
  3198. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  3199. /)
  3200. ;;
  3201. */)
  3202. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  3203. ;;
  3204. esac
  3205. else
  3206. with_toolexeclibdir=no
  3207. fi
  3208. # Calculate toolexeclibdir
  3209. # Also toolexecdir, though it's only used in toolexeclibdir
  3210. case ${enable_version_specific_runtime_libs} in
  3211. yes)
  3212. # Need the gcc compiler version to know where to install libraries
  3213. # and header files if --enable-version-specific-runtime-libs option
  3214. # is selected.
  3215. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3216. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3217. ;;
  3218. no)
  3219. if test -n "$with_cross_host" &&
  3220. test x"$with_cross_host" != x"no"; then
  3221. # Install a library built with a cross compiler in tooldir, not libdir.
  3222. toolexecdir='$(exec_prefix)/$(target_alias)'
  3223. case ${with_toolexeclibdir} in
  3224. no)
  3225. toolexeclibdir='$(toolexecdir)/lib'
  3226. ;;
  3227. *)
  3228. toolexeclibdir=${with_toolexeclibdir}
  3229. ;;
  3230. esac
  3231. else
  3232. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3233. toolexeclibdir='$(libdir)'
  3234. fi
  3235. multi_os_directory=`$CC -print-multi-os-directory`
  3236. case $multi_os_directory in
  3237. .) ;; # Avoid trailing /.
  3238. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3239. esac
  3240. ;;
  3241. esac
  3242. # Check the compiler.
  3243. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3244. # We must force CC to /not/ be precious variables; otherwise
  3245. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3246. # As a side effect, we have to subst CFLAGS ourselves.
  3247. ac_ext=c
  3248. ac_cpp='$CPP $CPPFLAGS'
  3249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3252. if test -n "$ac_tool_prefix"; then
  3253. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3254. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3256. $as_echo_n "checking for $ac_word... " >&6; }
  3257. if ${ac_cv_prog_CC+:} false; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. if test -n "$CC"; then
  3261. ac_cv_prog_CC="$CC" # Let the user override the test.
  3262. else
  3263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3264. for as_dir in $PATH
  3265. do
  3266. IFS=$as_save_IFS
  3267. test -z "$as_dir" && as_dir=.
  3268. for ac_exec_ext in '' $ac_executable_extensions; do
  3269. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3270. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3272. break 2
  3273. fi
  3274. done
  3275. done
  3276. IFS=$as_save_IFS
  3277. fi
  3278. fi
  3279. CC=$ac_cv_prog_CC
  3280. if test -n "$CC"; then
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3282. $as_echo "$CC" >&6; }
  3283. else
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3285. $as_echo "no" >&6; }
  3286. fi
  3287. fi
  3288. if test -z "$ac_cv_prog_CC"; then
  3289. ac_ct_CC=$CC
  3290. # Extract the first word of "gcc", so it can be a program name with args.
  3291. set dummy gcc; ac_word=$2
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3293. $as_echo_n "checking for $ac_word... " >&6; }
  3294. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. if test -n "$ac_ct_CC"; then
  3298. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. test -z "$as_dir" && as_dir=.
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3307. ac_cv_prog_ac_ct_CC="gcc"
  3308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3309. break 2
  3310. fi
  3311. done
  3312. done
  3313. IFS=$as_save_IFS
  3314. fi
  3315. fi
  3316. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3317. if test -n "$ac_ct_CC"; then
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3319. $as_echo "$ac_ct_CC" >&6; }
  3320. else
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3322. $as_echo "no" >&6; }
  3323. fi
  3324. if test "x$ac_ct_CC" = x; then
  3325. CC=""
  3326. else
  3327. case $cross_compiling:$ac_tool_warned in
  3328. yes:)
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3330. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3331. ac_tool_warned=yes ;;
  3332. esac
  3333. CC=$ac_ct_CC
  3334. fi
  3335. else
  3336. CC="$ac_cv_prog_CC"
  3337. fi
  3338. if test -z "$CC"; then
  3339. if test -n "$ac_tool_prefix"; then
  3340. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3341. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3343. $as_echo_n "checking for $ac_word... " >&6; }
  3344. if ${ac_cv_prog_CC+:} false; then :
  3345. $as_echo_n "(cached) " >&6
  3346. else
  3347. if test -n "$CC"; then
  3348. ac_cv_prog_CC="$CC" # Let the user override the test.
  3349. else
  3350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3351. for as_dir in $PATH
  3352. do
  3353. IFS=$as_save_IFS
  3354. test -z "$as_dir" && as_dir=.
  3355. for ac_exec_ext in '' $ac_executable_extensions; do
  3356. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3357. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3358. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3359. break 2
  3360. fi
  3361. done
  3362. done
  3363. IFS=$as_save_IFS
  3364. fi
  3365. fi
  3366. CC=$ac_cv_prog_CC
  3367. if test -n "$CC"; then
  3368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3369. $as_echo "$CC" >&6; }
  3370. else
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3372. $as_echo "no" >&6; }
  3373. fi
  3374. fi
  3375. fi
  3376. if test -z "$CC"; then
  3377. # Extract the first word of "cc", so it can be a program name with args.
  3378. set dummy cc; ac_word=$2
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3380. $as_echo_n "checking for $ac_word... " >&6; }
  3381. if ${ac_cv_prog_CC+:} false; then :
  3382. $as_echo_n "(cached) " >&6
  3383. else
  3384. if test -n "$CC"; then
  3385. ac_cv_prog_CC="$CC" # Let the user override the test.
  3386. else
  3387. ac_prog_rejected=no
  3388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3389. for as_dir in $PATH
  3390. do
  3391. IFS=$as_save_IFS
  3392. test -z "$as_dir" && as_dir=.
  3393. for ac_exec_ext in '' $ac_executable_extensions; do
  3394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3395. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3396. ac_prog_rejected=yes
  3397. continue
  3398. fi
  3399. ac_cv_prog_CC="cc"
  3400. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3401. break 2
  3402. fi
  3403. done
  3404. done
  3405. IFS=$as_save_IFS
  3406. if test $ac_prog_rejected = yes; then
  3407. # We found a bogon in the path, so make sure we never use it.
  3408. set dummy $ac_cv_prog_CC
  3409. shift
  3410. if test $# != 0; then
  3411. # We chose a different compiler from the bogus one.
  3412. # However, it has the same basename, so the bogon will be chosen
  3413. # first if we set CC to just the basename; use the full file name.
  3414. shift
  3415. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3416. fi
  3417. fi
  3418. fi
  3419. fi
  3420. CC=$ac_cv_prog_CC
  3421. if test -n "$CC"; then
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3423. $as_echo "$CC" >&6; }
  3424. else
  3425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3426. $as_echo "no" >&6; }
  3427. fi
  3428. fi
  3429. if test -z "$CC"; then
  3430. if test -n "$ac_tool_prefix"; then
  3431. for ac_prog in cl.exe
  3432. do
  3433. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3434. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3436. $as_echo_n "checking for $ac_word... " >&6; }
  3437. if ${ac_cv_prog_CC+:} false; then :
  3438. $as_echo_n "(cached) " >&6
  3439. else
  3440. if test -n "$CC"; then
  3441. ac_cv_prog_CC="$CC" # Let the user override the test.
  3442. else
  3443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3444. for as_dir in $PATH
  3445. do
  3446. IFS=$as_save_IFS
  3447. test -z "$as_dir" && as_dir=.
  3448. for ac_exec_ext in '' $ac_executable_extensions; do
  3449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3450. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3452. break 2
  3453. fi
  3454. done
  3455. done
  3456. IFS=$as_save_IFS
  3457. fi
  3458. fi
  3459. CC=$ac_cv_prog_CC
  3460. if test -n "$CC"; then
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3462. $as_echo "$CC" >&6; }
  3463. else
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3465. $as_echo "no" >&6; }
  3466. fi
  3467. test -n "$CC" && break
  3468. done
  3469. fi
  3470. if test -z "$CC"; then
  3471. ac_ct_CC=$CC
  3472. for ac_prog in cl.exe
  3473. do
  3474. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3475. set dummy $ac_prog; ac_word=$2
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3477. $as_echo_n "checking for $ac_word... " >&6; }
  3478. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3479. $as_echo_n "(cached) " >&6
  3480. else
  3481. if test -n "$ac_ct_CC"; then
  3482. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3483. else
  3484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3485. for as_dir in $PATH
  3486. do
  3487. IFS=$as_save_IFS
  3488. test -z "$as_dir" && as_dir=.
  3489. for ac_exec_ext in '' $ac_executable_extensions; do
  3490. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3491. ac_cv_prog_ac_ct_CC="$ac_prog"
  3492. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3493. break 2
  3494. fi
  3495. done
  3496. done
  3497. IFS=$as_save_IFS
  3498. fi
  3499. fi
  3500. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3501. if test -n "$ac_ct_CC"; then
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3503. $as_echo "$ac_ct_CC" >&6; }
  3504. else
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3506. $as_echo "no" >&6; }
  3507. fi
  3508. test -n "$ac_ct_CC" && break
  3509. done
  3510. if test "x$ac_ct_CC" = x; then
  3511. CC=""
  3512. else
  3513. case $cross_compiling:$ac_tool_warned in
  3514. yes:)
  3515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3516. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3517. ac_tool_warned=yes ;;
  3518. esac
  3519. CC=$ac_ct_CC
  3520. fi
  3521. fi
  3522. fi
  3523. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3524. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3525. as_fn_error $? "no acceptable C compiler found in \$PATH
  3526. See \`config.log' for more details" "$LINENO" 5; }
  3527. # Provide some information about the compiler.
  3528. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3529. set X $ac_compile
  3530. ac_compiler=$2
  3531. for ac_option in --version -v -V -qversion; do
  3532. { { ac_try="$ac_compiler $ac_option >&5"
  3533. case "(($ac_try" in
  3534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3535. *) ac_try_echo=$ac_try;;
  3536. esac
  3537. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3538. $as_echo "$ac_try_echo"; } >&5
  3539. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3540. ac_status=$?
  3541. if test -s conftest.err; then
  3542. sed '10a\
  3543. ... rest of stderr output deleted ...
  3544. 10q' conftest.err >conftest.er1
  3545. cat conftest.er1 >&5
  3546. fi
  3547. rm -f conftest.er1 conftest.err
  3548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3549. test $ac_status = 0; }
  3550. done
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. int
  3554. main ()
  3555. {
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. ac_clean_files_save=$ac_clean_files
  3561. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3562. # Try to create an executable without -o first, disregard a.out.
  3563. # It will help us diagnose broken compilers, and finding out an intuition
  3564. # of exeext.
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3566. $as_echo_n "checking whether the C compiler works... " >&6; }
  3567. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3568. # The possible output files:
  3569. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3570. ac_rmfiles=
  3571. for ac_file in $ac_files
  3572. do
  3573. case $ac_file in
  3574. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3575. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3576. esac
  3577. done
  3578. rm -f $ac_rmfiles
  3579. if { { ac_try="$ac_link_default"
  3580. case "(($ac_try" in
  3581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3582. *) ac_try_echo=$ac_try;;
  3583. esac
  3584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3585. $as_echo "$ac_try_echo"; } >&5
  3586. (eval "$ac_link_default") 2>&5
  3587. ac_status=$?
  3588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3589. test $ac_status = 0; }; then :
  3590. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3591. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3592. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3593. # so that the user can short-circuit this test for compilers unknown to
  3594. # Autoconf.
  3595. for ac_file in $ac_files ''
  3596. do
  3597. test -f "$ac_file" || continue
  3598. case $ac_file in
  3599. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3600. ;;
  3601. [ab].out )
  3602. # We found the default executable, but exeext='' is most
  3603. # certainly right.
  3604. break;;
  3605. *.* )
  3606. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3607. then :; else
  3608. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3609. fi
  3610. # We set ac_cv_exeext here because the later test for it is not
  3611. # safe: cross compilers may not add the suffix if given an `-o'
  3612. # argument, so we may need to know it at that point already.
  3613. # Even if this section looks crufty: it has the advantage of
  3614. # actually working.
  3615. break;;
  3616. * )
  3617. break;;
  3618. esac
  3619. done
  3620. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3621. else
  3622. ac_file=''
  3623. fi
  3624. if test -z "$ac_file"; then :
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3626. $as_echo "no" >&6; }
  3627. $as_echo "$as_me: failed program was:" >&5
  3628. sed 's/^/| /' conftest.$ac_ext >&5
  3629. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3630. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3631. as_fn_error 77 "C compiler cannot create executables
  3632. See \`config.log' for more details" "$LINENO" 5; }
  3633. else
  3634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3635. $as_echo "yes" >&6; }
  3636. fi
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3638. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3640. $as_echo "$ac_file" >&6; }
  3641. ac_exeext=$ac_cv_exeext
  3642. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3643. ac_clean_files=$ac_clean_files_save
  3644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3645. $as_echo_n "checking for suffix of executables... " >&6; }
  3646. if { { ac_try="$ac_link"
  3647. case "(($ac_try" in
  3648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3649. *) ac_try_echo=$ac_try;;
  3650. esac
  3651. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3652. $as_echo "$ac_try_echo"; } >&5
  3653. (eval "$ac_link") 2>&5
  3654. ac_status=$?
  3655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3656. test $ac_status = 0; }; then :
  3657. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3658. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3659. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3660. # `rm'.
  3661. for ac_file in conftest.exe conftest conftest.*; do
  3662. test -f "$ac_file" || continue
  3663. case $ac_file in
  3664. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3665. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3666. break;;
  3667. * ) break;;
  3668. esac
  3669. done
  3670. else
  3671. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3672. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3673. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3674. See \`config.log' for more details" "$LINENO" 5; }
  3675. fi
  3676. rm -f conftest conftest$ac_cv_exeext
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3678. $as_echo "$ac_cv_exeext" >&6; }
  3679. rm -f conftest.$ac_ext
  3680. EXEEXT=$ac_cv_exeext
  3681. ac_exeext=$EXEEXT
  3682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3683. /* end confdefs.h. */
  3684. #include <stdio.h>
  3685. int
  3686. main ()
  3687. {
  3688. FILE *f = fopen ("conftest.out", "w");
  3689. return ferror (f) || fclose (f) != 0;
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. ac_clean_files="$ac_clean_files conftest.out"
  3695. # Check that the compiler produces executables we can run. If not, either
  3696. # the compiler is broken, or we cross compile.
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3698. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3699. if test "$cross_compiling" != yes; then
  3700. { { ac_try="$ac_link"
  3701. case "(($ac_try" in
  3702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3703. *) ac_try_echo=$ac_try;;
  3704. esac
  3705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3706. $as_echo "$ac_try_echo"; } >&5
  3707. (eval "$ac_link") 2>&5
  3708. ac_status=$?
  3709. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3710. test $ac_status = 0; }
  3711. if { ac_try='./conftest$ac_cv_exeext'
  3712. { { case "(($ac_try" in
  3713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3714. *) ac_try_echo=$ac_try;;
  3715. esac
  3716. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3717. $as_echo "$ac_try_echo"; } >&5
  3718. (eval "$ac_try") 2>&5
  3719. ac_status=$?
  3720. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3721. test $ac_status = 0; }; }; then
  3722. cross_compiling=no
  3723. else
  3724. if test "$cross_compiling" = maybe; then
  3725. cross_compiling=yes
  3726. else
  3727. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3728. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3729. as_fn_error $? "cannot run C compiled programs.
  3730. If you meant to cross compile, use \`--host'.
  3731. See \`config.log' for more details" "$LINENO" 5; }
  3732. fi
  3733. fi
  3734. fi
  3735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3736. $as_echo "$cross_compiling" >&6; }
  3737. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3738. ac_clean_files=$ac_clean_files_save
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3740. $as_echo_n "checking for suffix of object files... " >&6; }
  3741. if ${ac_cv_objext+:} false; then :
  3742. $as_echo_n "(cached) " >&6
  3743. else
  3744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3745. /* end confdefs.h. */
  3746. int
  3747. main ()
  3748. {
  3749. ;
  3750. return 0;
  3751. }
  3752. _ACEOF
  3753. rm -f conftest.o conftest.obj
  3754. if { { ac_try="$ac_compile"
  3755. case "(($ac_try" in
  3756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3757. *) ac_try_echo=$ac_try;;
  3758. esac
  3759. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3760. $as_echo "$ac_try_echo"; } >&5
  3761. (eval "$ac_compile") 2>&5
  3762. ac_status=$?
  3763. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3764. test $ac_status = 0; }; then :
  3765. for ac_file in conftest.o conftest.obj conftest.*; do
  3766. test -f "$ac_file" || continue;
  3767. case $ac_file in
  3768. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3769. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3770. break;;
  3771. esac
  3772. done
  3773. else
  3774. $as_echo "$as_me: failed program was:" >&5
  3775. sed 's/^/| /' conftest.$ac_ext >&5
  3776. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3777. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3778. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3779. See \`config.log' for more details" "$LINENO" 5; }
  3780. fi
  3781. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3782. fi
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3784. $as_echo "$ac_cv_objext" >&6; }
  3785. OBJEXT=$ac_cv_objext
  3786. ac_objext=$OBJEXT
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3788. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3789. if ${ac_cv_c_compiler_gnu+:} false; then :
  3790. $as_echo_n "(cached) " >&6
  3791. else
  3792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3793. /* end confdefs.h. */
  3794. int
  3795. main ()
  3796. {
  3797. #ifndef __GNUC__
  3798. choke me
  3799. #endif
  3800. ;
  3801. return 0;
  3802. }
  3803. _ACEOF
  3804. if ac_fn_c_try_compile "$LINENO"; then :
  3805. ac_compiler_gnu=yes
  3806. else
  3807. ac_compiler_gnu=no
  3808. fi
  3809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3810. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3811. fi
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3813. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3814. if test $ac_compiler_gnu = yes; then
  3815. GCC=yes
  3816. else
  3817. GCC=
  3818. fi
  3819. ac_test_CFLAGS=${CFLAGS+set}
  3820. ac_save_CFLAGS=$CFLAGS
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3822. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3823. if ${ac_cv_prog_cc_g+:} false; then :
  3824. $as_echo_n "(cached) " >&6
  3825. else
  3826. ac_save_c_werror_flag=$ac_c_werror_flag
  3827. ac_c_werror_flag=yes
  3828. ac_cv_prog_cc_g=no
  3829. CFLAGS="-g"
  3830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3831. /* end confdefs.h. */
  3832. int
  3833. main ()
  3834. {
  3835. ;
  3836. return 0;
  3837. }
  3838. _ACEOF
  3839. if ac_fn_c_try_compile "$LINENO"; then :
  3840. ac_cv_prog_cc_g=yes
  3841. else
  3842. CFLAGS=""
  3843. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3844. /* end confdefs.h. */
  3845. int
  3846. main ()
  3847. {
  3848. ;
  3849. return 0;
  3850. }
  3851. _ACEOF
  3852. if ac_fn_c_try_compile "$LINENO"; then :
  3853. else
  3854. ac_c_werror_flag=$ac_save_c_werror_flag
  3855. CFLAGS="-g"
  3856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3857. /* end confdefs.h. */
  3858. int
  3859. main ()
  3860. {
  3861. ;
  3862. return 0;
  3863. }
  3864. _ACEOF
  3865. if ac_fn_c_try_compile "$LINENO"; then :
  3866. ac_cv_prog_cc_g=yes
  3867. fi
  3868. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3869. fi
  3870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3871. fi
  3872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3873. ac_c_werror_flag=$ac_save_c_werror_flag
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3876. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3877. if test "$ac_test_CFLAGS" = set; then
  3878. CFLAGS=$ac_save_CFLAGS
  3879. elif test $ac_cv_prog_cc_g = yes; then
  3880. if test "$GCC" = yes; then
  3881. CFLAGS="-g -O2"
  3882. else
  3883. CFLAGS="-g"
  3884. fi
  3885. else
  3886. if test "$GCC" = yes; then
  3887. CFLAGS="-O2"
  3888. else
  3889. CFLAGS=
  3890. fi
  3891. fi
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3893. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3894. if ${ac_cv_prog_cc_c89+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. ac_cv_prog_cc_c89=no
  3898. ac_save_CC=$CC
  3899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3900. /* end confdefs.h. */
  3901. #include <stdarg.h>
  3902. #include <stdio.h>
  3903. struct stat;
  3904. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3905. struct buf { int x; };
  3906. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3907. static char *e (p, i)
  3908. char **p;
  3909. int i;
  3910. {
  3911. return p[i];
  3912. }
  3913. static char *f (char * (*g) (char **, int), char **p, ...)
  3914. {
  3915. char *s;
  3916. va_list v;
  3917. va_start (v,p);
  3918. s = g (p, va_arg (v,int));
  3919. va_end (v);
  3920. return s;
  3921. }
  3922. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3923. function prototypes and stuff, but not '\xHH' hex character constants.
  3924. These don't provoke an error unfortunately, instead are silently treated
  3925. as 'x'. The following induces an error, until -std is added to get
  3926. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3927. array size at least. It's necessary to write '\x00'==0 to get something
  3928. that's true only with -std. */
  3929. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3930. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3931. inside strings and character constants. */
  3932. #define FOO(x) 'x'
  3933. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3934. int test (int i, double x);
  3935. struct s1 {int (*f) (int a);};
  3936. struct s2 {int (*f) (double a);};
  3937. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3938. int argc;
  3939. char **argv;
  3940. int
  3941. main ()
  3942. {
  3943. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3944. ;
  3945. return 0;
  3946. }
  3947. _ACEOF
  3948. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3949. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3950. do
  3951. CC="$ac_save_CC $ac_arg"
  3952. if ac_fn_c_try_compile "$LINENO"; then :
  3953. ac_cv_prog_cc_c89=$ac_arg
  3954. fi
  3955. rm -f core conftest.err conftest.$ac_objext
  3956. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3957. done
  3958. rm -f conftest.$ac_ext
  3959. CC=$ac_save_CC
  3960. fi
  3961. # AC_CACHE_VAL
  3962. case "x$ac_cv_prog_cc_c89" in
  3963. x)
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3965. $as_echo "none needed" >&6; } ;;
  3966. xno)
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3968. $as_echo "unsupported" >&6; } ;;
  3969. *)
  3970. CC="$CC $ac_cv_prog_cc_c89"
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3972. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3973. esac
  3974. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3975. fi
  3976. ac_ext=c
  3977. ac_cpp='$CPP $CPPFLAGS'
  3978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3981. ac_ext=c
  3982. ac_cpp='$CPP $CPPFLAGS'
  3983. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3984. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3985. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3987. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3988. if ${am_cv_prog_cc_c_o+:} false; then :
  3989. $as_echo_n "(cached) " >&6
  3990. else
  3991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3992. /* end confdefs.h. */
  3993. int
  3994. main ()
  3995. {
  3996. ;
  3997. return 0;
  3998. }
  3999. _ACEOF
  4000. # Make sure it works both with $CC and with simple cc.
  4001. # Following AC_PROG_CC_C_O, we do the test twice because some
  4002. # compilers refuse to overwrite an existing .o file with -o,
  4003. # though they will create one.
  4004. am_cv_prog_cc_c_o=yes
  4005. for am_i in 1 2; do
  4006. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4007. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4008. ac_status=$?
  4009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4010. (exit $ac_status); } \
  4011. && test -f conftest2.$ac_objext; then
  4012. : OK
  4013. else
  4014. am_cv_prog_cc_c_o=no
  4015. break
  4016. fi
  4017. done
  4018. rm -f core conftest*
  4019. unset am_i
  4020. fi
  4021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4022. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4023. if test "$am_cv_prog_cc_c_o" != yes; then
  4024. # Losing compiler, so override with the script.
  4025. # FIXME: It is wrong to rewrite CC.
  4026. # But if we don't then we get into trouble of one sort or another.
  4027. # A longer-term fix would be to have automake use am__CC in this case,
  4028. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4029. CC="$am_aux_dir/compile $CC"
  4030. fi
  4031. ac_ext=c
  4032. ac_cpp='$CPP $CPPFLAGS'
  4033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4036. DEPDIR="${am__leading_dot}deps"
  4037. ac_config_commands="$ac_config_commands depfiles"
  4038. am_make=${MAKE-make}
  4039. cat > confinc << 'END'
  4040. am__doit:
  4041. @echo this is the am__doit target
  4042. .PHONY: am__doit
  4043. END
  4044. # If we don't find an include directive, just comment out the code.
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  4046. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  4047. am__include="#"
  4048. am__quote=
  4049. _am_result=none
  4050. # First try GNU make style include.
  4051. echo "include confinc" > confmf
  4052. # Ignore all kinds of additional output from 'make'.
  4053. case `$am_make -s -f confmf 2> /dev/null` in #(
  4054. *the\ am__doit\ target*)
  4055. am__include=include
  4056. am__quote=
  4057. _am_result=GNU
  4058. ;;
  4059. esac
  4060. # Now try BSD make style include.
  4061. if test "$am__include" = "#"; then
  4062. echo '.include "confinc"' > confmf
  4063. case `$am_make -s -f confmf 2> /dev/null` in #(
  4064. *the\ am__doit\ target*)
  4065. am__include=.include
  4066. am__quote="\""
  4067. _am_result=BSD
  4068. ;;
  4069. esac
  4070. fi
  4071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  4072. $as_echo "$_am_result" >&6; }
  4073. rm -f confinc confmf
  4074. # Check whether --enable-dependency-tracking was given.
  4075. if test "${enable_dependency_tracking+set}" = set; then :
  4076. enableval=$enable_dependency_tracking;
  4077. fi
  4078. if test "x$enable_dependency_tracking" != xno; then
  4079. am_depcomp="$ac_aux_dir/depcomp"
  4080. AMDEPBACKSLASH='\'
  4081. am__nodep='_no'
  4082. fi
  4083. if test "x$enable_dependency_tracking" != xno; then
  4084. AMDEP_TRUE=
  4085. AMDEP_FALSE='#'
  4086. else
  4087. AMDEP_TRUE='#'
  4088. AMDEP_FALSE=
  4089. fi
  4090. depcc="$CC" am_compiler_list=
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4092. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4093. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4094. $as_echo_n "(cached) " >&6
  4095. else
  4096. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4097. # We make a subdir and do the tests there. Otherwise we can end up
  4098. # making bogus files that we don't know about and never remove. For
  4099. # instance it was reported that on HP-UX the gcc test will end up
  4100. # making a dummy file named 'D' -- because '-MD' means "put the output
  4101. # in D".
  4102. rm -rf conftest.dir
  4103. mkdir conftest.dir
  4104. # Copy depcomp to subdir because otherwise we won't find it if we're
  4105. # using a relative directory.
  4106. cp "$am_depcomp" conftest.dir
  4107. cd conftest.dir
  4108. # We will build objects and dependencies in a subdirectory because
  4109. # it helps to detect inapplicable dependency modes. For instance
  4110. # both Tru64's cc and ICC support -MD to output dependencies as a
  4111. # side effect of compilation, but ICC will put the dependencies in
  4112. # the current directory while Tru64 will put them in the object
  4113. # directory.
  4114. mkdir sub
  4115. am_cv_CC_dependencies_compiler_type=none
  4116. if test "$am_compiler_list" = ""; then
  4117. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4118. fi
  4119. am__universal=false
  4120. case " $depcc " in #(
  4121. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4122. esac
  4123. for depmode in $am_compiler_list; do
  4124. # Setup a source with many dependencies, because some compilers
  4125. # like to wrap large dependency lists on column 80 (with \), and
  4126. # we should not choose a depcomp mode which is confused by this.
  4127. #
  4128. # We need to recreate these files for each test, as the compiler may
  4129. # overwrite some of them when testing with obscure command lines.
  4130. # This happens at least with the AIX C compiler.
  4131. : > sub/conftest.c
  4132. for i in 1 2 3 4 5 6; do
  4133. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4134. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4135. # Solaris 10 /bin/sh.
  4136. echo '/* dummy */' > sub/conftst$i.h
  4137. done
  4138. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4139. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4140. # mode. It turns out that the SunPro C++ compiler does not properly
  4141. # handle '-M -o', and we need to detect this. Also, some Intel
  4142. # versions had trouble with output in subdirs.
  4143. am__obj=sub/conftest.${OBJEXT-o}
  4144. am__minus_obj="-o $am__obj"
  4145. case $depmode in
  4146. gcc)
  4147. # This depmode causes a compiler race in universal mode.
  4148. test "$am__universal" = false || continue
  4149. ;;
  4150. nosideeffect)
  4151. # After this tag, mechanisms are not by side-effect, so they'll
  4152. # only be used when explicitly requested.
  4153. if test "x$enable_dependency_tracking" = xyes; then
  4154. continue
  4155. else
  4156. break
  4157. fi
  4158. ;;
  4159. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4160. # This compiler won't grok '-c -o', but also, the minuso test has
  4161. # not run yet. These depmodes are late enough in the game, and
  4162. # so weak that their functioning should not be impacted.
  4163. am__obj=conftest.${OBJEXT-o}
  4164. am__minus_obj=
  4165. ;;
  4166. none) break ;;
  4167. esac
  4168. if depmode=$depmode \
  4169. source=sub/conftest.c object=$am__obj \
  4170. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4171. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4172. >/dev/null 2>conftest.err &&
  4173. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4174. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4175. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4176. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4177. # icc doesn't choke on unknown options, it will just issue warnings
  4178. # or remarks (even with -Werror). So we grep stderr for any message
  4179. # that says an option was ignored or not supported.
  4180. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4181. # icc: Command line warning: ignoring option '-M'; no argument required
  4182. # The diagnosis changed in icc 8.0:
  4183. # icc: Command line remark: option '-MP' not supported
  4184. if (grep 'ignoring option' conftest.err ||
  4185. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4186. am_cv_CC_dependencies_compiler_type=$depmode
  4187. break
  4188. fi
  4189. fi
  4190. done
  4191. cd ..
  4192. rm -rf conftest.dir
  4193. else
  4194. am_cv_CC_dependencies_compiler_type=none
  4195. fi
  4196. fi
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4198. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4199. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4200. if
  4201. test "x$enable_dependency_tracking" != xno \
  4202. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4203. am__fastdepCC_TRUE=
  4204. am__fastdepCC_FALSE='#'
  4205. else
  4206. am__fastdepCC_TRUE='#'
  4207. am__fastdepCC_FALSE=
  4208. fi
  4209. ac_ext=cpp
  4210. ac_cpp='$CXXCPP $CPPFLAGS'
  4211. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4212. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4213. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4214. if test -z "$CXX"; then
  4215. if test -n "$CCC"; then
  4216. CXX=$CCC
  4217. else
  4218. if test -n "$ac_tool_prefix"; then
  4219. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4220. do
  4221. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4222. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4224. $as_echo_n "checking for $ac_word... " >&6; }
  4225. if ${ac_cv_prog_CXX+:} false; then :
  4226. $as_echo_n "(cached) " >&6
  4227. else
  4228. if test -n "$CXX"; then
  4229. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4230. else
  4231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4232. for as_dir in $PATH
  4233. do
  4234. IFS=$as_save_IFS
  4235. test -z "$as_dir" && as_dir=.
  4236. for ac_exec_ext in '' $ac_executable_extensions; do
  4237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4238. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4240. break 2
  4241. fi
  4242. done
  4243. done
  4244. IFS=$as_save_IFS
  4245. fi
  4246. fi
  4247. CXX=$ac_cv_prog_CXX
  4248. if test -n "$CXX"; then
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4250. $as_echo "$CXX" >&6; }
  4251. else
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4253. $as_echo "no" >&6; }
  4254. fi
  4255. test -n "$CXX" && break
  4256. done
  4257. fi
  4258. if test -z "$CXX"; then
  4259. ac_ct_CXX=$CXX
  4260. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4261. do
  4262. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4263. set dummy $ac_prog; ac_word=$2
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4265. $as_echo_n "checking for $ac_word... " >&6; }
  4266. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4267. $as_echo_n "(cached) " >&6
  4268. else
  4269. if test -n "$ac_ct_CXX"; then
  4270. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4271. else
  4272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4273. for as_dir in $PATH
  4274. do
  4275. IFS=$as_save_IFS
  4276. test -z "$as_dir" && as_dir=.
  4277. for ac_exec_ext in '' $ac_executable_extensions; do
  4278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4279. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4281. break 2
  4282. fi
  4283. done
  4284. done
  4285. IFS=$as_save_IFS
  4286. fi
  4287. fi
  4288. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4289. if test -n "$ac_ct_CXX"; then
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4291. $as_echo "$ac_ct_CXX" >&6; }
  4292. else
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4294. $as_echo "no" >&6; }
  4295. fi
  4296. test -n "$ac_ct_CXX" && break
  4297. done
  4298. if test "x$ac_ct_CXX" = x; then
  4299. CXX="g++"
  4300. else
  4301. case $cross_compiling:$ac_tool_warned in
  4302. yes:)
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4304. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4305. ac_tool_warned=yes ;;
  4306. esac
  4307. CXX=$ac_ct_CXX
  4308. fi
  4309. fi
  4310. fi
  4311. fi
  4312. # Provide some information about the compiler.
  4313. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4314. set X $ac_compile
  4315. ac_compiler=$2
  4316. for ac_option in --version -v -V -qversion; do
  4317. { { ac_try="$ac_compiler $ac_option >&5"
  4318. case "(($ac_try" in
  4319. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4320. *) ac_try_echo=$ac_try;;
  4321. esac
  4322. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4323. $as_echo "$ac_try_echo"; } >&5
  4324. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4325. ac_status=$?
  4326. if test -s conftest.err; then
  4327. sed '10a\
  4328. ... rest of stderr output deleted ...
  4329. 10q' conftest.err >conftest.er1
  4330. cat conftest.er1 >&5
  4331. fi
  4332. rm -f conftest.er1 conftest.err
  4333. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4334. test $ac_status = 0; }
  4335. done
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4337. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4338. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4342. /* end confdefs.h. */
  4343. int
  4344. main ()
  4345. {
  4346. #ifndef __GNUC__
  4347. choke me
  4348. #endif
  4349. ;
  4350. return 0;
  4351. }
  4352. _ACEOF
  4353. if ac_fn_cxx_try_compile "$LINENO"; then :
  4354. ac_compiler_gnu=yes
  4355. else
  4356. ac_compiler_gnu=no
  4357. fi
  4358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4359. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4360. fi
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4362. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4363. if test $ac_compiler_gnu = yes; then
  4364. GXX=yes
  4365. else
  4366. GXX=
  4367. fi
  4368. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4369. ac_save_CXXFLAGS=$CXXFLAGS
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4371. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4372. if ${ac_cv_prog_cxx_g+:} false; then :
  4373. $as_echo_n "(cached) " >&6
  4374. else
  4375. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4376. ac_cxx_werror_flag=yes
  4377. ac_cv_prog_cxx_g=no
  4378. CXXFLAGS="-g"
  4379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4380. /* end confdefs.h. */
  4381. int
  4382. main ()
  4383. {
  4384. ;
  4385. return 0;
  4386. }
  4387. _ACEOF
  4388. if ac_fn_cxx_try_compile "$LINENO"; then :
  4389. ac_cv_prog_cxx_g=yes
  4390. else
  4391. CXXFLAGS=""
  4392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4393. /* end confdefs.h. */
  4394. int
  4395. main ()
  4396. {
  4397. ;
  4398. return 0;
  4399. }
  4400. _ACEOF
  4401. if ac_fn_cxx_try_compile "$LINENO"; then :
  4402. else
  4403. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4404. CXXFLAGS="-g"
  4405. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4406. /* end confdefs.h. */
  4407. int
  4408. main ()
  4409. {
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. if ac_fn_cxx_try_compile "$LINENO"; then :
  4415. ac_cv_prog_cxx_g=yes
  4416. fi
  4417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4418. fi
  4419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4420. fi
  4421. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4422. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4423. fi
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4425. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4426. if test "$ac_test_CXXFLAGS" = set; then
  4427. CXXFLAGS=$ac_save_CXXFLAGS
  4428. elif test $ac_cv_prog_cxx_g = yes; then
  4429. if test "$GXX" = yes; then
  4430. CXXFLAGS="-g -O2"
  4431. else
  4432. CXXFLAGS="-g"
  4433. fi
  4434. else
  4435. if test "$GXX" = yes; then
  4436. CXXFLAGS="-O2"
  4437. else
  4438. CXXFLAGS=
  4439. fi
  4440. fi
  4441. ac_ext=c
  4442. ac_cpp='$CPP $CPPFLAGS'
  4443. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4444. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4445. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4446. depcc="$CXX" am_compiler_list=
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4448. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4449. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4450. $as_echo_n "(cached) " >&6
  4451. else
  4452. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4453. # We make a subdir and do the tests there. Otherwise we can end up
  4454. # making bogus files that we don't know about and never remove. For
  4455. # instance it was reported that on HP-UX the gcc test will end up
  4456. # making a dummy file named 'D' -- because '-MD' means "put the output
  4457. # in D".
  4458. rm -rf conftest.dir
  4459. mkdir conftest.dir
  4460. # Copy depcomp to subdir because otherwise we won't find it if we're
  4461. # using a relative directory.
  4462. cp "$am_depcomp" conftest.dir
  4463. cd conftest.dir
  4464. # We will build objects and dependencies in a subdirectory because
  4465. # it helps to detect inapplicable dependency modes. For instance
  4466. # both Tru64's cc and ICC support -MD to output dependencies as a
  4467. # side effect of compilation, but ICC will put the dependencies in
  4468. # the current directory while Tru64 will put them in the object
  4469. # directory.
  4470. mkdir sub
  4471. am_cv_CXX_dependencies_compiler_type=none
  4472. if test "$am_compiler_list" = ""; then
  4473. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4474. fi
  4475. am__universal=false
  4476. case " $depcc " in #(
  4477. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4478. esac
  4479. for depmode in $am_compiler_list; do
  4480. # Setup a source with many dependencies, because some compilers
  4481. # like to wrap large dependency lists on column 80 (with \), and
  4482. # we should not choose a depcomp mode which is confused by this.
  4483. #
  4484. # We need to recreate these files for each test, as the compiler may
  4485. # overwrite some of them when testing with obscure command lines.
  4486. # This happens at least with the AIX C compiler.
  4487. : > sub/conftest.c
  4488. for i in 1 2 3 4 5 6; do
  4489. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4490. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4491. # Solaris 10 /bin/sh.
  4492. echo '/* dummy */' > sub/conftst$i.h
  4493. done
  4494. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4495. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4496. # mode. It turns out that the SunPro C++ compiler does not properly
  4497. # handle '-M -o', and we need to detect this. Also, some Intel
  4498. # versions had trouble with output in subdirs.
  4499. am__obj=sub/conftest.${OBJEXT-o}
  4500. am__minus_obj="-o $am__obj"
  4501. case $depmode in
  4502. gcc)
  4503. # This depmode causes a compiler race in universal mode.
  4504. test "$am__universal" = false || continue
  4505. ;;
  4506. nosideeffect)
  4507. # After this tag, mechanisms are not by side-effect, so they'll
  4508. # only be used when explicitly requested.
  4509. if test "x$enable_dependency_tracking" = xyes; then
  4510. continue
  4511. else
  4512. break
  4513. fi
  4514. ;;
  4515. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4516. # This compiler won't grok '-c -o', but also, the minuso test has
  4517. # not run yet. These depmodes are late enough in the game, and
  4518. # so weak that their functioning should not be impacted.
  4519. am__obj=conftest.${OBJEXT-o}
  4520. am__minus_obj=
  4521. ;;
  4522. none) break ;;
  4523. esac
  4524. if depmode=$depmode \
  4525. source=sub/conftest.c object=$am__obj \
  4526. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4527. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4528. >/dev/null 2>conftest.err &&
  4529. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4530. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4531. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4532. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4533. # icc doesn't choke on unknown options, it will just issue warnings
  4534. # or remarks (even with -Werror). So we grep stderr for any message
  4535. # that says an option was ignored or not supported.
  4536. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4537. # icc: Command line warning: ignoring option '-M'; no argument required
  4538. # The diagnosis changed in icc 8.0:
  4539. # icc: Command line remark: option '-MP' not supported
  4540. if (grep 'ignoring option' conftest.err ||
  4541. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4542. am_cv_CXX_dependencies_compiler_type=$depmode
  4543. break
  4544. fi
  4545. fi
  4546. done
  4547. cd ..
  4548. rm -rf conftest.dir
  4549. else
  4550. am_cv_CXX_dependencies_compiler_type=none
  4551. fi
  4552. fi
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4554. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4555. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4556. if
  4557. test "x$enable_dependency_tracking" != xno \
  4558. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4559. am__fastdepCXX_TRUE=
  4560. am__fastdepCXX_FALSE='#'
  4561. else
  4562. am__fastdepCXX_TRUE='#'
  4563. am__fastdepCXX_FALSE=
  4564. fi
  4565. # By default we simply use the C compiler to build assembly code.
  4566. test "${CCAS+set}" = set || CCAS=$CC
  4567. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4568. depcc="$CCAS" am_compiler_list=
  4569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4570. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4571. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4572. $as_echo_n "(cached) " >&6
  4573. else
  4574. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4575. # We make a subdir and do the tests there. Otherwise we can end up
  4576. # making bogus files that we don't know about and never remove. For
  4577. # instance it was reported that on HP-UX the gcc test will end up
  4578. # making a dummy file named 'D' -- because '-MD' means "put the output
  4579. # in D".
  4580. rm -rf conftest.dir
  4581. mkdir conftest.dir
  4582. # Copy depcomp to subdir because otherwise we won't find it if we're
  4583. # using a relative directory.
  4584. cp "$am_depcomp" conftest.dir
  4585. cd conftest.dir
  4586. # We will build objects and dependencies in a subdirectory because
  4587. # it helps to detect inapplicable dependency modes. For instance
  4588. # both Tru64's cc and ICC support -MD to output dependencies as a
  4589. # side effect of compilation, but ICC will put the dependencies in
  4590. # the current directory while Tru64 will put them in the object
  4591. # directory.
  4592. mkdir sub
  4593. am_cv_CCAS_dependencies_compiler_type=none
  4594. if test "$am_compiler_list" = ""; then
  4595. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4596. fi
  4597. am__universal=false
  4598. for depmode in $am_compiler_list; do
  4599. # Setup a source with many dependencies, because some compilers
  4600. # like to wrap large dependency lists on column 80 (with \), and
  4601. # we should not choose a depcomp mode which is confused by this.
  4602. #
  4603. # We need to recreate these files for each test, as the compiler may
  4604. # overwrite some of them when testing with obscure command lines.
  4605. # This happens at least with the AIX C compiler.
  4606. : > sub/conftest.c
  4607. for i in 1 2 3 4 5 6; do
  4608. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4609. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4610. # Solaris 10 /bin/sh.
  4611. echo '/* dummy */' > sub/conftst$i.h
  4612. done
  4613. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4614. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4615. # mode. It turns out that the SunPro C++ compiler does not properly
  4616. # handle '-M -o', and we need to detect this. Also, some Intel
  4617. # versions had trouble with output in subdirs.
  4618. am__obj=sub/conftest.${OBJEXT-o}
  4619. am__minus_obj="-o $am__obj"
  4620. case $depmode in
  4621. gcc)
  4622. # This depmode causes a compiler race in universal mode.
  4623. test "$am__universal" = false || continue
  4624. ;;
  4625. nosideeffect)
  4626. # After this tag, mechanisms are not by side-effect, so they'll
  4627. # only be used when explicitly requested.
  4628. if test "x$enable_dependency_tracking" = xyes; then
  4629. continue
  4630. else
  4631. break
  4632. fi
  4633. ;;
  4634. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4635. # This compiler won't grok '-c -o', but also, the minuso test has
  4636. # not run yet. These depmodes are late enough in the game, and
  4637. # so weak that their functioning should not be impacted.
  4638. am__obj=conftest.${OBJEXT-o}
  4639. am__minus_obj=
  4640. ;;
  4641. none) break ;;
  4642. esac
  4643. if depmode=$depmode \
  4644. source=sub/conftest.c object=$am__obj \
  4645. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4646. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4647. >/dev/null 2>conftest.err &&
  4648. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4649. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4650. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4651. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4652. # icc doesn't choke on unknown options, it will just issue warnings
  4653. # or remarks (even with -Werror). So we grep stderr for any message
  4654. # that says an option was ignored or not supported.
  4655. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4656. # icc: Command line warning: ignoring option '-M'; no argument required
  4657. # The diagnosis changed in icc 8.0:
  4658. # icc: Command line remark: option '-MP' not supported
  4659. if (grep 'ignoring option' conftest.err ||
  4660. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4661. am_cv_CCAS_dependencies_compiler_type=$depmode
  4662. break
  4663. fi
  4664. fi
  4665. done
  4666. cd ..
  4667. rm -rf conftest.dir
  4668. else
  4669. am_cv_CCAS_dependencies_compiler_type=none
  4670. fi
  4671. fi
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4673. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4674. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4675. if
  4676. test "x$enable_dependency_tracking" != xno \
  4677. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4678. am__fastdepCCAS_TRUE=
  4679. am__fastdepCCAS_FALSE='#'
  4680. else
  4681. am__fastdepCCAS_TRUE='#'
  4682. am__fastdepCCAS_FALSE=
  4683. fi
  4684. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  4685. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  4686. # in both places for now and restore CFLAGS at the end of config.
  4687. save_CFLAGS="$CFLAGS"
  4688. # Find other programs we need.
  4689. if test -n "$ac_tool_prefix"; then
  4690. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4691. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4693. $as_echo_n "checking for $ac_word... " >&6; }
  4694. if ${ac_cv_prog_AR+:} false; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. if test -n "$AR"; then
  4698. ac_cv_prog_AR="$AR" # Let the user override the test.
  4699. else
  4700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4701. for as_dir in $PATH
  4702. do
  4703. IFS=$as_save_IFS
  4704. test -z "$as_dir" && as_dir=.
  4705. for ac_exec_ext in '' $ac_executable_extensions; do
  4706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4707. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4709. break 2
  4710. fi
  4711. done
  4712. done
  4713. IFS=$as_save_IFS
  4714. fi
  4715. fi
  4716. AR=$ac_cv_prog_AR
  4717. if test -n "$AR"; then
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4719. $as_echo "$AR" >&6; }
  4720. else
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4722. $as_echo "no" >&6; }
  4723. fi
  4724. fi
  4725. if test -z "$ac_cv_prog_AR"; then
  4726. ac_ct_AR=$AR
  4727. # Extract the first word of "ar", so it can be a program name with args.
  4728. set dummy ar; ac_word=$2
  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4730. $as_echo_n "checking for $ac_word... " >&6; }
  4731. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4732. $as_echo_n "(cached) " >&6
  4733. else
  4734. if test -n "$ac_ct_AR"; then
  4735. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4736. else
  4737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4738. for as_dir in $PATH
  4739. do
  4740. IFS=$as_save_IFS
  4741. test -z "$as_dir" && as_dir=.
  4742. for ac_exec_ext in '' $ac_executable_extensions; do
  4743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4744. ac_cv_prog_ac_ct_AR="ar"
  4745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4746. break 2
  4747. fi
  4748. done
  4749. done
  4750. IFS=$as_save_IFS
  4751. fi
  4752. fi
  4753. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4754. if test -n "$ac_ct_AR"; then
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4756. $as_echo "$ac_ct_AR" >&6; }
  4757. else
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4759. $as_echo "no" >&6; }
  4760. fi
  4761. if test "x$ac_ct_AR" = x; then
  4762. AR=""
  4763. else
  4764. case $cross_compiling:$ac_tool_warned in
  4765. yes:)
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4767. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4768. ac_tool_warned=yes ;;
  4769. esac
  4770. AR=$ac_ct_AR
  4771. fi
  4772. else
  4773. AR="$ac_cv_prog_AR"
  4774. fi
  4775. if test -n "$ac_tool_prefix"; then
  4776. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  4777. set dummy ${ac_tool_prefix}nm; ac_word=$2
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4779. $as_echo_n "checking for $ac_word... " >&6; }
  4780. if ${ac_cv_prog_NM+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. if test -n "$NM"; then
  4784. ac_cv_prog_NM="$NM" # Let the user override the test.
  4785. else
  4786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4793. ac_cv_prog_NM="${ac_tool_prefix}nm"
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. NM=$ac_cv_prog_NM
  4803. if test -n "$NM"; then
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  4805. $as_echo "$NM" >&6; }
  4806. else
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4808. $as_echo "no" >&6; }
  4809. fi
  4810. fi
  4811. if test -z "$ac_cv_prog_NM"; then
  4812. ac_ct_NM=$NM
  4813. # Extract the first word of "nm", so it can be a program name with args.
  4814. set dummy nm; ac_word=$2
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4816. $as_echo_n "checking for $ac_word... " >&6; }
  4817. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$ac_ct_NM"; then
  4821. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  4822. else
  4823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4824. for as_dir in $PATH
  4825. do
  4826. IFS=$as_save_IFS
  4827. test -z "$as_dir" && as_dir=.
  4828. for ac_exec_ext in '' $ac_executable_extensions; do
  4829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4830. ac_cv_prog_ac_ct_NM="nm"
  4831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4832. break 2
  4833. fi
  4834. done
  4835. done
  4836. IFS=$as_save_IFS
  4837. fi
  4838. fi
  4839. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  4840. if test -n "$ac_ct_NM"; then
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  4842. $as_echo "$ac_ct_NM" >&6; }
  4843. else
  4844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4845. $as_echo "no" >&6; }
  4846. fi
  4847. if test "x$ac_ct_NM" = x; then
  4848. NM=""
  4849. else
  4850. case $cross_compiling:$ac_tool_warned in
  4851. yes:)
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4854. ac_tool_warned=yes ;;
  4855. esac
  4856. NM=$ac_ct_NM
  4857. fi
  4858. else
  4859. NM="$ac_cv_prog_NM"
  4860. fi
  4861. if test -n "$ac_tool_prefix"; then
  4862. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4863. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4865. $as_echo_n "checking for $ac_word... " >&6; }
  4866. if ${ac_cv_prog_RANLIB+:} false; then :
  4867. $as_echo_n "(cached) " >&6
  4868. else
  4869. if test -n "$RANLIB"; then
  4870. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4871. else
  4872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4873. for as_dir in $PATH
  4874. do
  4875. IFS=$as_save_IFS
  4876. test -z "$as_dir" && as_dir=.
  4877. for ac_exec_ext in '' $ac_executable_extensions; do
  4878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4879. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4881. break 2
  4882. fi
  4883. done
  4884. done
  4885. IFS=$as_save_IFS
  4886. fi
  4887. fi
  4888. RANLIB=$ac_cv_prog_RANLIB
  4889. if test -n "$RANLIB"; then
  4890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4891. $as_echo "$RANLIB" >&6; }
  4892. else
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4894. $as_echo "no" >&6; }
  4895. fi
  4896. fi
  4897. if test -z "$ac_cv_prog_RANLIB"; then
  4898. ac_ct_RANLIB=$RANLIB
  4899. # Extract the first word of "ranlib", so it can be a program name with args.
  4900. set dummy ranlib; ac_word=$2
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4902. $as_echo_n "checking for $ac_word... " >&6; }
  4903. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. if test -n "$ac_ct_RANLIB"; then
  4907. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. fi
  4924. fi
  4925. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4926. if test -n "$ac_ct_RANLIB"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4928. $as_echo "$ac_ct_RANLIB" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. if test "x$ac_ct_RANLIB" = x; then
  4934. RANLIB="ranlib-not-found-in-path-error"
  4935. else
  4936. case $cross_compiling:$ac_tool_warned in
  4937. yes:)
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4939. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4940. ac_tool_warned=yes ;;
  4941. esac
  4942. RANLIB=$ac_ct_RANLIB
  4943. fi
  4944. else
  4945. RANLIB="$ac_cv_prog_RANLIB"
  4946. fi
  4947. # Extract the first word of "perl", so it can be a program name with args.
  4948. set dummy perl; ac_word=$2
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4950. $as_echo_n "checking for $ac_word... " >&6; }
  4951. if ${ac_cv_path_PERL+:} false; then :
  4952. $as_echo_n "(cached) " >&6
  4953. else
  4954. case $PERL in
  4955. [\\/]* | ?:[\\/]*)
  4956. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4957. ;;
  4958. *)
  4959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4960. for as_dir in $PATH
  4961. do
  4962. IFS=$as_save_IFS
  4963. test -z "$as_dir" && as_dir=.
  4964. for ac_exec_ext in '' $ac_executable_extensions; do
  4965. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4966. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4967. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4968. break 2
  4969. fi
  4970. done
  4971. done
  4972. IFS=$as_save_IFS
  4973. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  4974. ;;
  4975. esac
  4976. fi
  4977. PERL=$ac_cv_path_PERL
  4978. if test -n "$PERL"; then
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4980. $as_echo "$PERL" >&6; }
  4981. else
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4983. $as_echo "no" >&6; }
  4984. fi
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4986. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4987. set x ${MAKE-make}
  4988. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4989. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4990. $as_echo_n "(cached) " >&6
  4991. else
  4992. cat >conftest.make <<\_ACEOF
  4993. SHELL = /bin/sh
  4994. all:
  4995. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4996. _ACEOF
  4997. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4998. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4999. *@@@%%%=?*=@@@%%%*)
  5000. eval ac_cv_prog_make_${ac_make}_set=yes;;
  5001. *)
  5002. eval ac_cv_prog_make_${ac_make}_set=no;;
  5003. esac
  5004. rm -f conftest.make
  5005. fi
  5006. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  5007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5008. $as_echo "yes" >&6; }
  5009. SET_MAKE=
  5010. else
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5012. $as_echo "no" >&6; }
  5013. SET_MAKE="MAKE=${MAKE-make}"
  5014. fi
  5015. # See if makeinfo has been installed and is modern enough
  5016. # that we can use it.
  5017. # Extract the first word of "makeinfo", so it can be a program name with args.
  5018. set dummy makeinfo; ac_word=$2
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5020. $as_echo_n "checking for $ac_word... " >&6; }
  5021. if ${ac_cv_prog_MAKEINFO+:} false; then :
  5022. $as_echo_n "(cached) " >&6
  5023. else
  5024. if test -n "$MAKEINFO"; then
  5025. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  5026. else
  5027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5028. for as_dir in $PATH
  5029. do
  5030. IFS=$as_save_IFS
  5031. test -z "$as_dir" && as_dir=.
  5032. for ac_exec_ext in '' $ac_executable_extensions; do
  5033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5034. ac_cv_prog_MAKEINFO="makeinfo"
  5035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5036. break 2
  5037. fi
  5038. done
  5039. done
  5040. IFS=$as_save_IFS
  5041. fi
  5042. fi
  5043. MAKEINFO=$ac_cv_prog_MAKEINFO
  5044. if test -n "$MAKEINFO"; then
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  5046. $as_echo "$MAKEINFO" >&6; }
  5047. else
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5049. $as_echo "no" >&6; }
  5050. fi
  5051. if test -n "$MAKEINFO"; then
  5052. # Found it, now check the version.
  5053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
  5054. $as_echo_n "checking for modern makeinfo... " >&6; }
  5055. if ${gcc_cv_prog_makeinfo_modern+:} false; then :
  5056. $as_echo_n "(cached) " >&6
  5057. else
  5058. ac_prog_version=`eval $MAKEINFO --version 2>&1 |
  5059. sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
  5060. case $ac_prog_version in
  5061. '') gcc_cv_prog_makeinfo_modern=no;;
  5062. 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
  5063. *) gcc_cv_prog_makeinfo_modern=no;;
  5064. esac
  5065. fi
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
  5067. $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
  5068. else
  5069. gcc_cv_prog_makeinfo_modern=no
  5070. fi
  5071. if test $gcc_cv_prog_makeinfo_modern = no; then
  5072. MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
  5073. fi
  5074. if test $gcc_cv_prog_makeinfo_modern = "yes"; then
  5075. BUILD_INFO_TRUE=
  5076. BUILD_INFO_FALSE='#'
  5077. else
  5078. BUILD_INFO_TRUE='#'
  5079. BUILD_INFO_FALSE=
  5080. fi
  5081. # Configure libtool
  5082. case `pwd` in
  5083. *\ * | *\ *)
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5085. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5086. esac
  5087. macro_version='2.2.7a'
  5088. macro_revision='1.3134'
  5089. ltmain="$ac_aux_dir/ltmain.sh"
  5090. # Backslashify metacharacters that are still active within
  5091. # double-quoted strings.
  5092. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5093. # Same as above, but do not quote variable references.
  5094. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5095. # Sed substitution to delay expansion of an escaped shell variable in a
  5096. # double_quote_subst'ed string.
  5097. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5098. # Sed substitution to delay expansion of an escaped single quote.
  5099. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5100. # Sed substitution to avoid accidental globbing in evaled expressions
  5101. no_glob_subst='s/\*/\\\*/g'
  5102. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5103. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5104. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5106. $as_echo_n "checking how to print strings... " >&6; }
  5107. # Test print first, because it will be a builtin if present.
  5108. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5109. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5110. ECHO='print -r --'
  5111. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5112. ECHO='printf %s\n'
  5113. else
  5114. # Use this function as a fallback that always works.
  5115. func_fallback_echo ()
  5116. {
  5117. eval 'cat <<_LTECHO_EOF
  5118. $1
  5119. _LTECHO_EOF'
  5120. }
  5121. ECHO='func_fallback_echo'
  5122. fi
  5123. # func_echo_all arg...
  5124. # Invoke $ECHO with all args, space-separated.
  5125. func_echo_all ()
  5126. {
  5127. $ECHO ""
  5128. }
  5129. case "$ECHO" in
  5130. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5131. $as_echo "printf" >&6; } ;;
  5132. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5133. $as_echo "print -r" >&6; } ;;
  5134. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5135. $as_echo "cat" >&6; } ;;
  5136. esac
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5138. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5139. if ${ac_cv_path_SED+:} false; then :
  5140. $as_echo_n "(cached) " >&6
  5141. else
  5142. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5143. for ac_i in 1 2 3 4 5 6 7; do
  5144. ac_script="$ac_script$as_nl$ac_script"
  5145. done
  5146. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5147. { ac_script=; unset ac_script;}
  5148. if test -z "$SED"; then
  5149. ac_path_SED_found=false
  5150. # Loop through the user's path and test for each of PROGNAME-LIST
  5151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5152. for as_dir in $PATH
  5153. do
  5154. IFS=$as_save_IFS
  5155. test -z "$as_dir" && as_dir=.
  5156. for ac_prog in sed gsed; do
  5157. for ac_exec_ext in '' $ac_executable_extensions; do
  5158. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5159. as_fn_executable_p "$ac_path_SED" || continue
  5160. # Check for GNU ac_path_SED and select it if it is found.
  5161. # Check for GNU $ac_path_SED
  5162. case `"$ac_path_SED" --version 2>&1` in
  5163. *GNU*)
  5164. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5165. *)
  5166. ac_count=0
  5167. $as_echo_n 0123456789 >"conftest.in"
  5168. while :
  5169. do
  5170. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5171. mv "conftest.tmp" "conftest.in"
  5172. cp "conftest.in" "conftest.nl"
  5173. $as_echo '' >> "conftest.nl"
  5174. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5175. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5176. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5177. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5178. # Best one so far, save it but keep looking for a better one
  5179. ac_cv_path_SED="$ac_path_SED"
  5180. ac_path_SED_max=$ac_count
  5181. fi
  5182. # 10*(2^10) chars as input seems more than enough
  5183. test $ac_count -gt 10 && break
  5184. done
  5185. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5186. esac
  5187. $ac_path_SED_found && break 3
  5188. done
  5189. done
  5190. done
  5191. IFS=$as_save_IFS
  5192. if test -z "$ac_cv_path_SED"; then
  5193. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5194. fi
  5195. else
  5196. ac_cv_path_SED=$SED
  5197. fi
  5198. fi
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5200. $as_echo "$ac_cv_path_SED" >&6; }
  5201. SED="$ac_cv_path_SED"
  5202. rm -f conftest.sed
  5203. test -z "$SED" && SED=sed
  5204. Xsed="$SED -e 1s/^X//"
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5206. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5207. if ${ac_cv_path_GREP+:} false; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. if test -z "$GREP"; then
  5211. ac_path_GREP_found=false
  5212. # Loop through the user's path and test for each of PROGNAME-LIST
  5213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5214. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5215. do
  5216. IFS=$as_save_IFS
  5217. test -z "$as_dir" && as_dir=.
  5218. for ac_prog in grep ggrep; do
  5219. for ac_exec_ext in '' $ac_executable_extensions; do
  5220. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5221. as_fn_executable_p "$ac_path_GREP" || continue
  5222. # Check for GNU ac_path_GREP and select it if it is found.
  5223. # Check for GNU $ac_path_GREP
  5224. case `"$ac_path_GREP" --version 2>&1` in
  5225. *GNU*)
  5226. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5227. *)
  5228. ac_count=0
  5229. $as_echo_n 0123456789 >"conftest.in"
  5230. while :
  5231. do
  5232. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5233. mv "conftest.tmp" "conftest.in"
  5234. cp "conftest.in" "conftest.nl"
  5235. $as_echo 'GREP' >> "conftest.nl"
  5236. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5237. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5238. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5239. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5240. # Best one so far, save it but keep looking for a better one
  5241. ac_cv_path_GREP="$ac_path_GREP"
  5242. ac_path_GREP_max=$ac_count
  5243. fi
  5244. # 10*(2^10) chars as input seems more than enough
  5245. test $ac_count -gt 10 && break
  5246. done
  5247. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5248. esac
  5249. $ac_path_GREP_found && break 3
  5250. done
  5251. done
  5252. done
  5253. IFS=$as_save_IFS
  5254. if test -z "$ac_cv_path_GREP"; then
  5255. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5256. fi
  5257. else
  5258. ac_cv_path_GREP=$GREP
  5259. fi
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5262. $as_echo "$ac_cv_path_GREP" >&6; }
  5263. GREP="$ac_cv_path_GREP"
  5264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5265. $as_echo_n "checking for egrep... " >&6; }
  5266. if ${ac_cv_path_EGREP+:} false; then :
  5267. $as_echo_n "(cached) " >&6
  5268. else
  5269. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5270. then ac_cv_path_EGREP="$GREP -E"
  5271. else
  5272. if test -z "$EGREP"; then
  5273. ac_path_EGREP_found=false
  5274. # Loop through the user's path and test for each of PROGNAME-LIST
  5275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5276. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5277. do
  5278. IFS=$as_save_IFS
  5279. test -z "$as_dir" && as_dir=.
  5280. for ac_prog in egrep; do
  5281. for ac_exec_ext in '' $ac_executable_extensions; do
  5282. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5283. as_fn_executable_p "$ac_path_EGREP" || continue
  5284. # Check for GNU ac_path_EGREP and select it if it is found.
  5285. # Check for GNU $ac_path_EGREP
  5286. case `"$ac_path_EGREP" --version 2>&1` in
  5287. *GNU*)
  5288. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5289. *)
  5290. ac_count=0
  5291. $as_echo_n 0123456789 >"conftest.in"
  5292. while :
  5293. do
  5294. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5295. mv "conftest.tmp" "conftest.in"
  5296. cp "conftest.in" "conftest.nl"
  5297. $as_echo 'EGREP' >> "conftest.nl"
  5298. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5299. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5300. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5301. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5302. # Best one so far, save it but keep looking for a better one
  5303. ac_cv_path_EGREP="$ac_path_EGREP"
  5304. ac_path_EGREP_max=$ac_count
  5305. fi
  5306. # 10*(2^10) chars as input seems more than enough
  5307. test $ac_count -gt 10 && break
  5308. done
  5309. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5310. esac
  5311. $ac_path_EGREP_found && break 3
  5312. done
  5313. done
  5314. done
  5315. IFS=$as_save_IFS
  5316. if test -z "$ac_cv_path_EGREP"; then
  5317. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5318. fi
  5319. else
  5320. ac_cv_path_EGREP=$EGREP
  5321. fi
  5322. fi
  5323. fi
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5325. $as_echo "$ac_cv_path_EGREP" >&6; }
  5326. EGREP="$ac_cv_path_EGREP"
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5328. $as_echo_n "checking for fgrep... " >&6; }
  5329. if ${ac_cv_path_FGREP+:} false; then :
  5330. $as_echo_n "(cached) " >&6
  5331. else
  5332. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5333. then ac_cv_path_FGREP="$GREP -F"
  5334. else
  5335. if test -z "$FGREP"; then
  5336. ac_path_FGREP_found=false
  5337. # Loop through the user's path and test for each of PROGNAME-LIST
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5340. do
  5341. IFS=$as_save_IFS
  5342. test -z "$as_dir" && as_dir=.
  5343. for ac_prog in fgrep; do
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5346. as_fn_executable_p "$ac_path_FGREP" || continue
  5347. # Check for GNU ac_path_FGREP and select it if it is found.
  5348. # Check for GNU $ac_path_FGREP
  5349. case `"$ac_path_FGREP" --version 2>&1` in
  5350. *GNU*)
  5351. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5352. *)
  5353. ac_count=0
  5354. $as_echo_n 0123456789 >"conftest.in"
  5355. while :
  5356. do
  5357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5358. mv "conftest.tmp" "conftest.in"
  5359. cp "conftest.in" "conftest.nl"
  5360. $as_echo 'FGREP' >> "conftest.nl"
  5361. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5363. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5364. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5365. # Best one so far, save it but keep looking for a better one
  5366. ac_cv_path_FGREP="$ac_path_FGREP"
  5367. ac_path_FGREP_max=$ac_count
  5368. fi
  5369. # 10*(2^10) chars as input seems more than enough
  5370. test $ac_count -gt 10 && break
  5371. done
  5372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5373. esac
  5374. $ac_path_FGREP_found && break 3
  5375. done
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. if test -z "$ac_cv_path_FGREP"; then
  5380. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5381. fi
  5382. else
  5383. ac_cv_path_FGREP=$FGREP
  5384. fi
  5385. fi
  5386. fi
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5388. $as_echo "$ac_cv_path_FGREP" >&6; }
  5389. FGREP="$ac_cv_path_FGREP"
  5390. test -z "$GREP" && GREP=grep
  5391. # Check whether --with-gnu-ld was given.
  5392. if test "${with_gnu_ld+set}" = set; then :
  5393. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5394. else
  5395. with_gnu_ld=no
  5396. fi
  5397. ac_prog=ld
  5398. if test "$GCC" = yes; then
  5399. # Check if gcc -print-prog-name=ld gives a path.
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5401. $as_echo_n "checking for ld used by $CC... " >&6; }
  5402. case $host in
  5403. *-*-mingw*)
  5404. # gcc leaves a trailing carriage return which upsets mingw
  5405. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5406. *)
  5407. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5408. esac
  5409. case $ac_prog in
  5410. # Accept absolute paths.
  5411. [\\/]* | ?:[\\/]*)
  5412. re_direlt='/[^/][^/]*/\.\./'
  5413. # Canonicalize the pathname of ld
  5414. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5415. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5416. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5417. done
  5418. test -z "$LD" && LD="$ac_prog"
  5419. ;;
  5420. "")
  5421. # If it fails, then pretend we aren't using GCC.
  5422. ac_prog=ld
  5423. ;;
  5424. *)
  5425. # If it is relative, then search for the first ld in PATH.
  5426. with_gnu_ld=unknown
  5427. ;;
  5428. esac
  5429. elif test "$with_gnu_ld" = yes; then
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5431. $as_echo_n "checking for GNU ld... " >&6; }
  5432. else
  5433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5434. $as_echo_n "checking for non-GNU ld... " >&6; }
  5435. fi
  5436. if ${lt_cv_path_LD+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. if test -z "$LD"; then
  5440. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5441. for ac_dir in $PATH; do
  5442. IFS="$lt_save_ifs"
  5443. test -z "$ac_dir" && ac_dir=.
  5444. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5445. lt_cv_path_LD="$ac_dir/$ac_prog"
  5446. # Check to see if the program is GNU ld. I'd rather use --version,
  5447. # but apparently some variants of GNU ld only accept -v.
  5448. # Break only if it was the GNU/non-GNU ld that we prefer.
  5449. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5450. *GNU* | *'with BFD'*)
  5451. test "$with_gnu_ld" != no && break
  5452. ;;
  5453. *)
  5454. test "$with_gnu_ld" != yes && break
  5455. ;;
  5456. esac
  5457. fi
  5458. done
  5459. IFS="$lt_save_ifs"
  5460. else
  5461. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5462. fi
  5463. fi
  5464. LD="$lt_cv_path_LD"
  5465. if test -n "$LD"; then
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5467. $as_echo "$LD" >&6; }
  5468. else
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5470. $as_echo "no" >&6; }
  5471. fi
  5472. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5474. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5475. if ${lt_cv_prog_gnu_ld+:} false; then :
  5476. $as_echo_n "(cached) " >&6
  5477. else
  5478. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5479. case `$LD -v 2>&1 </dev/null` in
  5480. *GNU* | *'with BFD'*)
  5481. lt_cv_prog_gnu_ld=yes
  5482. ;;
  5483. *)
  5484. lt_cv_prog_gnu_ld=no
  5485. ;;
  5486. esac
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5489. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5490. with_gnu_ld=$lt_cv_prog_gnu_ld
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5492. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5493. if ${lt_cv_path_NM+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. if test -n "$NM"; then
  5497. # Let the user override the test.
  5498. lt_cv_path_NM="$NM"
  5499. else
  5500. lt_nm_to_check="${ac_tool_prefix}nm"
  5501. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5502. lt_nm_to_check="$lt_nm_to_check nm"
  5503. fi
  5504. for lt_tmp_nm in $lt_nm_to_check; do
  5505. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5506. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5507. IFS="$lt_save_ifs"
  5508. test -z "$ac_dir" && ac_dir=.
  5509. tmp_nm="$ac_dir/$lt_tmp_nm"
  5510. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5511. # Check to see if the nm accepts a BSD-compat flag.
  5512. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5513. # nm: unknown option "B" ignored
  5514. # Tru64's nm complains that /dev/null is an invalid object file
  5515. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5516. */dev/null* | *'Invalid file or object type'*)
  5517. lt_cv_path_NM="$tmp_nm -B"
  5518. break
  5519. ;;
  5520. *)
  5521. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5522. */dev/null*)
  5523. lt_cv_path_NM="$tmp_nm -p"
  5524. break
  5525. ;;
  5526. *)
  5527. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5528. continue # so that we can try to find one that supports BSD flags
  5529. ;;
  5530. esac
  5531. ;;
  5532. esac
  5533. fi
  5534. done
  5535. IFS="$lt_save_ifs"
  5536. done
  5537. : ${lt_cv_path_NM=no}
  5538. fi
  5539. fi
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5541. $as_echo "$lt_cv_path_NM" >&6; }
  5542. if test "$lt_cv_path_NM" != "no"; then
  5543. NM="$lt_cv_path_NM"
  5544. else
  5545. # Didn't find any BSD compatible name lister, look for dumpbin.
  5546. if test -n "$DUMPBIN"; then :
  5547. # Let the user override the test.
  5548. else
  5549. if test -n "$ac_tool_prefix"; then
  5550. for ac_prog in dumpbin "link -dump"
  5551. do
  5552. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5553. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5555. $as_echo_n "checking for $ac_word... " >&6; }
  5556. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5557. $as_echo_n "(cached) " >&6
  5558. else
  5559. if test -n "$DUMPBIN"; then
  5560. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5561. else
  5562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5563. for as_dir in $PATH
  5564. do
  5565. IFS=$as_save_IFS
  5566. test -z "$as_dir" && as_dir=.
  5567. for ac_exec_ext in '' $ac_executable_extensions; do
  5568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5569. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5571. break 2
  5572. fi
  5573. done
  5574. done
  5575. IFS=$as_save_IFS
  5576. fi
  5577. fi
  5578. DUMPBIN=$ac_cv_prog_DUMPBIN
  5579. if test -n "$DUMPBIN"; then
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5581. $as_echo "$DUMPBIN" >&6; }
  5582. else
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5584. $as_echo "no" >&6; }
  5585. fi
  5586. test -n "$DUMPBIN" && break
  5587. done
  5588. fi
  5589. if test -z "$DUMPBIN"; then
  5590. ac_ct_DUMPBIN=$DUMPBIN
  5591. for ac_prog in dumpbin "link -dump"
  5592. do
  5593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5594. set dummy $ac_prog; ac_word=$2
  5595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5596. $as_echo_n "checking for $ac_word... " >&6; }
  5597. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5598. $as_echo_n "(cached) " >&6
  5599. else
  5600. if test -n "$ac_ct_DUMPBIN"; then
  5601. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5602. else
  5603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5604. for as_dir in $PATH
  5605. do
  5606. IFS=$as_save_IFS
  5607. test -z "$as_dir" && as_dir=.
  5608. for ac_exec_ext in '' $ac_executable_extensions; do
  5609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5610. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5612. break 2
  5613. fi
  5614. done
  5615. done
  5616. IFS=$as_save_IFS
  5617. fi
  5618. fi
  5619. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5620. if test -n "$ac_ct_DUMPBIN"; then
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5622. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5623. else
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5625. $as_echo "no" >&6; }
  5626. fi
  5627. test -n "$ac_ct_DUMPBIN" && break
  5628. done
  5629. if test "x$ac_ct_DUMPBIN" = x; then
  5630. DUMPBIN=":"
  5631. else
  5632. case $cross_compiling:$ac_tool_warned in
  5633. yes:)
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5635. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5636. ac_tool_warned=yes ;;
  5637. esac
  5638. DUMPBIN=$ac_ct_DUMPBIN
  5639. fi
  5640. fi
  5641. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5642. *COFF*)
  5643. DUMPBIN="$DUMPBIN -symbols"
  5644. ;;
  5645. *)
  5646. DUMPBIN=:
  5647. ;;
  5648. esac
  5649. fi
  5650. if test "$DUMPBIN" != ":"; then
  5651. NM="$DUMPBIN"
  5652. fi
  5653. fi
  5654. test -z "$NM" && NM=nm
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5656. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5657. if ${lt_cv_nm_interface+:} false; then :
  5658. $as_echo_n "(cached) " >&6
  5659. else
  5660. lt_cv_nm_interface="BSD nm"
  5661. echo "int some_variable = 0;" > conftest.$ac_ext
  5662. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5663. (eval "$ac_compile" 2>conftest.err)
  5664. cat conftest.err >&5
  5665. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5666. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5667. cat conftest.err >&5
  5668. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5669. cat conftest.out >&5
  5670. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5671. lt_cv_nm_interface="MS dumpbin"
  5672. fi
  5673. rm -f conftest*
  5674. fi
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5676. $as_echo "$lt_cv_nm_interface" >&6; }
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5678. $as_echo_n "checking whether ln -s works... " >&6; }
  5679. LN_S=$as_ln_s
  5680. if test "$LN_S" = "ln -s"; then
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5682. $as_echo "yes" >&6; }
  5683. else
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5685. $as_echo "no, using $LN_S" >&6; }
  5686. fi
  5687. # find the maximum length of command line arguments
  5688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5689. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5690. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5691. $as_echo_n "(cached) " >&6
  5692. else
  5693. i=0
  5694. teststring="ABCD"
  5695. case $build_os in
  5696. msdosdjgpp*)
  5697. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5698. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5699. # during glob expansion). Even if it were fixed, the result of this
  5700. # check would be larger than it should be.
  5701. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5702. ;;
  5703. gnu*)
  5704. # Under GNU Hurd, this test is not required because there is
  5705. # no limit to the length of command line arguments.
  5706. # Libtool will interpret -1 as no limit whatsoever
  5707. lt_cv_sys_max_cmd_len=-1;
  5708. ;;
  5709. cygwin* | mingw* | cegcc*)
  5710. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5711. # about 5 minutes as the teststring grows exponentially.
  5712. # Worse, since 9x/ME are not pre-emptively multitasking,
  5713. # you end up with a "frozen" computer, even though with patience
  5714. # the test eventually succeeds (with a max line length of 256k).
  5715. # Instead, let's just punt: use the minimum linelength reported by
  5716. # all of the supported platforms: 8192 (on NT/2K/XP).
  5717. lt_cv_sys_max_cmd_len=8192;
  5718. ;;
  5719. mint*)
  5720. # On MiNT this can take a long time and run out of memory.
  5721. lt_cv_sys_max_cmd_len=8192;
  5722. ;;
  5723. amigaos*)
  5724. # On AmigaOS with pdksh, this test takes hours, literally.
  5725. # So we just punt and use a minimum line length of 8192.
  5726. lt_cv_sys_max_cmd_len=8192;
  5727. ;;
  5728. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5729. # This has been around since 386BSD, at least. Likely further.
  5730. if test -x /sbin/sysctl; then
  5731. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5732. elif test -x /usr/sbin/sysctl; then
  5733. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5734. else
  5735. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5736. fi
  5737. # And add a safety zone
  5738. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5739. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5740. ;;
  5741. interix*)
  5742. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5743. lt_cv_sys_max_cmd_len=196608
  5744. ;;
  5745. osf*)
  5746. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5747. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5748. # nice to cause kernel panics so lets avoid the loop below.
  5749. # First set a reasonable default.
  5750. lt_cv_sys_max_cmd_len=16384
  5751. #
  5752. if test -x /sbin/sysconfig; then
  5753. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5754. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5755. esac
  5756. fi
  5757. ;;
  5758. sco3.2v5*)
  5759. lt_cv_sys_max_cmd_len=102400
  5760. ;;
  5761. sysv5* | sco5v6* | sysv4.2uw2*)
  5762. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5763. if test -n "$kargmax"; then
  5764. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5765. else
  5766. lt_cv_sys_max_cmd_len=32768
  5767. fi
  5768. ;;
  5769. *)
  5770. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5771. if test -n "$lt_cv_sys_max_cmd_len"; then
  5772. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5773. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5774. else
  5775. # Make teststring a little bigger before we do anything with it.
  5776. # a 1K string should be a reasonable start.
  5777. for i in 1 2 3 4 5 6 7 8 ; do
  5778. teststring=$teststring$teststring
  5779. done
  5780. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5781. # If test is not a shell built-in, we'll probably end up computing a
  5782. # maximum length that is only half of the actual maximum length, but
  5783. # we can't tell.
  5784. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5785. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5786. test $i != 17 # 1/2 MB should be enough
  5787. do
  5788. i=`expr $i + 1`
  5789. teststring=$teststring$teststring
  5790. done
  5791. # Only check the string length outside the loop.
  5792. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5793. teststring=
  5794. # Add a significant safety factor because C++ compilers can tack on
  5795. # massive amounts of additional arguments before passing them to the
  5796. # linker. It appears as though 1/2 is a usable value.
  5797. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5798. fi
  5799. ;;
  5800. esac
  5801. fi
  5802. if test -n $lt_cv_sys_max_cmd_len ; then
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5804. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5805. else
  5806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5807. $as_echo "none" >&6; }
  5808. fi
  5809. max_cmd_len=$lt_cv_sys_max_cmd_len
  5810. : ${CP="cp -f"}
  5811. : ${MV="mv -f"}
  5812. : ${RM="rm -f"}
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5814. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5815. # Try some XSI features
  5816. xsi_shell=no
  5817. ( _lt_dummy="a/b/c"
  5818. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5819. = c,a/b,, \
  5820. && eval 'test $(( 1 + 1 )) -eq 2 \
  5821. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5822. && xsi_shell=yes
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5824. $as_echo "$xsi_shell" >&6; }
  5825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5826. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5827. lt_shell_append=no
  5828. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5829. >/dev/null 2>&1 \
  5830. && lt_shell_append=yes
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5832. $as_echo "$lt_shell_append" >&6; }
  5833. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5834. lt_unset=unset
  5835. else
  5836. lt_unset=false
  5837. fi
  5838. # test EBCDIC or ASCII
  5839. case `echo X|tr X '\101'` in
  5840. A) # ASCII based system
  5841. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5842. lt_SP2NL='tr \040 \012'
  5843. lt_NL2SP='tr \015\012 \040\040'
  5844. ;;
  5845. *) # EBCDIC based system
  5846. lt_SP2NL='tr \100 \n'
  5847. lt_NL2SP='tr \r\n \100\100'
  5848. ;;
  5849. esac
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5851. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5852. if ${lt_cv_ld_reload_flag+:} false; then :
  5853. $as_echo_n "(cached) " >&6
  5854. else
  5855. lt_cv_ld_reload_flag='-r'
  5856. fi
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5858. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5859. reload_flag=$lt_cv_ld_reload_flag
  5860. case $reload_flag in
  5861. "" | " "*) ;;
  5862. *) reload_flag=" $reload_flag" ;;
  5863. esac
  5864. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5865. case $host_os in
  5866. darwin*)
  5867. if test "$GCC" = yes; then
  5868. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5869. else
  5870. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5871. fi
  5872. ;;
  5873. esac
  5874. if test -n "$ac_tool_prefix"; then
  5875. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5876. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5878. $as_echo_n "checking for $ac_word... " >&6; }
  5879. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5880. $as_echo_n "(cached) " >&6
  5881. else
  5882. if test -n "$OBJDUMP"; then
  5883. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5884. else
  5885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5886. for as_dir in $PATH
  5887. do
  5888. IFS=$as_save_IFS
  5889. test -z "$as_dir" && as_dir=.
  5890. for ac_exec_ext in '' $ac_executable_extensions; do
  5891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5892. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5894. break 2
  5895. fi
  5896. done
  5897. done
  5898. IFS=$as_save_IFS
  5899. fi
  5900. fi
  5901. OBJDUMP=$ac_cv_prog_OBJDUMP
  5902. if test -n "$OBJDUMP"; then
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5904. $as_echo "$OBJDUMP" >&6; }
  5905. else
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5907. $as_echo "no" >&6; }
  5908. fi
  5909. fi
  5910. if test -z "$ac_cv_prog_OBJDUMP"; then
  5911. ac_ct_OBJDUMP=$OBJDUMP
  5912. # Extract the first word of "objdump", so it can be a program name with args.
  5913. set dummy objdump; ac_word=$2
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5915. $as_echo_n "checking for $ac_word... " >&6; }
  5916. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5917. $as_echo_n "(cached) " >&6
  5918. else
  5919. if test -n "$ac_ct_OBJDUMP"; then
  5920. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5921. else
  5922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5923. for as_dir in $PATH
  5924. do
  5925. IFS=$as_save_IFS
  5926. test -z "$as_dir" && as_dir=.
  5927. for ac_exec_ext in '' $ac_executable_extensions; do
  5928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5929. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5931. break 2
  5932. fi
  5933. done
  5934. done
  5935. IFS=$as_save_IFS
  5936. fi
  5937. fi
  5938. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5939. if test -n "$ac_ct_OBJDUMP"; then
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5941. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5942. else
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. if test "x$ac_ct_OBJDUMP" = x; then
  5947. OBJDUMP="false"
  5948. else
  5949. case $cross_compiling:$ac_tool_warned in
  5950. yes:)
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5953. ac_tool_warned=yes ;;
  5954. esac
  5955. OBJDUMP=$ac_ct_OBJDUMP
  5956. fi
  5957. else
  5958. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5959. fi
  5960. test -z "$OBJDUMP" && OBJDUMP=objdump
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5962. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5963. if ${lt_cv_deplibs_check_method+:} false; then :
  5964. $as_echo_n "(cached) " >&6
  5965. else
  5966. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5967. lt_cv_file_magic_test_file=
  5968. lt_cv_deplibs_check_method='unknown'
  5969. # Need to set the preceding variable on all platforms that support
  5970. # interlibrary dependencies.
  5971. # 'none' -- dependencies not supported.
  5972. # `unknown' -- same as none, but documents that we really don't know.
  5973. # 'pass_all' -- all dependencies passed with no checks.
  5974. # 'test_compile' -- check by making test program.
  5975. # 'file_magic [[regex]]' -- check by looking for files in library path
  5976. # which responds to the $file_magic_cmd with a given extended regex.
  5977. # If you have `file' or equivalent on your system and you're not sure
  5978. # whether `pass_all' will *always* work, you probably want this one.
  5979. case $host_os in
  5980. aix[4-9]*)
  5981. lt_cv_deplibs_check_method=pass_all
  5982. ;;
  5983. beos*)
  5984. lt_cv_deplibs_check_method=pass_all
  5985. ;;
  5986. bsdi[45]*)
  5987. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5988. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5989. lt_cv_file_magic_test_file=/shlib/libc.so
  5990. ;;
  5991. cygwin*)
  5992. # func_win32_libid is a shell function defined in ltmain.sh
  5993. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5994. lt_cv_file_magic_cmd='func_win32_libid'
  5995. ;;
  5996. mingw* | pw32*)
  5997. # Base MSYS/MinGW do not provide the 'file' command needed by
  5998. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5999. # unless we find 'file', for example because we are cross-compiling.
  6000. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6001. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6002. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6003. lt_cv_file_magic_cmd='func_win32_libid'
  6004. else
  6005. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6006. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6007. fi
  6008. ;;
  6009. cegcc*)
  6010. # use the weaker test based on 'objdump'. See mingw*.
  6011. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6012. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6013. ;;
  6014. darwin* | rhapsody*)
  6015. lt_cv_deplibs_check_method=pass_all
  6016. ;;
  6017. freebsd* | dragonfly*)
  6018. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6019. case $host_cpu in
  6020. i*86 )
  6021. # Not sure whether the presence of OpenBSD here was a mistake.
  6022. # Let's accept both of them until this is cleared up.
  6023. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6024. lt_cv_file_magic_cmd=/usr/bin/file
  6025. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6026. ;;
  6027. esac
  6028. else
  6029. lt_cv_deplibs_check_method=pass_all
  6030. fi
  6031. ;;
  6032. gnu*)
  6033. lt_cv_deplibs_check_method=pass_all
  6034. ;;
  6035. haiku*)
  6036. lt_cv_deplibs_check_method=pass_all
  6037. ;;
  6038. hpux10.20* | hpux11*)
  6039. lt_cv_file_magic_cmd=/usr/bin/file
  6040. case $host_cpu in
  6041. ia64*)
  6042. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6043. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6044. ;;
  6045. hppa*64*)
  6046. 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]'
  6047. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6048. ;;
  6049. *)
  6050. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6051. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6052. ;;
  6053. esac
  6054. ;;
  6055. interix[3-9]*)
  6056. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6057. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6058. ;;
  6059. irix5* | irix6* | nonstopux*)
  6060. case $LD in
  6061. *-32|*"-32 ") libmagic=32-bit;;
  6062. *-n32|*"-n32 ") libmagic=N32;;
  6063. *-64|*"-64 ") libmagic=64-bit;;
  6064. *) libmagic=never-match;;
  6065. esac
  6066. lt_cv_deplibs_check_method=pass_all
  6067. ;;
  6068. # This must be Linux ELF.
  6069. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  6070. lt_cv_deplibs_check_method=pass_all
  6071. ;;
  6072. netbsd*)
  6073. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6074. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6075. else
  6076. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6077. fi
  6078. ;;
  6079. newos6*)
  6080. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6081. lt_cv_file_magic_cmd=/usr/bin/file
  6082. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6083. ;;
  6084. *nto* | *qnx*)
  6085. lt_cv_deplibs_check_method=pass_all
  6086. ;;
  6087. openbsd*)
  6088. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6089. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6090. else
  6091. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6092. fi
  6093. ;;
  6094. osf3* | osf4* | osf5*)
  6095. lt_cv_deplibs_check_method=pass_all
  6096. ;;
  6097. rdos*)
  6098. lt_cv_deplibs_check_method=pass_all
  6099. ;;
  6100. solaris*)
  6101. lt_cv_deplibs_check_method=pass_all
  6102. ;;
  6103. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6104. lt_cv_deplibs_check_method=pass_all
  6105. ;;
  6106. sysv4 | sysv4.3*)
  6107. case $host_vendor in
  6108. motorola)
  6109. 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]'
  6110. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6111. ;;
  6112. ncr)
  6113. lt_cv_deplibs_check_method=pass_all
  6114. ;;
  6115. sequent)
  6116. lt_cv_file_magic_cmd='/bin/file'
  6117. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6118. ;;
  6119. sni)
  6120. lt_cv_file_magic_cmd='/bin/file'
  6121. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6122. lt_cv_file_magic_test_file=/lib/libc.so
  6123. ;;
  6124. siemens)
  6125. lt_cv_deplibs_check_method=pass_all
  6126. ;;
  6127. pc)
  6128. lt_cv_deplibs_check_method=pass_all
  6129. ;;
  6130. esac
  6131. ;;
  6132. tpf*)
  6133. lt_cv_deplibs_check_method=pass_all
  6134. ;;
  6135. esac
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6138. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6139. file_magic_cmd=$lt_cv_file_magic_cmd
  6140. deplibs_check_method=$lt_cv_deplibs_check_method
  6141. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6142. if test -n "$ac_tool_prefix"; then
  6143. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6144. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6146. $as_echo_n "checking for $ac_word... " >&6; }
  6147. if ${ac_cv_prog_AR+:} false; then :
  6148. $as_echo_n "(cached) " >&6
  6149. else
  6150. if test -n "$AR"; then
  6151. ac_cv_prog_AR="$AR" # Let the user override the test.
  6152. else
  6153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6154. for as_dir in $PATH
  6155. do
  6156. IFS=$as_save_IFS
  6157. test -z "$as_dir" && as_dir=.
  6158. for ac_exec_ext in '' $ac_executable_extensions; do
  6159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6160. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6162. break 2
  6163. fi
  6164. done
  6165. done
  6166. IFS=$as_save_IFS
  6167. fi
  6168. fi
  6169. AR=$ac_cv_prog_AR
  6170. if test -n "$AR"; then
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6172. $as_echo "$AR" >&6; }
  6173. else
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6175. $as_echo "no" >&6; }
  6176. fi
  6177. fi
  6178. if test -z "$ac_cv_prog_AR"; then
  6179. ac_ct_AR=$AR
  6180. # Extract the first word of "ar", so it can be a program name with args.
  6181. set dummy ar; ac_word=$2
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6183. $as_echo_n "checking for $ac_word... " >&6; }
  6184. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6185. $as_echo_n "(cached) " >&6
  6186. else
  6187. if test -n "$ac_ct_AR"; then
  6188. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6189. else
  6190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6191. for as_dir in $PATH
  6192. do
  6193. IFS=$as_save_IFS
  6194. test -z "$as_dir" && as_dir=.
  6195. for ac_exec_ext in '' $ac_executable_extensions; do
  6196. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6197. ac_cv_prog_ac_ct_AR="ar"
  6198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6199. break 2
  6200. fi
  6201. done
  6202. done
  6203. IFS=$as_save_IFS
  6204. fi
  6205. fi
  6206. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6207. if test -n "$ac_ct_AR"; then
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6209. $as_echo "$ac_ct_AR" >&6; }
  6210. else
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6212. $as_echo "no" >&6; }
  6213. fi
  6214. if test "x$ac_ct_AR" = x; then
  6215. AR="false"
  6216. else
  6217. case $cross_compiling:$ac_tool_warned in
  6218. yes:)
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6220. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6221. ac_tool_warned=yes ;;
  6222. esac
  6223. AR=$ac_ct_AR
  6224. fi
  6225. else
  6226. AR="$ac_cv_prog_AR"
  6227. fi
  6228. test -z "$AR" && AR=ar
  6229. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6230. if test -n "$ac_tool_prefix"; then
  6231. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6232. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6234. $as_echo_n "checking for $ac_word... " >&6; }
  6235. if ${ac_cv_prog_STRIP+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. if test -n "$STRIP"; then
  6239. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6240. else
  6241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6242. for as_dir in $PATH
  6243. do
  6244. IFS=$as_save_IFS
  6245. test -z "$as_dir" && as_dir=.
  6246. for ac_exec_ext in '' $ac_executable_extensions; do
  6247. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6248. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6250. break 2
  6251. fi
  6252. done
  6253. done
  6254. IFS=$as_save_IFS
  6255. fi
  6256. fi
  6257. STRIP=$ac_cv_prog_STRIP
  6258. if test -n "$STRIP"; then
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6260. $as_echo "$STRIP" >&6; }
  6261. else
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6263. $as_echo "no" >&6; }
  6264. fi
  6265. fi
  6266. if test -z "$ac_cv_prog_STRIP"; then
  6267. ac_ct_STRIP=$STRIP
  6268. # Extract the first word of "strip", so it can be a program name with args.
  6269. set dummy strip; ac_word=$2
  6270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6271. $as_echo_n "checking for $ac_word... " >&6; }
  6272. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. if test -n "$ac_ct_STRIP"; then
  6276. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6277. else
  6278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6279. for as_dir in $PATH
  6280. do
  6281. IFS=$as_save_IFS
  6282. test -z "$as_dir" && as_dir=.
  6283. for ac_exec_ext in '' $ac_executable_extensions; do
  6284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6285. ac_cv_prog_ac_ct_STRIP="strip"
  6286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6287. break 2
  6288. fi
  6289. done
  6290. done
  6291. IFS=$as_save_IFS
  6292. fi
  6293. fi
  6294. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6295. if test -n "$ac_ct_STRIP"; then
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6297. $as_echo "$ac_ct_STRIP" >&6; }
  6298. else
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6300. $as_echo "no" >&6; }
  6301. fi
  6302. if test "x$ac_ct_STRIP" = x; then
  6303. STRIP=":"
  6304. else
  6305. case $cross_compiling:$ac_tool_warned in
  6306. yes:)
  6307. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6308. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6309. ac_tool_warned=yes ;;
  6310. esac
  6311. STRIP=$ac_ct_STRIP
  6312. fi
  6313. else
  6314. STRIP="$ac_cv_prog_STRIP"
  6315. fi
  6316. test -z "$STRIP" && STRIP=:
  6317. if test -n "$ac_tool_prefix"; then
  6318. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6319. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6321. $as_echo_n "checking for $ac_word... " >&6; }
  6322. if ${ac_cv_prog_RANLIB+:} false; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. if test -n "$RANLIB"; then
  6326. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6327. else
  6328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6329. for as_dir in $PATH
  6330. do
  6331. IFS=$as_save_IFS
  6332. test -z "$as_dir" && as_dir=.
  6333. for ac_exec_ext in '' $ac_executable_extensions; do
  6334. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6335. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6336. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6337. break 2
  6338. fi
  6339. done
  6340. done
  6341. IFS=$as_save_IFS
  6342. fi
  6343. fi
  6344. RANLIB=$ac_cv_prog_RANLIB
  6345. if test -n "$RANLIB"; then
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6347. $as_echo "$RANLIB" >&6; }
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6350. $as_echo "no" >&6; }
  6351. fi
  6352. fi
  6353. if test -z "$ac_cv_prog_RANLIB"; then
  6354. ac_ct_RANLIB=$RANLIB
  6355. # Extract the first word of "ranlib", so it can be a program name with args.
  6356. set dummy ranlib; ac_word=$2
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6358. $as_echo_n "checking for $ac_word... " >&6; }
  6359. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. if test -n "$ac_ct_RANLIB"; then
  6363. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6364. else
  6365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6366. for as_dir in $PATH
  6367. do
  6368. IFS=$as_save_IFS
  6369. test -z "$as_dir" && as_dir=.
  6370. for ac_exec_ext in '' $ac_executable_extensions; do
  6371. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6372. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6373. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6374. break 2
  6375. fi
  6376. done
  6377. done
  6378. IFS=$as_save_IFS
  6379. fi
  6380. fi
  6381. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6382. if test -n "$ac_ct_RANLIB"; then
  6383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6384. $as_echo "$ac_ct_RANLIB" >&6; }
  6385. else
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6387. $as_echo "no" >&6; }
  6388. fi
  6389. if test "x$ac_ct_RANLIB" = x; then
  6390. RANLIB=":"
  6391. else
  6392. case $cross_compiling:$ac_tool_warned in
  6393. yes:)
  6394. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6395. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6396. ac_tool_warned=yes ;;
  6397. esac
  6398. RANLIB=$ac_ct_RANLIB
  6399. fi
  6400. else
  6401. RANLIB="$ac_cv_prog_RANLIB"
  6402. fi
  6403. test -z "$RANLIB" && RANLIB=:
  6404. # Determine commands to create old-style static archives.
  6405. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6406. old_postinstall_cmds='chmod 644 $oldlib'
  6407. old_postuninstall_cmds=
  6408. if test -n "$RANLIB"; then
  6409. case $host_os in
  6410. openbsd*)
  6411. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6412. ;;
  6413. *)
  6414. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6415. ;;
  6416. esac
  6417. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6418. fi
  6419. case $host_os in
  6420. darwin*)
  6421. lock_old_archive_extraction=yes ;;
  6422. *)
  6423. lock_old_archive_extraction=no ;;
  6424. esac
  6425. # If no C compiler was specified, use CC.
  6426. LTCC=${LTCC-"$CC"}
  6427. # If no C compiler flags were specified, use CFLAGS.
  6428. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6429. # Allow CC to be a program name with arguments.
  6430. compiler=$CC
  6431. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6433. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6434. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. # These are sane defaults that work on at least a few old systems.
  6438. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6439. # Character class describing NM global symbol codes.
  6440. symcode='[BCDEGRST]'
  6441. # Regexp to match symbols that can be accessed directly from C.
  6442. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6443. # Define system-specific variables.
  6444. case $host_os in
  6445. aix*)
  6446. symcode='[BCDT]'
  6447. ;;
  6448. cygwin* | mingw* | pw32* | cegcc*)
  6449. symcode='[ABCDGISTW]'
  6450. ;;
  6451. hpux*)
  6452. if test "$host_cpu" = ia64; then
  6453. symcode='[ABCDEGRST]'
  6454. fi
  6455. ;;
  6456. irix* | nonstopux*)
  6457. symcode='[BCDEGRST]'
  6458. ;;
  6459. osf*)
  6460. symcode='[BCDEGQRST]'
  6461. ;;
  6462. solaris*)
  6463. symcode='[BDRT]'
  6464. ;;
  6465. sco3.2v5*)
  6466. symcode='[DT]'
  6467. ;;
  6468. sysv4.2uw2*)
  6469. symcode='[DT]'
  6470. ;;
  6471. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6472. symcode='[ABDT]'
  6473. ;;
  6474. sysv4)
  6475. symcode='[DFNSTU]'
  6476. ;;
  6477. esac
  6478. # If we're using GNU nm, then use its standard symbol codes.
  6479. case `$NM -V 2>&1` in
  6480. *GNU* | *'with BFD'*)
  6481. symcode='[ABCDGIRSTW]' ;;
  6482. esac
  6483. # Transform an extracted symbol line into a proper C declaration.
  6484. # Some systems (esp. on ia64) link data and code symbols differently,
  6485. # so use this general approach.
  6486. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6487. # Transform an extracted symbol line into symbol name and symbol address
  6488. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6489. 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'"
  6490. # Handle CRLF in mingw tool chain
  6491. opt_cr=
  6492. case $build_os in
  6493. mingw*)
  6494. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6495. ;;
  6496. esac
  6497. # Try without a prefix underscore, then with it.
  6498. for ac_symprfx in "" "_"; do
  6499. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6500. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6501. # Write the raw and C identifiers.
  6502. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6503. # Fake it for dumpbin and say T for any non-static function
  6504. # and D for any global variable.
  6505. # Also find C++ and __fastcall symbols from MSVC++,
  6506. # which start with @ or ?.
  6507. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6508. " {last_section=section; section=\$ 3};"\
  6509. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6510. " \$ 0!~/External *\|/{next};"\
  6511. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6512. " {if(hide[section]) next};"\
  6513. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6514. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6515. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6516. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6517. " ' prfx=^$ac_symprfx"
  6518. else
  6519. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6520. fi
  6521. # Check to see that the pipe works correctly.
  6522. pipe_works=no
  6523. rm -f conftest*
  6524. cat > conftest.$ac_ext <<_LT_EOF
  6525. #ifdef __cplusplus
  6526. extern "C" {
  6527. #endif
  6528. char nm_test_var;
  6529. void nm_test_func(void);
  6530. void nm_test_func(void){}
  6531. #ifdef __cplusplus
  6532. }
  6533. #endif
  6534. int main(){nm_test_var='a';nm_test_func();return(0);}
  6535. _LT_EOF
  6536. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6537. (eval $ac_compile) 2>&5
  6538. ac_status=$?
  6539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6540. test $ac_status = 0; }; then
  6541. # Now try to grab the symbols.
  6542. nlist=conftest.nm
  6543. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6544. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6545. ac_status=$?
  6546. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6547. test $ac_status = 0; } && test -s "$nlist"; then
  6548. # Try sorting and uniquifying the output.
  6549. if sort "$nlist" | uniq > "$nlist"T; then
  6550. mv -f "$nlist"T "$nlist"
  6551. else
  6552. rm -f "$nlist"T
  6553. fi
  6554. # Make sure that we snagged all the symbols we need.
  6555. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6556. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6557. cat <<_LT_EOF > conftest.$ac_ext
  6558. #ifdef __cplusplus
  6559. extern "C" {
  6560. #endif
  6561. _LT_EOF
  6562. # Now generate the symbol file.
  6563. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6564. cat <<_LT_EOF >> conftest.$ac_ext
  6565. /* The mapping between symbol names and symbols. */
  6566. const struct {
  6567. const char *name;
  6568. void *address;
  6569. }
  6570. lt__PROGRAM__LTX_preloaded_symbols[] =
  6571. {
  6572. { "@PROGRAM@", (void *) 0 },
  6573. _LT_EOF
  6574. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6575. cat <<\_LT_EOF >> conftest.$ac_ext
  6576. {0, (void *) 0}
  6577. };
  6578. /* This works around a problem in FreeBSD linker */
  6579. #ifdef FREEBSD_WORKAROUND
  6580. static const void *lt_preloaded_setup() {
  6581. return lt__PROGRAM__LTX_preloaded_symbols;
  6582. }
  6583. #endif
  6584. #ifdef __cplusplus
  6585. }
  6586. #endif
  6587. _LT_EOF
  6588. # Now try linking the two files.
  6589. mv conftest.$ac_objext conftstm.$ac_objext
  6590. lt_save_LIBS="$LIBS"
  6591. lt_save_CFLAGS="$CFLAGS"
  6592. LIBS="conftstm.$ac_objext"
  6593. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6594. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6595. (eval $ac_link) 2>&5
  6596. ac_status=$?
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6598. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6599. pipe_works=yes
  6600. fi
  6601. LIBS="$lt_save_LIBS"
  6602. CFLAGS="$lt_save_CFLAGS"
  6603. else
  6604. echo "cannot find nm_test_func in $nlist" >&5
  6605. fi
  6606. else
  6607. echo "cannot find nm_test_var in $nlist" >&5
  6608. fi
  6609. else
  6610. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6611. fi
  6612. else
  6613. echo "$progname: failed program was:" >&5
  6614. cat conftest.$ac_ext >&5
  6615. fi
  6616. rm -rf conftest* conftst*
  6617. # Do not use the global_symbol_pipe unless it works.
  6618. if test "$pipe_works" = yes; then
  6619. break
  6620. else
  6621. lt_cv_sys_global_symbol_pipe=
  6622. fi
  6623. done
  6624. fi
  6625. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6626. lt_cv_sys_global_symbol_to_cdecl=
  6627. fi
  6628. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6630. $as_echo "failed" >&6; }
  6631. else
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6633. $as_echo "ok" >&6; }
  6634. fi
  6635. # Check whether --enable-libtool-lock was given.
  6636. if test "${enable_libtool_lock+set}" = set; then :
  6637. enableval=$enable_libtool_lock;
  6638. fi
  6639. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6640. # Some flags need to be propagated to the compiler or linker for good
  6641. # libtool support.
  6642. case $host in
  6643. ia64-*-hpux*)
  6644. # Find out which ABI we are using.
  6645. echo 'int i;' > conftest.$ac_ext
  6646. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6647. (eval $ac_compile) 2>&5
  6648. ac_status=$?
  6649. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6650. test $ac_status = 0; }; then
  6651. case `/usr/bin/file conftest.$ac_objext` in
  6652. *ELF-32*)
  6653. HPUX_IA64_MODE="32"
  6654. ;;
  6655. *ELF-64*)
  6656. HPUX_IA64_MODE="64"
  6657. ;;
  6658. esac
  6659. fi
  6660. rm -rf conftest*
  6661. ;;
  6662. *-*-irix6*)
  6663. # Find out which ABI we are using.
  6664. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6665. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6666. (eval $ac_compile) 2>&5
  6667. ac_status=$?
  6668. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6669. test $ac_status = 0; }; then
  6670. if test "$lt_cv_prog_gnu_ld" = yes; then
  6671. case `/usr/bin/file conftest.$ac_objext` in
  6672. *32-bit*)
  6673. LD="${LD-ld} -melf32bsmip"
  6674. ;;
  6675. *N32*)
  6676. LD="${LD-ld} -melf32bmipn32"
  6677. ;;
  6678. *64-bit*)
  6679. LD="${LD-ld} -melf64bmip"
  6680. ;;
  6681. esac
  6682. else
  6683. case `/usr/bin/file conftest.$ac_objext` in
  6684. *32-bit*)
  6685. LD="${LD-ld} -32"
  6686. ;;
  6687. *N32*)
  6688. LD="${LD-ld} -n32"
  6689. ;;
  6690. *64-bit*)
  6691. LD="${LD-ld} -64"
  6692. ;;
  6693. esac
  6694. fi
  6695. fi
  6696. rm -rf conftest*
  6697. ;;
  6698. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6699. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6700. # Find out which ABI we are using.
  6701. echo 'int i;' > conftest.$ac_ext
  6702. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6703. (eval $ac_compile) 2>&5
  6704. ac_status=$?
  6705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6706. test $ac_status = 0; }; then
  6707. case `/usr/bin/file conftest.o` in
  6708. *32-bit*)
  6709. case $host in
  6710. x86_64-*kfreebsd*-gnu)
  6711. LD="${LD-ld} -m elf_i386_fbsd"
  6712. ;;
  6713. x86_64-*linux*)
  6714. case `/usr/bin/file conftest.o` in
  6715. *x86-64*)
  6716. LD="${LD-ld} -m elf32_x86_64"
  6717. ;;
  6718. *)
  6719. LD="${LD-ld} -m elf_i386"
  6720. ;;
  6721. esac
  6722. ;;
  6723. powerpc64le-*linux*)
  6724. LD="${LD-ld} -m elf32lppclinux"
  6725. ;;
  6726. powerpc64-*linux*)
  6727. LD="${LD-ld} -m elf32ppclinux"
  6728. ;;
  6729. s390x-*linux*)
  6730. LD="${LD-ld} -m elf_s390"
  6731. ;;
  6732. sparc64-*linux*)
  6733. LD="${LD-ld} -m elf32_sparc"
  6734. ;;
  6735. esac
  6736. ;;
  6737. *64-bit*)
  6738. case $host in
  6739. x86_64-*kfreebsd*-gnu)
  6740. LD="${LD-ld} -m elf_x86_64_fbsd"
  6741. ;;
  6742. x86_64-*linux*)
  6743. LD="${LD-ld} -m elf_x86_64"
  6744. ;;
  6745. powerpcle-*linux*)
  6746. LD="${LD-ld} -m elf64lppc"
  6747. ;;
  6748. powerpc-*linux*)
  6749. LD="${LD-ld} -m elf64ppc"
  6750. ;;
  6751. s390*-*linux*|s390*-*tpf*)
  6752. LD="${LD-ld} -m elf64_s390"
  6753. ;;
  6754. sparc*-*linux*)
  6755. LD="${LD-ld} -m elf64_sparc"
  6756. ;;
  6757. esac
  6758. ;;
  6759. esac
  6760. fi
  6761. rm -rf conftest*
  6762. ;;
  6763. *-*-sco3.2v5*)
  6764. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6765. SAVE_CFLAGS="$CFLAGS"
  6766. CFLAGS="$CFLAGS -belf"
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6768. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6769. if ${lt_cv_cc_needs_belf+:} false; then :
  6770. $as_echo_n "(cached) " >&6
  6771. else
  6772. ac_ext=c
  6773. ac_cpp='$CPP $CPPFLAGS'
  6774. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6775. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6776. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6778. /* end confdefs.h. */
  6779. int
  6780. main ()
  6781. {
  6782. ;
  6783. return 0;
  6784. }
  6785. _ACEOF
  6786. if ac_fn_c_try_link "$LINENO"; then :
  6787. lt_cv_cc_needs_belf=yes
  6788. else
  6789. lt_cv_cc_needs_belf=no
  6790. fi
  6791. rm -f core conftest.err conftest.$ac_objext \
  6792. conftest$ac_exeext conftest.$ac_ext
  6793. ac_ext=c
  6794. ac_cpp='$CPP $CPPFLAGS'
  6795. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6796. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6797. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6800. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6801. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6802. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6803. CFLAGS="$SAVE_CFLAGS"
  6804. fi
  6805. ;;
  6806. sparc*-*solaris*)
  6807. # Find out which ABI we are using.
  6808. echo 'int i;' > conftest.$ac_ext
  6809. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6810. (eval $ac_compile) 2>&5
  6811. ac_status=$?
  6812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6813. test $ac_status = 0; }; then
  6814. case `/usr/bin/file conftest.o` in
  6815. *64-bit*)
  6816. case $lt_cv_prog_gnu_ld in
  6817. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6818. *)
  6819. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6820. LD="${LD-ld} -64"
  6821. fi
  6822. ;;
  6823. esac
  6824. ;;
  6825. esac
  6826. fi
  6827. rm -rf conftest*
  6828. ;;
  6829. esac
  6830. need_locks="$enable_libtool_lock"
  6831. case $host_os in
  6832. rhapsody* | darwin*)
  6833. if test -n "$ac_tool_prefix"; then
  6834. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6835. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6837. $as_echo_n "checking for $ac_word... " >&6; }
  6838. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6839. $as_echo_n "(cached) " >&6
  6840. else
  6841. if test -n "$DSYMUTIL"; then
  6842. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6843. else
  6844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6845. for as_dir in $PATH
  6846. do
  6847. IFS=$as_save_IFS
  6848. test -z "$as_dir" && as_dir=.
  6849. for ac_exec_ext in '' $ac_executable_extensions; do
  6850. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6851. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6852. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6853. break 2
  6854. fi
  6855. done
  6856. done
  6857. IFS=$as_save_IFS
  6858. fi
  6859. fi
  6860. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6861. if test -n "$DSYMUTIL"; then
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6863. $as_echo "$DSYMUTIL" >&6; }
  6864. else
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6866. $as_echo "no" >&6; }
  6867. fi
  6868. fi
  6869. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6870. ac_ct_DSYMUTIL=$DSYMUTIL
  6871. # Extract the first word of "dsymutil", so it can be a program name with args.
  6872. set dummy dsymutil; ac_word=$2
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6874. $as_echo_n "checking for $ac_word... " >&6; }
  6875. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. if test -n "$ac_ct_DSYMUTIL"; then
  6879. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6880. else
  6881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6882. for as_dir in $PATH
  6883. do
  6884. IFS=$as_save_IFS
  6885. test -z "$as_dir" && as_dir=.
  6886. for ac_exec_ext in '' $ac_executable_extensions; do
  6887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6888. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6890. break 2
  6891. fi
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. fi
  6896. fi
  6897. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6898. if test -n "$ac_ct_DSYMUTIL"; then
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6900. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6901. else
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6903. $as_echo "no" >&6; }
  6904. fi
  6905. if test "x$ac_ct_DSYMUTIL" = x; then
  6906. DSYMUTIL=":"
  6907. else
  6908. case $cross_compiling:$ac_tool_warned in
  6909. yes:)
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6911. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6912. ac_tool_warned=yes ;;
  6913. esac
  6914. DSYMUTIL=$ac_ct_DSYMUTIL
  6915. fi
  6916. else
  6917. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6918. fi
  6919. if test -n "$ac_tool_prefix"; then
  6920. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6921. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6923. $as_echo_n "checking for $ac_word... " >&6; }
  6924. if ${ac_cv_prog_NMEDIT+:} false; then :
  6925. $as_echo_n "(cached) " >&6
  6926. else
  6927. if test -n "$NMEDIT"; then
  6928. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6929. else
  6930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6931. for as_dir in $PATH
  6932. do
  6933. IFS=$as_save_IFS
  6934. test -z "$as_dir" && as_dir=.
  6935. for ac_exec_ext in '' $ac_executable_extensions; do
  6936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6937. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6939. break 2
  6940. fi
  6941. done
  6942. done
  6943. IFS=$as_save_IFS
  6944. fi
  6945. fi
  6946. NMEDIT=$ac_cv_prog_NMEDIT
  6947. if test -n "$NMEDIT"; then
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6949. $as_echo "$NMEDIT" >&6; }
  6950. else
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6952. $as_echo "no" >&6; }
  6953. fi
  6954. fi
  6955. if test -z "$ac_cv_prog_NMEDIT"; then
  6956. ac_ct_NMEDIT=$NMEDIT
  6957. # Extract the first word of "nmedit", so it can be a program name with args.
  6958. set dummy nmedit; ac_word=$2
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6960. $as_echo_n "checking for $ac_word... " >&6; }
  6961. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. if test -n "$ac_ct_NMEDIT"; then
  6965. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. test -z "$as_dir" && as_dir=.
  6972. for ac_exec_ext in '' $ac_executable_extensions; do
  6973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6974. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6976. break 2
  6977. fi
  6978. done
  6979. done
  6980. IFS=$as_save_IFS
  6981. fi
  6982. fi
  6983. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6984. if test -n "$ac_ct_NMEDIT"; then
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6986. $as_echo "$ac_ct_NMEDIT" >&6; }
  6987. else
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6989. $as_echo "no" >&6; }
  6990. fi
  6991. if test "x$ac_ct_NMEDIT" = x; then
  6992. NMEDIT=":"
  6993. else
  6994. case $cross_compiling:$ac_tool_warned in
  6995. yes:)
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6997. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6998. ac_tool_warned=yes ;;
  6999. esac
  7000. NMEDIT=$ac_ct_NMEDIT
  7001. fi
  7002. else
  7003. NMEDIT="$ac_cv_prog_NMEDIT"
  7004. fi
  7005. if test -n "$ac_tool_prefix"; then
  7006. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7007. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7009. $as_echo_n "checking for $ac_word... " >&6; }
  7010. if ${ac_cv_prog_LIPO+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. if test -n "$LIPO"; then
  7014. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7015. else
  7016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7017. for as_dir in $PATH
  7018. do
  7019. IFS=$as_save_IFS
  7020. test -z "$as_dir" && as_dir=.
  7021. for ac_exec_ext in '' $ac_executable_extensions; do
  7022. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7023. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7024. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7025. break 2
  7026. fi
  7027. done
  7028. done
  7029. IFS=$as_save_IFS
  7030. fi
  7031. fi
  7032. LIPO=$ac_cv_prog_LIPO
  7033. if test -n "$LIPO"; then
  7034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7035. $as_echo "$LIPO" >&6; }
  7036. else
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7038. $as_echo "no" >&6; }
  7039. fi
  7040. fi
  7041. if test -z "$ac_cv_prog_LIPO"; then
  7042. ac_ct_LIPO=$LIPO
  7043. # Extract the first word of "lipo", so it can be a program name with args.
  7044. set dummy lipo; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$ac_ct_LIPO"; then
  7051. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7060. ac_cv_prog_ac_ct_LIPO="lipo"
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7070. if test -n "$ac_ct_LIPO"; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7072. $as_echo "$ac_ct_LIPO" >&6; }
  7073. else
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. if test "x$ac_ct_LIPO" = x; then
  7078. LIPO=":"
  7079. else
  7080. case $cross_compiling:$ac_tool_warned in
  7081. yes:)
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7083. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7084. ac_tool_warned=yes ;;
  7085. esac
  7086. LIPO=$ac_ct_LIPO
  7087. fi
  7088. else
  7089. LIPO="$ac_cv_prog_LIPO"
  7090. fi
  7091. if test -n "$ac_tool_prefix"; then
  7092. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7093. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7095. $as_echo_n "checking for $ac_word... " >&6; }
  7096. if ${ac_cv_prog_OTOOL+:} false; then :
  7097. $as_echo_n "(cached) " >&6
  7098. else
  7099. if test -n "$OTOOL"; then
  7100. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7101. else
  7102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7103. for as_dir in $PATH
  7104. do
  7105. IFS=$as_save_IFS
  7106. test -z "$as_dir" && as_dir=.
  7107. for ac_exec_ext in '' $ac_executable_extensions; do
  7108. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7109. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7110. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7111. break 2
  7112. fi
  7113. done
  7114. done
  7115. IFS=$as_save_IFS
  7116. fi
  7117. fi
  7118. OTOOL=$ac_cv_prog_OTOOL
  7119. if test -n "$OTOOL"; then
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7121. $as_echo "$OTOOL" >&6; }
  7122. else
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7124. $as_echo "no" >&6; }
  7125. fi
  7126. fi
  7127. if test -z "$ac_cv_prog_OTOOL"; then
  7128. ac_ct_OTOOL=$OTOOL
  7129. # Extract the first word of "otool", so it can be a program name with args.
  7130. set dummy otool; ac_word=$2
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7132. $as_echo_n "checking for $ac_word... " >&6; }
  7133. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7134. $as_echo_n "(cached) " >&6
  7135. else
  7136. if test -n "$ac_ct_OTOOL"; then
  7137. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7138. else
  7139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7140. for as_dir in $PATH
  7141. do
  7142. IFS=$as_save_IFS
  7143. test -z "$as_dir" && as_dir=.
  7144. for ac_exec_ext in '' $ac_executable_extensions; do
  7145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7146. ac_cv_prog_ac_ct_OTOOL="otool"
  7147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7148. break 2
  7149. fi
  7150. done
  7151. done
  7152. IFS=$as_save_IFS
  7153. fi
  7154. fi
  7155. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7156. if test -n "$ac_ct_OTOOL"; then
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7158. $as_echo "$ac_ct_OTOOL" >&6; }
  7159. else
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7161. $as_echo "no" >&6; }
  7162. fi
  7163. if test "x$ac_ct_OTOOL" = x; then
  7164. OTOOL=":"
  7165. else
  7166. case $cross_compiling:$ac_tool_warned in
  7167. yes:)
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7169. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7170. ac_tool_warned=yes ;;
  7171. esac
  7172. OTOOL=$ac_ct_OTOOL
  7173. fi
  7174. else
  7175. OTOOL="$ac_cv_prog_OTOOL"
  7176. fi
  7177. if test -n "$ac_tool_prefix"; then
  7178. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7179. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7181. $as_echo_n "checking for $ac_word... " >&6; }
  7182. if ${ac_cv_prog_OTOOL64+:} false; then :
  7183. $as_echo_n "(cached) " >&6
  7184. else
  7185. if test -n "$OTOOL64"; then
  7186. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7187. else
  7188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7189. for as_dir in $PATH
  7190. do
  7191. IFS=$as_save_IFS
  7192. test -z "$as_dir" && as_dir=.
  7193. for ac_exec_ext in '' $ac_executable_extensions; do
  7194. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7195. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7196. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7197. break 2
  7198. fi
  7199. done
  7200. done
  7201. IFS=$as_save_IFS
  7202. fi
  7203. fi
  7204. OTOOL64=$ac_cv_prog_OTOOL64
  7205. if test -n "$OTOOL64"; then
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7207. $as_echo "$OTOOL64" >&6; }
  7208. else
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7210. $as_echo "no" >&6; }
  7211. fi
  7212. fi
  7213. if test -z "$ac_cv_prog_OTOOL64"; then
  7214. ac_ct_OTOOL64=$OTOOL64
  7215. # Extract the first word of "otool64", so it can be a program name with args.
  7216. set dummy otool64; ac_word=$2
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7218. $as_echo_n "checking for $ac_word... " >&6; }
  7219. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. if test -n "$ac_ct_OTOOL64"; then
  7223. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7224. else
  7225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7226. for as_dir in $PATH
  7227. do
  7228. IFS=$as_save_IFS
  7229. test -z "$as_dir" && as_dir=.
  7230. for ac_exec_ext in '' $ac_executable_extensions; do
  7231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7232. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7234. break 2
  7235. fi
  7236. done
  7237. done
  7238. IFS=$as_save_IFS
  7239. fi
  7240. fi
  7241. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7242. if test -n "$ac_ct_OTOOL64"; then
  7243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7244. $as_echo "$ac_ct_OTOOL64" >&6; }
  7245. else
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7247. $as_echo "no" >&6; }
  7248. fi
  7249. if test "x$ac_ct_OTOOL64" = x; then
  7250. OTOOL64=":"
  7251. else
  7252. case $cross_compiling:$ac_tool_warned in
  7253. yes:)
  7254. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7255. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7256. ac_tool_warned=yes ;;
  7257. esac
  7258. OTOOL64=$ac_ct_OTOOL64
  7259. fi
  7260. else
  7261. OTOOL64="$ac_cv_prog_OTOOL64"
  7262. fi
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7264. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7265. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7266. $as_echo_n "(cached) " >&6
  7267. else
  7268. lt_cv_apple_cc_single_mod=no
  7269. if test -z "${LT_MULTI_MODULE}"; then
  7270. # By default we will add the -single_module flag. You can override
  7271. # by either setting the environment variable LT_MULTI_MODULE
  7272. # non-empty at configure time, or by adding -multi_module to the
  7273. # link flags.
  7274. rm -rf libconftest.dylib*
  7275. echo "int foo(void){return 1;}" > conftest.c
  7276. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7277. -dynamiclib -Wl,-single_module conftest.c" >&5
  7278. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7279. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7280. _lt_result=$?
  7281. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7282. lt_cv_apple_cc_single_mod=yes
  7283. else
  7284. cat conftest.err >&5
  7285. fi
  7286. rm -rf libconftest.dylib*
  7287. rm -f conftest.*
  7288. fi
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7291. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7293. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7294. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7295. $as_echo_n "(cached) " >&6
  7296. else
  7297. lt_cv_ld_exported_symbols_list=no
  7298. save_LDFLAGS=$LDFLAGS
  7299. echo "_main" > conftest.sym
  7300. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7302. /* end confdefs.h. */
  7303. int
  7304. main ()
  7305. {
  7306. ;
  7307. return 0;
  7308. }
  7309. _ACEOF
  7310. if ac_fn_c_try_link "$LINENO"; then :
  7311. lt_cv_ld_exported_symbols_list=yes
  7312. else
  7313. lt_cv_ld_exported_symbols_list=no
  7314. fi
  7315. rm -f core conftest.err conftest.$ac_objext \
  7316. conftest$ac_exeext conftest.$ac_ext
  7317. LDFLAGS="$save_LDFLAGS"
  7318. fi
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7320. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7322. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7323. if ${lt_cv_ld_force_load+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. lt_cv_ld_force_load=no
  7327. cat > conftest.c << _LT_EOF
  7328. int forced_loaded() { return 2;}
  7329. _LT_EOF
  7330. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7331. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7332. echo "$AR cru libconftest.a conftest.o" >&5
  7333. $AR cru libconftest.a conftest.o 2>&5
  7334. cat > conftest.c << _LT_EOF
  7335. int main() { return 0;}
  7336. _LT_EOF
  7337. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7338. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7339. _lt_result=$?
  7340. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7341. lt_cv_ld_force_load=yes
  7342. else
  7343. cat conftest.err >&5
  7344. fi
  7345. rm -f conftest.err libconftest.a conftest conftest.c
  7346. rm -rf conftest.dSYM
  7347. fi
  7348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7349. $as_echo "$lt_cv_ld_force_load" >&6; }
  7350. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7351. # build without first building modern cctools / linker.
  7352. case $host_cpu-$host_os in
  7353. *-rhapsody* | *-darwin1.[012])
  7354. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7355. *-darwin1.*)
  7356. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7357. *-darwin*)
  7358. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7359. # deployment target is forced to an earlier version.
  7360. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7361. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7362. ;;
  7363. 10.[012][,.]*)
  7364. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7365. ;;
  7366. *)
  7367. ;;
  7368. esac
  7369. ;;
  7370. esac
  7371. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7372. _lt_dar_single_mod='$single_module'
  7373. fi
  7374. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7375. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7376. else
  7377. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7378. fi
  7379. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7380. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7381. else
  7382. _lt_dsymutil=
  7383. fi
  7384. ;;
  7385. esac
  7386. ac_ext=c
  7387. ac_cpp='$CPP $CPPFLAGS'
  7388. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7389. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7390. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7392. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7393. # On Suns, sometimes $CPP names a directory.
  7394. if test -n "$CPP" && test -d "$CPP"; then
  7395. CPP=
  7396. fi
  7397. if test -z "$CPP"; then
  7398. if ${ac_cv_prog_CPP+:} false; then :
  7399. $as_echo_n "(cached) " >&6
  7400. else
  7401. # Double quotes because CPP needs to be expanded
  7402. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7403. do
  7404. ac_preproc_ok=false
  7405. for ac_c_preproc_warn_flag in '' yes
  7406. do
  7407. # Use a header file that comes with gcc, so configuring glibc
  7408. # with a fresh cross-compiler works.
  7409. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7410. # <limits.h> exists even on freestanding compilers.
  7411. # On the NeXT, cc -E runs the code through the compiler's parser,
  7412. # not just through cpp. "Syntax error" is here to catch this case.
  7413. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7414. /* end confdefs.h. */
  7415. #ifdef __STDC__
  7416. # include <limits.h>
  7417. #else
  7418. # include <assert.h>
  7419. #endif
  7420. Syntax error
  7421. _ACEOF
  7422. if ac_fn_c_try_cpp "$LINENO"; then :
  7423. else
  7424. # Broken: fails on valid input.
  7425. continue
  7426. fi
  7427. rm -f conftest.err conftest.i conftest.$ac_ext
  7428. # OK, works on sane cases. Now check whether nonexistent headers
  7429. # can be detected and how.
  7430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7431. /* end confdefs.h. */
  7432. #include <ac_nonexistent.h>
  7433. _ACEOF
  7434. if ac_fn_c_try_cpp "$LINENO"; then :
  7435. # Broken: success on invalid input.
  7436. continue
  7437. else
  7438. # Passes both tests.
  7439. ac_preproc_ok=:
  7440. break
  7441. fi
  7442. rm -f conftest.err conftest.i conftest.$ac_ext
  7443. done
  7444. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7445. rm -f conftest.i conftest.err conftest.$ac_ext
  7446. if $ac_preproc_ok; then :
  7447. break
  7448. fi
  7449. done
  7450. ac_cv_prog_CPP=$CPP
  7451. fi
  7452. CPP=$ac_cv_prog_CPP
  7453. else
  7454. ac_cv_prog_CPP=$CPP
  7455. fi
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7457. $as_echo "$CPP" >&6; }
  7458. ac_preproc_ok=false
  7459. for ac_c_preproc_warn_flag in '' yes
  7460. do
  7461. # Use a header file that comes with gcc, so configuring glibc
  7462. # with a fresh cross-compiler works.
  7463. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7464. # <limits.h> exists even on freestanding compilers.
  7465. # On the NeXT, cc -E runs the code through the compiler's parser,
  7466. # not just through cpp. "Syntax error" is here to catch this case.
  7467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7468. /* end confdefs.h. */
  7469. #ifdef __STDC__
  7470. # include <limits.h>
  7471. #else
  7472. # include <assert.h>
  7473. #endif
  7474. Syntax error
  7475. _ACEOF
  7476. if ac_fn_c_try_cpp "$LINENO"; then :
  7477. else
  7478. # Broken: fails on valid input.
  7479. continue
  7480. fi
  7481. rm -f conftest.err conftest.i conftest.$ac_ext
  7482. # OK, works on sane cases. Now check whether nonexistent headers
  7483. # can be detected and how.
  7484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7485. /* end confdefs.h. */
  7486. #include <ac_nonexistent.h>
  7487. _ACEOF
  7488. if ac_fn_c_try_cpp "$LINENO"; then :
  7489. # Broken: success on invalid input.
  7490. continue
  7491. else
  7492. # Passes both tests.
  7493. ac_preproc_ok=:
  7494. break
  7495. fi
  7496. rm -f conftest.err conftest.i conftest.$ac_ext
  7497. done
  7498. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7499. rm -f conftest.i conftest.err conftest.$ac_ext
  7500. if $ac_preproc_ok; then :
  7501. else
  7502. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7503. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7504. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7505. See \`config.log' for more details" "$LINENO" 5; }
  7506. fi
  7507. ac_ext=c
  7508. ac_cpp='$CPP $CPPFLAGS'
  7509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7513. $as_echo_n "checking for ANSI C header files... " >&6; }
  7514. if ${ac_cv_header_stdc+:} false; then :
  7515. $as_echo_n "(cached) " >&6
  7516. else
  7517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7518. /* end confdefs.h. */
  7519. #include <stdlib.h>
  7520. #include <stdarg.h>
  7521. #include <string.h>
  7522. #include <float.h>
  7523. int
  7524. main ()
  7525. {
  7526. ;
  7527. return 0;
  7528. }
  7529. _ACEOF
  7530. if ac_fn_c_try_compile "$LINENO"; then :
  7531. ac_cv_header_stdc=yes
  7532. else
  7533. ac_cv_header_stdc=no
  7534. fi
  7535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7536. if test $ac_cv_header_stdc = yes; then
  7537. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7539. /* end confdefs.h. */
  7540. #include <string.h>
  7541. _ACEOF
  7542. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7543. $EGREP "memchr" >/dev/null 2>&1; then :
  7544. else
  7545. ac_cv_header_stdc=no
  7546. fi
  7547. rm -f conftest*
  7548. fi
  7549. if test $ac_cv_header_stdc = yes; then
  7550. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7552. /* end confdefs.h. */
  7553. #include <stdlib.h>
  7554. _ACEOF
  7555. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7556. $EGREP "free" >/dev/null 2>&1; then :
  7557. else
  7558. ac_cv_header_stdc=no
  7559. fi
  7560. rm -f conftest*
  7561. fi
  7562. if test $ac_cv_header_stdc = yes; then
  7563. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7564. if test "$cross_compiling" = yes; then :
  7565. :
  7566. else
  7567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7568. /* end confdefs.h. */
  7569. #include <ctype.h>
  7570. #include <stdlib.h>
  7571. #if ((' ' & 0x0FF) == 0x020)
  7572. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7573. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7574. #else
  7575. # define ISLOWER(c) \
  7576. (('a' <= (c) && (c) <= 'i') \
  7577. || ('j' <= (c) && (c) <= 'r') \
  7578. || ('s' <= (c) && (c) <= 'z'))
  7579. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7580. #endif
  7581. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7582. int
  7583. main ()
  7584. {
  7585. int i;
  7586. for (i = 0; i < 256; i++)
  7587. if (XOR (islower (i), ISLOWER (i))
  7588. || toupper (i) != TOUPPER (i))
  7589. return 2;
  7590. return 0;
  7591. }
  7592. _ACEOF
  7593. if ac_fn_c_try_run "$LINENO"; then :
  7594. else
  7595. ac_cv_header_stdc=no
  7596. fi
  7597. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7598. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7599. fi
  7600. fi
  7601. fi
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7603. $as_echo "$ac_cv_header_stdc" >&6; }
  7604. if test $ac_cv_header_stdc = yes; then
  7605. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7606. fi
  7607. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7608. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7609. inttypes.h stdint.h unistd.h
  7610. do :
  7611. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7612. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7613. "
  7614. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7615. cat >>confdefs.h <<_ACEOF
  7616. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7617. _ACEOF
  7618. fi
  7619. done
  7620. for ac_header in dlfcn.h
  7621. do :
  7622. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7623. "
  7624. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7625. cat >>confdefs.h <<_ACEOF
  7626. #define HAVE_DLFCN_H 1
  7627. _ACEOF
  7628. fi
  7629. done
  7630. # Set options
  7631. enable_dlopen=no
  7632. enable_win32_dll=no
  7633. # Check whether --enable-shared was given.
  7634. if test "${enable_shared+set}" = set; then :
  7635. enableval=$enable_shared; p=${PACKAGE-default}
  7636. case $enableval in
  7637. yes) enable_shared=yes ;;
  7638. no) enable_shared=no ;;
  7639. *)
  7640. enable_shared=no
  7641. # Look at the argument we got. We use all the common list separators.
  7642. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7643. for pkg in $enableval; do
  7644. IFS="$lt_save_ifs"
  7645. if test "X$pkg" = "X$p"; then
  7646. enable_shared=yes
  7647. fi
  7648. done
  7649. IFS="$lt_save_ifs"
  7650. ;;
  7651. esac
  7652. else
  7653. enable_shared=yes
  7654. fi
  7655. # Check whether --enable-static was given.
  7656. if test "${enable_static+set}" = set; then :
  7657. enableval=$enable_static; p=${PACKAGE-default}
  7658. case $enableval in
  7659. yes) enable_static=yes ;;
  7660. no) enable_static=no ;;
  7661. *)
  7662. enable_static=no
  7663. # Look at the argument we got. We use all the common list separators.
  7664. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7665. for pkg in $enableval; do
  7666. IFS="$lt_save_ifs"
  7667. if test "X$pkg" = "X$p"; then
  7668. enable_static=yes
  7669. fi
  7670. done
  7671. IFS="$lt_save_ifs"
  7672. ;;
  7673. esac
  7674. else
  7675. enable_static=yes
  7676. fi
  7677. # Check whether --with-pic was given.
  7678. if test "${with_pic+set}" = set; then :
  7679. withval=$with_pic; pic_mode="$withval"
  7680. else
  7681. pic_mode=default
  7682. fi
  7683. test -z "$pic_mode" && pic_mode=default
  7684. # Check whether --enable-fast-install was given.
  7685. if test "${enable_fast_install+set}" = set; then :
  7686. enableval=$enable_fast_install; p=${PACKAGE-default}
  7687. case $enableval in
  7688. yes) enable_fast_install=yes ;;
  7689. no) enable_fast_install=no ;;
  7690. *)
  7691. enable_fast_install=no
  7692. # Look at the argument we got. We use all the common list separators.
  7693. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7694. for pkg in $enableval; do
  7695. IFS="$lt_save_ifs"
  7696. if test "X$pkg" = "X$p"; then
  7697. enable_fast_install=yes
  7698. fi
  7699. done
  7700. IFS="$lt_save_ifs"
  7701. ;;
  7702. esac
  7703. else
  7704. enable_fast_install=yes
  7705. fi
  7706. # This can be used to rebuild libtool when needed
  7707. LIBTOOL_DEPS="$ltmain"
  7708. # Always use our own libtool.
  7709. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7710. test -z "$LN_S" && LN_S="ln -s"
  7711. if test -n "${ZSH_VERSION+set}" ; then
  7712. setopt NO_GLOB_SUBST
  7713. fi
  7714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7715. $as_echo_n "checking for objdir... " >&6; }
  7716. if ${lt_cv_objdir+:} false; then :
  7717. $as_echo_n "(cached) " >&6
  7718. else
  7719. rm -f .libs 2>/dev/null
  7720. mkdir .libs 2>/dev/null
  7721. if test -d .libs; then
  7722. lt_cv_objdir=.libs
  7723. else
  7724. # MS-DOS does not allow filenames that begin with a dot.
  7725. lt_cv_objdir=_libs
  7726. fi
  7727. rmdir .libs 2>/dev/null
  7728. fi
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7730. $as_echo "$lt_cv_objdir" >&6; }
  7731. objdir=$lt_cv_objdir
  7732. cat >>confdefs.h <<_ACEOF
  7733. #define LT_OBJDIR "$lt_cv_objdir/"
  7734. _ACEOF
  7735. case $host_os in
  7736. aix3*)
  7737. # AIX sometimes has problems with the GCC collect2 program. For some
  7738. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7739. # vanish in a puff of smoke.
  7740. if test "X${COLLECT_NAMES+set}" != Xset; then
  7741. COLLECT_NAMES=
  7742. export COLLECT_NAMES
  7743. fi
  7744. ;;
  7745. esac
  7746. # Global variables:
  7747. ofile=libtool
  7748. can_build_shared=yes
  7749. # All known linkers require a `.a' archive for static linking (except MSVC,
  7750. # which needs '.lib').
  7751. libext=a
  7752. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7753. old_CC="$CC"
  7754. old_CFLAGS="$CFLAGS"
  7755. # Set sane defaults for various variables
  7756. test -z "$CC" && CC=cc
  7757. test -z "$LTCC" && LTCC=$CC
  7758. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7759. test -z "$LD" && LD=ld
  7760. test -z "$ac_objext" && ac_objext=o
  7761. for cc_temp in $compiler""; do
  7762. case $cc_temp in
  7763. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7764. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7765. \-*) ;;
  7766. *) break;;
  7767. esac
  7768. done
  7769. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7770. # Only perform the check for file, if the check method requires it
  7771. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7772. case $deplibs_check_method in
  7773. file_magic*)
  7774. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7776. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7777. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7778. $as_echo_n "(cached) " >&6
  7779. else
  7780. case $MAGIC_CMD in
  7781. [\\/*] | ?:[\\/]*)
  7782. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7783. ;;
  7784. *)
  7785. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7786. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7787. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7788. for ac_dir in $ac_dummy; do
  7789. IFS="$lt_save_ifs"
  7790. test -z "$ac_dir" && ac_dir=.
  7791. if test -f $ac_dir/${ac_tool_prefix}file; then
  7792. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7793. if test -n "$file_magic_test_file"; then
  7794. case $deplibs_check_method in
  7795. "file_magic "*)
  7796. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7797. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7798. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7799. $EGREP "$file_magic_regex" > /dev/null; then
  7800. :
  7801. else
  7802. cat <<_LT_EOF 1>&2
  7803. *** Warning: the command libtool uses to detect shared libraries,
  7804. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7805. *** The result is that libtool may fail to recognize shared libraries
  7806. *** as such. This will affect the creation of libtool libraries that
  7807. *** depend on shared libraries, but programs linked with such libtool
  7808. *** libraries will work regardless of this problem. Nevertheless, you
  7809. *** may want to report the problem to your system manager and/or to
  7810. *** bug-libtool@gnu.org
  7811. _LT_EOF
  7812. fi ;;
  7813. esac
  7814. fi
  7815. break
  7816. fi
  7817. done
  7818. IFS="$lt_save_ifs"
  7819. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7820. ;;
  7821. esac
  7822. fi
  7823. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7824. if test -n "$MAGIC_CMD"; then
  7825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7826. $as_echo "$MAGIC_CMD" >&6; }
  7827. else
  7828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7829. $as_echo "no" >&6; }
  7830. fi
  7831. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7832. if test -n "$ac_tool_prefix"; then
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7834. $as_echo_n "checking for file... " >&6; }
  7835. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7836. $as_echo_n "(cached) " >&6
  7837. else
  7838. case $MAGIC_CMD in
  7839. [\\/*] | ?:[\\/]*)
  7840. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7841. ;;
  7842. *)
  7843. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7844. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7845. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7846. for ac_dir in $ac_dummy; do
  7847. IFS="$lt_save_ifs"
  7848. test -z "$ac_dir" && ac_dir=.
  7849. if test -f $ac_dir/file; then
  7850. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7851. if test -n "$file_magic_test_file"; then
  7852. case $deplibs_check_method in
  7853. "file_magic "*)
  7854. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7855. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7856. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7857. $EGREP "$file_magic_regex" > /dev/null; then
  7858. :
  7859. else
  7860. cat <<_LT_EOF 1>&2
  7861. *** Warning: the command libtool uses to detect shared libraries,
  7862. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7863. *** The result is that libtool may fail to recognize shared libraries
  7864. *** as such. This will affect the creation of libtool libraries that
  7865. *** depend on shared libraries, but programs linked with such libtool
  7866. *** libraries will work regardless of this problem. Nevertheless, you
  7867. *** may want to report the problem to your system manager and/or to
  7868. *** bug-libtool@gnu.org
  7869. _LT_EOF
  7870. fi ;;
  7871. esac
  7872. fi
  7873. break
  7874. fi
  7875. done
  7876. IFS="$lt_save_ifs"
  7877. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7878. ;;
  7879. esac
  7880. fi
  7881. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7882. if test -n "$MAGIC_CMD"; then
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7884. $as_echo "$MAGIC_CMD" >&6; }
  7885. else
  7886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7887. $as_echo "no" >&6; }
  7888. fi
  7889. else
  7890. MAGIC_CMD=:
  7891. fi
  7892. fi
  7893. fi
  7894. ;;
  7895. esac
  7896. # Use C for the default configuration in the libtool script
  7897. lt_save_CC="$CC"
  7898. ac_ext=c
  7899. ac_cpp='$CPP $CPPFLAGS'
  7900. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7901. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7902. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7903. # Source file extension for C test sources.
  7904. ac_ext=c
  7905. # Object file extension for compiled C test sources.
  7906. objext=o
  7907. objext=$objext
  7908. # Code to be used in simple compile tests
  7909. lt_simple_compile_test_code="int some_variable = 0;"
  7910. # Code to be used in simple link tests
  7911. lt_simple_link_test_code='int main(){return(0);}'
  7912. # If no C compiler was specified, use CC.
  7913. LTCC=${LTCC-"$CC"}
  7914. # If no C compiler flags were specified, use CFLAGS.
  7915. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7916. # Allow CC to be a program name with arguments.
  7917. compiler=$CC
  7918. # Save the default compiler, since it gets overwritten when the other
  7919. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7920. compiler_DEFAULT=$CC
  7921. # save warnings/boilerplate of simple test code
  7922. ac_outfile=conftest.$ac_objext
  7923. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7924. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7925. _lt_compiler_boilerplate=`cat conftest.err`
  7926. $RM conftest*
  7927. ac_outfile=conftest.$ac_objext
  7928. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7929. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7930. _lt_linker_boilerplate=`cat conftest.err`
  7931. $RM -r conftest*
  7932. ## CAVEAT EMPTOR:
  7933. ## There is no encapsulation within the following macros, do not change
  7934. ## the running order or otherwise move them around unless you know exactly
  7935. ## what you are doing...
  7936. if test -n "$compiler"; then
  7937. lt_prog_compiler_no_builtin_flag=
  7938. if test "$GCC" = yes; then
  7939. case $cc_basename in
  7940. nvcc*)
  7941. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7942. *)
  7943. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7944. esac
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7946. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7947. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7948. $as_echo_n "(cached) " >&6
  7949. else
  7950. lt_cv_prog_compiler_rtti_exceptions=no
  7951. ac_outfile=conftest.$ac_objext
  7952. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7953. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7954. # Insert the option either (1) after the last *FLAGS variable, or
  7955. # (2) before a word containing "conftest.", or (3) at the end.
  7956. # Note that $ac_compile itself does not contain backslashes and begins
  7957. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7958. # The option is referenced via a variable to avoid confusing sed.
  7959. lt_compile=`echo "$ac_compile" | $SED \
  7960. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7961. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7962. -e 's:$: $lt_compiler_flag:'`
  7963. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7964. (eval "$lt_compile" 2>conftest.err)
  7965. ac_status=$?
  7966. cat conftest.err >&5
  7967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7968. if (exit $ac_status) && test -s "$ac_outfile"; then
  7969. # The compiler can only warn and ignore the option if not recognized
  7970. # So say no if there are warnings other than the usual output.
  7971. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7972. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7973. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7974. lt_cv_prog_compiler_rtti_exceptions=yes
  7975. fi
  7976. fi
  7977. $RM conftest*
  7978. fi
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7980. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7981. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7982. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7983. else
  7984. :
  7985. fi
  7986. fi
  7987. lt_prog_compiler_wl=
  7988. lt_prog_compiler_pic=
  7989. lt_prog_compiler_static=
  7990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7991. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7992. if test "$GCC" = yes; then
  7993. lt_prog_compiler_wl='-Wl,'
  7994. lt_prog_compiler_static='-static'
  7995. case $host_os in
  7996. aix*)
  7997. # All AIX code is PIC.
  7998. if test "$host_cpu" = ia64; then
  7999. # AIX 5 now supports IA64 processor
  8000. lt_prog_compiler_static='-Bstatic'
  8001. fi
  8002. lt_prog_compiler_pic='-fPIC'
  8003. ;;
  8004. amigaos*)
  8005. case $host_cpu in
  8006. powerpc)
  8007. # see comment about AmigaOS4 .so support
  8008. lt_prog_compiler_pic='-fPIC'
  8009. ;;
  8010. m68k)
  8011. # FIXME: we need at least 68020 code to build shared libraries, but
  8012. # adding the `-m68020' flag to GCC prevents building anything better,
  8013. # like `-m68040'.
  8014. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8015. ;;
  8016. esac
  8017. ;;
  8018. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8019. # PIC is the default for these OSes.
  8020. ;;
  8021. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8022. # This hack is so that the source file can tell whether it is being
  8023. # built for inclusion in a dll (and should export symbols for example).
  8024. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8025. # (--disable-auto-import) libraries
  8026. lt_prog_compiler_pic='-DDLL_EXPORT'
  8027. ;;
  8028. darwin* | rhapsody*)
  8029. # PIC is the default on this platform
  8030. # Common symbols not allowed in MH_DYLIB files
  8031. lt_prog_compiler_pic='-fno-common'
  8032. ;;
  8033. haiku*)
  8034. # PIC is the default for Haiku.
  8035. # The "-static" flag exists, but is broken.
  8036. lt_prog_compiler_static=
  8037. ;;
  8038. hpux*)
  8039. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8040. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8041. # sets the default TLS model and affects inlining.
  8042. case $host_cpu in
  8043. hppa*64*)
  8044. # +Z the default
  8045. ;;
  8046. *)
  8047. lt_prog_compiler_pic='-fPIC'
  8048. ;;
  8049. esac
  8050. ;;
  8051. interix[3-9]*)
  8052. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8053. # Instead, we relocate shared libraries at runtime.
  8054. ;;
  8055. msdosdjgpp*)
  8056. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8057. # on systems that don't support them.
  8058. lt_prog_compiler_can_build_shared=no
  8059. enable_shared=no
  8060. ;;
  8061. *nto* | *qnx*)
  8062. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8063. # it will coredump.
  8064. lt_prog_compiler_pic='-fPIC -shared'
  8065. ;;
  8066. sysv4*MP*)
  8067. if test -d /usr/nec; then
  8068. lt_prog_compiler_pic=-Kconform_pic
  8069. fi
  8070. ;;
  8071. *)
  8072. lt_prog_compiler_pic='-fPIC'
  8073. ;;
  8074. esac
  8075. case $cc_basename in
  8076. nvcc*) # Cuda Compiler Driver 2.2
  8077. lt_prog_compiler_wl='-Xlinker '
  8078. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8079. ;;
  8080. esac
  8081. else
  8082. # PORTME Check for flag to pass linker flags through the system compiler.
  8083. case $host_os in
  8084. aix*)
  8085. lt_prog_compiler_wl='-Wl,'
  8086. if test "$host_cpu" = ia64; then
  8087. # AIX 5 now supports IA64 processor
  8088. lt_prog_compiler_static='-Bstatic'
  8089. else
  8090. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8091. fi
  8092. ;;
  8093. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8094. # This hack is so that the source file can tell whether it is being
  8095. # built for inclusion in a dll (and should export symbols for example).
  8096. lt_prog_compiler_pic='-DDLL_EXPORT'
  8097. ;;
  8098. hpux9* | hpux10* | hpux11*)
  8099. lt_prog_compiler_wl='-Wl,'
  8100. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8101. # not for PA HP-UX.
  8102. case $host_cpu in
  8103. hppa*64*|ia64*)
  8104. # +Z the default
  8105. ;;
  8106. *)
  8107. lt_prog_compiler_pic='+Z'
  8108. ;;
  8109. esac
  8110. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8111. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8112. ;;
  8113. irix5* | irix6* | nonstopux*)
  8114. lt_prog_compiler_wl='-Wl,'
  8115. # PIC (with -KPIC) is the default.
  8116. lt_prog_compiler_static='-non_shared'
  8117. ;;
  8118. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8119. case $cc_basename in
  8120. # old Intel for x86_64 which still supported -KPIC.
  8121. ecc*)
  8122. lt_prog_compiler_wl='-Wl,'
  8123. lt_prog_compiler_pic='-KPIC'
  8124. lt_prog_compiler_static='-static'
  8125. ;;
  8126. # icc used to be incompatible with GCC.
  8127. # ICC 10 doesn't accept -KPIC any more.
  8128. icc* | ifort*)
  8129. lt_prog_compiler_wl='-Wl,'
  8130. lt_prog_compiler_pic='-fPIC'
  8131. lt_prog_compiler_static='-static'
  8132. ;;
  8133. # Lahey Fortran 8.1.
  8134. lf95*)
  8135. lt_prog_compiler_wl='-Wl,'
  8136. lt_prog_compiler_pic='--shared'
  8137. lt_prog_compiler_static='--static'
  8138. ;;
  8139. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8140. # Portland Group compilers (*not* the Pentium gcc compiler,
  8141. # which looks to be a dead project)
  8142. lt_prog_compiler_wl='-Wl,'
  8143. lt_prog_compiler_pic='-fpic'
  8144. lt_prog_compiler_static='-Bstatic'
  8145. ;;
  8146. ccc*)
  8147. lt_prog_compiler_wl='-Wl,'
  8148. # All Alpha code is PIC.
  8149. lt_prog_compiler_static='-non_shared'
  8150. ;;
  8151. xl* | bgxl* | bgf* | mpixl*)
  8152. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8153. lt_prog_compiler_wl='-Wl,'
  8154. lt_prog_compiler_pic='-qpic'
  8155. lt_prog_compiler_static='-qstaticlink'
  8156. ;;
  8157. *)
  8158. case `$CC -V 2>&1 | sed 5q` in
  8159. *Sun\ F* | *Sun*Fortran*)
  8160. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8161. lt_prog_compiler_pic='-KPIC'
  8162. lt_prog_compiler_static='-Bstatic'
  8163. lt_prog_compiler_wl=''
  8164. ;;
  8165. *Sun\ C*)
  8166. # Sun C 5.9
  8167. lt_prog_compiler_pic='-KPIC'
  8168. lt_prog_compiler_static='-Bstatic'
  8169. lt_prog_compiler_wl='-Wl,'
  8170. ;;
  8171. esac
  8172. ;;
  8173. esac
  8174. ;;
  8175. newsos6)
  8176. lt_prog_compiler_pic='-KPIC'
  8177. lt_prog_compiler_static='-Bstatic'
  8178. ;;
  8179. *nto* | *qnx*)
  8180. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8181. # it will coredump.
  8182. lt_prog_compiler_pic='-fPIC -shared'
  8183. ;;
  8184. osf3* | osf4* | osf5*)
  8185. lt_prog_compiler_wl='-Wl,'
  8186. # All OSF/1 code is PIC.
  8187. lt_prog_compiler_static='-non_shared'
  8188. ;;
  8189. rdos*)
  8190. lt_prog_compiler_static='-non_shared'
  8191. ;;
  8192. solaris*)
  8193. lt_prog_compiler_pic='-KPIC'
  8194. lt_prog_compiler_static='-Bstatic'
  8195. case $cc_basename in
  8196. f77* | f90* | f95*)
  8197. lt_prog_compiler_wl='-Qoption ld ';;
  8198. *)
  8199. lt_prog_compiler_wl='-Wl,';;
  8200. esac
  8201. ;;
  8202. sunos4*)
  8203. lt_prog_compiler_wl='-Qoption ld '
  8204. lt_prog_compiler_pic='-PIC'
  8205. lt_prog_compiler_static='-Bstatic'
  8206. ;;
  8207. sysv4 | sysv4.2uw2* | sysv4.3*)
  8208. lt_prog_compiler_wl='-Wl,'
  8209. lt_prog_compiler_pic='-KPIC'
  8210. lt_prog_compiler_static='-Bstatic'
  8211. ;;
  8212. sysv4*MP*)
  8213. if test -d /usr/nec ;then
  8214. lt_prog_compiler_pic='-Kconform_pic'
  8215. lt_prog_compiler_static='-Bstatic'
  8216. fi
  8217. ;;
  8218. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8219. lt_prog_compiler_wl='-Wl,'
  8220. lt_prog_compiler_pic='-KPIC'
  8221. lt_prog_compiler_static='-Bstatic'
  8222. ;;
  8223. unicos*)
  8224. lt_prog_compiler_wl='-Wl,'
  8225. lt_prog_compiler_can_build_shared=no
  8226. ;;
  8227. uts4*)
  8228. lt_prog_compiler_pic='-pic'
  8229. lt_prog_compiler_static='-Bstatic'
  8230. ;;
  8231. *)
  8232. lt_prog_compiler_can_build_shared=no
  8233. ;;
  8234. esac
  8235. fi
  8236. case $host_os in
  8237. # For platforms which do not support PIC, -DPIC is meaningless:
  8238. *djgpp*)
  8239. lt_prog_compiler_pic=
  8240. ;;
  8241. *)
  8242. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8243. ;;
  8244. esac
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8246. $as_echo "$lt_prog_compiler_pic" >&6; }
  8247. #
  8248. # Check to make sure the PIC flag actually works.
  8249. #
  8250. if test -n "$lt_prog_compiler_pic"; then
  8251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8252. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8253. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8254. $as_echo_n "(cached) " >&6
  8255. else
  8256. lt_cv_prog_compiler_pic_works=no
  8257. ac_outfile=conftest.$ac_objext
  8258. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8259. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8260. # Insert the option either (1) after the last *FLAGS variable, or
  8261. # (2) before a word containing "conftest.", or (3) at the end.
  8262. # Note that $ac_compile itself does not contain backslashes and begins
  8263. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8264. # The option is referenced via a variable to avoid confusing sed.
  8265. lt_compile=`echo "$ac_compile" | $SED \
  8266. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8267. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8268. -e 's:$: $lt_compiler_flag:'`
  8269. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8270. (eval "$lt_compile" 2>conftest.err)
  8271. ac_status=$?
  8272. cat conftest.err >&5
  8273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8274. if (exit $ac_status) && test -s "$ac_outfile"; then
  8275. # The compiler can only warn and ignore the option if not recognized
  8276. # So say no if there are warnings other than the usual output.
  8277. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8278. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8279. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8280. lt_cv_prog_compiler_pic_works=yes
  8281. fi
  8282. fi
  8283. $RM conftest*
  8284. fi
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8286. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8287. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8288. case $lt_prog_compiler_pic in
  8289. "" | " "*) ;;
  8290. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8291. esac
  8292. else
  8293. lt_prog_compiler_pic=
  8294. lt_prog_compiler_can_build_shared=no
  8295. fi
  8296. fi
  8297. #
  8298. # Check to make sure the static flag actually works.
  8299. #
  8300. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8302. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8303. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8304. $as_echo_n "(cached) " >&6
  8305. else
  8306. lt_cv_prog_compiler_static_works=no
  8307. save_LDFLAGS="$LDFLAGS"
  8308. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8309. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8310. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8311. # The linker can only warn and ignore the option if not recognized
  8312. # So say no if there are warnings
  8313. if test -s conftest.err; then
  8314. # Append any errors to the config.log.
  8315. cat conftest.err 1>&5
  8316. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8317. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8318. if diff conftest.exp conftest.er2 >/dev/null; then
  8319. lt_cv_prog_compiler_static_works=yes
  8320. fi
  8321. else
  8322. lt_cv_prog_compiler_static_works=yes
  8323. fi
  8324. fi
  8325. $RM -r conftest*
  8326. LDFLAGS="$save_LDFLAGS"
  8327. fi
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8329. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8330. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8331. :
  8332. else
  8333. lt_prog_compiler_static=
  8334. fi
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8336. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8337. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. lt_cv_prog_compiler_c_o=no
  8341. $RM -r conftest 2>/dev/null
  8342. mkdir conftest
  8343. cd conftest
  8344. mkdir out
  8345. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8346. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8347. # Insert the option either (1) after the last *FLAGS variable, or
  8348. # (2) before a word containing "conftest.", or (3) at the end.
  8349. # Note that $ac_compile itself does not contain backslashes and begins
  8350. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8351. lt_compile=`echo "$ac_compile" | $SED \
  8352. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8353. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8354. -e 's:$: $lt_compiler_flag:'`
  8355. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8356. (eval "$lt_compile" 2>out/conftest.err)
  8357. ac_status=$?
  8358. cat out/conftest.err >&5
  8359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8360. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8361. then
  8362. # The compiler can only warn and ignore the option if not recognized
  8363. # So say no if there are warnings
  8364. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8365. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8366. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8367. lt_cv_prog_compiler_c_o=yes
  8368. fi
  8369. fi
  8370. chmod u+w . 2>&5
  8371. $RM conftest*
  8372. # SGI C++ compiler will create directory out/ii_files/ for
  8373. # template instantiation
  8374. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8375. $RM out/* && rmdir out
  8376. cd ..
  8377. $RM -r conftest
  8378. $RM conftest*
  8379. fi
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8381. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8383. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8384. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8385. $as_echo_n "(cached) " >&6
  8386. else
  8387. lt_cv_prog_compiler_c_o=no
  8388. $RM -r conftest 2>/dev/null
  8389. mkdir conftest
  8390. cd conftest
  8391. mkdir out
  8392. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8393. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8394. # Insert the option either (1) after the last *FLAGS variable, or
  8395. # (2) before a word containing "conftest.", or (3) at the end.
  8396. # Note that $ac_compile itself does not contain backslashes and begins
  8397. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8398. lt_compile=`echo "$ac_compile" | $SED \
  8399. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8400. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8401. -e 's:$: $lt_compiler_flag:'`
  8402. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8403. (eval "$lt_compile" 2>out/conftest.err)
  8404. ac_status=$?
  8405. cat out/conftest.err >&5
  8406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8407. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8408. then
  8409. # The compiler can only warn and ignore the option if not recognized
  8410. # So say no if there are warnings
  8411. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8412. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8413. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8414. lt_cv_prog_compiler_c_o=yes
  8415. fi
  8416. fi
  8417. chmod u+w . 2>&5
  8418. $RM conftest*
  8419. # SGI C++ compiler will create directory out/ii_files/ for
  8420. # template instantiation
  8421. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8422. $RM out/* && rmdir out
  8423. cd ..
  8424. $RM -r conftest
  8425. $RM conftest*
  8426. fi
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8428. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8429. hard_links="nottested"
  8430. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8431. # do not overwrite the value of need_locks provided by the user
  8432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8433. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8434. hard_links=yes
  8435. $RM conftest*
  8436. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8437. touch conftest.a
  8438. ln conftest.a conftest.b 2>&5 || hard_links=no
  8439. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8441. $as_echo "$hard_links" >&6; }
  8442. if test "$hard_links" = no; then
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8444. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8445. need_locks=warn
  8446. fi
  8447. else
  8448. need_locks=no
  8449. fi
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8451. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8452. runpath_var=
  8453. allow_undefined_flag=
  8454. always_export_symbols=no
  8455. archive_cmds=
  8456. archive_expsym_cmds=
  8457. compiler_needs_object=no
  8458. enable_shared_with_static_runtimes=no
  8459. export_dynamic_flag_spec=
  8460. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8461. hardcode_automatic=no
  8462. hardcode_direct=no
  8463. hardcode_direct_absolute=no
  8464. hardcode_libdir_flag_spec=
  8465. hardcode_libdir_flag_spec_ld=
  8466. hardcode_libdir_separator=
  8467. hardcode_minus_L=no
  8468. hardcode_shlibpath_var=unsupported
  8469. inherit_rpath=no
  8470. link_all_deplibs=unknown
  8471. module_cmds=
  8472. module_expsym_cmds=
  8473. old_archive_from_new_cmds=
  8474. old_archive_from_expsyms_cmds=
  8475. thread_safe_flag_spec=
  8476. whole_archive_flag_spec=
  8477. # include_expsyms should be a list of space-separated symbols to be *always*
  8478. # included in the symbol list
  8479. include_expsyms=
  8480. # exclude_expsyms can be an extended regexp of symbols to exclude
  8481. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8482. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8483. # as well as any symbol that contains `d'.
  8484. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8485. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8486. # platforms (ab)use it in PIC code, but their linkers get confused if
  8487. # the symbol is explicitly referenced. Since portable code cannot
  8488. # rely on this symbol name, it's probably fine to never include it in
  8489. # preloaded symbol tables.
  8490. # Exclude shared library initialization/finalization symbols.
  8491. extract_expsyms_cmds=
  8492. case $host_os in
  8493. cygwin* | mingw* | pw32* | cegcc*)
  8494. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8495. # When not using gcc, we currently assume that we are using
  8496. # Microsoft Visual C++.
  8497. if test "$GCC" != yes; then
  8498. with_gnu_ld=no
  8499. fi
  8500. ;;
  8501. interix*)
  8502. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8503. with_gnu_ld=yes
  8504. ;;
  8505. openbsd*)
  8506. with_gnu_ld=no
  8507. ;;
  8508. esac
  8509. ld_shlibs=yes
  8510. # On some targets, GNU ld is compatible enough with the native linker
  8511. # that we're better off using the native interface for both.
  8512. lt_use_gnu_ld_interface=no
  8513. if test "$with_gnu_ld" = yes; then
  8514. case $host_os in
  8515. aix*)
  8516. # The AIX port of GNU ld has always aspired to compatibility
  8517. # with the native linker. However, as the warning in the GNU ld
  8518. # block says, versions before 2.19.5* couldn't really create working
  8519. # shared libraries, regardless of the interface used.
  8520. case `$LD -v 2>&1` in
  8521. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8522. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8523. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8524. *)
  8525. lt_use_gnu_ld_interface=yes
  8526. ;;
  8527. esac
  8528. ;;
  8529. *)
  8530. lt_use_gnu_ld_interface=yes
  8531. ;;
  8532. esac
  8533. fi
  8534. if test "$lt_use_gnu_ld_interface" = yes; then
  8535. # If archive_cmds runs LD, not CC, wlarc should be empty
  8536. wlarc='${wl}'
  8537. # Set some defaults for GNU ld with shared library support. These
  8538. # are reset later if shared libraries are not supported. Putting them
  8539. # here allows them to be overridden if necessary.
  8540. runpath_var=LD_RUN_PATH
  8541. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8542. export_dynamic_flag_spec='${wl}--export-dynamic'
  8543. # ancient GNU ld didn't support --whole-archive et. al.
  8544. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8545. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8546. else
  8547. whole_archive_flag_spec=
  8548. fi
  8549. supports_anon_versioning=no
  8550. case `$LD -v 2>&1` in
  8551. *GNU\ gold*) supports_anon_versioning=yes ;;
  8552. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8553. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8554. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8555. *\ 2.11.*) ;; # other 2.11 versions
  8556. *) supports_anon_versioning=yes ;;
  8557. esac
  8558. # See if GNU ld supports shared libraries.
  8559. case $host_os in
  8560. aix[3-9]*)
  8561. # On AIX/PPC, the GNU linker is very broken
  8562. if test "$host_cpu" != ia64; then
  8563. ld_shlibs=no
  8564. cat <<_LT_EOF 1>&2
  8565. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8566. *** to be unable to reliably create shared libraries on AIX.
  8567. *** Therefore, libtool is disabling shared libraries support. If you
  8568. *** really care for shared libraries, you may want to install binutils
  8569. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8570. *** You will then need to restart the configuration process.
  8571. _LT_EOF
  8572. fi
  8573. ;;
  8574. amigaos*)
  8575. case $host_cpu in
  8576. powerpc)
  8577. # see comment about AmigaOS4 .so support
  8578. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8579. archive_expsym_cmds=''
  8580. ;;
  8581. m68k)
  8582. 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)'
  8583. hardcode_libdir_flag_spec='-L$libdir'
  8584. hardcode_minus_L=yes
  8585. ;;
  8586. esac
  8587. ;;
  8588. beos*)
  8589. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8590. allow_undefined_flag=unsupported
  8591. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8592. # support --undefined. This deserves some investigation. FIXME
  8593. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8594. else
  8595. ld_shlibs=no
  8596. fi
  8597. ;;
  8598. cygwin* | mingw* | pw32* | cegcc*)
  8599. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8600. # as there is no search path for DLLs.
  8601. hardcode_libdir_flag_spec='-L$libdir'
  8602. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8603. allow_undefined_flag=unsupported
  8604. always_export_symbols=no
  8605. enable_shared_with_static_runtimes=yes
  8606. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8607. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8608. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8609. # If the export-symbols file already is a .def file (1st line
  8610. # is EXPORTS), use it as is; otherwise, prepend...
  8611. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8612. cp $export_symbols $output_objdir/$soname.def;
  8613. else
  8614. echo EXPORTS > $output_objdir/$soname.def;
  8615. cat $export_symbols >> $output_objdir/$soname.def;
  8616. fi~
  8617. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8618. else
  8619. ld_shlibs=no
  8620. fi
  8621. ;;
  8622. haiku*)
  8623. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8624. link_all_deplibs=yes
  8625. ;;
  8626. interix[3-9]*)
  8627. hardcode_direct=no
  8628. hardcode_shlibpath_var=no
  8629. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8630. export_dynamic_flag_spec='${wl}-E'
  8631. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8632. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8633. # default) and relocated if they conflict, which is a slow very memory
  8634. # consuming and fragmenting process. To avoid this, we pick a random,
  8635. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8636. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8637. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8638. 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'
  8639. ;;
  8640. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8641. tmp_diet=no
  8642. if test "$host_os" = linux-dietlibc; then
  8643. case $cc_basename in
  8644. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8645. esac
  8646. fi
  8647. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8648. && test "$tmp_diet" = no
  8649. then
  8650. tmp_addflag=' $pic_flag'
  8651. tmp_sharedflag='-shared'
  8652. case $cc_basename,$host_cpu in
  8653. pgcc*) # Portland Group C compiler
  8654. 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'
  8655. tmp_addflag=' $pic_flag'
  8656. ;;
  8657. pgf77* | pgf90* | pgf95* | pgfortran*)
  8658. # Portland Group f77 and f90 compilers
  8659. 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'
  8660. tmp_addflag=' $pic_flag -Mnomain' ;;
  8661. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8662. tmp_addflag=' -i_dynamic' ;;
  8663. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8664. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8665. ifc* | ifort*) # Intel Fortran compiler
  8666. tmp_addflag=' -nofor_main' ;;
  8667. lf95*) # Lahey Fortran 8.1
  8668. whole_archive_flag_spec=
  8669. tmp_sharedflag='--shared' ;;
  8670. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8671. tmp_sharedflag='-qmkshrobj'
  8672. tmp_addflag= ;;
  8673. nvcc*) # Cuda Compiler Driver 2.2
  8674. 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'
  8675. compiler_needs_object=yes
  8676. ;;
  8677. esac
  8678. case `$CC -V 2>&1 | sed 5q` in
  8679. *Sun\ C*) # Sun C 5.9
  8680. 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'
  8681. compiler_needs_object=yes
  8682. tmp_sharedflag='-G' ;;
  8683. *Sun\ F*) # Sun Fortran 8.3
  8684. tmp_sharedflag='-G' ;;
  8685. esac
  8686. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8687. if test "x$supports_anon_versioning" = xyes; then
  8688. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8689. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8690. echo "local: *; };" >> $output_objdir/$libname.ver~
  8691. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8692. fi
  8693. case $cc_basename in
  8694. xlf* | bgf* | bgxlf* | mpixlf*)
  8695. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8696. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8697. hardcode_libdir_flag_spec=
  8698. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8699. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8700. if test "x$supports_anon_versioning" = xyes; then
  8701. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8702. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8703. echo "local: *; };" >> $output_objdir/$libname.ver~
  8704. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8705. fi
  8706. ;;
  8707. esac
  8708. else
  8709. ld_shlibs=no
  8710. fi
  8711. ;;
  8712. netbsd*)
  8713. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8714. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8715. wlarc=
  8716. else
  8717. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8718. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8719. fi
  8720. ;;
  8721. solaris*)
  8722. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8723. ld_shlibs=no
  8724. cat <<_LT_EOF 1>&2
  8725. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8726. *** create shared libraries on Solaris systems. Therefore, libtool
  8727. *** is disabling shared libraries support. We urge you to upgrade GNU
  8728. *** binutils to release 2.9.1 or newer. Another option is to modify
  8729. *** your PATH or compiler configuration so that the native linker is
  8730. *** used, and then restart.
  8731. _LT_EOF
  8732. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8733. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8734. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8735. else
  8736. ld_shlibs=no
  8737. fi
  8738. ;;
  8739. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8740. case `$LD -v 2>&1` in
  8741. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8742. ld_shlibs=no
  8743. cat <<_LT_EOF 1>&2
  8744. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8745. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8746. *** is disabling shared libraries support. We urge you to upgrade GNU
  8747. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8748. *** your PATH or compiler configuration so that the native linker is
  8749. *** used, and then restart.
  8750. _LT_EOF
  8751. ;;
  8752. *)
  8753. # For security reasons, it is highly recommended that you always
  8754. # use absolute paths for naming shared libraries, and exclude the
  8755. # DT_RUNPATH tag from executables and libraries. But doing so
  8756. # requires that you compile everything twice, which is a pain.
  8757. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8758. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8759. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8760. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8761. else
  8762. ld_shlibs=no
  8763. fi
  8764. ;;
  8765. esac
  8766. ;;
  8767. sunos4*)
  8768. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8769. wlarc=
  8770. hardcode_direct=yes
  8771. hardcode_shlibpath_var=no
  8772. ;;
  8773. *)
  8774. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8775. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8776. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8777. else
  8778. ld_shlibs=no
  8779. fi
  8780. ;;
  8781. esac
  8782. if test "$ld_shlibs" = no; then
  8783. runpath_var=
  8784. hardcode_libdir_flag_spec=
  8785. export_dynamic_flag_spec=
  8786. whole_archive_flag_spec=
  8787. fi
  8788. else
  8789. # PORTME fill in a description of your system's linker (not GNU ld)
  8790. case $host_os in
  8791. aix3*)
  8792. allow_undefined_flag=unsupported
  8793. always_export_symbols=yes
  8794. 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'
  8795. # Note: this linker hardcodes the directories in LIBPATH if there
  8796. # are no directories specified by -L.
  8797. hardcode_minus_L=yes
  8798. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8799. # Neither direct hardcoding nor static linking is supported with a
  8800. # broken collect2.
  8801. hardcode_direct=unsupported
  8802. fi
  8803. ;;
  8804. aix[4-9]*)
  8805. if test "$host_cpu" = ia64; then
  8806. # On IA64, the linker does run time linking by default, so we don't
  8807. # have to do anything special.
  8808. aix_use_runtimelinking=no
  8809. exp_sym_flag='-Bexport'
  8810. no_entry_flag=""
  8811. else
  8812. # If we're using GNU nm, then we don't want the "-C" option.
  8813. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8814. # Also, AIX nm treats weak defined symbols like other global
  8815. # defined symbols, whereas GNU nm marks them as "W".
  8816. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8817. 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'
  8818. else
  8819. 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'
  8820. fi
  8821. aix_use_runtimelinking=no
  8822. # Test if we are trying to use run time linking or normal
  8823. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8824. # need to do runtime linking.
  8825. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8826. for ld_flag in $LDFLAGS; do
  8827. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8828. aix_use_runtimelinking=yes
  8829. break
  8830. fi
  8831. done
  8832. ;;
  8833. esac
  8834. exp_sym_flag='-bexport'
  8835. no_entry_flag='-bnoentry'
  8836. fi
  8837. # When large executables or shared objects are built, AIX ld can
  8838. # have problems creating the table of contents. If linking a library
  8839. # or program results in "error TOC overflow" add -mminimal-toc to
  8840. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8841. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8842. archive_cmds=''
  8843. hardcode_direct=yes
  8844. hardcode_direct_absolute=yes
  8845. hardcode_libdir_separator=':'
  8846. link_all_deplibs=yes
  8847. file_list_spec='${wl}-f,'
  8848. if test "$GCC" = yes; then
  8849. case $host_os in aix4.[012]|aix4.[012].*)
  8850. # We only want to do this on AIX 4.2 and lower, the check
  8851. # below for broken collect2 doesn't work under 4.3+
  8852. collect2name=`${CC} -print-prog-name=collect2`
  8853. if test -f "$collect2name" &&
  8854. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8855. then
  8856. # We have reworked collect2
  8857. :
  8858. else
  8859. # We have old collect2
  8860. hardcode_direct=unsupported
  8861. # It fails to find uninstalled libraries when the uninstalled
  8862. # path is not listed in the libpath. Setting hardcode_minus_L
  8863. # to unsupported forces relinking
  8864. hardcode_minus_L=yes
  8865. hardcode_libdir_flag_spec='-L$libdir'
  8866. hardcode_libdir_separator=
  8867. fi
  8868. ;;
  8869. esac
  8870. shared_flag='-shared'
  8871. if test "$aix_use_runtimelinking" = yes; then
  8872. shared_flag="$shared_flag "'${wl}-G'
  8873. fi
  8874. else
  8875. # not using gcc
  8876. if test "$host_cpu" = ia64; then
  8877. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8878. # chokes on -Wl,-G. The following line is correct:
  8879. shared_flag='-G'
  8880. else
  8881. if test "$aix_use_runtimelinking" = yes; then
  8882. shared_flag='${wl}-G'
  8883. else
  8884. shared_flag='${wl}-bM:SRE'
  8885. fi
  8886. fi
  8887. fi
  8888. export_dynamic_flag_spec='${wl}-bexpall'
  8889. # It seems that -bexpall does not export symbols beginning with
  8890. # underscore (_), so it is better to generate a list of symbols to export.
  8891. always_export_symbols=yes
  8892. if test "$aix_use_runtimelinking" = yes; then
  8893. # Warning - without using the other runtime loading flags (-brtl),
  8894. # -berok will link without error, but may produce a broken library.
  8895. allow_undefined_flag='-berok'
  8896. # Determine the default libpath from the value encoded in an
  8897. # empty executable.
  8898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8899. /* end confdefs.h. */
  8900. int
  8901. main ()
  8902. {
  8903. ;
  8904. return 0;
  8905. }
  8906. _ACEOF
  8907. if ac_fn_c_try_link "$LINENO"; then :
  8908. lt_aix_libpath_sed='
  8909. /Import File Strings/,/^$/ {
  8910. /^0/ {
  8911. s/^0 *\(.*\)$/\1/
  8912. p
  8913. }
  8914. }'
  8915. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8916. # Check for a 64-bit object if we didn't find anything.
  8917. if test -z "$aix_libpath"; then
  8918. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8919. fi
  8920. fi
  8921. rm -f core conftest.err conftest.$ac_objext \
  8922. conftest$ac_exeext conftest.$ac_ext
  8923. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8924. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8925. 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"
  8926. else
  8927. if test "$host_cpu" = ia64; then
  8928. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8929. allow_undefined_flag="-z nodefs"
  8930. 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"
  8931. else
  8932. # Determine the default libpath from the value encoded in an
  8933. # empty executable.
  8934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8935. /* end confdefs.h. */
  8936. int
  8937. main ()
  8938. {
  8939. ;
  8940. return 0;
  8941. }
  8942. _ACEOF
  8943. if ac_fn_c_try_link "$LINENO"; then :
  8944. lt_aix_libpath_sed='
  8945. /Import File Strings/,/^$/ {
  8946. /^0/ {
  8947. s/^0 *\(.*\)$/\1/
  8948. p
  8949. }
  8950. }'
  8951. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8952. # Check for a 64-bit object if we didn't find anything.
  8953. if test -z "$aix_libpath"; then
  8954. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8955. fi
  8956. fi
  8957. rm -f core conftest.err conftest.$ac_objext \
  8958. conftest$ac_exeext conftest.$ac_ext
  8959. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8960. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8961. # Warning - without using the other run time loading flags,
  8962. # -berok will link without error, but may produce a broken library.
  8963. no_undefined_flag=' ${wl}-bernotok'
  8964. allow_undefined_flag=' ${wl}-berok'
  8965. if test "$with_gnu_ld" = yes; then
  8966. # We only use this code for GNU lds that support --whole-archive.
  8967. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8968. else
  8969. # Exported symbols can be pulled into shared objects from archives
  8970. whole_archive_flag_spec='$convenience'
  8971. fi
  8972. archive_cmds_need_lc=yes
  8973. # This is similar to how AIX traditionally builds its shared libraries.
  8974. 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'
  8975. fi
  8976. fi
  8977. ;;
  8978. amigaos*)
  8979. case $host_cpu in
  8980. powerpc)
  8981. # see comment about AmigaOS4 .so support
  8982. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8983. archive_expsym_cmds=''
  8984. ;;
  8985. m68k)
  8986. 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)'
  8987. hardcode_libdir_flag_spec='-L$libdir'
  8988. hardcode_minus_L=yes
  8989. ;;
  8990. esac
  8991. ;;
  8992. bsdi[45]*)
  8993. export_dynamic_flag_spec=-rdynamic
  8994. ;;
  8995. cygwin* | mingw* | pw32* | cegcc*)
  8996. # When not using gcc, we currently assume that we are using
  8997. # Microsoft Visual C++.
  8998. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8999. # no search path for DLLs.
  9000. hardcode_libdir_flag_spec=' '
  9001. allow_undefined_flag=unsupported
  9002. # Tell ltmain to make .lib files, not .a files.
  9003. libext=lib
  9004. # Tell ltmain to make .dll files, not .so files.
  9005. shrext_cmds=".dll"
  9006. # FIXME: Setting linknames here is a bad hack.
  9007. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9008. # The linker will automatically build a .lib file if we build a DLL.
  9009. old_archive_from_new_cmds='true'
  9010. # FIXME: Should let the user specify the lib program.
  9011. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9012. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9013. enable_shared_with_static_runtimes=yes
  9014. ;;
  9015. darwin* | rhapsody*)
  9016. archive_cmds_need_lc=no
  9017. hardcode_direct=no
  9018. hardcode_automatic=yes
  9019. hardcode_shlibpath_var=unsupported
  9020. if test "$lt_cv_ld_force_load" = "yes"; then
  9021. 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\"`'
  9022. else
  9023. whole_archive_flag_spec=''
  9024. fi
  9025. link_all_deplibs=yes
  9026. allow_undefined_flag="$_lt_dar_allow_undefined"
  9027. case $cc_basename in
  9028. ifort*) _lt_dar_can_shared=yes ;;
  9029. *) _lt_dar_can_shared=$GCC ;;
  9030. esac
  9031. if test "$_lt_dar_can_shared" = "yes"; then
  9032. output_verbose_link_cmd=func_echo_all
  9033. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9034. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9035. 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}"
  9036. 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}"
  9037. else
  9038. ld_shlibs=no
  9039. fi
  9040. ;;
  9041. dgux*)
  9042. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9043. hardcode_libdir_flag_spec='-L$libdir'
  9044. hardcode_shlibpath_var=no
  9045. ;;
  9046. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9047. # support. Future versions do this automatically, but an explicit c++rt0.o
  9048. # does not break anything, and helps significantly (at the cost of a little
  9049. # extra space).
  9050. freebsd2.2*)
  9051. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9052. hardcode_libdir_flag_spec='-R$libdir'
  9053. hardcode_direct=yes
  9054. hardcode_shlibpath_var=no
  9055. ;;
  9056. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9057. freebsd2.*)
  9058. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9059. hardcode_direct=yes
  9060. hardcode_minus_L=yes
  9061. hardcode_shlibpath_var=no
  9062. ;;
  9063. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9064. freebsd* | dragonfly*)
  9065. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9066. hardcode_libdir_flag_spec='-R$libdir'
  9067. hardcode_direct=yes
  9068. hardcode_shlibpath_var=no
  9069. ;;
  9070. hpux9*)
  9071. if test "$GCC" = yes; then
  9072. 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'
  9073. else
  9074. 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'
  9075. fi
  9076. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9077. hardcode_libdir_separator=:
  9078. hardcode_direct=yes
  9079. # hardcode_minus_L: Not really in the search PATH,
  9080. # but as the default location of the library.
  9081. hardcode_minus_L=yes
  9082. export_dynamic_flag_spec='${wl}-E'
  9083. ;;
  9084. hpux10*)
  9085. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9086. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9087. else
  9088. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9089. fi
  9090. if test "$with_gnu_ld" = no; then
  9091. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9092. hardcode_libdir_flag_spec_ld='+b $libdir'
  9093. hardcode_libdir_separator=:
  9094. hardcode_direct=yes
  9095. hardcode_direct_absolute=yes
  9096. export_dynamic_flag_spec='${wl}-E'
  9097. # hardcode_minus_L: Not really in the search PATH,
  9098. # but as the default location of the library.
  9099. hardcode_minus_L=yes
  9100. fi
  9101. ;;
  9102. hpux11*)
  9103. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9104. case $host_cpu in
  9105. hppa*64*)
  9106. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9107. ;;
  9108. ia64*)
  9109. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9110. ;;
  9111. *)
  9112. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9113. ;;
  9114. esac
  9115. else
  9116. case $host_cpu in
  9117. hppa*64*)
  9118. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9119. ;;
  9120. ia64*)
  9121. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9122. ;;
  9123. *)
  9124. # Older versions of the 11.00 compiler do not understand -b yet
  9125. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9127. $as_echo_n "checking if $CC understands -b... " >&6; }
  9128. if ${lt_cv_prog_compiler__b+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. lt_cv_prog_compiler__b=no
  9132. save_LDFLAGS="$LDFLAGS"
  9133. LDFLAGS="$LDFLAGS -b"
  9134. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9135. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9136. # The linker can only warn and ignore the option if not recognized
  9137. # So say no if there are warnings
  9138. if test -s conftest.err; then
  9139. # Append any errors to the config.log.
  9140. cat conftest.err 1>&5
  9141. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9142. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9143. if diff conftest.exp conftest.er2 >/dev/null; then
  9144. lt_cv_prog_compiler__b=yes
  9145. fi
  9146. else
  9147. lt_cv_prog_compiler__b=yes
  9148. fi
  9149. fi
  9150. $RM -r conftest*
  9151. LDFLAGS="$save_LDFLAGS"
  9152. fi
  9153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9154. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9155. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9156. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9157. else
  9158. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9159. fi
  9160. ;;
  9161. esac
  9162. fi
  9163. if test "$with_gnu_ld" = no; then
  9164. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9165. hardcode_libdir_separator=:
  9166. case $host_cpu in
  9167. hppa*64*|ia64*)
  9168. hardcode_direct=no
  9169. hardcode_shlibpath_var=no
  9170. ;;
  9171. *)
  9172. hardcode_direct=yes
  9173. hardcode_direct_absolute=yes
  9174. export_dynamic_flag_spec='${wl}-E'
  9175. # hardcode_minus_L: Not really in the search PATH,
  9176. # but as the default location of the library.
  9177. hardcode_minus_L=yes
  9178. ;;
  9179. esac
  9180. fi
  9181. ;;
  9182. irix5* | irix6* | nonstopux*)
  9183. if test "$GCC" = yes; then
  9184. 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'
  9185. # Try to use the -exported_symbol ld option, if it does not
  9186. # work, assume that -exports_file does not work either and
  9187. # implicitly export all symbols.
  9188. save_LDFLAGS="$LDFLAGS"
  9189. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9191. /* end confdefs.h. */
  9192. int foo(void) {}
  9193. _ACEOF
  9194. if ac_fn_c_try_link "$LINENO"; then :
  9195. 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'
  9196. fi
  9197. rm -f core conftest.err conftest.$ac_objext \
  9198. conftest$ac_exeext conftest.$ac_ext
  9199. LDFLAGS="$save_LDFLAGS"
  9200. else
  9201. 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'
  9202. 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'
  9203. fi
  9204. archive_cmds_need_lc='no'
  9205. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9206. hardcode_libdir_separator=:
  9207. inherit_rpath=yes
  9208. link_all_deplibs=yes
  9209. ;;
  9210. netbsd*)
  9211. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9212. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9213. else
  9214. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9215. fi
  9216. hardcode_libdir_flag_spec='-R$libdir'
  9217. hardcode_direct=yes
  9218. hardcode_shlibpath_var=no
  9219. ;;
  9220. newsos6)
  9221. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9222. hardcode_direct=yes
  9223. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9224. hardcode_libdir_separator=:
  9225. hardcode_shlibpath_var=no
  9226. ;;
  9227. *nto* | *qnx*)
  9228. ;;
  9229. openbsd*)
  9230. if test -f /usr/libexec/ld.so; then
  9231. hardcode_direct=yes
  9232. hardcode_shlibpath_var=no
  9233. hardcode_direct_absolute=yes
  9234. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9235. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9236. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9237. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9238. export_dynamic_flag_spec='${wl}-E'
  9239. else
  9240. case $host_os in
  9241. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9242. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9243. hardcode_libdir_flag_spec='-R$libdir'
  9244. ;;
  9245. *)
  9246. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9247. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9248. ;;
  9249. esac
  9250. fi
  9251. else
  9252. ld_shlibs=no
  9253. fi
  9254. ;;
  9255. os2*)
  9256. hardcode_libdir_flag_spec='-L$libdir'
  9257. hardcode_minus_L=yes
  9258. allow_undefined_flag=unsupported
  9259. 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'
  9260. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9261. ;;
  9262. osf3*)
  9263. if test "$GCC" = yes; then
  9264. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9265. 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'
  9266. else
  9267. allow_undefined_flag=' -expect_unresolved \*'
  9268. 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'
  9269. fi
  9270. archive_cmds_need_lc='no'
  9271. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9272. hardcode_libdir_separator=:
  9273. ;;
  9274. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9275. if test "$GCC" = yes; then
  9276. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9277. 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'
  9278. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9279. else
  9280. allow_undefined_flag=' -expect_unresolved \*'
  9281. 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'
  9282. 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~
  9283. $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'
  9284. # Both c and cxx compiler support -rpath directly
  9285. hardcode_libdir_flag_spec='-rpath $libdir'
  9286. fi
  9287. archive_cmds_need_lc='no'
  9288. hardcode_libdir_separator=:
  9289. ;;
  9290. solaris*)
  9291. no_undefined_flag=' -z defs'
  9292. if test "$GCC" = yes; then
  9293. wlarc='${wl}'
  9294. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9295. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9296. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9297. else
  9298. case `$CC -V 2>&1` in
  9299. *"Compilers 5.0"*)
  9300. wlarc=''
  9301. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9302. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9303. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9304. ;;
  9305. *)
  9306. wlarc='${wl}'
  9307. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9308. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9309. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9310. ;;
  9311. esac
  9312. fi
  9313. hardcode_libdir_flag_spec='-R$libdir'
  9314. hardcode_shlibpath_var=no
  9315. case $host_os in
  9316. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9317. *)
  9318. # The compiler driver will combine and reorder linker options,
  9319. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9320. # but is careful enough not to reorder.
  9321. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9322. if test "$GCC" = yes; then
  9323. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9324. else
  9325. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9326. fi
  9327. ;;
  9328. esac
  9329. link_all_deplibs=yes
  9330. ;;
  9331. sunos4*)
  9332. if test "x$host_vendor" = xsequent; then
  9333. # Use $CC to link under sequent, because it throws in some extra .o
  9334. # files that make .init and .fini sections work.
  9335. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9336. else
  9337. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9338. fi
  9339. hardcode_libdir_flag_spec='-L$libdir'
  9340. hardcode_direct=yes
  9341. hardcode_minus_L=yes
  9342. hardcode_shlibpath_var=no
  9343. ;;
  9344. sysv4)
  9345. case $host_vendor in
  9346. sni)
  9347. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9348. hardcode_direct=yes # is this really true???
  9349. ;;
  9350. siemens)
  9351. ## LD is ld it makes a PLAMLIB
  9352. ## CC just makes a GrossModule.
  9353. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9354. reload_cmds='$CC -r -o $output$reload_objs'
  9355. hardcode_direct=no
  9356. ;;
  9357. motorola)
  9358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9359. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9360. ;;
  9361. esac
  9362. runpath_var='LD_RUN_PATH'
  9363. hardcode_shlibpath_var=no
  9364. ;;
  9365. sysv4.3*)
  9366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9367. hardcode_shlibpath_var=no
  9368. export_dynamic_flag_spec='-Bexport'
  9369. ;;
  9370. sysv4*MP*)
  9371. if test -d /usr/nec; then
  9372. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9373. hardcode_shlibpath_var=no
  9374. runpath_var=LD_RUN_PATH
  9375. hardcode_runpath_var=yes
  9376. ld_shlibs=yes
  9377. fi
  9378. ;;
  9379. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9380. no_undefined_flag='${wl}-z,text'
  9381. archive_cmds_need_lc=no
  9382. hardcode_shlibpath_var=no
  9383. runpath_var='LD_RUN_PATH'
  9384. if test "$GCC" = yes; then
  9385. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9386. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9387. else
  9388. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9390. fi
  9391. ;;
  9392. sysv5* | sco3.2v5* | sco5v6*)
  9393. # Note: We can NOT use -z defs as we might desire, because we do not
  9394. # link with -lc, and that would cause any symbols used from libc to
  9395. # always be unresolved, which means just about no library would
  9396. # ever link correctly. If we're not using GNU ld we use -z text
  9397. # though, which does catch some bad symbols but isn't as heavy-handed
  9398. # as -z defs.
  9399. no_undefined_flag='${wl}-z,text'
  9400. allow_undefined_flag='${wl}-z,nodefs'
  9401. archive_cmds_need_lc=no
  9402. hardcode_shlibpath_var=no
  9403. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9404. hardcode_libdir_separator=':'
  9405. link_all_deplibs=yes
  9406. export_dynamic_flag_spec='${wl}-Bexport'
  9407. runpath_var='LD_RUN_PATH'
  9408. if test "$GCC" = yes; then
  9409. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9410. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9411. else
  9412. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9413. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9414. fi
  9415. ;;
  9416. uts4*)
  9417. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9418. hardcode_libdir_flag_spec='-L$libdir'
  9419. hardcode_shlibpath_var=no
  9420. ;;
  9421. *)
  9422. ld_shlibs=no
  9423. ;;
  9424. esac
  9425. if test x$host_vendor = xsni; then
  9426. case $host in
  9427. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9428. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9429. ;;
  9430. esac
  9431. fi
  9432. fi
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9434. $as_echo "$ld_shlibs" >&6; }
  9435. test "$ld_shlibs" = no && can_build_shared=no
  9436. with_gnu_ld=$with_gnu_ld
  9437. #
  9438. # Do we need to explicitly link libc?
  9439. #
  9440. case "x$archive_cmds_need_lc" in
  9441. x|xyes)
  9442. # Assume -lc should be added
  9443. archive_cmds_need_lc=yes
  9444. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9445. case $archive_cmds in
  9446. *'~'*)
  9447. # FIXME: we may have to deal with multi-command sequences.
  9448. ;;
  9449. '$CC '*)
  9450. # Test whether the compiler implicitly links with -lc since on some
  9451. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9452. # to ld, don't add -lc before -lgcc.
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9454. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9455. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9456. $as_echo_n "(cached) " >&6
  9457. else
  9458. $RM conftest*
  9459. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9460. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9461. (eval $ac_compile) 2>&5
  9462. ac_status=$?
  9463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9464. test $ac_status = 0; } 2>conftest.err; then
  9465. soname=conftest
  9466. lib=conftest
  9467. libobjs=conftest.$ac_objext
  9468. deplibs=
  9469. wl=$lt_prog_compiler_wl
  9470. pic_flag=$lt_prog_compiler_pic
  9471. compiler_flags=-v
  9472. linker_flags=-v
  9473. verstring=
  9474. output_objdir=.
  9475. libname=conftest
  9476. lt_save_allow_undefined_flag=$allow_undefined_flag
  9477. allow_undefined_flag=
  9478. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9479. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9480. ac_status=$?
  9481. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9482. test $ac_status = 0; }
  9483. then
  9484. lt_cv_archive_cmds_need_lc=no
  9485. else
  9486. lt_cv_archive_cmds_need_lc=yes
  9487. fi
  9488. allow_undefined_flag=$lt_save_allow_undefined_flag
  9489. else
  9490. cat conftest.err 1>&5
  9491. fi
  9492. $RM conftest*
  9493. fi
  9494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9495. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9496. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9497. ;;
  9498. esac
  9499. fi
  9500. ;;
  9501. esac
  9502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9503. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9504. if test "$GCC" = yes; then
  9505. case $host_os in
  9506. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9507. *) lt_awk_arg="/^libraries:/" ;;
  9508. esac
  9509. case $host_os in
  9510. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9511. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9512. esac
  9513. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9514. case $lt_search_path_spec in
  9515. *\;*)
  9516. # if the path contains ";" then we assume it to be the separator
  9517. # otherwise default to the standard path separator (i.e. ":") - it is
  9518. # assumed that no part of a normal pathname contains ";" but that should
  9519. # okay in the real world where ";" in dirpaths is itself problematic.
  9520. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9521. ;;
  9522. *)
  9523. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9524. ;;
  9525. esac
  9526. # Ok, now we have the path, separated by spaces, we can step through it
  9527. # and add multilib dir if necessary.
  9528. lt_tmp_lt_search_path_spec=
  9529. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9530. for lt_sys_path in $lt_search_path_spec; do
  9531. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9532. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9533. else
  9534. test -d "$lt_sys_path" && \
  9535. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9536. fi
  9537. done
  9538. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9539. BEGIN {RS=" "; FS="/|\n";} {
  9540. lt_foo="";
  9541. lt_count=0;
  9542. for (lt_i = NF; lt_i > 0; lt_i--) {
  9543. if ($lt_i != "" && $lt_i != ".") {
  9544. if ($lt_i == "..") {
  9545. lt_count++;
  9546. } else {
  9547. if (lt_count == 0) {
  9548. lt_foo="/" $lt_i lt_foo;
  9549. } else {
  9550. lt_count--;
  9551. }
  9552. }
  9553. }
  9554. }
  9555. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9556. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9557. }'`
  9558. # AWK program above erroneously prepends '/' to C:/dos/paths
  9559. # for these hosts.
  9560. case $host_os in
  9561. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9562. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9563. esac
  9564. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9565. else
  9566. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9567. fi
  9568. library_names_spec=
  9569. libname_spec='lib$name'
  9570. soname_spec=
  9571. shrext_cmds=".so"
  9572. postinstall_cmds=
  9573. postuninstall_cmds=
  9574. finish_cmds=
  9575. finish_eval=
  9576. shlibpath_var=
  9577. shlibpath_overrides_runpath=unknown
  9578. version_type=none
  9579. dynamic_linker="$host_os ld.so"
  9580. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9581. need_lib_prefix=unknown
  9582. hardcode_into_libs=no
  9583. # when you set need_version to no, make sure it does not cause -set_version
  9584. # flags to be left without arguments
  9585. need_version=unknown
  9586. case $host_os in
  9587. aix3*)
  9588. version_type=linux
  9589. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9590. shlibpath_var=LIBPATH
  9591. # AIX 3 has no versioning support, so we append a major version to the name.
  9592. soname_spec='${libname}${release}${shared_ext}$major'
  9593. ;;
  9594. aix[4-9]*)
  9595. version_type=linux
  9596. need_lib_prefix=no
  9597. need_version=no
  9598. hardcode_into_libs=yes
  9599. if test "$host_cpu" = ia64; then
  9600. # AIX 5 supports IA64
  9601. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9602. shlibpath_var=LD_LIBRARY_PATH
  9603. else
  9604. # With GCC up to 2.95.x, collect2 would create an import file
  9605. # for dependence libraries. The import file would start with
  9606. # the line `#! .'. This would cause the generated library to
  9607. # depend on `.', always an invalid library. This was fixed in
  9608. # development snapshots of GCC prior to 3.0.
  9609. case $host_os in
  9610. aix4 | aix4.[01] | aix4.[01].*)
  9611. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9612. echo ' yes '
  9613. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9614. :
  9615. else
  9616. can_build_shared=no
  9617. fi
  9618. ;;
  9619. esac
  9620. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9621. # soname into executable. Probably we can add versioning support to
  9622. # collect2, so additional links can be useful in future.
  9623. if test "$aix_use_runtimelinking" = yes; then
  9624. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9625. # instead of lib<name>.a to let people know that these are not
  9626. # typical AIX shared libraries.
  9627. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9628. else
  9629. # We preserve .a as extension for shared libraries through AIX4.2
  9630. # and later when we are not doing run time linking.
  9631. library_names_spec='${libname}${release}.a $libname.a'
  9632. soname_spec='${libname}${release}${shared_ext}$major'
  9633. fi
  9634. shlibpath_var=LIBPATH
  9635. fi
  9636. ;;
  9637. amigaos*)
  9638. case $host_cpu in
  9639. powerpc)
  9640. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9641. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9642. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9643. ;;
  9644. m68k)
  9645. library_names_spec='$libname.ixlibrary $libname.a'
  9646. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9647. 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'
  9648. ;;
  9649. esac
  9650. ;;
  9651. beos*)
  9652. library_names_spec='${libname}${shared_ext}'
  9653. dynamic_linker="$host_os ld.so"
  9654. shlibpath_var=LIBRARY_PATH
  9655. ;;
  9656. bsdi[45]*)
  9657. version_type=linux
  9658. need_version=no
  9659. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9660. soname_spec='${libname}${release}${shared_ext}$major'
  9661. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9664. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9665. # the default ld.so.conf also contains /usr/contrib/lib and
  9666. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9667. # libtool to hard-code these into programs
  9668. ;;
  9669. cygwin* | mingw* | pw32* | cegcc*)
  9670. version_type=windows
  9671. shrext_cmds=".dll"
  9672. need_version=no
  9673. need_lib_prefix=no
  9674. case $GCC,$host_os in
  9675. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9676. library_names_spec='$libname.dll.a'
  9677. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9678. postinstall_cmds='base_file=`basename \${file}`~
  9679. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9680. dldir=$destdir/`dirname \$dlpath`~
  9681. test -d \$dldir || mkdir -p \$dldir~
  9682. $install_prog $dir/$dlname \$dldir/$dlname~
  9683. chmod a+x \$dldir/$dlname~
  9684. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9685. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9686. fi'
  9687. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9688. dlpath=$dir/\$dldll~
  9689. $RM \$dlpath'
  9690. shlibpath_overrides_runpath=yes
  9691. case $host_os in
  9692. cygwin*)
  9693. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9694. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9695. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9696. ;;
  9697. mingw* | cegcc*)
  9698. # MinGW DLLs use traditional 'lib' prefix
  9699. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9700. ;;
  9701. pw32*)
  9702. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9703. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9704. ;;
  9705. esac
  9706. ;;
  9707. *)
  9708. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9709. ;;
  9710. esac
  9711. dynamic_linker='Win32 ld.exe'
  9712. # FIXME: first we should search . and the directory the executable is in
  9713. shlibpath_var=PATH
  9714. ;;
  9715. darwin* | rhapsody*)
  9716. dynamic_linker="$host_os dyld"
  9717. version_type=darwin
  9718. need_lib_prefix=no
  9719. need_version=no
  9720. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9721. soname_spec='${libname}${release}${major}$shared_ext'
  9722. shlibpath_overrides_runpath=yes
  9723. shlibpath_var=DYLD_LIBRARY_PATH
  9724. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9725. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9726. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9727. ;;
  9728. dgux*)
  9729. version_type=linux
  9730. need_lib_prefix=no
  9731. need_version=no
  9732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9733. soname_spec='${libname}${release}${shared_ext}$major'
  9734. shlibpath_var=LD_LIBRARY_PATH
  9735. ;;
  9736. freebsd* | dragonfly*)
  9737. # DragonFly does not have aout. When/if they implement a new
  9738. # versioning mechanism, adjust this.
  9739. if test -x /usr/bin/objformat; then
  9740. objformat=`/usr/bin/objformat`
  9741. else
  9742. case $host_os in
  9743. freebsd[23].*) objformat=aout ;;
  9744. *) objformat=elf ;;
  9745. esac
  9746. fi
  9747. version_type=freebsd-$objformat
  9748. case $version_type in
  9749. freebsd-elf*)
  9750. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9751. need_version=no
  9752. need_lib_prefix=no
  9753. ;;
  9754. freebsd-*)
  9755. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9756. need_version=yes
  9757. ;;
  9758. esac
  9759. shlibpath_var=LD_LIBRARY_PATH
  9760. case $host_os in
  9761. freebsd2.*)
  9762. shlibpath_overrides_runpath=yes
  9763. ;;
  9764. freebsd3.[01]* | freebsdelf3.[01]*)
  9765. shlibpath_overrides_runpath=yes
  9766. hardcode_into_libs=yes
  9767. ;;
  9768. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9769. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9770. shlibpath_overrides_runpath=no
  9771. hardcode_into_libs=yes
  9772. ;;
  9773. *) # from 4.6 on, and DragonFly
  9774. shlibpath_overrides_runpath=yes
  9775. hardcode_into_libs=yes
  9776. ;;
  9777. esac
  9778. ;;
  9779. haiku*)
  9780. version_type=linux
  9781. need_lib_prefix=no
  9782. need_version=no
  9783. dynamic_linker="$host_os runtime_loader"
  9784. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9785. soname_spec='${libname}${release}${shared_ext}$major'
  9786. shlibpath_var=LIBRARY_PATH
  9787. shlibpath_overrides_runpath=yes
  9788. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9789. hardcode_into_libs=yes
  9790. ;;
  9791. hpux9* | hpux10* | hpux11*)
  9792. # Give a soname corresponding to the major version so that dld.sl refuses to
  9793. # link against other versions.
  9794. version_type=sunos
  9795. need_lib_prefix=no
  9796. need_version=no
  9797. case $host_cpu in
  9798. ia64*)
  9799. shrext_cmds='.so'
  9800. hardcode_into_libs=yes
  9801. dynamic_linker="$host_os dld.so"
  9802. shlibpath_var=LD_LIBRARY_PATH
  9803. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9805. soname_spec='${libname}${release}${shared_ext}$major'
  9806. if test "X$HPUX_IA64_MODE" = X32; then
  9807. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9808. else
  9809. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9810. fi
  9811. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9812. ;;
  9813. hppa*64*)
  9814. shrext_cmds='.sl'
  9815. hardcode_into_libs=yes
  9816. dynamic_linker="$host_os dld.sl"
  9817. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9818. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9820. soname_spec='${libname}${release}${shared_ext}$major'
  9821. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9822. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9823. ;;
  9824. *)
  9825. shrext_cmds='.sl'
  9826. dynamic_linker="$host_os dld.sl"
  9827. shlibpath_var=SHLIB_PATH
  9828. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9829. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9830. soname_spec='${libname}${release}${shared_ext}$major'
  9831. ;;
  9832. esac
  9833. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9834. postinstall_cmds='chmod 555 $lib'
  9835. # or fails outright, so override atomically:
  9836. install_override_mode=555
  9837. ;;
  9838. interix[3-9]*)
  9839. version_type=linux
  9840. need_lib_prefix=no
  9841. need_version=no
  9842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9843. soname_spec='${libname}${release}${shared_ext}$major'
  9844. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9845. shlibpath_var=LD_LIBRARY_PATH
  9846. shlibpath_overrides_runpath=no
  9847. hardcode_into_libs=yes
  9848. ;;
  9849. irix5* | irix6* | nonstopux*)
  9850. case $host_os in
  9851. nonstopux*) version_type=nonstopux ;;
  9852. *)
  9853. if test "$lt_cv_prog_gnu_ld" = yes; then
  9854. version_type=linux
  9855. else
  9856. version_type=irix
  9857. fi ;;
  9858. esac
  9859. need_lib_prefix=no
  9860. need_version=no
  9861. soname_spec='${libname}${release}${shared_ext}$major'
  9862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9863. case $host_os in
  9864. irix5* | nonstopux*)
  9865. libsuff= shlibsuff=
  9866. ;;
  9867. *)
  9868. case $LD in # libtool.m4 will add one of these switches to LD
  9869. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9870. libsuff= shlibsuff= libmagic=32-bit;;
  9871. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9872. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9873. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9874. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9875. *) libsuff= shlibsuff= libmagic=never-match;;
  9876. esac
  9877. ;;
  9878. esac
  9879. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9880. shlibpath_overrides_runpath=no
  9881. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9882. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9883. hardcode_into_libs=yes
  9884. ;;
  9885. # No shared lib support for Linux oldld, aout, or coff.
  9886. linux*oldld* | linux*aout* | linux*coff*)
  9887. dynamic_linker=no
  9888. ;;
  9889. # This must be Linux ELF.
  9890. # uclinux* changes (here and below) have been submitted to the libtool
  9891. # project, but have not yet been accepted: they are GCC-local changes
  9892. # for the time being. (See
  9893. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9894. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9895. version_type=linux
  9896. need_lib_prefix=no
  9897. need_version=no
  9898. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9899. soname_spec='${libname}${release}${shared_ext}$major'
  9900. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9901. shlibpath_var=LD_LIBRARY_PATH
  9902. shlibpath_overrides_runpath=no
  9903. # Some binutils ld are patched to set DT_RUNPATH
  9904. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9905. $as_echo_n "(cached) " >&6
  9906. else
  9907. lt_cv_shlibpath_overrides_runpath=no
  9908. save_LDFLAGS=$LDFLAGS
  9909. save_libdir=$libdir
  9910. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9911. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9913. /* end confdefs.h. */
  9914. int
  9915. main ()
  9916. {
  9917. ;
  9918. return 0;
  9919. }
  9920. _ACEOF
  9921. if ac_fn_c_try_link "$LINENO"; then :
  9922. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9923. lt_cv_shlibpath_overrides_runpath=yes
  9924. fi
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext \
  9927. conftest$ac_exeext conftest.$ac_ext
  9928. LDFLAGS=$save_LDFLAGS
  9929. libdir=$save_libdir
  9930. fi
  9931. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9932. # This implies no fast_install, which is unacceptable.
  9933. # Some rework will be needed to allow for fast_install
  9934. # before this can be enabled.
  9935. hardcode_into_libs=yes
  9936. # Append ld.so.conf contents to the search path
  9937. if test -f /etc/ld.so.conf; then
  9938. 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' ' '`
  9939. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9940. fi
  9941. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9942. # powerpc, because MkLinux only supported shared libraries with the
  9943. # GNU dynamic linker. Since this was broken with cross compilers,
  9944. # most powerpc-linux boxes support dynamic linking these days and
  9945. # people can always --disable-shared, the test was removed, and we
  9946. # assume the GNU/Linux dynamic linker is in use.
  9947. dynamic_linker='GNU/Linux ld.so'
  9948. ;;
  9949. netbsd*)
  9950. version_type=sunos
  9951. need_lib_prefix=no
  9952. need_version=no
  9953. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9954. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9955. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9956. dynamic_linker='NetBSD (a.out) ld.so'
  9957. else
  9958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9959. soname_spec='${libname}${release}${shared_ext}$major'
  9960. dynamic_linker='NetBSD ld.elf_so'
  9961. fi
  9962. shlibpath_var=LD_LIBRARY_PATH
  9963. shlibpath_overrides_runpath=yes
  9964. hardcode_into_libs=yes
  9965. ;;
  9966. newsos6)
  9967. version_type=linux
  9968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9969. shlibpath_var=LD_LIBRARY_PATH
  9970. shlibpath_overrides_runpath=yes
  9971. ;;
  9972. *nto* | *qnx*)
  9973. version_type=qnx
  9974. need_lib_prefix=no
  9975. need_version=no
  9976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9977. soname_spec='${libname}${release}${shared_ext}$major'
  9978. shlibpath_var=LD_LIBRARY_PATH
  9979. shlibpath_overrides_runpath=no
  9980. hardcode_into_libs=yes
  9981. dynamic_linker='ldqnx.so'
  9982. ;;
  9983. openbsd*)
  9984. version_type=sunos
  9985. sys_lib_dlsearch_path_spec="/usr/lib"
  9986. need_lib_prefix=no
  9987. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9988. case $host_os in
  9989. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9990. *) need_version=no ;;
  9991. esac
  9992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9993. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9994. shlibpath_var=LD_LIBRARY_PATH
  9995. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9996. case $host_os in
  9997. openbsd2.[89] | openbsd2.[89].*)
  9998. shlibpath_overrides_runpath=no
  9999. ;;
  10000. *)
  10001. shlibpath_overrides_runpath=yes
  10002. ;;
  10003. esac
  10004. else
  10005. shlibpath_overrides_runpath=yes
  10006. fi
  10007. ;;
  10008. os2*)
  10009. libname_spec='$name'
  10010. shrext_cmds=".dll"
  10011. need_lib_prefix=no
  10012. library_names_spec='$libname${shared_ext} $libname.a'
  10013. dynamic_linker='OS/2 ld.exe'
  10014. shlibpath_var=LIBPATH
  10015. ;;
  10016. osf3* | osf4* | osf5*)
  10017. version_type=osf
  10018. need_lib_prefix=no
  10019. need_version=no
  10020. soname_spec='${libname}${release}${shared_ext}$major'
  10021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10022. shlibpath_var=LD_LIBRARY_PATH
  10023. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10024. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10025. ;;
  10026. rdos*)
  10027. dynamic_linker=no
  10028. ;;
  10029. solaris*)
  10030. version_type=linux
  10031. need_lib_prefix=no
  10032. need_version=no
  10033. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10034. soname_spec='${libname}${release}${shared_ext}$major'
  10035. shlibpath_var=LD_LIBRARY_PATH
  10036. shlibpath_overrides_runpath=yes
  10037. hardcode_into_libs=yes
  10038. # ldd complains unless libraries are executable
  10039. postinstall_cmds='chmod +x $lib'
  10040. ;;
  10041. sunos4*)
  10042. version_type=sunos
  10043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10044. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10045. shlibpath_var=LD_LIBRARY_PATH
  10046. shlibpath_overrides_runpath=yes
  10047. if test "$with_gnu_ld" = yes; then
  10048. need_lib_prefix=no
  10049. fi
  10050. need_version=yes
  10051. ;;
  10052. sysv4 | sysv4.3*)
  10053. version_type=linux
  10054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10055. soname_spec='${libname}${release}${shared_ext}$major'
  10056. shlibpath_var=LD_LIBRARY_PATH
  10057. case $host_vendor in
  10058. sni)
  10059. shlibpath_overrides_runpath=no
  10060. need_lib_prefix=no
  10061. runpath_var=LD_RUN_PATH
  10062. ;;
  10063. siemens)
  10064. need_lib_prefix=no
  10065. ;;
  10066. motorola)
  10067. need_lib_prefix=no
  10068. need_version=no
  10069. shlibpath_overrides_runpath=no
  10070. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10071. ;;
  10072. esac
  10073. ;;
  10074. sysv4*MP*)
  10075. if test -d /usr/nec ;then
  10076. version_type=linux
  10077. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10078. soname_spec='$libname${shared_ext}.$major'
  10079. shlibpath_var=LD_LIBRARY_PATH
  10080. fi
  10081. ;;
  10082. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10083. version_type=freebsd-elf
  10084. need_lib_prefix=no
  10085. need_version=no
  10086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10087. soname_spec='${libname}${release}${shared_ext}$major'
  10088. shlibpath_var=LD_LIBRARY_PATH
  10089. shlibpath_overrides_runpath=yes
  10090. hardcode_into_libs=yes
  10091. if test "$with_gnu_ld" = yes; then
  10092. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10093. else
  10094. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10095. case $host_os in
  10096. sco3.2v5*)
  10097. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10098. ;;
  10099. esac
  10100. fi
  10101. sys_lib_dlsearch_path_spec='/usr/lib'
  10102. ;;
  10103. tpf*)
  10104. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10105. version_type=linux
  10106. need_lib_prefix=no
  10107. need_version=no
  10108. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10109. shlibpath_var=LD_LIBRARY_PATH
  10110. shlibpath_overrides_runpath=no
  10111. hardcode_into_libs=yes
  10112. ;;
  10113. uts4*)
  10114. version_type=linux
  10115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10116. soname_spec='${libname}${release}${shared_ext}$major'
  10117. shlibpath_var=LD_LIBRARY_PATH
  10118. ;;
  10119. *)
  10120. dynamic_linker=no
  10121. ;;
  10122. esac
  10123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10124. $as_echo "$dynamic_linker" >&6; }
  10125. test "$dynamic_linker" = no && can_build_shared=no
  10126. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10127. if test "$GCC" = yes; then
  10128. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10129. fi
  10130. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10131. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10132. fi
  10133. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10134. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10135. fi
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10137. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10138. hardcode_action=
  10139. if test -n "$hardcode_libdir_flag_spec" ||
  10140. test -n "$runpath_var" ||
  10141. test "X$hardcode_automatic" = "Xyes" ; then
  10142. # We can hardcode non-existent directories.
  10143. if test "$hardcode_direct" != no &&
  10144. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10145. # have to relink, otherwise we might link with an installed library
  10146. # when we should be linking with a yet-to-be-installed one
  10147. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10148. test "$hardcode_minus_L" != no; then
  10149. # Linking always hardcodes the temporary library directory.
  10150. hardcode_action=relink
  10151. else
  10152. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10153. hardcode_action=immediate
  10154. fi
  10155. else
  10156. # We cannot hardcode anything, or else we can only hardcode existing
  10157. # directories.
  10158. hardcode_action=unsupported
  10159. fi
  10160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10161. $as_echo "$hardcode_action" >&6; }
  10162. if test "$hardcode_action" = relink ||
  10163. test "$inherit_rpath" = yes; then
  10164. # Fast installation is not supported
  10165. enable_fast_install=no
  10166. elif test "$shlibpath_overrides_runpath" = yes ||
  10167. test "$enable_shared" = no; then
  10168. # Fast installation is not necessary
  10169. enable_fast_install=needless
  10170. fi
  10171. if test "x$enable_dlopen" != xyes; then
  10172. enable_dlopen=unknown
  10173. enable_dlopen_self=unknown
  10174. enable_dlopen_self_static=unknown
  10175. else
  10176. lt_cv_dlopen=no
  10177. lt_cv_dlopen_libs=
  10178. case $host_os in
  10179. beos*)
  10180. lt_cv_dlopen="load_add_on"
  10181. lt_cv_dlopen_libs=
  10182. lt_cv_dlopen_self=yes
  10183. ;;
  10184. mingw* | pw32* | cegcc*)
  10185. lt_cv_dlopen="LoadLibrary"
  10186. lt_cv_dlopen_libs=
  10187. ;;
  10188. cygwin*)
  10189. lt_cv_dlopen="dlopen"
  10190. lt_cv_dlopen_libs=
  10191. ;;
  10192. darwin*)
  10193. # if libdl is installed we need to link against it
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10195. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10196. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10197. $as_echo_n "(cached) " >&6
  10198. else
  10199. ac_check_lib_save_LIBS=$LIBS
  10200. LIBS="-ldl $LIBS"
  10201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10202. /* end confdefs.h. */
  10203. /* Override any GCC internal prototype to avoid an error.
  10204. Use char because int might match the return type of a GCC
  10205. builtin and then its argument prototype would still apply. */
  10206. #ifdef __cplusplus
  10207. extern "C"
  10208. #endif
  10209. char dlopen ();
  10210. int
  10211. main ()
  10212. {
  10213. return dlopen ();
  10214. ;
  10215. return 0;
  10216. }
  10217. _ACEOF
  10218. if ac_fn_c_try_link "$LINENO"; then :
  10219. ac_cv_lib_dl_dlopen=yes
  10220. else
  10221. ac_cv_lib_dl_dlopen=no
  10222. fi
  10223. rm -f core conftest.err conftest.$ac_objext \
  10224. conftest$ac_exeext conftest.$ac_ext
  10225. LIBS=$ac_check_lib_save_LIBS
  10226. fi
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10228. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10229. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10230. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10231. else
  10232. lt_cv_dlopen="dyld"
  10233. lt_cv_dlopen_libs=
  10234. lt_cv_dlopen_self=yes
  10235. fi
  10236. ;;
  10237. *)
  10238. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10239. if test "x$ac_cv_func_shl_load" = xyes; then :
  10240. lt_cv_dlopen="shl_load"
  10241. else
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10243. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10244. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10245. $as_echo_n "(cached) " >&6
  10246. else
  10247. ac_check_lib_save_LIBS=$LIBS
  10248. LIBS="-ldld $LIBS"
  10249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10250. /* end confdefs.h. */
  10251. /* Override any GCC internal prototype to avoid an error.
  10252. Use char because int might match the return type of a GCC
  10253. builtin and then its argument prototype would still apply. */
  10254. #ifdef __cplusplus
  10255. extern "C"
  10256. #endif
  10257. char shl_load ();
  10258. int
  10259. main ()
  10260. {
  10261. return shl_load ();
  10262. ;
  10263. return 0;
  10264. }
  10265. _ACEOF
  10266. if ac_fn_c_try_link "$LINENO"; then :
  10267. ac_cv_lib_dld_shl_load=yes
  10268. else
  10269. ac_cv_lib_dld_shl_load=no
  10270. fi
  10271. rm -f core conftest.err conftest.$ac_objext \
  10272. conftest$ac_exeext conftest.$ac_ext
  10273. LIBS=$ac_check_lib_save_LIBS
  10274. fi
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10276. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10277. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10278. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10279. else
  10280. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10281. if test "x$ac_cv_func_dlopen" = xyes; then :
  10282. lt_cv_dlopen="dlopen"
  10283. else
  10284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10285. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10286. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10287. $as_echo_n "(cached) " >&6
  10288. else
  10289. ac_check_lib_save_LIBS=$LIBS
  10290. LIBS="-ldl $LIBS"
  10291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10292. /* end confdefs.h. */
  10293. /* Override any GCC internal prototype to avoid an error.
  10294. Use char because int might match the return type of a GCC
  10295. builtin and then its argument prototype would still apply. */
  10296. #ifdef __cplusplus
  10297. extern "C"
  10298. #endif
  10299. char dlopen ();
  10300. int
  10301. main ()
  10302. {
  10303. return dlopen ();
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. if ac_fn_c_try_link "$LINENO"; then :
  10309. ac_cv_lib_dl_dlopen=yes
  10310. else
  10311. ac_cv_lib_dl_dlopen=no
  10312. fi
  10313. rm -f core conftest.err conftest.$ac_objext \
  10314. conftest$ac_exeext conftest.$ac_ext
  10315. LIBS=$ac_check_lib_save_LIBS
  10316. fi
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10318. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10319. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10320. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10321. else
  10322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10323. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10324. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10325. $as_echo_n "(cached) " >&6
  10326. else
  10327. ac_check_lib_save_LIBS=$LIBS
  10328. LIBS="-lsvld $LIBS"
  10329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10330. /* end confdefs.h. */
  10331. /* Override any GCC internal prototype to avoid an error.
  10332. Use char because int might match the return type of a GCC
  10333. builtin and then its argument prototype would still apply. */
  10334. #ifdef __cplusplus
  10335. extern "C"
  10336. #endif
  10337. char dlopen ();
  10338. int
  10339. main ()
  10340. {
  10341. return dlopen ();
  10342. ;
  10343. return 0;
  10344. }
  10345. _ACEOF
  10346. if ac_fn_c_try_link "$LINENO"; then :
  10347. ac_cv_lib_svld_dlopen=yes
  10348. else
  10349. ac_cv_lib_svld_dlopen=no
  10350. fi
  10351. rm -f core conftest.err conftest.$ac_objext \
  10352. conftest$ac_exeext conftest.$ac_ext
  10353. LIBS=$ac_check_lib_save_LIBS
  10354. fi
  10355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10356. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10357. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10358. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10359. else
  10360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10361. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10362. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10363. $as_echo_n "(cached) " >&6
  10364. else
  10365. ac_check_lib_save_LIBS=$LIBS
  10366. LIBS="-ldld $LIBS"
  10367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10368. /* end confdefs.h. */
  10369. /* Override any GCC internal prototype to avoid an error.
  10370. Use char because int might match the return type of a GCC
  10371. builtin and then its argument prototype would still apply. */
  10372. #ifdef __cplusplus
  10373. extern "C"
  10374. #endif
  10375. char dld_link ();
  10376. int
  10377. main ()
  10378. {
  10379. return dld_link ();
  10380. ;
  10381. return 0;
  10382. }
  10383. _ACEOF
  10384. if ac_fn_c_try_link "$LINENO"; then :
  10385. ac_cv_lib_dld_dld_link=yes
  10386. else
  10387. ac_cv_lib_dld_dld_link=no
  10388. fi
  10389. rm -f core conftest.err conftest.$ac_objext \
  10390. conftest$ac_exeext conftest.$ac_ext
  10391. LIBS=$ac_check_lib_save_LIBS
  10392. fi
  10393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10394. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10395. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10396. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10397. fi
  10398. fi
  10399. fi
  10400. fi
  10401. fi
  10402. fi
  10403. ;;
  10404. esac
  10405. if test "x$lt_cv_dlopen" != xno; then
  10406. enable_dlopen=yes
  10407. else
  10408. enable_dlopen=no
  10409. fi
  10410. case $lt_cv_dlopen in
  10411. dlopen)
  10412. save_CPPFLAGS="$CPPFLAGS"
  10413. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10414. save_LDFLAGS="$LDFLAGS"
  10415. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10416. save_LIBS="$LIBS"
  10417. LIBS="$lt_cv_dlopen_libs $LIBS"
  10418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10419. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10420. if ${lt_cv_dlopen_self+:} false; then :
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. if test "$cross_compiling" = yes; then :
  10424. lt_cv_dlopen_self=cross
  10425. else
  10426. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10427. lt_status=$lt_dlunknown
  10428. cat > conftest.$ac_ext <<_LT_EOF
  10429. #line 12061 "configure"
  10430. #include "confdefs.h"
  10431. #if HAVE_DLFCN_H
  10432. #include <dlfcn.h>
  10433. #endif
  10434. #include <stdio.h>
  10435. #ifdef RTLD_GLOBAL
  10436. # define LT_DLGLOBAL RTLD_GLOBAL
  10437. #else
  10438. # ifdef DL_GLOBAL
  10439. # define LT_DLGLOBAL DL_GLOBAL
  10440. # else
  10441. # define LT_DLGLOBAL 0
  10442. # endif
  10443. #endif
  10444. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10445. find out it does not work in some platform. */
  10446. #ifndef LT_DLLAZY_OR_NOW
  10447. # ifdef RTLD_LAZY
  10448. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10449. # else
  10450. # ifdef DL_LAZY
  10451. # define LT_DLLAZY_OR_NOW DL_LAZY
  10452. # else
  10453. # ifdef RTLD_NOW
  10454. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10455. # else
  10456. # ifdef DL_NOW
  10457. # define LT_DLLAZY_OR_NOW DL_NOW
  10458. # else
  10459. # define LT_DLLAZY_OR_NOW 0
  10460. # endif
  10461. # endif
  10462. # endif
  10463. # endif
  10464. #endif
  10465. /* When -fvisbility=hidden is used, assume the code has been annotated
  10466. correspondingly for the symbols needed. */
  10467. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10468. void fnord () __attribute__((visibility("default")));
  10469. #endif
  10470. void fnord () { int i=42; }
  10471. int main ()
  10472. {
  10473. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10474. int status = $lt_dlunknown;
  10475. if (self)
  10476. {
  10477. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10478. else
  10479. {
  10480. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10481. else puts (dlerror ());
  10482. }
  10483. /* dlclose (self); */
  10484. }
  10485. else
  10486. puts (dlerror ());
  10487. return status;
  10488. }
  10489. _LT_EOF
  10490. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10491. (eval $ac_link) 2>&5
  10492. ac_status=$?
  10493. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10494. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10495. (./conftest; exit; ) >&5 2>/dev/null
  10496. lt_status=$?
  10497. case x$lt_status in
  10498. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10499. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10500. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10501. esac
  10502. else :
  10503. # compilation failed
  10504. lt_cv_dlopen_self=no
  10505. fi
  10506. fi
  10507. rm -fr conftest*
  10508. fi
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10510. $as_echo "$lt_cv_dlopen_self" >&6; }
  10511. if test "x$lt_cv_dlopen_self" = xyes; then
  10512. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10514. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10515. if ${lt_cv_dlopen_self_static+:} false; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. if test "$cross_compiling" = yes; then :
  10519. lt_cv_dlopen_self_static=cross
  10520. else
  10521. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10522. lt_status=$lt_dlunknown
  10523. cat > conftest.$ac_ext <<_LT_EOF
  10524. #line 12167 "configure"
  10525. #include "confdefs.h"
  10526. #if HAVE_DLFCN_H
  10527. #include <dlfcn.h>
  10528. #endif
  10529. #include <stdio.h>
  10530. #ifdef RTLD_GLOBAL
  10531. # define LT_DLGLOBAL RTLD_GLOBAL
  10532. #else
  10533. # ifdef DL_GLOBAL
  10534. # define LT_DLGLOBAL DL_GLOBAL
  10535. # else
  10536. # define LT_DLGLOBAL 0
  10537. # endif
  10538. #endif
  10539. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10540. find out it does not work in some platform. */
  10541. #ifndef LT_DLLAZY_OR_NOW
  10542. # ifdef RTLD_LAZY
  10543. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10544. # else
  10545. # ifdef DL_LAZY
  10546. # define LT_DLLAZY_OR_NOW DL_LAZY
  10547. # else
  10548. # ifdef RTLD_NOW
  10549. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10550. # else
  10551. # ifdef DL_NOW
  10552. # define LT_DLLAZY_OR_NOW DL_NOW
  10553. # else
  10554. # define LT_DLLAZY_OR_NOW 0
  10555. # endif
  10556. # endif
  10557. # endif
  10558. # endif
  10559. #endif
  10560. /* When -fvisbility=hidden is used, assume the code has been annotated
  10561. correspondingly for the symbols needed. */
  10562. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10563. void fnord () __attribute__((visibility("default")));
  10564. #endif
  10565. void fnord () { int i=42; }
  10566. int main ()
  10567. {
  10568. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10569. int status = $lt_dlunknown;
  10570. if (self)
  10571. {
  10572. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10573. else
  10574. {
  10575. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10576. else puts (dlerror ());
  10577. }
  10578. /* dlclose (self); */
  10579. }
  10580. else
  10581. puts (dlerror ());
  10582. return status;
  10583. }
  10584. _LT_EOF
  10585. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10586. (eval $ac_link) 2>&5
  10587. ac_status=$?
  10588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10589. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10590. (./conftest; exit; ) >&5 2>/dev/null
  10591. lt_status=$?
  10592. case x$lt_status in
  10593. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10594. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10595. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10596. esac
  10597. else :
  10598. # compilation failed
  10599. lt_cv_dlopen_self_static=no
  10600. fi
  10601. fi
  10602. rm -fr conftest*
  10603. fi
  10604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10605. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10606. fi
  10607. CPPFLAGS="$save_CPPFLAGS"
  10608. LDFLAGS="$save_LDFLAGS"
  10609. LIBS="$save_LIBS"
  10610. ;;
  10611. esac
  10612. case $lt_cv_dlopen_self in
  10613. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10614. *) enable_dlopen_self=unknown ;;
  10615. esac
  10616. case $lt_cv_dlopen_self_static in
  10617. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10618. *) enable_dlopen_self_static=unknown ;;
  10619. esac
  10620. fi
  10621. striplib=
  10622. old_striplib=
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10624. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10625. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10626. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10627. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10629. $as_echo "yes" >&6; }
  10630. else
  10631. # FIXME - insert some real tests, host_os isn't really good enough
  10632. case $host_os in
  10633. darwin*)
  10634. if test -n "$STRIP" ; then
  10635. striplib="$STRIP -x"
  10636. old_striplib="$STRIP -S"
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10638. $as_echo "yes" >&6; }
  10639. else
  10640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10641. $as_echo "no" >&6; }
  10642. fi
  10643. ;;
  10644. *)
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10646. $as_echo "no" >&6; }
  10647. ;;
  10648. esac
  10649. fi
  10650. # Report which library types will actually be built
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10652. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10654. $as_echo "$can_build_shared" >&6; }
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10656. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10657. test "$can_build_shared" = "no" && enable_shared=no
  10658. # On AIX, shared libraries and static libraries use the same namespace, and
  10659. # are all built from PIC.
  10660. case $host_os in
  10661. aix3*)
  10662. test "$enable_shared" = yes && enable_static=no
  10663. if test -n "$RANLIB"; then
  10664. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10665. postinstall_cmds='$RANLIB $lib'
  10666. fi
  10667. ;;
  10668. aix[4-9]*)
  10669. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10670. test "$enable_shared" = yes && enable_static=no
  10671. fi
  10672. ;;
  10673. esac
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10675. $as_echo "$enable_shared" >&6; }
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10677. $as_echo_n "checking whether to build static libraries... " >&6; }
  10678. # Make sure either enable_shared or enable_static is yes.
  10679. test "$enable_shared" = yes || enable_static=yes
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10681. $as_echo "$enable_static" >&6; }
  10682. fi
  10683. ac_ext=c
  10684. ac_cpp='$CPP $CPPFLAGS'
  10685. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10686. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10687. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10688. CC="$lt_save_CC"
  10689. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10690. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10691. (test "X$CXX" != "Xg++"))) ; then
  10692. ac_ext=cpp
  10693. ac_cpp='$CXXCPP $CPPFLAGS'
  10694. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10695. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10696. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10698. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10699. if test -z "$CXXCPP"; then
  10700. if ${ac_cv_prog_CXXCPP+:} false; then :
  10701. $as_echo_n "(cached) " >&6
  10702. else
  10703. # Double quotes because CXXCPP needs to be expanded
  10704. for CXXCPP in "$CXX -E" "/lib/cpp"
  10705. do
  10706. ac_preproc_ok=false
  10707. for ac_cxx_preproc_warn_flag in '' yes
  10708. do
  10709. # Use a header file that comes with gcc, so configuring glibc
  10710. # with a fresh cross-compiler works.
  10711. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10712. # <limits.h> exists even on freestanding compilers.
  10713. # On the NeXT, cc -E runs the code through the compiler's parser,
  10714. # not just through cpp. "Syntax error" is here to catch this case.
  10715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10716. /* end confdefs.h. */
  10717. #ifdef __STDC__
  10718. # include <limits.h>
  10719. #else
  10720. # include <assert.h>
  10721. #endif
  10722. Syntax error
  10723. _ACEOF
  10724. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10725. else
  10726. # Broken: fails on valid input.
  10727. continue
  10728. fi
  10729. rm -f conftest.err conftest.i conftest.$ac_ext
  10730. # OK, works on sane cases. Now check whether nonexistent headers
  10731. # can be detected and how.
  10732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10733. /* end confdefs.h. */
  10734. #include <ac_nonexistent.h>
  10735. _ACEOF
  10736. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10737. # Broken: success on invalid input.
  10738. continue
  10739. else
  10740. # Passes both tests.
  10741. ac_preproc_ok=:
  10742. break
  10743. fi
  10744. rm -f conftest.err conftest.i conftest.$ac_ext
  10745. done
  10746. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10747. rm -f conftest.i conftest.err conftest.$ac_ext
  10748. if $ac_preproc_ok; then :
  10749. break
  10750. fi
  10751. done
  10752. ac_cv_prog_CXXCPP=$CXXCPP
  10753. fi
  10754. CXXCPP=$ac_cv_prog_CXXCPP
  10755. else
  10756. ac_cv_prog_CXXCPP=$CXXCPP
  10757. fi
  10758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10759. $as_echo "$CXXCPP" >&6; }
  10760. ac_preproc_ok=false
  10761. for ac_cxx_preproc_warn_flag in '' yes
  10762. do
  10763. # Use a header file that comes with gcc, so configuring glibc
  10764. # with a fresh cross-compiler works.
  10765. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10766. # <limits.h> exists even on freestanding compilers.
  10767. # On the NeXT, cc -E runs the code through the compiler's parser,
  10768. # not just through cpp. "Syntax error" is here to catch this case.
  10769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10770. /* end confdefs.h. */
  10771. #ifdef __STDC__
  10772. # include <limits.h>
  10773. #else
  10774. # include <assert.h>
  10775. #endif
  10776. Syntax error
  10777. _ACEOF
  10778. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10779. else
  10780. # Broken: fails on valid input.
  10781. continue
  10782. fi
  10783. rm -f conftest.err conftest.i conftest.$ac_ext
  10784. # OK, works on sane cases. Now check whether nonexistent headers
  10785. # can be detected and how.
  10786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10787. /* end confdefs.h. */
  10788. #include <ac_nonexistent.h>
  10789. _ACEOF
  10790. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10791. # Broken: success on invalid input.
  10792. continue
  10793. else
  10794. # Passes both tests.
  10795. ac_preproc_ok=:
  10796. break
  10797. fi
  10798. rm -f conftest.err conftest.i conftest.$ac_ext
  10799. done
  10800. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10801. rm -f conftest.i conftest.err conftest.$ac_ext
  10802. if $ac_preproc_ok; then :
  10803. else
  10804. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10805. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10806. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10807. See \`config.log' for more details" "$LINENO" 5; }
  10808. fi
  10809. ac_ext=c
  10810. ac_cpp='$CPP $CPPFLAGS'
  10811. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10812. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10813. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10814. else
  10815. _lt_caught_CXX_error=yes
  10816. fi
  10817. ac_ext=cpp
  10818. ac_cpp='$CXXCPP $CPPFLAGS'
  10819. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10820. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10821. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10822. archive_cmds_need_lc_CXX=no
  10823. allow_undefined_flag_CXX=
  10824. always_export_symbols_CXX=no
  10825. archive_expsym_cmds_CXX=
  10826. compiler_needs_object_CXX=no
  10827. export_dynamic_flag_spec_CXX=
  10828. hardcode_direct_CXX=no
  10829. hardcode_direct_absolute_CXX=no
  10830. hardcode_libdir_flag_spec_CXX=
  10831. hardcode_libdir_flag_spec_ld_CXX=
  10832. hardcode_libdir_separator_CXX=
  10833. hardcode_minus_L_CXX=no
  10834. hardcode_shlibpath_var_CXX=unsupported
  10835. hardcode_automatic_CXX=no
  10836. inherit_rpath_CXX=no
  10837. module_cmds_CXX=
  10838. module_expsym_cmds_CXX=
  10839. link_all_deplibs_CXX=unknown
  10840. old_archive_cmds_CXX=$old_archive_cmds
  10841. reload_flag_CXX=$reload_flag
  10842. reload_cmds_CXX=$reload_cmds
  10843. no_undefined_flag_CXX=
  10844. whole_archive_flag_spec_CXX=
  10845. enable_shared_with_static_runtimes_CXX=no
  10846. # Source file extension for C++ test sources.
  10847. ac_ext=cpp
  10848. # Object file extension for compiled C++ test sources.
  10849. objext=o
  10850. objext_CXX=$objext
  10851. # No sense in running all these tests if we already determined that
  10852. # the CXX compiler isn't working. Some variables (like enable_shared)
  10853. # are currently assumed to apply to all compilers on this platform,
  10854. # and will be corrupted by setting them based on a non-working compiler.
  10855. if test "$_lt_caught_CXX_error" != yes; then
  10856. # Code to be used in simple compile tests
  10857. lt_simple_compile_test_code="int some_variable = 0;"
  10858. # Code to be used in simple link tests
  10859. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10860. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10861. # If no C compiler was specified, use CC.
  10862. LTCC=${LTCC-"$CC"}
  10863. # If no C compiler flags were specified, use CFLAGS.
  10864. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10865. # Allow CC to be a program name with arguments.
  10866. compiler=$CC
  10867. # save warnings/boilerplate of simple test code
  10868. ac_outfile=conftest.$ac_objext
  10869. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10870. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10871. _lt_compiler_boilerplate=`cat conftest.err`
  10872. $RM conftest*
  10873. ac_outfile=conftest.$ac_objext
  10874. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10875. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10876. _lt_linker_boilerplate=`cat conftest.err`
  10877. $RM -r conftest*
  10878. # Allow CC to be a program name with arguments.
  10879. lt_save_CC=$CC
  10880. lt_save_LD=$LD
  10881. lt_save_GCC=$GCC
  10882. GCC=$GXX
  10883. lt_save_with_gnu_ld=$with_gnu_ld
  10884. lt_save_path_LD=$lt_cv_path_LD
  10885. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10886. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10887. else
  10888. $as_unset lt_cv_prog_gnu_ld
  10889. fi
  10890. if test -n "${lt_cv_path_LDCXX+set}"; then
  10891. lt_cv_path_LD=$lt_cv_path_LDCXX
  10892. else
  10893. $as_unset lt_cv_path_LD
  10894. fi
  10895. test -z "${LDCXX+set}" || LD=$LDCXX
  10896. CC=${CXX-"c++"}
  10897. compiler=$CC
  10898. compiler_CXX=$CC
  10899. for cc_temp in $compiler""; do
  10900. case $cc_temp in
  10901. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10902. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10903. \-*) ;;
  10904. *) break;;
  10905. esac
  10906. done
  10907. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10908. if test -n "$compiler"; then
  10909. # We don't want -fno-exception when compiling C++ code, so set the
  10910. # no_builtin_flag separately
  10911. if test "$GXX" = yes; then
  10912. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10913. else
  10914. lt_prog_compiler_no_builtin_flag_CXX=
  10915. fi
  10916. if test "$GXX" = yes; then
  10917. # Set up default GNU C++ configuration
  10918. # Check whether --with-gnu-ld was given.
  10919. if test "${with_gnu_ld+set}" = set; then :
  10920. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10921. else
  10922. with_gnu_ld=no
  10923. fi
  10924. ac_prog=ld
  10925. if test "$GCC" = yes; then
  10926. # Check if gcc -print-prog-name=ld gives a path.
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10928. $as_echo_n "checking for ld used by $CC... " >&6; }
  10929. case $host in
  10930. *-*-mingw*)
  10931. # gcc leaves a trailing carriage return which upsets mingw
  10932. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10933. *)
  10934. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10935. esac
  10936. case $ac_prog in
  10937. # Accept absolute paths.
  10938. [\\/]* | ?:[\\/]*)
  10939. re_direlt='/[^/][^/]*/\.\./'
  10940. # Canonicalize the pathname of ld
  10941. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10942. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10943. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10944. done
  10945. test -z "$LD" && LD="$ac_prog"
  10946. ;;
  10947. "")
  10948. # If it fails, then pretend we aren't using GCC.
  10949. ac_prog=ld
  10950. ;;
  10951. *)
  10952. # If it is relative, then search for the first ld in PATH.
  10953. with_gnu_ld=unknown
  10954. ;;
  10955. esac
  10956. elif test "$with_gnu_ld" = yes; then
  10957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10958. $as_echo_n "checking for GNU ld... " >&6; }
  10959. else
  10960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10961. $as_echo_n "checking for non-GNU ld... " >&6; }
  10962. fi
  10963. if ${lt_cv_path_LD+:} false; then :
  10964. $as_echo_n "(cached) " >&6
  10965. else
  10966. if test -z "$LD"; then
  10967. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10968. for ac_dir in $PATH; do
  10969. IFS="$lt_save_ifs"
  10970. test -z "$ac_dir" && ac_dir=.
  10971. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10972. lt_cv_path_LD="$ac_dir/$ac_prog"
  10973. # Check to see if the program is GNU ld. I'd rather use --version,
  10974. # but apparently some variants of GNU ld only accept -v.
  10975. # Break only if it was the GNU/non-GNU ld that we prefer.
  10976. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10977. *GNU* | *'with BFD'*)
  10978. test "$with_gnu_ld" != no && break
  10979. ;;
  10980. *)
  10981. test "$with_gnu_ld" != yes && break
  10982. ;;
  10983. esac
  10984. fi
  10985. done
  10986. IFS="$lt_save_ifs"
  10987. else
  10988. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10989. fi
  10990. fi
  10991. LD="$lt_cv_path_LD"
  10992. if test -n "$LD"; then
  10993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10994. $as_echo "$LD" >&6; }
  10995. else
  10996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10997. $as_echo "no" >&6; }
  10998. fi
  10999. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11001. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11002. if ${lt_cv_prog_gnu_ld+:} false; then :
  11003. $as_echo_n "(cached) " >&6
  11004. else
  11005. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11006. case `$LD -v 2>&1 </dev/null` in
  11007. *GNU* | *'with BFD'*)
  11008. lt_cv_prog_gnu_ld=yes
  11009. ;;
  11010. *)
  11011. lt_cv_prog_gnu_ld=no
  11012. ;;
  11013. esac
  11014. fi
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11016. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11017. with_gnu_ld=$lt_cv_prog_gnu_ld
  11018. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11019. # archiving commands below assume that GNU ld is being used.
  11020. if test "$with_gnu_ld" = yes; then
  11021. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11022. 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'
  11023. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11024. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11025. # If archive_cmds runs LD, not CC, wlarc should be empty
  11026. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11027. # investigate it a little bit more. (MM)
  11028. wlarc='${wl}'
  11029. # ancient GNU ld didn't support --whole-archive et. al.
  11030. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11031. $GREP 'no-whole-archive' > /dev/null; then
  11032. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11033. else
  11034. whole_archive_flag_spec_CXX=
  11035. fi
  11036. else
  11037. with_gnu_ld=no
  11038. wlarc=
  11039. # A generic and very simple default shared library creation
  11040. # command for GNU C++ for the case where it uses the native
  11041. # linker, instead of GNU ld. If possible, this setting should
  11042. # overridden to take advantage of the native linker features on
  11043. # the platform it is being used on.
  11044. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11045. fi
  11046. # Commands to make compiler produce verbose output that lists
  11047. # what "hidden" libraries, object files and flags are used when
  11048. # linking a shared library.
  11049. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11050. else
  11051. GXX=no
  11052. with_gnu_ld=no
  11053. wlarc=
  11054. fi
  11055. # PORTME: fill in a description of your system's C++ link characteristics
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11057. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11058. ld_shlibs_CXX=yes
  11059. case $host_os in
  11060. aix3*)
  11061. # FIXME: insert proper C++ library support
  11062. ld_shlibs_CXX=no
  11063. ;;
  11064. aix[4-9]*)
  11065. if test "$host_cpu" = ia64; then
  11066. # On IA64, the linker does run time linking by default, so we don't
  11067. # have to do anything special.
  11068. aix_use_runtimelinking=no
  11069. exp_sym_flag='-Bexport'
  11070. no_entry_flag=""
  11071. else
  11072. aix_use_runtimelinking=no
  11073. # Test if we are trying to use run time linking or normal
  11074. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11075. # need to do runtime linking.
  11076. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11077. for ld_flag in $LDFLAGS; do
  11078. case $ld_flag in
  11079. *-brtl*)
  11080. aix_use_runtimelinking=yes
  11081. break
  11082. ;;
  11083. esac
  11084. done
  11085. ;;
  11086. esac
  11087. exp_sym_flag='-bexport'
  11088. no_entry_flag='-bnoentry'
  11089. fi
  11090. # When large executables or shared objects are built, AIX ld can
  11091. # have problems creating the table of contents. If linking a library
  11092. # or program results in "error TOC overflow" add -mminimal-toc to
  11093. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11094. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11095. archive_cmds_CXX=''
  11096. hardcode_direct_CXX=yes
  11097. hardcode_direct_absolute_CXX=yes
  11098. hardcode_libdir_separator_CXX=':'
  11099. link_all_deplibs_CXX=yes
  11100. file_list_spec_CXX='${wl}-f,'
  11101. if test "$GXX" = yes; then
  11102. case $host_os in aix4.[012]|aix4.[012].*)
  11103. # We only want to do this on AIX 4.2 and lower, the check
  11104. # below for broken collect2 doesn't work under 4.3+
  11105. collect2name=`${CC} -print-prog-name=collect2`
  11106. if test -f "$collect2name" &&
  11107. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11108. then
  11109. # We have reworked collect2
  11110. :
  11111. else
  11112. # We have old collect2
  11113. hardcode_direct_CXX=unsupported
  11114. # It fails to find uninstalled libraries when the uninstalled
  11115. # path is not listed in the libpath. Setting hardcode_minus_L
  11116. # to unsupported forces relinking
  11117. hardcode_minus_L_CXX=yes
  11118. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11119. hardcode_libdir_separator_CXX=
  11120. fi
  11121. esac
  11122. shared_flag='-shared'
  11123. if test "$aix_use_runtimelinking" = yes; then
  11124. shared_flag="$shared_flag "'${wl}-G'
  11125. fi
  11126. else
  11127. # not using gcc
  11128. if test "$host_cpu" = ia64; then
  11129. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11130. # chokes on -Wl,-G. The following line is correct:
  11131. shared_flag='-G'
  11132. else
  11133. if test "$aix_use_runtimelinking" = yes; then
  11134. shared_flag='${wl}-G'
  11135. else
  11136. shared_flag='${wl}-bM:SRE'
  11137. fi
  11138. fi
  11139. fi
  11140. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11141. # It seems that -bexpall does not export symbols beginning with
  11142. # underscore (_), so it is better to generate a list of symbols to
  11143. # export.
  11144. always_export_symbols_CXX=yes
  11145. if test "$aix_use_runtimelinking" = yes; then
  11146. # Warning - without using the other runtime loading flags (-brtl),
  11147. # -berok will link without error, but may produce a broken library.
  11148. allow_undefined_flag_CXX='-berok'
  11149. # Determine the default libpath from the value encoded in an empty
  11150. # executable.
  11151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11152. /* end confdefs.h. */
  11153. int
  11154. main ()
  11155. {
  11156. ;
  11157. return 0;
  11158. }
  11159. _ACEOF
  11160. if ac_fn_cxx_try_link "$LINENO"; then :
  11161. lt_aix_libpath_sed='
  11162. /Import File Strings/,/^$/ {
  11163. /^0/ {
  11164. s/^0 *\(.*\)$/\1/
  11165. p
  11166. }
  11167. }'
  11168. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11169. # Check for a 64-bit object if we didn't find anything.
  11170. if test -z "$aix_libpath"; then
  11171. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11172. fi
  11173. fi
  11174. rm -f core conftest.err conftest.$ac_objext \
  11175. conftest$ac_exeext conftest.$ac_ext
  11176. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11177. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11178. 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"
  11179. else
  11180. if test "$host_cpu" = ia64; then
  11181. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11182. allow_undefined_flag_CXX="-z nodefs"
  11183. 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"
  11184. else
  11185. # Determine the default libpath from the value encoded in an
  11186. # empty executable.
  11187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11188. /* end confdefs.h. */
  11189. int
  11190. main ()
  11191. {
  11192. ;
  11193. return 0;
  11194. }
  11195. _ACEOF
  11196. if ac_fn_cxx_try_link "$LINENO"; then :
  11197. lt_aix_libpath_sed='
  11198. /Import File Strings/,/^$/ {
  11199. /^0/ {
  11200. s/^0 *\(.*\)$/\1/
  11201. p
  11202. }
  11203. }'
  11204. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11205. # Check for a 64-bit object if we didn't find anything.
  11206. if test -z "$aix_libpath"; then
  11207. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11208. fi
  11209. fi
  11210. rm -f core conftest.err conftest.$ac_objext \
  11211. conftest$ac_exeext conftest.$ac_ext
  11212. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11213. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11214. # Warning - without using the other run time loading flags,
  11215. # -berok will link without error, but may produce a broken library.
  11216. no_undefined_flag_CXX=' ${wl}-bernotok'
  11217. allow_undefined_flag_CXX=' ${wl}-berok'
  11218. if test "$with_gnu_ld" = yes; then
  11219. # We only use this code for GNU lds that support --whole-archive.
  11220. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11221. else
  11222. # Exported symbols can be pulled into shared objects from archives
  11223. whole_archive_flag_spec_CXX='$convenience'
  11224. fi
  11225. archive_cmds_need_lc_CXX=yes
  11226. # This is similar to how AIX traditionally builds its shared
  11227. # libraries.
  11228. 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'
  11229. fi
  11230. fi
  11231. ;;
  11232. beos*)
  11233. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11234. allow_undefined_flag_CXX=unsupported
  11235. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11236. # support --undefined. This deserves some investigation. FIXME
  11237. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11238. else
  11239. ld_shlibs_CXX=no
  11240. fi
  11241. ;;
  11242. chorus*)
  11243. case $cc_basename in
  11244. *)
  11245. # FIXME: insert proper C++ library support
  11246. ld_shlibs_CXX=no
  11247. ;;
  11248. esac
  11249. ;;
  11250. cygwin* | mingw* | pw32* | cegcc*)
  11251. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11252. # as there is no search path for DLLs.
  11253. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11254. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11255. allow_undefined_flag_CXX=unsupported
  11256. always_export_symbols_CXX=no
  11257. enable_shared_with_static_runtimes_CXX=yes
  11258. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11259. 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'
  11260. # If the export-symbols file already is a .def file (1st line
  11261. # is EXPORTS), use it as is; otherwise, prepend...
  11262. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11263. cp $export_symbols $output_objdir/$soname.def;
  11264. else
  11265. echo EXPORTS > $output_objdir/$soname.def;
  11266. cat $export_symbols >> $output_objdir/$soname.def;
  11267. fi~
  11268. $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'
  11269. else
  11270. ld_shlibs_CXX=no
  11271. fi
  11272. ;;
  11273. darwin* | rhapsody*)
  11274. archive_cmds_need_lc_CXX=no
  11275. hardcode_direct_CXX=no
  11276. hardcode_automatic_CXX=yes
  11277. hardcode_shlibpath_var_CXX=unsupported
  11278. if test "$lt_cv_ld_force_load" = "yes"; then
  11279. 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\"`'
  11280. else
  11281. whole_archive_flag_spec_CXX=''
  11282. fi
  11283. link_all_deplibs_CXX=yes
  11284. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11285. case $cc_basename in
  11286. ifort*) _lt_dar_can_shared=yes ;;
  11287. *) _lt_dar_can_shared=$GCC ;;
  11288. esac
  11289. if test "$_lt_dar_can_shared" = "yes"; then
  11290. output_verbose_link_cmd=func_echo_all
  11291. 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}"
  11292. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11293. 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}"
  11294. 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}"
  11295. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11296. 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}"
  11297. 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}"
  11298. fi
  11299. else
  11300. ld_shlibs_CXX=no
  11301. fi
  11302. ;;
  11303. dgux*)
  11304. case $cc_basename in
  11305. ec++*)
  11306. # FIXME: insert proper C++ library support
  11307. ld_shlibs_CXX=no
  11308. ;;
  11309. ghcx*)
  11310. # Green Hills C++ Compiler
  11311. # FIXME: insert proper C++ library support
  11312. ld_shlibs_CXX=no
  11313. ;;
  11314. *)
  11315. # FIXME: insert proper C++ library support
  11316. ld_shlibs_CXX=no
  11317. ;;
  11318. esac
  11319. ;;
  11320. freebsd2.*)
  11321. # C++ shared libraries reported to be fairly broken before
  11322. # switch to ELF
  11323. ld_shlibs_CXX=no
  11324. ;;
  11325. freebsd-elf*)
  11326. archive_cmds_need_lc_CXX=no
  11327. ;;
  11328. freebsd* | dragonfly*)
  11329. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11330. # conventions
  11331. ld_shlibs_CXX=yes
  11332. ;;
  11333. gnu*)
  11334. ;;
  11335. haiku*)
  11336. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11337. link_all_deplibs_CXX=yes
  11338. ;;
  11339. hpux9*)
  11340. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11341. hardcode_libdir_separator_CXX=:
  11342. export_dynamic_flag_spec_CXX='${wl}-E'
  11343. hardcode_direct_CXX=yes
  11344. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11345. # but as the default
  11346. # location of the library.
  11347. case $cc_basename in
  11348. CC*)
  11349. # FIXME: insert proper C++ library support
  11350. ld_shlibs_CXX=no
  11351. ;;
  11352. aCC*)
  11353. 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'
  11354. # Commands to make compiler produce verbose output that lists
  11355. # what "hidden" libraries, object files and flags are used when
  11356. # linking a shared library.
  11357. #
  11358. # There doesn't appear to be a way to prevent this compiler from
  11359. # explicitly linking system object files so we need to strip them
  11360. # from the output so that they don't get included in the library
  11361. # dependencies.
  11362. 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"'
  11363. ;;
  11364. *)
  11365. if test "$GXX" = yes; then
  11366. 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'
  11367. else
  11368. # FIXME: insert proper C++ library support
  11369. ld_shlibs_CXX=no
  11370. fi
  11371. ;;
  11372. esac
  11373. ;;
  11374. hpux10*|hpux11*)
  11375. if test $with_gnu_ld = no; then
  11376. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11377. hardcode_libdir_separator_CXX=:
  11378. case $host_cpu in
  11379. hppa*64*|ia64*)
  11380. ;;
  11381. *)
  11382. export_dynamic_flag_spec_CXX='${wl}-E'
  11383. ;;
  11384. esac
  11385. fi
  11386. case $host_cpu in
  11387. hppa*64*|ia64*)
  11388. hardcode_direct_CXX=no
  11389. hardcode_shlibpath_var_CXX=no
  11390. ;;
  11391. *)
  11392. hardcode_direct_CXX=yes
  11393. hardcode_direct_absolute_CXX=yes
  11394. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11395. # but as the default
  11396. # location of the library.
  11397. ;;
  11398. esac
  11399. case $cc_basename in
  11400. CC*)
  11401. # FIXME: insert proper C++ library support
  11402. ld_shlibs_CXX=no
  11403. ;;
  11404. aCC*)
  11405. case $host_cpu in
  11406. hppa*64*)
  11407. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11408. ;;
  11409. ia64*)
  11410. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11411. ;;
  11412. *)
  11413. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11414. ;;
  11415. esac
  11416. # Commands to make compiler produce verbose output that lists
  11417. # what "hidden" libraries, object files and flags are used when
  11418. # linking a shared library.
  11419. #
  11420. # There doesn't appear to be a way to prevent this compiler from
  11421. # explicitly linking system object files so we need to strip them
  11422. # from the output so that they don't get included in the library
  11423. # dependencies.
  11424. 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"'
  11425. ;;
  11426. *)
  11427. if test "$GXX" = yes; then
  11428. if test $with_gnu_ld = no; then
  11429. case $host_cpu in
  11430. hppa*64*)
  11431. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11432. ;;
  11433. ia64*)
  11434. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11435. ;;
  11436. *)
  11437. 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'
  11438. ;;
  11439. esac
  11440. fi
  11441. else
  11442. # FIXME: insert proper C++ library support
  11443. ld_shlibs_CXX=no
  11444. fi
  11445. ;;
  11446. esac
  11447. ;;
  11448. interix[3-9]*)
  11449. hardcode_direct_CXX=no
  11450. hardcode_shlibpath_var_CXX=no
  11451. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11452. export_dynamic_flag_spec_CXX='${wl}-E'
  11453. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11454. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11455. # default) and relocated if they conflict, which is a slow very memory
  11456. # consuming and fragmenting process. To avoid this, we pick a random,
  11457. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11458. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11459. 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'
  11460. 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'
  11461. ;;
  11462. irix5* | irix6*)
  11463. case $cc_basename in
  11464. CC*)
  11465. # SGI C++
  11466. 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'
  11467. # Archives containing C++ object files must be created using
  11468. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11469. # necessary to make sure instantiated templates are included
  11470. # in the archive.
  11471. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11472. ;;
  11473. *)
  11474. if test "$GXX" = yes; then
  11475. if test "$with_gnu_ld" = no; then
  11476. 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'
  11477. else
  11478. 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'
  11479. fi
  11480. fi
  11481. link_all_deplibs_CXX=yes
  11482. ;;
  11483. esac
  11484. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11485. hardcode_libdir_separator_CXX=:
  11486. inherit_rpath_CXX=yes
  11487. ;;
  11488. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11489. case $cc_basename in
  11490. KCC*)
  11491. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11492. # KCC will only create a shared library if the output file
  11493. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11494. # to its proper name (with version) after linking.
  11495. 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'
  11496. 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'
  11497. # Commands to make compiler produce verbose output that lists
  11498. # what "hidden" libraries, object files and flags are used when
  11499. # linking a shared library.
  11500. #
  11501. # There doesn't appear to be a way to prevent this compiler from
  11502. # explicitly linking system object files so we need to strip them
  11503. # from the output so that they don't get included in the library
  11504. # dependencies.
  11505. 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"'
  11506. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11507. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11508. # Archives containing C++ object files must be created using
  11509. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11510. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11511. ;;
  11512. icpc* | ecpc* )
  11513. # Intel C++
  11514. with_gnu_ld=yes
  11515. # version 8.0 and above of icpc choke on multiply defined symbols
  11516. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11517. # earlier do not add the objects themselves.
  11518. case `$CC -V 2>&1` in
  11519. *"Version 7."*)
  11520. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11521. 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'
  11522. ;;
  11523. *) # Version 8.0 or newer
  11524. tmp_idyn=
  11525. case $host_cpu in
  11526. ia64*) tmp_idyn=' -i_dynamic';;
  11527. esac
  11528. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11529. 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'
  11530. ;;
  11531. esac
  11532. archive_cmds_need_lc_CXX=no
  11533. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11534. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11535. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11536. ;;
  11537. pgCC* | pgcpp*)
  11538. # Portland Group C++ compiler
  11539. case `$CC -V` in
  11540. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11541. prelink_cmds_CXX='tpldir=Template.dir~
  11542. rm -rf $tpldir~
  11543. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11544. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11545. old_archive_cmds_CXX='tpldir=Template.dir~
  11546. rm -rf $tpldir~
  11547. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11548. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11549. $RANLIB $oldlib'
  11550. archive_cmds_CXX='tpldir=Template.dir~
  11551. rm -rf $tpldir~
  11552. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11553. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11554. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11555. rm -rf $tpldir~
  11556. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11557. $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'
  11558. ;;
  11559. *) # Version 6 and above use weak symbols
  11560. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11561. 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'
  11562. ;;
  11563. esac
  11564. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11565. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11566. 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'
  11567. ;;
  11568. cxx*)
  11569. # Compaq C++
  11570. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11571. 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'
  11572. runpath_var=LD_RUN_PATH
  11573. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11574. hardcode_libdir_separator_CXX=:
  11575. # Commands to make compiler produce verbose output that lists
  11576. # what "hidden" libraries, object files and flags are used when
  11577. # linking a shared library.
  11578. #
  11579. # There doesn't appear to be a way to prevent this compiler from
  11580. # explicitly linking system object files so we need to strip them
  11581. # from the output so that they don't get included in the library
  11582. # dependencies.
  11583. 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'
  11584. ;;
  11585. xl* | mpixl* | bgxl*)
  11586. # IBM XL 8.0 on PPC, with GNU ld
  11587. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11588. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11589. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11590. if test "x$supports_anon_versioning" = xyes; then
  11591. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11592. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11593. echo "local: *; };" >> $output_objdir/$libname.ver~
  11594. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11595. fi
  11596. ;;
  11597. *)
  11598. case `$CC -V 2>&1 | sed 5q` in
  11599. *Sun\ C*)
  11600. # Sun C++ 5.9
  11601. no_undefined_flag_CXX=' -zdefs'
  11602. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11603. 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'
  11604. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11605. 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'
  11606. compiler_needs_object_CXX=yes
  11607. # Not sure whether something based on
  11608. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11609. # would be better.
  11610. output_verbose_link_cmd='func_echo_all'
  11611. # Archives containing C++ object files must be created using
  11612. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11613. # necessary to make sure instantiated templates are included
  11614. # in the archive.
  11615. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11616. ;;
  11617. esac
  11618. ;;
  11619. esac
  11620. ;;
  11621. lynxos*)
  11622. # FIXME: insert proper C++ library support
  11623. ld_shlibs_CXX=no
  11624. ;;
  11625. m88k*)
  11626. # FIXME: insert proper C++ library support
  11627. ld_shlibs_CXX=no
  11628. ;;
  11629. mvs*)
  11630. case $cc_basename in
  11631. cxx*)
  11632. # FIXME: insert proper C++ library support
  11633. ld_shlibs_CXX=no
  11634. ;;
  11635. *)
  11636. # FIXME: insert proper C++ library support
  11637. ld_shlibs_CXX=no
  11638. ;;
  11639. esac
  11640. ;;
  11641. netbsd*)
  11642. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11643. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11644. wlarc=
  11645. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11646. hardcode_direct_CXX=yes
  11647. hardcode_shlibpath_var_CXX=no
  11648. fi
  11649. # Workaround some broken pre-1.5 toolchains
  11650. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11651. ;;
  11652. *nto* | *qnx*)
  11653. ld_shlibs_CXX=yes
  11654. ;;
  11655. openbsd2*)
  11656. # C++ shared libraries are fairly broken
  11657. ld_shlibs_CXX=no
  11658. ;;
  11659. openbsd*)
  11660. if test -f /usr/libexec/ld.so; then
  11661. hardcode_direct_CXX=yes
  11662. hardcode_shlibpath_var_CXX=no
  11663. hardcode_direct_absolute_CXX=yes
  11664. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11665. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11666. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11667. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11668. export_dynamic_flag_spec_CXX='${wl}-E'
  11669. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11670. fi
  11671. output_verbose_link_cmd=func_echo_all
  11672. else
  11673. ld_shlibs_CXX=no
  11674. fi
  11675. ;;
  11676. osf3* | osf4* | osf5*)
  11677. case $cc_basename in
  11678. KCC*)
  11679. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11680. # KCC will only create a shared library if the output file
  11681. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11682. # to its proper name (with version) after linking.
  11683. 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'
  11684. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11685. hardcode_libdir_separator_CXX=:
  11686. # Archives containing C++ object files must be created using
  11687. # the KAI C++ compiler.
  11688. case $host in
  11689. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11690. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11691. esac
  11692. ;;
  11693. RCC*)
  11694. # Rational C++ 2.4.1
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. cxx*)
  11699. case $host in
  11700. osf3*)
  11701. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11702. 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'
  11703. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11704. ;;
  11705. *)
  11706. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11707. 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'
  11708. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11709. echo "-hidden">> $lib.exp~
  11710. $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~
  11711. $RM $lib.exp'
  11712. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11713. ;;
  11714. esac
  11715. hardcode_libdir_separator_CXX=:
  11716. # Commands to make compiler produce verbose output that lists
  11717. # what "hidden" libraries, object files and flags are used when
  11718. # linking a shared library.
  11719. #
  11720. # There doesn't appear to be a way to prevent this compiler from
  11721. # explicitly linking system object files so we need to strip them
  11722. # from the output so that they don't get included in the library
  11723. # dependencies.
  11724. 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"'
  11725. ;;
  11726. *)
  11727. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11728. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11729. case $host in
  11730. osf3*)
  11731. 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'
  11732. ;;
  11733. *)
  11734. 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'
  11735. ;;
  11736. esac
  11737. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11738. hardcode_libdir_separator_CXX=:
  11739. # Commands to make compiler produce verbose output that lists
  11740. # what "hidden" libraries, object files and flags are used when
  11741. # linking a shared library.
  11742. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11743. else
  11744. # FIXME: insert proper C++ library support
  11745. ld_shlibs_CXX=no
  11746. fi
  11747. ;;
  11748. esac
  11749. ;;
  11750. psos*)
  11751. # FIXME: insert proper C++ library support
  11752. ld_shlibs_CXX=no
  11753. ;;
  11754. sunos4*)
  11755. case $cc_basename in
  11756. CC*)
  11757. # Sun C++ 4.x
  11758. # FIXME: insert proper C++ library support
  11759. ld_shlibs_CXX=no
  11760. ;;
  11761. lcc*)
  11762. # Lucid
  11763. # FIXME: insert proper C++ library support
  11764. ld_shlibs_CXX=no
  11765. ;;
  11766. *)
  11767. # FIXME: insert proper C++ library support
  11768. ld_shlibs_CXX=no
  11769. ;;
  11770. esac
  11771. ;;
  11772. solaris*)
  11773. case $cc_basename in
  11774. CC*)
  11775. # Sun C++ 4.2, 5.x and Centerline C++
  11776. archive_cmds_need_lc_CXX=yes
  11777. no_undefined_flag_CXX=' -zdefs'
  11778. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11779. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11780. $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'
  11781. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11782. hardcode_shlibpath_var_CXX=no
  11783. case $host_os in
  11784. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11785. *)
  11786. # The compiler driver will combine and reorder linker options,
  11787. # but understands `-z linker_flag'.
  11788. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11789. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11790. ;;
  11791. esac
  11792. link_all_deplibs_CXX=yes
  11793. output_verbose_link_cmd='func_echo_all'
  11794. # Archives containing C++ object files must be created using
  11795. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11796. # necessary to make sure instantiated templates are included
  11797. # in the archive.
  11798. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11799. ;;
  11800. gcx*)
  11801. # Green Hills C++ Compiler
  11802. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11803. # The C++ compiler must be used to create the archive.
  11804. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11805. ;;
  11806. *)
  11807. # GNU C++ compiler with Solaris linker
  11808. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11809. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11810. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11811. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11812. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11813. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11814. # Commands to make compiler produce verbose output that lists
  11815. # what "hidden" libraries, object files and flags are used when
  11816. # linking a shared library.
  11817. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11818. else
  11819. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11820. # platform.
  11821. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11822. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11823. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11824. # Commands to make compiler produce verbose output that lists
  11825. # what "hidden" libraries, object files and flags are used when
  11826. # linking a shared library.
  11827. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11828. fi
  11829. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11830. case $host_os in
  11831. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11832. *)
  11833. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11834. ;;
  11835. esac
  11836. fi
  11837. ;;
  11838. esac
  11839. ;;
  11840. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11841. no_undefined_flag_CXX='${wl}-z,text'
  11842. archive_cmds_need_lc_CXX=no
  11843. hardcode_shlibpath_var_CXX=no
  11844. runpath_var='LD_RUN_PATH'
  11845. case $cc_basename in
  11846. CC*)
  11847. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11848. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11849. ;;
  11850. *)
  11851. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11852. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11853. ;;
  11854. esac
  11855. ;;
  11856. sysv5* | sco3.2v5* | sco5v6*)
  11857. # Note: We can NOT use -z defs as we might desire, because we do not
  11858. # link with -lc, and that would cause any symbols used from libc to
  11859. # always be unresolved, which means just about no library would
  11860. # ever link correctly. If we're not using GNU ld we use -z text
  11861. # though, which does catch some bad symbols but isn't as heavy-handed
  11862. # as -z defs.
  11863. no_undefined_flag_CXX='${wl}-z,text'
  11864. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11865. archive_cmds_need_lc_CXX=no
  11866. hardcode_shlibpath_var_CXX=no
  11867. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11868. hardcode_libdir_separator_CXX=':'
  11869. link_all_deplibs_CXX=yes
  11870. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11871. runpath_var='LD_RUN_PATH'
  11872. case $cc_basename in
  11873. CC*)
  11874. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11875. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11876. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11877. '"$old_archive_cmds_CXX"
  11878. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11879. '"$reload_cmds_CXX"
  11880. ;;
  11881. *)
  11882. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11883. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11884. ;;
  11885. esac
  11886. ;;
  11887. tandem*)
  11888. case $cc_basename in
  11889. NCC*)
  11890. # NonStop-UX NCC 3.20
  11891. # FIXME: insert proper C++ library support
  11892. ld_shlibs_CXX=no
  11893. ;;
  11894. *)
  11895. # FIXME: insert proper C++ library support
  11896. ld_shlibs_CXX=no
  11897. ;;
  11898. esac
  11899. ;;
  11900. vxworks*)
  11901. # FIXME: insert proper C++ library support
  11902. ld_shlibs_CXX=no
  11903. ;;
  11904. *)
  11905. # FIXME: insert proper C++ library support
  11906. ld_shlibs_CXX=no
  11907. ;;
  11908. esac
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11910. $as_echo "$ld_shlibs_CXX" >&6; }
  11911. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11912. GCC_CXX="$GXX"
  11913. LD_CXX="$LD"
  11914. ## CAVEAT EMPTOR:
  11915. ## There is no encapsulation within the following macros, do not change
  11916. ## the running order or otherwise move them around unless you know exactly
  11917. ## what you are doing...
  11918. # Dependencies to place before and after the object being linked:
  11919. predep_objects_CXX=
  11920. postdep_objects_CXX=
  11921. predeps_CXX=
  11922. postdeps_CXX=
  11923. compiler_lib_search_path_CXX=
  11924. cat > conftest.$ac_ext <<_LT_EOF
  11925. class Foo
  11926. {
  11927. public:
  11928. Foo (void) { a = 0; }
  11929. private:
  11930. int a;
  11931. };
  11932. _LT_EOF
  11933. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11934. (eval $ac_compile) 2>&5
  11935. ac_status=$?
  11936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11937. test $ac_status = 0; }; then
  11938. # Parse the compiler output and extract the necessary
  11939. # objects, libraries and library flags.
  11940. # Sentinel used to keep track of whether or not we are before
  11941. # the conftest object file.
  11942. pre_test_object_deps_done=no
  11943. for p in `eval "$output_verbose_link_cmd"`; do
  11944. case $p in
  11945. -L* | -R* | -l*)
  11946. # Some compilers place space between "-{L,R}" and the path.
  11947. # Remove the space.
  11948. if test $p = "-L" ||
  11949. test $p = "-R"; then
  11950. prev=$p
  11951. continue
  11952. else
  11953. prev=
  11954. fi
  11955. if test "$pre_test_object_deps_done" = no; then
  11956. case $p in
  11957. -L* | -R*)
  11958. # Internal compiler library paths should come after those
  11959. # provided the user. The postdeps already come after the
  11960. # user supplied libs so there is no need to process them.
  11961. if test -z "$compiler_lib_search_path_CXX"; then
  11962. compiler_lib_search_path_CXX="${prev}${p}"
  11963. else
  11964. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11965. fi
  11966. ;;
  11967. # The "-l" case would never come before the object being
  11968. # linked, so don't bother handling this case.
  11969. esac
  11970. else
  11971. if test -z "$postdeps_CXX"; then
  11972. postdeps_CXX="${prev}${p}"
  11973. else
  11974. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11975. fi
  11976. fi
  11977. ;;
  11978. *.$objext)
  11979. # This assumes that the test object file only shows up
  11980. # once in the compiler output.
  11981. if test "$p" = "conftest.$objext"; then
  11982. pre_test_object_deps_done=yes
  11983. continue
  11984. fi
  11985. if test "$pre_test_object_deps_done" = no; then
  11986. if test -z "$predep_objects_CXX"; then
  11987. predep_objects_CXX="$p"
  11988. else
  11989. predep_objects_CXX="$predep_objects_CXX $p"
  11990. fi
  11991. else
  11992. if test -z "$postdep_objects_CXX"; then
  11993. postdep_objects_CXX="$p"
  11994. else
  11995. postdep_objects_CXX="$postdep_objects_CXX $p"
  11996. fi
  11997. fi
  11998. ;;
  11999. *) ;; # Ignore the rest.
  12000. esac
  12001. done
  12002. # Clean up.
  12003. rm -f a.out a.exe
  12004. else
  12005. echo "libtool.m4: error: problem compiling CXX test program"
  12006. fi
  12007. $RM -f confest.$objext
  12008. # PORTME: override above test on systems where it is broken
  12009. case $host_os in
  12010. interix[3-9]*)
  12011. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12012. # hack all around it, let's just trust "g++" to DTRT.
  12013. predep_objects_CXX=
  12014. postdep_objects_CXX=
  12015. postdeps_CXX=
  12016. ;;
  12017. linux*)
  12018. case `$CC -V 2>&1 | sed 5q` in
  12019. *Sun\ C*)
  12020. # Sun C++ 5.9
  12021. # The more standards-conforming stlport4 library is
  12022. # incompatible with the Cstd library. Avoid specifying
  12023. # it if it's in CXXFLAGS. Ignore libCrun as
  12024. # -library=stlport4 depends on it.
  12025. case " $CXX $CXXFLAGS " in
  12026. *" -library=stlport4 "*)
  12027. solaris_use_stlport4=yes
  12028. ;;
  12029. esac
  12030. if test "$solaris_use_stlport4" != yes; then
  12031. postdeps_CXX='-library=Cstd -library=Crun'
  12032. fi
  12033. ;;
  12034. esac
  12035. ;;
  12036. solaris*)
  12037. case $cc_basename in
  12038. CC*)
  12039. # The more standards-conforming stlport4 library is
  12040. # incompatible with the Cstd library. Avoid specifying
  12041. # it if it's in CXXFLAGS. Ignore libCrun as
  12042. # -library=stlport4 depends on it.
  12043. case " $CXX $CXXFLAGS " in
  12044. *" -library=stlport4 "*)
  12045. solaris_use_stlport4=yes
  12046. ;;
  12047. esac
  12048. # Adding this requires a known-good setup of shared libraries for
  12049. # Sun compiler versions before 5.6, else PIC objects from an old
  12050. # archive will be linked into the output, leading to subtle bugs.
  12051. if test "$solaris_use_stlport4" != yes; then
  12052. postdeps_CXX='-library=Cstd -library=Crun'
  12053. fi
  12054. ;;
  12055. esac
  12056. ;;
  12057. esac
  12058. case " $postdeps_CXX " in
  12059. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12060. esac
  12061. compiler_lib_search_dirs_CXX=
  12062. if test -n "${compiler_lib_search_path_CXX}"; then
  12063. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12064. fi
  12065. lt_prog_compiler_wl_CXX=
  12066. lt_prog_compiler_pic_CXX=
  12067. lt_prog_compiler_static_CXX=
  12068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12069. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12070. # C++ specific cases for pic, static, wl, etc.
  12071. if test "$GXX" = yes; then
  12072. lt_prog_compiler_wl_CXX='-Wl,'
  12073. lt_prog_compiler_static_CXX='-static'
  12074. case $host_os in
  12075. aix*)
  12076. # All AIX code is PIC.
  12077. if test "$host_cpu" = ia64; then
  12078. # AIX 5 now supports IA64 processor
  12079. lt_prog_compiler_static_CXX='-Bstatic'
  12080. fi
  12081. lt_prog_compiler_pic_CXX='-fPIC'
  12082. ;;
  12083. amigaos*)
  12084. case $host_cpu in
  12085. powerpc)
  12086. # see comment about AmigaOS4 .so support
  12087. lt_prog_compiler_pic_CXX='-fPIC'
  12088. ;;
  12089. m68k)
  12090. # FIXME: we need at least 68020 code to build shared libraries, but
  12091. # adding the `-m68020' flag to GCC prevents building anything better,
  12092. # like `-m68040'.
  12093. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12094. ;;
  12095. esac
  12096. ;;
  12097. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12098. # PIC is the default for these OSes.
  12099. ;;
  12100. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12101. # This hack is so that the source file can tell whether it is being
  12102. # built for inclusion in a dll (and should export symbols for example).
  12103. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12104. # (--disable-auto-import) libraries
  12105. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12106. ;;
  12107. darwin* | rhapsody*)
  12108. # PIC is the default on this platform
  12109. # Common symbols not allowed in MH_DYLIB files
  12110. lt_prog_compiler_pic_CXX='-fno-common'
  12111. ;;
  12112. *djgpp*)
  12113. # DJGPP does not support shared libraries at all
  12114. lt_prog_compiler_pic_CXX=
  12115. ;;
  12116. haiku*)
  12117. # PIC is the default for Haiku.
  12118. # The "-static" flag exists, but is broken.
  12119. lt_prog_compiler_static_CXX=
  12120. ;;
  12121. interix[3-9]*)
  12122. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12123. # Instead, we relocate shared libraries at runtime.
  12124. ;;
  12125. sysv4*MP*)
  12126. if test -d /usr/nec; then
  12127. lt_prog_compiler_pic_CXX=-Kconform_pic
  12128. fi
  12129. ;;
  12130. hpux*)
  12131. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12132. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12133. # sets the default TLS model and affects inlining.
  12134. case $host_cpu in
  12135. hppa*64*)
  12136. ;;
  12137. *)
  12138. lt_prog_compiler_pic_CXX='-fPIC'
  12139. ;;
  12140. esac
  12141. ;;
  12142. *qnx* | *nto*)
  12143. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12144. # it will coredump.
  12145. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12146. ;;
  12147. *)
  12148. lt_prog_compiler_pic_CXX='-fPIC'
  12149. ;;
  12150. esac
  12151. else
  12152. case $host_os in
  12153. aix[4-9]*)
  12154. # All AIX code is PIC.
  12155. if test "$host_cpu" = ia64; then
  12156. # AIX 5 now supports IA64 processor
  12157. lt_prog_compiler_static_CXX='-Bstatic'
  12158. else
  12159. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12160. fi
  12161. ;;
  12162. chorus*)
  12163. case $cc_basename in
  12164. cxch68*)
  12165. # Green Hills C++ Compiler
  12166. # _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"
  12167. ;;
  12168. esac
  12169. ;;
  12170. dgux*)
  12171. case $cc_basename in
  12172. ec++*)
  12173. lt_prog_compiler_pic_CXX='-KPIC'
  12174. ;;
  12175. ghcx*)
  12176. # Green Hills C++ Compiler
  12177. lt_prog_compiler_pic_CXX='-pic'
  12178. ;;
  12179. *)
  12180. ;;
  12181. esac
  12182. ;;
  12183. freebsd* | dragonfly*)
  12184. # FreeBSD uses GNU C++
  12185. ;;
  12186. hpux9* | hpux10* | hpux11*)
  12187. case $cc_basename in
  12188. CC*)
  12189. lt_prog_compiler_wl_CXX='-Wl,'
  12190. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12191. if test "$host_cpu" != ia64; then
  12192. lt_prog_compiler_pic_CXX='+Z'
  12193. fi
  12194. ;;
  12195. aCC*)
  12196. lt_prog_compiler_wl_CXX='-Wl,'
  12197. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12198. case $host_cpu in
  12199. hppa*64*|ia64*)
  12200. # +Z the default
  12201. ;;
  12202. *)
  12203. lt_prog_compiler_pic_CXX='+Z'
  12204. ;;
  12205. esac
  12206. ;;
  12207. *)
  12208. ;;
  12209. esac
  12210. ;;
  12211. interix*)
  12212. # This is c89, which is MS Visual C++ (no shared libs)
  12213. # Anyone wants to do a port?
  12214. ;;
  12215. irix5* | irix6* | nonstopux*)
  12216. case $cc_basename in
  12217. CC*)
  12218. lt_prog_compiler_wl_CXX='-Wl,'
  12219. lt_prog_compiler_static_CXX='-non_shared'
  12220. # CC pic flag -KPIC is the default.
  12221. ;;
  12222. *)
  12223. ;;
  12224. esac
  12225. ;;
  12226. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12227. case $cc_basename in
  12228. KCC*)
  12229. # KAI C++ Compiler
  12230. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12231. lt_prog_compiler_pic_CXX='-fPIC'
  12232. ;;
  12233. ecpc* )
  12234. # old Intel C++ for x86_64 which still supported -KPIC.
  12235. lt_prog_compiler_wl_CXX='-Wl,'
  12236. lt_prog_compiler_pic_CXX='-KPIC'
  12237. lt_prog_compiler_static_CXX='-static'
  12238. ;;
  12239. icpc* )
  12240. # Intel C++, used to be incompatible with GCC.
  12241. # ICC 10 doesn't accept -KPIC any more.
  12242. lt_prog_compiler_wl_CXX='-Wl,'
  12243. lt_prog_compiler_pic_CXX='-fPIC'
  12244. lt_prog_compiler_static_CXX='-static'
  12245. ;;
  12246. pgCC* | pgcpp*)
  12247. # Portland Group C++ compiler
  12248. lt_prog_compiler_wl_CXX='-Wl,'
  12249. lt_prog_compiler_pic_CXX='-fpic'
  12250. lt_prog_compiler_static_CXX='-Bstatic'
  12251. ;;
  12252. cxx*)
  12253. # Compaq C++
  12254. # Make sure the PIC flag is empty. It appears that all Alpha
  12255. # Linux and Compaq Tru64 Unix objects are PIC.
  12256. lt_prog_compiler_pic_CXX=
  12257. lt_prog_compiler_static_CXX='-non_shared'
  12258. ;;
  12259. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12260. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12261. lt_prog_compiler_wl_CXX='-Wl,'
  12262. lt_prog_compiler_pic_CXX='-qpic'
  12263. lt_prog_compiler_static_CXX='-qstaticlink'
  12264. ;;
  12265. *)
  12266. case `$CC -V 2>&1 | sed 5q` in
  12267. *Sun\ C*)
  12268. # Sun C++ 5.9
  12269. lt_prog_compiler_pic_CXX='-KPIC'
  12270. lt_prog_compiler_static_CXX='-Bstatic'
  12271. lt_prog_compiler_wl_CXX='-Qoption ld '
  12272. ;;
  12273. esac
  12274. ;;
  12275. esac
  12276. ;;
  12277. lynxos*)
  12278. ;;
  12279. m88k*)
  12280. ;;
  12281. mvs*)
  12282. case $cc_basename in
  12283. cxx*)
  12284. lt_prog_compiler_pic_CXX='-W c,exportall'
  12285. ;;
  12286. *)
  12287. ;;
  12288. esac
  12289. ;;
  12290. netbsd*)
  12291. ;;
  12292. *qnx* | *nto*)
  12293. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12294. # it will coredump.
  12295. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12296. ;;
  12297. osf3* | osf4* | osf5*)
  12298. case $cc_basename in
  12299. KCC*)
  12300. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12301. ;;
  12302. RCC*)
  12303. # Rational C++ 2.4.1
  12304. lt_prog_compiler_pic_CXX='-pic'
  12305. ;;
  12306. cxx*)
  12307. # Digital/Compaq C++
  12308. lt_prog_compiler_wl_CXX='-Wl,'
  12309. # Make sure the PIC flag is empty. It appears that all Alpha
  12310. # Linux and Compaq Tru64 Unix objects are PIC.
  12311. lt_prog_compiler_pic_CXX=
  12312. lt_prog_compiler_static_CXX='-non_shared'
  12313. ;;
  12314. *)
  12315. ;;
  12316. esac
  12317. ;;
  12318. psos*)
  12319. ;;
  12320. solaris*)
  12321. case $cc_basename in
  12322. CC*)
  12323. # Sun C++ 4.2, 5.x and Centerline C++
  12324. lt_prog_compiler_pic_CXX='-KPIC'
  12325. lt_prog_compiler_static_CXX='-Bstatic'
  12326. lt_prog_compiler_wl_CXX='-Qoption ld '
  12327. ;;
  12328. gcx*)
  12329. # Green Hills C++ Compiler
  12330. lt_prog_compiler_pic_CXX='-PIC'
  12331. ;;
  12332. *)
  12333. ;;
  12334. esac
  12335. ;;
  12336. sunos4*)
  12337. case $cc_basename in
  12338. CC*)
  12339. # Sun C++ 4.x
  12340. lt_prog_compiler_pic_CXX='-pic'
  12341. lt_prog_compiler_static_CXX='-Bstatic'
  12342. ;;
  12343. lcc*)
  12344. # Lucid
  12345. lt_prog_compiler_pic_CXX='-pic'
  12346. ;;
  12347. *)
  12348. ;;
  12349. esac
  12350. ;;
  12351. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12352. case $cc_basename in
  12353. CC*)
  12354. lt_prog_compiler_wl_CXX='-Wl,'
  12355. lt_prog_compiler_pic_CXX='-KPIC'
  12356. lt_prog_compiler_static_CXX='-Bstatic'
  12357. ;;
  12358. esac
  12359. ;;
  12360. tandem*)
  12361. case $cc_basename in
  12362. NCC*)
  12363. # NonStop-UX NCC 3.20
  12364. lt_prog_compiler_pic_CXX='-KPIC'
  12365. ;;
  12366. *)
  12367. ;;
  12368. esac
  12369. ;;
  12370. vxworks*)
  12371. ;;
  12372. *)
  12373. lt_prog_compiler_can_build_shared_CXX=no
  12374. ;;
  12375. esac
  12376. fi
  12377. case $host_os in
  12378. # For platforms which do not support PIC, -DPIC is meaningless:
  12379. *djgpp*)
  12380. lt_prog_compiler_pic_CXX=
  12381. ;;
  12382. *)
  12383. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12384. ;;
  12385. esac
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  12387. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  12388. #
  12389. # Check to make sure the PIC flag actually works.
  12390. #
  12391. if test -n "$lt_prog_compiler_pic_CXX"; then
  12392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12393. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12394. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12395. $as_echo_n "(cached) " >&6
  12396. else
  12397. lt_cv_prog_compiler_pic_works_CXX=no
  12398. ac_outfile=conftest.$ac_objext
  12399. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12400. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12401. # Insert the option either (1) after the last *FLAGS variable, or
  12402. # (2) before a word containing "conftest.", or (3) at the end.
  12403. # Note that $ac_compile itself does not contain backslashes and begins
  12404. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12405. # The option is referenced via a variable to avoid confusing sed.
  12406. lt_compile=`echo "$ac_compile" | $SED \
  12407. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12408. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12409. -e 's:$: $lt_compiler_flag:'`
  12410. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12411. (eval "$lt_compile" 2>conftest.err)
  12412. ac_status=$?
  12413. cat conftest.err >&5
  12414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12415. if (exit $ac_status) && test -s "$ac_outfile"; then
  12416. # The compiler can only warn and ignore the option if not recognized
  12417. # So say no if there are warnings other than the usual output.
  12418. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12419. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12420. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12421. lt_cv_prog_compiler_pic_works_CXX=yes
  12422. fi
  12423. fi
  12424. $RM conftest*
  12425. fi
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12427. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12428. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12429. case $lt_prog_compiler_pic_CXX in
  12430. "" | " "*) ;;
  12431. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12432. esac
  12433. else
  12434. lt_prog_compiler_pic_CXX=
  12435. lt_prog_compiler_can_build_shared_CXX=no
  12436. fi
  12437. fi
  12438. #
  12439. # Check to make sure the static flag actually works.
  12440. #
  12441. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12443. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12444. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12445. $as_echo_n "(cached) " >&6
  12446. else
  12447. lt_cv_prog_compiler_static_works_CXX=no
  12448. save_LDFLAGS="$LDFLAGS"
  12449. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12450. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12451. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12452. # The linker can only warn and ignore the option if not recognized
  12453. # So say no if there are warnings
  12454. if test -s conftest.err; then
  12455. # Append any errors to the config.log.
  12456. cat conftest.err 1>&5
  12457. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12458. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12459. if diff conftest.exp conftest.er2 >/dev/null; then
  12460. lt_cv_prog_compiler_static_works_CXX=yes
  12461. fi
  12462. else
  12463. lt_cv_prog_compiler_static_works_CXX=yes
  12464. fi
  12465. fi
  12466. $RM -r conftest*
  12467. LDFLAGS="$save_LDFLAGS"
  12468. fi
  12469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12470. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12471. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12472. :
  12473. else
  12474. lt_prog_compiler_static_CXX=
  12475. fi
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12477. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12478. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12479. $as_echo_n "(cached) " >&6
  12480. else
  12481. lt_cv_prog_compiler_c_o_CXX=no
  12482. $RM -r conftest 2>/dev/null
  12483. mkdir conftest
  12484. cd conftest
  12485. mkdir out
  12486. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12487. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12488. # Insert the option either (1) after the last *FLAGS variable, or
  12489. # (2) before a word containing "conftest.", or (3) at the end.
  12490. # Note that $ac_compile itself does not contain backslashes and begins
  12491. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12492. lt_compile=`echo "$ac_compile" | $SED \
  12493. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12494. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12495. -e 's:$: $lt_compiler_flag:'`
  12496. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12497. (eval "$lt_compile" 2>out/conftest.err)
  12498. ac_status=$?
  12499. cat out/conftest.err >&5
  12500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12501. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12502. then
  12503. # The compiler can only warn and ignore the option if not recognized
  12504. # So say no if there are warnings
  12505. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12506. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12507. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12508. lt_cv_prog_compiler_c_o_CXX=yes
  12509. fi
  12510. fi
  12511. chmod u+w . 2>&5
  12512. $RM conftest*
  12513. # SGI C++ compiler will create directory out/ii_files/ for
  12514. # template instantiation
  12515. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12516. $RM out/* && rmdir out
  12517. cd ..
  12518. $RM -r conftest
  12519. $RM conftest*
  12520. fi
  12521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12522. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12524. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12525. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12526. $as_echo_n "(cached) " >&6
  12527. else
  12528. lt_cv_prog_compiler_c_o_CXX=no
  12529. $RM -r conftest 2>/dev/null
  12530. mkdir conftest
  12531. cd conftest
  12532. mkdir out
  12533. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12534. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12535. # Insert the option either (1) after the last *FLAGS variable, or
  12536. # (2) before a word containing "conftest.", or (3) at the end.
  12537. # Note that $ac_compile itself does not contain backslashes and begins
  12538. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12539. lt_compile=`echo "$ac_compile" | $SED \
  12540. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12541. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12542. -e 's:$: $lt_compiler_flag:'`
  12543. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12544. (eval "$lt_compile" 2>out/conftest.err)
  12545. ac_status=$?
  12546. cat out/conftest.err >&5
  12547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12548. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12549. then
  12550. # The compiler can only warn and ignore the option if not recognized
  12551. # So say no if there are warnings
  12552. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12553. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12554. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12555. lt_cv_prog_compiler_c_o_CXX=yes
  12556. fi
  12557. fi
  12558. chmod u+w . 2>&5
  12559. $RM conftest*
  12560. # SGI C++ compiler will create directory out/ii_files/ for
  12561. # template instantiation
  12562. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12563. $RM out/* && rmdir out
  12564. cd ..
  12565. $RM -r conftest
  12566. $RM conftest*
  12567. fi
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12569. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12570. hard_links="nottested"
  12571. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12572. # do not overwrite the value of need_locks provided by the user
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12574. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12575. hard_links=yes
  12576. $RM conftest*
  12577. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12578. touch conftest.a
  12579. ln conftest.a conftest.b 2>&5 || hard_links=no
  12580. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12582. $as_echo "$hard_links" >&6; }
  12583. if test "$hard_links" = no; then
  12584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12585. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12586. need_locks=warn
  12587. fi
  12588. else
  12589. need_locks=no
  12590. fi
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12592. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12593. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12594. case $host_os in
  12595. aix[4-9]*)
  12596. # If we're using GNU nm, then we don't want the "-C" option.
  12597. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12598. # Also, AIX nm treats weak defined symbols like other global defined
  12599. # symbols, whereas GNU nm marks them as "W".
  12600. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12601. 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'
  12602. else
  12603. 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'
  12604. fi
  12605. ;;
  12606. pw32*)
  12607. export_symbols_cmds_CXX="$ltdll_cmds"
  12608. ;;
  12609. cygwin* | mingw* | cegcc*)
  12610. 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'
  12611. ;;
  12612. *)
  12613. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12614. ;;
  12615. esac
  12616. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12618. $as_echo "$ld_shlibs_CXX" >&6; }
  12619. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12620. with_gnu_ld_CXX=$with_gnu_ld
  12621. #
  12622. # Do we need to explicitly link libc?
  12623. #
  12624. case "x$archive_cmds_need_lc_CXX" in
  12625. x|xyes)
  12626. # Assume -lc should be added
  12627. archive_cmds_need_lc_CXX=yes
  12628. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12629. case $archive_cmds_CXX in
  12630. *'~'*)
  12631. # FIXME: we may have to deal with multi-command sequences.
  12632. ;;
  12633. '$CC '*)
  12634. # Test whether the compiler implicitly links with -lc since on some
  12635. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12636. # to ld, don't add -lc before -lgcc.
  12637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12638. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12639. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12640. $as_echo_n "(cached) " >&6
  12641. else
  12642. $RM conftest*
  12643. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12644. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12645. (eval $ac_compile) 2>&5
  12646. ac_status=$?
  12647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12648. test $ac_status = 0; } 2>conftest.err; then
  12649. soname=conftest
  12650. lib=conftest
  12651. libobjs=conftest.$ac_objext
  12652. deplibs=
  12653. wl=$lt_prog_compiler_wl_CXX
  12654. pic_flag=$lt_prog_compiler_pic_CXX
  12655. compiler_flags=-v
  12656. linker_flags=-v
  12657. verstring=
  12658. output_objdir=.
  12659. libname=conftest
  12660. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12661. allow_undefined_flag_CXX=
  12662. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12663. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12664. ac_status=$?
  12665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12666. test $ac_status = 0; }
  12667. then
  12668. lt_cv_archive_cmds_need_lc_CXX=no
  12669. else
  12670. lt_cv_archive_cmds_need_lc_CXX=yes
  12671. fi
  12672. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12673. else
  12674. cat conftest.err 1>&5
  12675. fi
  12676. $RM conftest*
  12677. fi
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12679. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12680. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12681. ;;
  12682. esac
  12683. fi
  12684. ;;
  12685. esac
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12687. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12688. library_names_spec=
  12689. libname_spec='lib$name'
  12690. soname_spec=
  12691. shrext_cmds=".so"
  12692. postinstall_cmds=
  12693. postuninstall_cmds=
  12694. finish_cmds=
  12695. finish_eval=
  12696. shlibpath_var=
  12697. shlibpath_overrides_runpath=unknown
  12698. version_type=none
  12699. dynamic_linker="$host_os ld.so"
  12700. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12701. need_lib_prefix=unknown
  12702. hardcode_into_libs=no
  12703. # when you set need_version to no, make sure it does not cause -set_version
  12704. # flags to be left without arguments
  12705. need_version=unknown
  12706. case $host_os in
  12707. aix3*)
  12708. version_type=linux
  12709. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12710. shlibpath_var=LIBPATH
  12711. # AIX 3 has no versioning support, so we append a major version to the name.
  12712. soname_spec='${libname}${release}${shared_ext}$major'
  12713. ;;
  12714. aix[4-9]*)
  12715. version_type=linux
  12716. need_lib_prefix=no
  12717. need_version=no
  12718. hardcode_into_libs=yes
  12719. if test "$host_cpu" = ia64; then
  12720. # AIX 5 supports IA64
  12721. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12722. shlibpath_var=LD_LIBRARY_PATH
  12723. else
  12724. # With GCC up to 2.95.x, collect2 would create an import file
  12725. # for dependence libraries. The import file would start with
  12726. # the line `#! .'. This would cause the generated library to
  12727. # depend on `.', always an invalid library. This was fixed in
  12728. # development snapshots of GCC prior to 3.0.
  12729. case $host_os in
  12730. aix4 | aix4.[01] | aix4.[01].*)
  12731. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12732. echo ' yes '
  12733. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12734. :
  12735. else
  12736. can_build_shared=no
  12737. fi
  12738. ;;
  12739. esac
  12740. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12741. # soname into executable. Probably we can add versioning support to
  12742. # collect2, so additional links can be useful in future.
  12743. if test "$aix_use_runtimelinking" = yes; then
  12744. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12745. # instead of lib<name>.a to let people know that these are not
  12746. # typical AIX shared libraries.
  12747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12748. else
  12749. # We preserve .a as extension for shared libraries through AIX4.2
  12750. # and later when we are not doing run time linking.
  12751. library_names_spec='${libname}${release}.a $libname.a'
  12752. soname_spec='${libname}${release}${shared_ext}$major'
  12753. fi
  12754. shlibpath_var=LIBPATH
  12755. fi
  12756. ;;
  12757. amigaos*)
  12758. case $host_cpu in
  12759. powerpc)
  12760. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12761. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12763. ;;
  12764. m68k)
  12765. library_names_spec='$libname.ixlibrary $libname.a'
  12766. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12767. 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'
  12768. ;;
  12769. esac
  12770. ;;
  12771. beos*)
  12772. library_names_spec='${libname}${shared_ext}'
  12773. dynamic_linker="$host_os ld.so"
  12774. shlibpath_var=LIBRARY_PATH
  12775. ;;
  12776. bsdi[45]*)
  12777. version_type=linux
  12778. need_version=no
  12779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12780. soname_spec='${libname}${release}${shared_ext}$major'
  12781. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12782. shlibpath_var=LD_LIBRARY_PATH
  12783. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12784. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12785. # the default ld.so.conf also contains /usr/contrib/lib and
  12786. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12787. # libtool to hard-code these into programs
  12788. ;;
  12789. cygwin* | mingw* | pw32* | cegcc*)
  12790. version_type=windows
  12791. shrext_cmds=".dll"
  12792. need_version=no
  12793. need_lib_prefix=no
  12794. case $GCC,$host_os in
  12795. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  12796. library_names_spec='$libname.dll.a'
  12797. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12798. postinstall_cmds='base_file=`basename \${file}`~
  12799. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12800. dldir=$destdir/`dirname \$dlpath`~
  12801. test -d \$dldir || mkdir -p \$dldir~
  12802. $install_prog $dir/$dlname \$dldir/$dlname~
  12803. chmod a+x \$dldir/$dlname~
  12804. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12805. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12806. fi'
  12807. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12808. dlpath=$dir/\$dldll~
  12809. $RM \$dlpath'
  12810. shlibpath_overrides_runpath=yes
  12811. case $host_os in
  12812. cygwin*)
  12813. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12814. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12815. ;;
  12816. mingw* | cegcc*)
  12817. # MinGW DLLs use traditional 'lib' prefix
  12818. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12819. ;;
  12820. pw32*)
  12821. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12822. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12823. ;;
  12824. esac
  12825. ;;
  12826. *)
  12827. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12828. ;;
  12829. esac
  12830. dynamic_linker='Win32 ld.exe'
  12831. # FIXME: first we should search . and the directory the executable is in
  12832. shlibpath_var=PATH
  12833. ;;
  12834. darwin* | rhapsody*)
  12835. dynamic_linker="$host_os dyld"
  12836. version_type=darwin
  12837. need_lib_prefix=no
  12838. need_version=no
  12839. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12840. soname_spec='${libname}${release}${major}$shared_ext'
  12841. shlibpath_overrides_runpath=yes
  12842. shlibpath_var=DYLD_LIBRARY_PATH
  12843. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12844. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12845. ;;
  12846. dgux*)
  12847. version_type=linux
  12848. need_lib_prefix=no
  12849. need_version=no
  12850. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12851. soname_spec='${libname}${release}${shared_ext}$major'
  12852. shlibpath_var=LD_LIBRARY_PATH
  12853. ;;
  12854. freebsd* | dragonfly*)
  12855. # DragonFly does not have aout. When/if they implement a new
  12856. # versioning mechanism, adjust this.
  12857. if test -x /usr/bin/objformat; then
  12858. objformat=`/usr/bin/objformat`
  12859. else
  12860. case $host_os in
  12861. freebsd[23].*) objformat=aout ;;
  12862. *) objformat=elf ;;
  12863. esac
  12864. fi
  12865. version_type=freebsd-$objformat
  12866. case $version_type in
  12867. freebsd-elf*)
  12868. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12869. need_version=no
  12870. need_lib_prefix=no
  12871. ;;
  12872. freebsd-*)
  12873. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12874. need_version=yes
  12875. ;;
  12876. esac
  12877. shlibpath_var=LD_LIBRARY_PATH
  12878. case $host_os in
  12879. freebsd2.*)
  12880. shlibpath_overrides_runpath=yes
  12881. ;;
  12882. freebsd3.[01]* | freebsdelf3.[01]*)
  12883. shlibpath_overrides_runpath=yes
  12884. hardcode_into_libs=yes
  12885. ;;
  12886. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12887. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12888. shlibpath_overrides_runpath=no
  12889. hardcode_into_libs=yes
  12890. ;;
  12891. *) # from 4.6 on, and DragonFly
  12892. shlibpath_overrides_runpath=yes
  12893. hardcode_into_libs=yes
  12894. ;;
  12895. esac
  12896. ;;
  12897. haiku*)
  12898. version_type=linux
  12899. need_lib_prefix=no
  12900. need_version=no
  12901. dynamic_linker="$host_os runtime_loader"
  12902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12903. soname_spec='${libname}${release}${shared_ext}$major'
  12904. shlibpath_var=LIBRARY_PATH
  12905. shlibpath_overrides_runpath=yes
  12906. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  12907. hardcode_into_libs=yes
  12908. ;;
  12909. hpux9* | hpux10* | hpux11*)
  12910. # Give a soname corresponding to the major version so that dld.sl refuses to
  12911. # link against other versions.
  12912. version_type=sunos
  12913. need_lib_prefix=no
  12914. need_version=no
  12915. case $host_cpu in
  12916. ia64*)
  12917. shrext_cmds='.so'
  12918. hardcode_into_libs=yes
  12919. dynamic_linker="$host_os dld.so"
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12923. soname_spec='${libname}${release}${shared_ext}$major'
  12924. if test "X$HPUX_IA64_MODE" = X32; then
  12925. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12926. else
  12927. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12928. fi
  12929. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12930. ;;
  12931. hppa*64*)
  12932. shrext_cmds='.sl'
  12933. hardcode_into_libs=yes
  12934. dynamic_linker="$host_os dld.sl"
  12935. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12936. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12937. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12938. soname_spec='${libname}${release}${shared_ext}$major'
  12939. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12940. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12941. ;;
  12942. *)
  12943. shrext_cmds='.sl'
  12944. dynamic_linker="$host_os dld.sl"
  12945. shlibpath_var=SHLIB_PATH
  12946. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12948. soname_spec='${libname}${release}${shared_ext}$major'
  12949. ;;
  12950. esac
  12951. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12952. postinstall_cmds='chmod 555 $lib'
  12953. # or fails outright, so override atomically:
  12954. install_override_mode=555
  12955. ;;
  12956. interix[3-9]*)
  12957. version_type=linux
  12958. need_lib_prefix=no
  12959. need_version=no
  12960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12961. soname_spec='${libname}${release}${shared_ext}$major'
  12962. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12963. shlibpath_var=LD_LIBRARY_PATH
  12964. shlibpath_overrides_runpath=no
  12965. hardcode_into_libs=yes
  12966. ;;
  12967. irix5* | irix6* | nonstopux*)
  12968. case $host_os in
  12969. nonstopux*) version_type=nonstopux ;;
  12970. *)
  12971. if test "$lt_cv_prog_gnu_ld" = yes; then
  12972. version_type=linux
  12973. else
  12974. version_type=irix
  12975. fi ;;
  12976. esac
  12977. need_lib_prefix=no
  12978. need_version=no
  12979. soname_spec='${libname}${release}${shared_ext}$major'
  12980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12981. case $host_os in
  12982. irix5* | nonstopux*)
  12983. libsuff= shlibsuff=
  12984. ;;
  12985. *)
  12986. case $LD in # libtool.m4 will add one of these switches to LD
  12987. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12988. libsuff= shlibsuff= libmagic=32-bit;;
  12989. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12990. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12991. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12992. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12993. *) libsuff= shlibsuff= libmagic=never-match;;
  12994. esac
  12995. ;;
  12996. esac
  12997. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12998. shlibpath_overrides_runpath=no
  12999. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13000. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13001. hardcode_into_libs=yes
  13002. ;;
  13003. # No shared lib support for Linux oldld, aout, or coff.
  13004. linux*oldld* | linux*aout* | linux*coff*)
  13005. dynamic_linker=no
  13006. ;;
  13007. # This must be Linux ELF.
  13008. # uclinux* changes (here and below) have been submitted to the libtool
  13009. # project, but have not yet been accepted: they are GCC-local changes
  13010. # for the time being. (See
  13011. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  13012. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  13013. version_type=linux
  13014. need_lib_prefix=no
  13015. need_version=no
  13016. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13017. soname_spec='${libname}${release}${shared_ext}$major'
  13018. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13019. shlibpath_var=LD_LIBRARY_PATH
  13020. shlibpath_overrides_runpath=no
  13021. # Some binutils ld are patched to set DT_RUNPATH
  13022. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13023. $as_echo_n "(cached) " >&6
  13024. else
  13025. lt_cv_shlibpath_overrides_runpath=no
  13026. save_LDFLAGS=$LDFLAGS
  13027. save_libdir=$libdir
  13028. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13029. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13031. /* end confdefs.h. */
  13032. int
  13033. main ()
  13034. {
  13035. ;
  13036. return 0;
  13037. }
  13038. _ACEOF
  13039. if ac_fn_cxx_try_link "$LINENO"; then :
  13040. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13041. lt_cv_shlibpath_overrides_runpath=yes
  13042. fi
  13043. fi
  13044. rm -f core conftest.err conftest.$ac_objext \
  13045. conftest$ac_exeext conftest.$ac_ext
  13046. LDFLAGS=$save_LDFLAGS
  13047. libdir=$save_libdir
  13048. fi
  13049. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13050. # This implies no fast_install, which is unacceptable.
  13051. # Some rework will be needed to allow for fast_install
  13052. # before this can be enabled.
  13053. hardcode_into_libs=yes
  13054. # Append ld.so.conf contents to the search path
  13055. if test -f /etc/ld.so.conf; then
  13056. 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' ' '`
  13057. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13058. fi
  13059. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13060. # powerpc, because MkLinux only supported shared libraries with the
  13061. # GNU dynamic linker. Since this was broken with cross compilers,
  13062. # most powerpc-linux boxes support dynamic linking these days and
  13063. # people can always --disable-shared, the test was removed, and we
  13064. # assume the GNU/Linux dynamic linker is in use.
  13065. dynamic_linker='GNU/Linux ld.so'
  13066. ;;
  13067. netbsd*)
  13068. version_type=sunos
  13069. need_lib_prefix=no
  13070. need_version=no
  13071. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13073. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13074. dynamic_linker='NetBSD (a.out) ld.so'
  13075. else
  13076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13077. soname_spec='${libname}${release}${shared_ext}$major'
  13078. dynamic_linker='NetBSD ld.elf_so'
  13079. fi
  13080. shlibpath_var=LD_LIBRARY_PATH
  13081. shlibpath_overrides_runpath=yes
  13082. hardcode_into_libs=yes
  13083. ;;
  13084. newsos6)
  13085. version_type=linux
  13086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13087. shlibpath_var=LD_LIBRARY_PATH
  13088. shlibpath_overrides_runpath=yes
  13089. ;;
  13090. *nto* | *qnx*)
  13091. version_type=qnx
  13092. need_lib_prefix=no
  13093. need_version=no
  13094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13095. soname_spec='${libname}${release}${shared_ext}$major'
  13096. shlibpath_var=LD_LIBRARY_PATH
  13097. shlibpath_overrides_runpath=no
  13098. hardcode_into_libs=yes
  13099. dynamic_linker='ldqnx.so'
  13100. ;;
  13101. openbsd*)
  13102. version_type=sunos
  13103. sys_lib_dlsearch_path_spec="/usr/lib"
  13104. need_lib_prefix=no
  13105. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13106. case $host_os in
  13107. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13108. *) need_version=no ;;
  13109. esac
  13110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13111. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13112. shlibpath_var=LD_LIBRARY_PATH
  13113. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13114. case $host_os in
  13115. openbsd2.[89] | openbsd2.[89].*)
  13116. shlibpath_overrides_runpath=no
  13117. ;;
  13118. *)
  13119. shlibpath_overrides_runpath=yes
  13120. ;;
  13121. esac
  13122. else
  13123. shlibpath_overrides_runpath=yes
  13124. fi
  13125. ;;
  13126. os2*)
  13127. libname_spec='$name'
  13128. shrext_cmds=".dll"
  13129. need_lib_prefix=no
  13130. library_names_spec='$libname${shared_ext} $libname.a'
  13131. dynamic_linker='OS/2 ld.exe'
  13132. shlibpath_var=LIBPATH
  13133. ;;
  13134. osf3* | osf4* | osf5*)
  13135. version_type=osf
  13136. need_lib_prefix=no
  13137. need_version=no
  13138. soname_spec='${libname}${release}${shared_ext}$major'
  13139. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13140. shlibpath_var=LD_LIBRARY_PATH
  13141. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13142. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13143. ;;
  13144. rdos*)
  13145. dynamic_linker=no
  13146. ;;
  13147. solaris*)
  13148. version_type=linux
  13149. need_lib_prefix=no
  13150. need_version=no
  13151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13152. soname_spec='${libname}${release}${shared_ext}$major'
  13153. shlibpath_var=LD_LIBRARY_PATH
  13154. shlibpath_overrides_runpath=yes
  13155. hardcode_into_libs=yes
  13156. # ldd complains unless libraries are executable
  13157. postinstall_cmds='chmod +x $lib'
  13158. ;;
  13159. sunos4*)
  13160. version_type=sunos
  13161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13162. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13163. shlibpath_var=LD_LIBRARY_PATH
  13164. shlibpath_overrides_runpath=yes
  13165. if test "$with_gnu_ld" = yes; then
  13166. need_lib_prefix=no
  13167. fi
  13168. need_version=yes
  13169. ;;
  13170. sysv4 | sysv4.3*)
  13171. version_type=linux
  13172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13173. soname_spec='${libname}${release}${shared_ext}$major'
  13174. shlibpath_var=LD_LIBRARY_PATH
  13175. case $host_vendor in
  13176. sni)
  13177. shlibpath_overrides_runpath=no
  13178. need_lib_prefix=no
  13179. runpath_var=LD_RUN_PATH
  13180. ;;
  13181. siemens)
  13182. need_lib_prefix=no
  13183. ;;
  13184. motorola)
  13185. need_lib_prefix=no
  13186. need_version=no
  13187. shlibpath_overrides_runpath=no
  13188. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13189. ;;
  13190. esac
  13191. ;;
  13192. sysv4*MP*)
  13193. if test -d /usr/nec ;then
  13194. version_type=linux
  13195. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13196. soname_spec='$libname${shared_ext}.$major'
  13197. shlibpath_var=LD_LIBRARY_PATH
  13198. fi
  13199. ;;
  13200. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13201. version_type=freebsd-elf
  13202. need_lib_prefix=no
  13203. need_version=no
  13204. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13205. soname_spec='${libname}${release}${shared_ext}$major'
  13206. shlibpath_var=LD_LIBRARY_PATH
  13207. shlibpath_overrides_runpath=yes
  13208. hardcode_into_libs=yes
  13209. if test "$with_gnu_ld" = yes; then
  13210. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13211. else
  13212. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13213. case $host_os in
  13214. sco3.2v5*)
  13215. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13216. ;;
  13217. esac
  13218. fi
  13219. sys_lib_dlsearch_path_spec='/usr/lib'
  13220. ;;
  13221. tpf*)
  13222. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13223. version_type=linux
  13224. need_lib_prefix=no
  13225. need_version=no
  13226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13227. shlibpath_var=LD_LIBRARY_PATH
  13228. shlibpath_overrides_runpath=no
  13229. hardcode_into_libs=yes
  13230. ;;
  13231. uts4*)
  13232. version_type=linux
  13233. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13234. soname_spec='${libname}${release}${shared_ext}$major'
  13235. shlibpath_var=LD_LIBRARY_PATH
  13236. ;;
  13237. *)
  13238. dynamic_linker=no
  13239. ;;
  13240. esac
  13241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13242. $as_echo "$dynamic_linker" >&6; }
  13243. test "$dynamic_linker" = no && can_build_shared=no
  13244. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13245. if test "$GCC" = yes; then
  13246. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13247. fi
  13248. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13249. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13250. fi
  13251. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13252. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13253. fi
  13254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13255. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13256. hardcode_action_CXX=
  13257. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13258. test -n "$runpath_var_CXX" ||
  13259. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13260. # We can hardcode non-existent directories.
  13261. if test "$hardcode_direct_CXX" != no &&
  13262. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13263. # have to relink, otherwise we might link with an installed library
  13264. # when we should be linking with a yet-to-be-installed one
  13265. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13266. test "$hardcode_minus_L_CXX" != no; then
  13267. # Linking always hardcodes the temporary library directory.
  13268. hardcode_action_CXX=relink
  13269. else
  13270. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13271. hardcode_action_CXX=immediate
  13272. fi
  13273. else
  13274. # We cannot hardcode anything, or else we can only hardcode existing
  13275. # directories.
  13276. hardcode_action_CXX=unsupported
  13277. fi
  13278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13279. $as_echo "$hardcode_action_CXX" >&6; }
  13280. if test "$hardcode_action_CXX" = relink ||
  13281. test "$inherit_rpath_CXX" = yes; then
  13282. # Fast installation is not supported
  13283. enable_fast_install=no
  13284. elif test "$shlibpath_overrides_runpath" = yes ||
  13285. test "$enable_shared" = no; then
  13286. # Fast installation is not necessary
  13287. enable_fast_install=needless
  13288. fi
  13289. fi # test -n "$compiler"
  13290. CC=$lt_save_CC
  13291. LDCXX=$LD
  13292. LD=$lt_save_LD
  13293. GCC=$lt_save_GCC
  13294. with_gnu_ld=$lt_save_with_gnu_ld
  13295. lt_cv_path_LDCXX=$lt_cv_path_LD
  13296. lt_cv_path_LD=$lt_save_path_LD
  13297. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13298. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13299. fi # test "$_lt_caught_CXX_error" != yes
  13300. ac_ext=c
  13301. ac_cpp='$CPP $CPPFLAGS'
  13302. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13303. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13304. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13305. ac_config_commands="$ac_config_commands libtool"
  13306. # Only expand once:
  13307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13308. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13309. # Check whether --enable-maintainer-mode was given.
  13310. if test "${enable_maintainer_mode+set}" = set; then :
  13311. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13312. else
  13313. USE_MAINTAINER_MODE=no
  13314. fi
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13316. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13317. if test $USE_MAINTAINER_MODE = yes; then
  13318. MAINTAINER_MODE_TRUE=
  13319. MAINTAINER_MODE_FALSE='#'
  13320. else
  13321. MAINTAINER_MODE_TRUE='#'
  13322. MAINTAINER_MODE_FALSE=
  13323. fi
  13324. MAINT=$MAINTAINER_MODE_TRUE
  13325. # For libtool versioning info, format is CURRENT:REVISION:AGE
  13326. libtool_VERSION=1:0:0
  13327. # Check header files.
  13328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13329. $as_echo_n "checking for ANSI C header files... " >&6; }
  13330. if ${ac_cv_header_stdc+:} false; then :
  13331. $as_echo_n "(cached) " >&6
  13332. else
  13333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13334. /* end confdefs.h. */
  13335. #include <stdlib.h>
  13336. #include <stdarg.h>
  13337. #include <string.h>
  13338. #include <float.h>
  13339. int
  13340. main ()
  13341. {
  13342. ;
  13343. return 0;
  13344. }
  13345. _ACEOF
  13346. if ac_fn_c_try_compile "$LINENO"; then :
  13347. ac_cv_header_stdc=yes
  13348. else
  13349. ac_cv_header_stdc=no
  13350. fi
  13351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13352. if test $ac_cv_header_stdc = yes; then
  13353. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13355. /* end confdefs.h. */
  13356. #include <string.h>
  13357. _ACEOF
  13358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13359. $EGREP "memchr" >/dev/null 2>&1; then :
  13360. else
  13361. ac_cv_header_stdc=no
  13362. fi
  13363. rm -f conftest*
  13364. fi
  13365. if test $ac_cv_header_stdc = yes; then
  13366. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13368. /* end confdefs.h. */
  13369. #include <stdlib.h>
  13370. _ACEOF
  13371. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13372. $EGREP "free" >/dev/null 2>&1; then :
  13373. else
  13374. ac_cv_header_stdc=no
  13375. fi
  13376. rm -f conftest*
  13377. fi
  13378. if test $ac_cv_header_stdc = yes; then
  13379. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13380. if test "$cross_compiling" = yes; then :
  13381. :
  13382. else
  13383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13384. /* end confdefs.h. */
  13385. #include <ctype.h>
  13386. #include <stdlib.h>
  13387. #if ((' ' & 0x0FF) == 0x020)
  13388. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13389. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13390. #else
  13391. # define ISLOWER(c) \
  13392. (('a' <= (c) && (c) <= 'i') \
  13393. || ('j' <= (c) && (c) <= 'r') \
  13394. || ('s' <= (c) && (c) <= 'z'))
  13395. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13396. #endif
  13397. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13398. int
  13399. main ()
  13400. {
  13401. int i;
  13402. for (i = 0; i < 256; i++)
  13403. if (XOR (islower (i), ISLOWER (i))
  13404. || toupper (i) != TOUPPER (i))
  13405. return 2;
  13406. return 0;
  13407. }
  13408. _ACEOF
  13409. if ac_fn_c_try_run "$LINENO"; then :
  13410. else
  13411. ac_cv_header_stdc=no
  13412. fi
  13413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13414. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13415. fi
  13416. fi
  13417. fi
  13418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13419. $as_echo "$ac_cv_header_stdc" >&6; }
  13420. if test $ac_cv_header_stdc = yes; then
  13421. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13422. fi
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13424. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13425. if ${ac_cv_header_time+:} false; then :
  13426. $as_echo_n "(cached) " >&6
  13427. else
  13428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13429. /* end confdefs.h. */
  13430. #include <sys/types.h>
  13431. #include <sys/time.h>
  13432. #include <time.h>
  13433. int
  13434. main ()
  13435. {
  13436. if ((struct tm *) 0)
  13437. return 0;
  13438. ;
  13439. return 0;
  13440. }
  13441. _ACEOF
  13442. if ac_fn_c_try_compile "$LINENO"; then :
  13443. ac_cv_header_time=yes
  13444. else
  13445. ac_cv_header_time=no
  13446. fi
  13447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13448. fi
  13449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13450. $as_echo "$ac_cv_header_time" >&6; }
  13451. if test $ac_cv_header_time = yes; then
  13452. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13453. fi
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  13455. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  13456. if ${gcc_cv_header_string+:} false; then :
  13457. $as_echo_n "(cached) " >&6
  13458. else
  13459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13460. /* end confdefs.h. */
  13461. #include <string.h>
  13462. #include <strings.h>
  13463. int
  13464. main ()
  13465. {
  13466. ;
  13467. return 0;
  13468. }
  13469. _ACEOF
  13470. if ac_fn_c_try_compile "$LINENO"; then :
  13471. gcc_cv_header_string=yes
  13472. else
  13473. gcc_cv_header_string=no
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13476. fi
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  13478. $as_echo "$gcc_cv_header_string" >&6; }
  13479. if test $gcc_cv_header_string = yes; then
  13480. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  13481. fi
  13482. for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
  13483. do :
  13484. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13485. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13486. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13487. cat >>confdefs.h <<_ACEOF
  13488. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13489. _ACEOF
  13490. fi
  13491. done
  13492. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  13493. acx_cv_header_stdint=stddef.h
  13494. acx_cv_header_stdint_kind="(already complete)"
  13495. for i in stdint.h $inttype_headers; do
  13496. unset ac_cv_type_uintptr_t
  13497. unset ac_cv_type_uintmax_t
  13498. unset ac_cv_type_int_least32_t
  13499. unset ac_cv_type_int_fast32_t
  13500. unset ac_cv_type_uint64_t
  13501. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  13502. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  13503. #include <$i>
  13504. "
  13505. if test "x$ac_cv_type_uintmax_t" = xyes; then :
  13506. acx_cv_header_stdint=$i
  13507. else
  13508. continue
  13509. fi
  13510. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13511. #include <$i>
  13512. "
  13513. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  13514. else
  13515. acx_cv_header_stdint_kind="(mostly complete)"
  13516. fi
  13517. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  13518. #include <$i>
  13519. "
  13520. if test "x$ac_cv_type_int_least32_t" = xyes; then :
  13521. else
  13522. acx_cv_header_stdint_kind="(mostly complete)"
  13523. fi
  13524. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  13525. #include <$i>
  13526. "
  13527. if test "x$ac_cv_type_int_fast32_t" = xyes; then :
  13528. else
  13529. acx_cv_header_stdint_kind="(mostly complete)"
  13530. fi
  13531. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  13532. #include <$i>
  13533. "
  13534. if test "x$ac_cv_type_uint64_t" = xyes; then :
  13535. else
  13536. acx_cv_header_stdint_kind="(lacks uint64_t)"
  13537. fi
  13538. break
  13539. done
  13540. if test "$acx_cv_header_stdint" = stddef.h; then
  13541. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  13542. for i in stdint.h $inttype_headers; do
  13543. unset ac_cv_type_uintptr_t
  13544. unset ac_cv_type_uint32_t
  13545. unset ac_cv_type_uint64_t
  13546. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  13547. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  13548. #include <$i>
  13549. "
  13550. if test "x$ac_cv_type_uint32_t" = xyes; then :
  13551. acx_cv_header_stdint=$i
  13552. else
  13553. continue
  13554. fi
  13555. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  13556. #include <$i>
  13557. "
  13558. if test "x$ac_cv_type_uint64_t" = xyes; then :
  13559. fi
  13560. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  13561. #include <$i>
  13562. "
  13563. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  13564. fi
  13565. break
  13566. done
  13567. fi
  13568. if test "$acx_cv_header_stdint" = stddef.h; then
  13569. acx_cv_header_stdint_kind="(u_intXX_t style)"
  13570. for i in sys/types.h $inttype_headers; do
  13571. unset ac_cv_type_u_int32_t
  13572. unset ac_cv_type_u_int64_t
  13573. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  13574. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  13575. #include <$i>
  13576. "
  13577. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  13578. acx_cv_header_stdint=$i
  13579. else
  13580. continue
  13581. fi
  13582. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  13583. #include <$i>
  13584. "
  13585. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  13586. fi
  13587. break
  13588. done
  13589. fi
  13590. if test "$acx_cv_header_stdint" = stddef.h; then
  13591. acx_cv_header_stdint_kind="(using manual detection)"
  13592. fi
  13593. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  13594. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  13595. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  13596. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  13597. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  13598. # ----------------- Summarize what we found so far
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  13600. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  13601. case `$as_basename -- gstdint.h ||
  13602. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  13603. Xgstdint.h : 'X\(//\)$' \| \
  13604. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  13605. $as_echo X/gstdint.h |
  13606. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13607. s//\1/
  13608. q
  13609. }
  13610. /^X\/\(\/\/\)$/{
  13611. s//\1/
  13612. q
  13613. }
  13614. /^X\/\(\/\).*/{
  13615. s//\1/
  13616. q
  13617. }
  13618. s/.*/./; q'` in
  13619. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13620. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13621. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  13622. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  13623. *) ;;
  13624. esac
  13625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  13626. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  13627. # ----------------- done included file, check C basic types --------
  13628. # Lacking an uintptr_t? Test size of void *
  13629. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  13630. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  13631. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13632. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13633. # This bug is HP SR number 8606223364.
  13634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13635. $as_echo_n "checking size of void *... " >&6; }
  13636. if ${ac_cv_sizeof_void_p+:} false; then :
  13637. $as_echo_n "(cached) " >&6
  13638. else
  13639. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13640. else
  13641. if test "$ac_cv_type_void_p" = yes; then
  13642. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13643. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13644. as_fn_error 77 "cannot compute sizeof (void *)
  13645. See \`config.log' for more details" "$LINENO" 5; }
  13646. else
  13647. ac_cv_sizeof_void_p=0
  13648. fi
  13649. fi
  13650. fi
  13651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13652. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13653. cat >>confdefs.h <<_ACEOF
  13654. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13655. _ACEOF
  13656. ;;
  13657. esac
  13658. # Lacking an uint64_t? Test size of long
  13659. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  13660. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  13661. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13662. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13663. # This bug is HP SR number 8606223364.
  13664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  13665. $as_echo_n "checking size of long... " >&6; }
  13666. if ${ac_cv_sizeof_long+:} false; then :
  13667. $as_echo_n "(cached) " >&6
  13668. else
  13669. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  13670. else
  13671. if test "$ac_cv_type_long" = yes; then
  13672. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13673. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13674. as_fn_error 77 "cannot compute sizeof (long)
  13675. See \`config.log' for more details" "$LINENO" 5; }
  13676. else
  13677. ac_cv_sizeof_long=0
  13678. fi
  13679. fi
  13680. fi
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  13682. $as_echo "$ac_cv_sizeof_long" >&6; }
  13683. cat >>confdefs.h <<_ACEOF
  13684. #define SIZEOF_LONG $ac_cv_sizeof_long
  13685. _ACEOF
  13686. ;;
  13687. esac
  13688. if test $acx_cv_header_stdint = stddef.h; then
  13689. # Lacking a good header? Test size of everything and deduce all types.
  13690. # The cast to long int works around a bug in the HP C Compiler
  13691. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13692. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13693. # This bug is HP SR number 8606223364.
  13694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  13695. $as_echo_n "checking size of int... " >&6; }
  13696. if ${ac_cv_sizeof_int+:} false; then :
  13697. $as_echo_n "(cached) " >&6
  13698. else
  13699. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  13700. else
  13701. if test "$ac_cv_type_int" = yes; then
  13702. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13703. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13704. as_fn_error 77 "cannot compute sizeof (int)
  13705. See \`config.log' for more details" "$LINENO" 5; }
  13706. else
  13707. ac_cv_sizeof_int=0
  13708. fi
  13709. fi
  13710. fi
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  13712. $as_echo "$ac_cv_sizeof_int" >&6; }
  13713. cat >>confdefs.h <<_ACEOF
  13714. #define SIZEOF_INT $ac_cv_sizeof_int
  13715. _ACEOF
  13716. # The cast to long int works around a bug in the HP C Compiler
  13717. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13718. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13719. # This bug is HP SR number 8606223364.
  13720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  13721. $as_echo_n "checking size of short... " >&6; }
  13722. if ${ac_cv_sizeof_short+:} false; then :
  13723. $as_echo_n "(cached) " >&6
  13724. else
  13725. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  13726. else
  13727. if test "$ac_cv_type_short" = yes; then
  13728. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13729. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13730. as_fn_error 77 "cannot compute sizeof (short)
  13731. See \`config.log' for more details" "$LINENO" 5; }
  13732. else
  13733. ac_cv_sizeof_short=0
  13734. fi
  13735. fi
  13736. fi
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  13738. $as_echo "$ac_cv_sizeof_short" >&6; }
  13739. cat >>confdefs.h <<_ACEOF
  13740. #define SIZEOF_SHORT $ac_cv_sizeof_short
  13741. _ACEOF
  13742. # The cast to long int works around a bug in the HP C Compiler
  13743. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13744. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13745. # This bug is HP SR number 8606223364.
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  13747. $as_echo_n "checking size of char... " >&6; }
  13748. if ${ac_cv_sizeof_char+:} false; then :
  13749. $as_echo_n "(cached) " >&6
  13750. else
  13751. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  13752. else
  13753. if test "$ac_cv_type_char" = yes; then
  13754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13756. as_fn_error 77 "cannot compute sizeof (char)
  13757. See \`config.log' for more details" "$LINENO" 5; }
  13758. else
  13759. ac_cv_sizeof_char=0
  13760. fi
  13761. fi
  13762. fi
  13763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  13764. $as_echo "$ac_cv_sizeof_char" >&6; }
  13765. cat >>confdefs.h <<_ACEOF
  13766. #define SIZEOF_CHAR $ac_cv_sizeof_char
  13767. _ACEOF
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  13769. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  13770. case "$ac_cv_sizeof_char" in
  13771. 1) acx_cv_type_int8_t=char ;;
  13772. *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
  13773. esac
  13774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  13775. $as_echo "$acx_cv_type_int8_t" >&6; }
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  13777. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  13778. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  13779. 2:*) acx_cv_type_int16_t=int ;;
  13780. *:2) acx_cv_type_int16_t=short ;;
  13781. *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
  13782. esac
  13783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  13784. $as_echo "$acx_cv_type_int16_t" >&6; }
  13785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  13786. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  13787. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  13788. 4:*) acx_cv_type_int32_t=int ;;
  13789. *:4) acx_cv_type_int32_t=long ;;
  13790. *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
  13791. esac
  13792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  13793. $as_echo "$acx_cv_type_int32_t" >&6; }
  13794. fi
  13795. # These tests are here to make the output prettier
  13796. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  13797. case "$ac_cv_sizeof_long" in
  13798. 8) acx_cv_type_int64_t=long ;;
  13799. esac
  13800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  13801. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  13802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  13803. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  13804. fi
  13805. # Now we can use the above types
  13806. if test "$ac_cv_type_uintptr_t" != yes; then
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  13808. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  13809. case $ac_cv_sizeof_void_p in
  13810. 2) acx_cv_type_intptr_t=int16_t ;;
  13811. 4) acx_cv_type_intptr_t=int32_t ;;
  13812. 8) acx_cv_type_intptr_t=int64_t ;;
  13813. *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  13814. esac
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  13816. $as_echo "$acx_cv_type_intptr_t" >&6; }
  13817. fi
  13818. # ----------------- done all checks, emit header -------------
  13819. ac_config_commands="$ac_config_commands gstdint.h"
  13820. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  13821. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  13822. gcc_header_sys_mman_h=yes
  13823. else
  13824. gcc_header_sys_mman_h=no
  13825. fi
  13826. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  13827. if test "x$ac_cv_func_mmap" = xyes; then :
  13828. gcc_func_mmap=yes
  13829. else
  13830. gcc_func_mmap=no
  13831. fi
  13832. if test "$gcc_header_sys_mman_h" != yes \
  13833. || test "$gcc_func_mmap" != yes; then
  13834. gcc_cv_func_mmap_file=no
  13835. gcc_cv_func_mmap_dev_zero=no
  13836. gcc_cv_func_mmap_anon=no
  13837. else
  13838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
  13839. $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
  13840. if ${gcc_cv_func_mmap_file+:} false; then :
  13841. $as_echo_n "(cached) " >&6
  13842. else
  13843. # Add a system to this blacklist if
  13844. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  13845. # memory area containing the same data that you'd get if you applied
  13846. # read() to the same fd. The only system known to have a problem here
  13847. # is VMS, where text files have record structure.
  13848. case "$host_os" in
  13849. *vms* | ultrix*)
  13850. gcc_cv_func_mmap_file=no ;;
  13851. *)
  13852. gcc_cv_func_mmap_file=yes;;
  13853. esac
  13854. fi
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
  13856. $as_echo "$gcc_cv_func_mmap_file" >&6; }
  13857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
  13858. $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
  13859. if ${gcc_cv_func_mmap_dev_zero+:} false; then :
  13860. $as_echo_n "(cached) " >&6
  13861. else
  13862. # Add a system to this blacklist if it has mmap() but /dev/zero
  13863. # does not exist, or if mmapping /dev/zero does not give anonymous
  13864. # zeroed pages with both the following properties:
  13865. # 1. If you map N consecutive pages in with one call, and then
  13866. # unmap any subset of those pages, the pages that were not
  13867. # explicitly unmapped remain accessible.
  13868. # 2. If you map two adjacent blocks of memory and then unmap them
  13869. # both at once, they must both go away.
  13870. # Systems known to be in this category are Windows (all variants),
  13871. # VMS, and Darwin.
  13872. case "$host_os" in
  13873. *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  13874. gcc_cv_func_mmap_dev_zero=no ;;
  13875. *)
  13876. gcc_cv_func_mmap_dev_zero=yes;;
  13877. esac
  13878. fi
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
  13880. $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
  13881. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
  13883. $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
  13884. if ${gcc_cv_decl_map_anon+:} false; then :
  13885. $as_echo_n "(cached) " >&6
  13886. else
  13887. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13888. /* end confdefs.h. */
  13889. #include <sys/types.h>
  13890. #include <sys/mman.h>
  13891. #include <unistd.h>
  13892. #ifndef MAP_ANONYMOUS
  13893. #define MAP_ANONYMOUS MAP_ANON
  13894. #endif
  13895. int
  13896. main ()
  13897. {
  13898. int n = MAP_ANONYMOUS;
  13899. ;
  13900. return 0;
  13901. }
  13902. _ACEOF
  13903. if ac_fn_c_try_compile "$LINENO"; then :
  13904. gcc_cv_decl_map_anon=yes
  13905. else
  13906. gcc_cv_decl_map_anon=no
  13907. fi
  13908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13909. fi
  13910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
  13911. $as_echo "$gcc_cv_decl_map_anon" >&6; }
  13912. if test $gcc_cv_decl_map_anon = no; then
  13913. gcc_cv_func_mmap_anon=no
  13914. else
  13915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  13916. $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
  13917. if ${gcc_cv_func_mmap_anon+:} false; then :
  13918. $as_echo_n "(cached) " >&6
  13919. else
  13920. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  13921. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  13922. # doesn't give anonymous zeroed pages with the same properties listed
  13923. # above for use of /dev/zero.
  13924. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  13925. case "$host_os" in
  13926. *vms* | cygwin* | pe | mingw* | sco* | udk* )
  13927. gcc_cv_func_mmap_anon=no ;;
  13928. *)
  13929. gcc_cv_func_mmap_anon=yes;;
  13930. esac
  13931. fi
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
  13933. $as_echo "$gcc_cv_func_mmap_anon" >&6; }
  13934. fi
  13935. fi
  13936. if test $gcc_cv_func_mmap_file = yes; then
  13937. $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
  13938. fi
  13939. if test $gcc_cv_func_mmap_dev_zero = yes; then
  13940. $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
  13941. fi
  13942. if test $gcc_cv_func_mmap_anon = yes; then
  13943. $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
  13944. fi
  13945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13946. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13947. if ${ac_cv_c_bigendian+:} false; then :
  13948. $as_echo_n "(cached) " >&6
  13949. else
  13950. ac_cv_c_bigendian=unknown
  13951. # See if we're dealing with a universal compiler.
  13952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13953. /* end confdefs.h. */
  13954. #ifndef __APPLE_CC__
  13955. not a universal capable compiler
  13956. #endif
  13957. typedef int dummy;
  13958. _ACEOF
  13959. if ac_fn_c_try_compile "$LINENO"; then :
  13960. # Check for potential -arch flags. It is not universal unless
  13961. # there are at least two -arch flags with different values.
  13962. ac_arch=
  13963. ac_prev=
  13964. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13965. if test -n "$ac_prev"; then
  13966. case $ac_word in
  13967. i?86 | x86_64 | ppc | ppc64)
  13968. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13969. ac_arch=$ac_word
  13970. else
  13971. ac_cv_c_bigendian=universal
  13972. break
  13973. fi
  13974. ;;
  13975. esac
  13976. ac_prev=
  13977. elif test "x$ac_word" = "x-arch"; then
  13978. ac_prev=arch
  13979. fi
  13980. done
  13981. fi
  13982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13983. if test $ac_cv_c_bigendian = unknown; then
  13984. # See if sys/param.h defines the BYTE_ORDER macro.
  13985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13986. /* end confdefs.h. */
  13987. #include <sys/types.h>
  13988. #include <sys/param.h>
  13989. int
  13990. main ()
  13991. {
  13992. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  13993. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  13994. && LITTLE_ENDIAN)
  13995. bogus endian macros
  13996. #endif
  13997. ;
  13998. return 0;
  13999. }
  14000. _ACEOF
  14001. if ac_fn_c_try_compile "$LINENO"; then :
  14002. # It does; now see whether it defined to BIG_ENDIAN or not.
  14003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14004. /* end confdefs.h. */
  14005. #include <sys/types.h>
  14006. #include <sys/param.h>
  14007. int
  14008. main ()
  14009. {
  14010. #if BYTE_ORDER != BIG_ENDIAN
  14011. not big endian
  14012. #endif
  14013. ;
  14014. return 0;
  14015. }
  14016. _ACEOF
  14017. if ac_fn_c_try_compile "$LINENO"; then :
  14018. ac_cv_c_bigendian=yes
  14019. else
  14020. ac_cv_c_bigendian=no
  14021. fi
  14022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14023. fi
  14024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14025. fi
  14026. if test $ac_cv_c_bigendian = unknown; then
  14027. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  14028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14029. /* end confdefs.h. */
  14030. #include <limits.h>
  14031. int
  14032. main ()
  14033. {
  14034. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  14035. bogus endian macros
  14036. #endif
  14037. ;
  14038. return 0;
  14039. }
  14040. _ACEOF
  14041. if ac_fn_c_try_compile "$LINENO"; then :
  14042. # It does; now see whether it defined to _BIG_ENDIAN or not.
  14043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14044. /* end confdefs.h. */
  14045. #include <limits.h>
  14046. int
  14047. main ()
  14048. {
  14049. #ifndef _BIG_ENDIAN
  14050. not big endian
  14051. #endif
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. if ac_fn_c_try_compile "$LINENO"; then :
  14057. ac_cv_c_bigendian=yes
  14058. else
  14059. ac_cv_c_bigendian=no
  14060. fi
  14061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14062. fi
  14063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14064. fi
  14065. if test $ac_cv_c_bigendian = unknown; then
  14066. # Compile a test program.
  14067. if test "$cross_compiling" = yes; then :
  14068. # Try to guess by grepping values from an object file.
  14069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14070. /* end confdefs.h. */
  14071. short int ascii_mm[] =
  14072. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  14073. short int ascii_ii[] =
  14074. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  14075. int use_ascii (int i) {
  14076. return ascii_mm[i] + ascii_ii[i];
  14077. }
  14078. short int ebcdic_ii[] =
  14079. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  14080. short int ebcdic_mm[] =
  14081. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  14082. int use_ebcdic (int i) {
  14083. return ebcdic_mm[i] + ebcdic_ii[i];
  14084. }
  14085. extern int foo;
  14086. int
  14087. main ()
  14088. {
  14089. return use_ascii (foo) == use_ebcdic (foo);
  14090. ;
  14091. return 0;
  14092. }
  14093. _ACEOF
  14094. if ac_fn_c_try_compile "$LINENO"; then :
  14095. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  14096. ac_cv_c_bigendian=yes
  14097. fi
  14098. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  14099. if test "$ac_cv_c_bigendian" = unknown; then
  14100. ac_cv_c_bigendian=no
  14101. else
  14102. # finding both strings is unlikely to happen, but who knows?
  14103. ac_cv_c_bigendian=unknown
  14104. fi
  14105. fi
  14106. fi
  14107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14108. else
  14109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14110. /* end confdefs.h. */
  14111. $ac_includes_default
  14112. int
  14113. main ()
  14114. {
  14115. /* Are we little or big endian? From Harbison&Steele. */
  14116. union
  14117. {
  14118. long int l;
  14119. char c[sizeof (long int)];
  14120. } u;
  14121. u.l = 1;
  14122. return u.c[sizeof (long int) - 1] == 1;
  14123. ;
  14124. return 0;
  14125. }
  14126. _ACEOF
  14127. if ac_fn_c_try_run "$LINENO"; then :
  14128. ac_cv_c_bigendian=no
  14129. else
  14130. ac_cv_c_bigendian=yes
  14131. fi
  14132. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14133. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14134. fi
  14135. fi
  14136. fi
  14137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14138. $as_echo "$ac_cv_c_bigendian" >&6; }
  14139. case $ac_cv_c_bigendian in #(
  14140. yes)
  14141. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14142. ;; #(
  14143. no)
  14144. ;; #(
  14145. universal)
  14146. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14147. ;; #(
  14148. *)
  14149. as_fn_error $? "unknown endianness
  14150. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14151. esac
  14152. # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
  14153. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  14154. # In case the pthread.h system header is not found, this test will fail.
  14155. XPCFLAGS=""
  14156. CFLAGS="$CFLAGS -pthread"
  14157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14158. /* end confdefs.h. */
  14159. #include <pthread.h>
  14160. void *g(void *d) { return NULL; }
  14161. int
  14162. main ()
  14163. {
  14164. pthread_t t; pthread_create(&t,NULL,g,NULL);
  14165. ;
  14166. return 0;
  14167. }
  14168. _ACEOF
  14169. if ac_fn_c_try_link "$LINENO"; then :
  14170. XPCFLAGS=" -Wc,-pthread"
  14171. else
  14172. CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
  14173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14174. /* end confdefs.h. */
  14175. #include <pthread.h>
  14176. void *g(void *d) { return NULL; }
  14177. int
  14178. main ()
  14179. {
  14180. pthread_t t; pthread_create(&t,NULL,g,NULL);
  14181. ;
  14182. return 0;
  14183. }
  14184. _ACEOF
  14185. if ac_fn_c_try_link "$LINENO"; then :
  14186. else
  14187. as_fn_error $? "Pthreads are required to build libitm" "$LINENO" 5
  14188. fi
  14189. rm -f core conftest.err conftest.$ac_objext \
  14190. conftest$ac_exeext conftest.$ac_ext
  14191. fi
  14192. rm -f core conftest.err conftest.$ac_objext \
  14193. conftest$ac_exeext conftest.$ac_ext
  14194. # Check for functions needed.
  14195. for ac_func in strtoull memalign posix_memalign getauxval
  14196. do :
  14197. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14198. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14199. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14200. cat >>confdefs.h <<_ACEOF
  14201. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14202. _ACEOF
  14203. fi
  14204. done
  14205. # Check for broken semaphore implementation on darwin.
  14206. # sem_init returns: sem_init error: Function not implemented.
  14207. case "$host" in
  14208. *-darwin*)
  14209. $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
  14210. ;;
  14211. esac
  14212. # Check whether --enable-linux-futex was given.
  14213. if test "${enable_linux_futex+set}" = set; then :
  14214. enableval=$enable_linux_futex;
  14215. case "$enableval" in
  14216. yes|no|default) ;;
  14217. *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
  14218. esac
  14219. else
  14220. enable_linux_futex=default
  14221. fi
  14222. case "$target" in
  14223. *-linux* | *-uclinux*)
  14224. case "$enable_linux_futex" in
  14225. default)
  14226. # If headers don't have gettid/futex syscalls definition, then
  14227. # default to no, otherwise there will be compile time failures.
  14228. # Otherwise, default to yes. If we don't detect we are
  14229. # compiled/linked against NPTL and not cross-compiling, check
  14230. # if programs are run by default against NPTL and if not, issue
  14231. # a warning.
  14232. enable_linux_futex=no
  14233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14234. /* end confdefs.h. */
  14235. #include <sys/syscall.h>
  14236. #include <unistd.h>
  14237. int lk;
  14238. int
  14239. main ()
  14240. {
  14241. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  14242. ;
  14243. return 0;
  14244. }
  14245. _ACEOF
  14246. if ac_fn_c_try_link "$LINENO"; then :
  14247. save_LIBS="$LIBS"
  14248. LIBS="-lpthread $LIBS"
  14249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14250. /* end confdefs.h. */
  14251. #ifndef _GNU_SOURCE
  14252. #define _GNU_SOURCE 1
  14253. #endif
  14254. #include <pthread.h>
  14255. pthread_t th; void *status;
  14256. int
  14257. main ()
  14258. {
  14259. pthread_tryjoin_np (th, &status);
  14260. ;
  14261. return 0;
  14262. }
  14263. _ACEOF
  14264. if ac_fn_c_try_link "$LINENO"; then :
  14265. enable_linux_futex=yes
  14266. else
  14267. if test x$cross_compiling = xno; then
  14268. if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
  14269. | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
  14270. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
  14271. If so, please configure with --disable-linux-futex" >&5
  14272. $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
  14273. If so, please configure with --disable-linux-futex" >&2;}
  14274. fi
  14275. fi
  14276. enable_linux_futex=yes
  14277. fi
  14278. rm -f core conftest.err conftest.$ac_objext \
  14279. conftest$ac_exeext conftest.$ac_ext
  14280. LIBS="$save_LIBS"
  14281. fi
  14282. rm -f core conftest.err conftest.$ac_objext \
  14283. conftest$ac_exeext conftest.$ac_ext
  14284. ;;
  14285. yes)
  14286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14287. /* end confdefs.h. */
  14288. #include <sys/syscall.h>
  14289. #include <unistd.h>
  14290. int lk;
  14291. int
  14292. main ()
  14293. {
  14294. syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
  14295. ;
  14296. return 0;
  14297. }
  14298. _ACEOF
  14299. if ac_fn_c_try_link "$LINENO"; then :
  14300. else
  14301. as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
  14302. fi
  14303. rm -f core conftest.err conftest.$ac_objext \
  14304. conftest$ac_exeext conftest.$ac_ext
  14305. ;;
  14306. esac
  14307. ;;
  14308. *)
  14309. enable_linux_futex=no
  14310. ;;
  14311. esac
  14312. if test x$enable_linux_futex = xyes; then
  14313. :
  14314. fi
  14315. # See if we support thread-local storage.
  14316. # Check whether --enable-tls was given.
  14317. if test "${enable_tls+set}" = set; then :
  14318. enableval=$enable_tls;
  14319. case "$enableval" in
  14320. yes|no) ;;
  14321. *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
  14322. esac
  14323. else
  14324. enable_tls=yes
  14325. fi
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
  14327. $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
  14328. if ${gcc_cv_have_tls+:} false; then :
  14329. $as_echo_n "(cached) " >&6
  14330. else
  14331. if test "$cross_compiling" = yes; then :
  14332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14333. /* end confdefs.h. */
  14334. __thread int a; int b; int main() { return a = b; }
  14335. _ACEOF
  14336. if ac_fn_c_try_link "$LINENO"; then :
  14337. chktls_save_LDFLAGS="$LDFLAGS"
  14338. case $host in
  14339. *-*-linux* | -*-uclinuxfdpic*)
  14340. LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
  14341. ;;
  14342. esac
  14343. chktls_save_CFLAGS="$CFLAGS"
  14344. CFLAGS="-fPIC $CFLAGS"
  14345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14346. /* end confdefs.h. */
  14347. int f() { return 0; }
  14348. _ACEOF
  14349. if ac_fn_c_try_link "$LINENO"; then :
  14350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14351. /* end confdefs.h. */
  14352. __thread int a; int b; int f() { return a = b; }
  14353. _ACEOF
  14354. if ac_fn_c_try_link "$LINENO"; then :
  14355. gcc_cv_have_tls=yes
  14356. else
  14357. gcc_cv_have_tls=no
  14358. fi
  14359. rm -f core conftest.err conftest.$ac_objext \
  14360. conftest$ac_exeext conftest.$ac_ext
  14361. else
  14362. gcc_cv_have_tls=yes
  14363. fi
  14364. rm -f core conftest.err conftest.$ac_objext \
  14365. conftest$ac_exeext conftest.$ac_ext
  14366. CFLAGS="$chktls_save_CFLAGS"
  14367. LDFLAGS="$chktls_save_LDFLAGS"
  14368. else
  14369. gcc_cv_have_tls=no
  14370. fi
  14371. rm -f core conftest.err conftest.$ac_objext \
  14372. conftest$ac_exeext conftest.$ac_ext
  14373. else
  14374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14375. /* end confdefs.h. */
  14376. __thread int a; int b; int main() { return a = b; }
  14377. _ACEOF
  14378. if ac_fn_c_try_run "$LINENO"; then :
  14379. chktls_save_LDFLAGS="$LDFLAGS"
  14380. LDFLAGS="-static $LDFLAGS"
  14381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14382. /* end confdefs.h. */
  14383. int main() { return 0; }
  14384. _ACEOF
  14385. if ac_fn_c_try_link "$LINENO"; then :
  14386. if test "$cross_compiling" = yes; then :
  14387. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14388. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14389. as_fn_error $? "cannot run test program while cross compiling
  14390. See \`config.log' for more details" "$LINENO" 5; }
  14391. else
  14392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14393. /* end confdefs.h. */
  14394. __thread int a; int b; int main() { return a = b; }
  14395. _ACEOF
  14396. if ac_fn_c_try_run "$LINENO"; then :
  14397. gcc_cv_have_tls=yes
  14398. else
  14399. gcc_cv_have_tls=no
  14400. fi
  14401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14402. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14403. fi
  14404. else
  14405. gcc_cv_have_tls=yes
  14406. fi
  14407. rm -f core conftest.err conftest.$ac_objext \
  14408. conftest$ac_exeext conftest.$ac_ext
  14409. LDFLAGS="$chktls_save_LDFLAGS"
  14410. if test $gcc_cv_have_tls = yes; then
  14411. chktls_save_CFLAGS="$CFLAGS"
  14412. thread_CFLAGS=failed
  14413. for flag in '' '-pthread' '-lpthread'; do
  14414. CFLAGS="$flag $chktls_save_CFLAGS"
  14415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14416. /* end confdefs.h. */
  14417. #include <pthread.h>
  14418. void *g(void *d) { return NULL; }
  14419. int
  14420. main ()
  14421. {
  14422. pthread_t t; pthread_create(&t,NULL,g,NULL);
  14423. ;
  14424. return 0;
  14425. }
  14426. _ACEOF
  14427. if ac_fn_c_try_link "$LINENO"; then :
  14428. thread_CFLAGS="$flag"
  14429. fi
  14430. rm -f core conftest.err conftest.$ac_objext \
  14431. conftest$ac_exeext conftest.$ac_ext
  14432. if test "X$thread_CFLAGS" != Xfailed; then
  14433. break
  14434. fi
  14435. done
  14436. CFLAGS="$chktls_save_CFLAGS"
  14437. if test "X$thread_CFLAGS" != Xfailed; then
  14438. CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
  14439. if test "$cross_compiling" = yes; then :
  14440. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14441. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14442. as_fn_error $? "cannot run test program while cross compiling
  14443. See \`config.log' for more details" "$LINENO" 5; }
  14444. else
  14445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14446. /* end confdefs.h. */
  14447. #include <pthread.h>
  14448. __thread int a;
  14449. static int *volatile a_in_other_thread;
  14450. static void *
  14451. thread_func (void *arg)
  14452. {
  14453. a_in_other_thread = &a;
  14454. return (void *)0;
  14455. }
  14456. int
  14457. main ()
  14458. {
  14459. pthread_t thread;
  14460. void *thread_retval;
  14461. int *volatile a_in_main_thread;
  14462. a_in_main_thread = &a;
  14463. if (pthread_create (&thread, (pthread_attr_t *)0,
  14464. thread_func, (void *)0))
  14465. return 0;
  14466. if (pthread_join (thread, &thread_retval))
  14467. return 0;
  14468. return (a_in_other_thread == a_in_main_thread);
  14469. ;
  14470. return 0;
  14471. }
  14472. _ACEOF
  14473. if ac_fn_c_try_run "$LINENO"; then :
  14474. gcc_cv_have_tls=yes
  14475. else
  14476. gcc_cv_have_tls=no
  14477. fi
  14478. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14479. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14480. fi
  14481. CFLAGS="$chktls_save_CFLAGS"
  14482. fi
  14483. fi
  14484. else
  14485. gcc_cv_have_tls=no
  14486. fi
  14487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14488. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14489. fi
  14490. fi
  14491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
  14492. $as_echo "$gcc_cv_have_tls" >&6; }
  14493. if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
  14494. $as_echo "#define HAVE_TLS 1" >>confdefs.h
  14495. fi
  14496. # See what sort of export controls are available.
  14497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  14498. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  14499. if ${libitm_cv_have_attribute_visibility+:} false; then :
  14500. $as_echo_n "(cached) " >&6
  14501. else
  14502. save_CFLAGS="$CFLAGS"
  14503. CFLAGS="$CFLAGS -Werror"
  14504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14505. /* end confdefs.h. */
  14506. void __attribute__((visibility("hidden"))) foo(void) { }
  14507. int
  14508. main ()
  14509. {
  14510. ;
  14511. return 0;
  14512. }
  14513. _ACEOF
  14514. if ac_fn_c_try_compile "$LINENO"; then :
  14515. libitm_cv_have_attribute_visibility=yes
  14516. else
  14517. libitm_cv_have_attribute_visibility=no
  14518. fi
  14519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14520. CFLAGS="$save_CFLAGS"
  14521. fi
  14522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
  14523. $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
  14524. if test $libitm_cv_have_attribute_visibility = yes; then
  14525. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  14526. fi
  14527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  14528. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  14529. if ${libitm_cv_have_attribute_dllexport+:} false; then :
  14530. $as_echo_n "(cached) " >&6
  14531. else
  14532. save_CFLAGS="$CFLAGS"
  14533. CFLAGS="$CFLAGS -Werror"
  14534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14535. /* end confdefs.h. */
  14536. void __attribute__((dllexport)) foo(void) { }
  14537. int
  14538. main ()
  14539. {
  14540. ;
  14541. return 0;
  14542. }
  14543. _ACEOF
  14544. if ac_fn_c_try_compile "$LINENO"; then :
  14545. libitm_cv_have_attribute_dllexport=yes
  14546. else
  14547. libitm_cv_have_attribute_dllexport=no
  14548. fi
  14549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14550. CFLAGS="$save_CFLAGS"
  14551. fi
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
  14553. $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
  14554. if test $libitm_cv_have_attribute_dllexport = yes; then
  14555. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  14556. fi
  14557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  14558. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  14559. if ${libitm_cv_have_attribute_alias+:} false; then :
  14560. $as_echo_n "(cached) " >&6
  14561. else
  14562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14563. /* end confdefs.h. */
  14564. void foo(void) { }
  14565. extern void bar(void) __attribute__((alias("foo")));
  14566. int
  14567. main ()
  14568. {
  14569. bar();
  14570. ;
  14571. return 0;
  14572. }
  14573. _ACEOF
  14574. if ac_fn_c_try_link "$LINENO"; then :
  14575. libitm_cv_have_attribute_alias=yes
  14576. else
  14577. libitm_cv_have_attribute_alias=no
  14578. fi
  14579. rm -f core conftest.err conftest.$ac_objext \
  14580. conftest$ac_exeext conftest.$ac_ext
  14581. fi
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
  14583. $as_echo "$libitm_cv_have_attribute_alias" >&6; }
  14584. if test $libitm_cv_have_attribute_alias = yes; then
  14585. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  14586. fi
  14587. # Check linker hardware capability support.
  14588. # Check whether --with-gnu-ld was given.
  14589. if test "${with_gnu_ld+set}" = set; then :
  14590. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14591. else
  14592. with_gnu_ld=no
  14593. fi
  14594. ac_prog=ld
  14595. if test "$GCC" = yes; then
  14596. # Check if gcc -print-prog-name=ld gives a path.
  14597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  14598. $as_echo_n "checking for ld used by $CC... " >&6; }
  14599. case $host in
  14600. *-*-mingw*)
  14601. # gcc leaves a trailing carriage return which upsets mingw
  14602. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  14603. *)
  14604. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  14605. esac
  14606. case $ac_prog in
  14607. # Accept absolute paths.
  14608. [\\/]* | ?:[\\/]*)
  14609. re_direlt='/[^/][^/]*/\.\./'
  14610. # Canonicalize the pathname of ld
  14611. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14612. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14613. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14614. done
  14615. test -z "$LD" && LD="$ac_prog"
  14616. ;;
  14617. "")
  14618. # If it fails, then pretend we aren't using GCC.
  14619. ac_prog=ld
  14620. ;;
  14621. *)
  14622. # If it is relative, then search for the first ld in PATH.
  14623. with_gnu_ld=unknown
  14624. ;;
  14625. esac
  14626. elif test "$with_gnu_ld" = yes; then
  14627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  14628. $as_echo_n "checking for GNU ld... " >&6; }
  14629. else
  14630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  14631. $as_echo_n "checking for non-GNU ld... " >&6; }
  14632. fi
  14633. if ${lt_cv_path_LD+:} false; then :
  14634. $as_echo_n "(cached) " >&6
  14635. else
  14636. if test -z "$LD"; then
  14637. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14638. for ac_dir in $PATH; do
  14639. IFS="$lt_save_ifs"
  14640. test -z "$ac_dir" && ac_dir=.
  14641. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14642. lt_cv_path_LD="$ac_dir/$ac_prog"
  14643. # Check to see if the program is GNU ld. I'd rather use --version,
  14644. # but apparently some variants of GNU ld only accept -v.
  14645. # Break only if it was the GNU/non-GNU ld that we prefer.
  14646. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  14647. *GNU* | *'with BFD'*)
  14648. test "$with_gnu_ld" != no && break
  14649. ;;
  14650. *)
  14651. test "$with_gnu_ld" != yes && break
  14652. ;;
  14653. esac
  14654. fi
  14655. done
  14656. IFS="$lt_save_ifs"
  14657. else
  14658. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  14659. fi
  14660. fi
  14661. LD="$lt_cv_path_LD"
  14662. if test -n "$LD"; then
  14663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  14664. $as_echo "$LD" >&6; }
  14665. else
  14666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14667. $as_echo "no" >&6; }
  14668. fi
  14669. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  14670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  14671. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  14672. if ${lt_cv_prog_gnu_ld+:} false; then :
  14673. $as_echo_n "(cached) " >&6
  14674. else
  14675. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  14676. case `$LD -v 2>&1 </dev/null` in
  14677. *GNU* | *'with BFD'*)
  14678. lt_cv_prog_gnu_ld=yes
  14679. ;;
  14680. *)
  14681. lt_cv_prog_gnu_ld=no
  14682. ;;
  14683. esac
  14684. fi
  14685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  14686. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  14687. with_gnu_ld=$lt_cv_prog_gnu_ld
  14688. test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
  14689. ac_save_LDFLAGS="$LDFLAGS"
  14690. LDFLAGS="$LFLAGS -mclear-hwcap"
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
  14692. $as_echo_n "checking for -mclear-hwcap... " >&6; }
  14693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14694. /* end confdefs.h. */
  14695. int
  14696. main ()
  14697. {
  14698. return 0;
  14699. ;
  14700. return 0;
  14701. }
  14702. _ACEOF
  14703. if ac_fn_c_try_link "$LINENO"; then :
  14704. ac_hwcap_ldflags=yes
  14705. else
  14706. ac_hwcap_ldflags=no
  14707. fi
  14708. rm -f core conftest.err conftest.$ac_objext \
  14709. conftest$ac_exeext conftest.$ac_ext
  14710. if test "$ac_hwcap_ldflags" = "yes"; then
  14711. HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
  14712. fi
  14713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
  14714. $as_echo "$ac_hwcap_ldflags" >&6; }
  14715. LDFLAGS="$ac_save_LDFLAGS"
  14716. if test $ac_hwcap_ldflags != no; then
  14717. HAVE_HWCAP_TRUE=
  14718. HAVE_HWCAP_FALSE='#'
  14719. else
  14720. HAVE_HWCAP_TRUE='#'
  14721. HAVE_HWCAP_FALSE=
  14722. fi
  14723. # If defaulting to -mavx, don't clear hwcaps.
  14724. ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
  14725. if test "x$ac_cv_have_decl___AVX__" = xyes; then :
  14726. HWCAP_LDFLAGS=''
  14727. fi
  14728. # If we're not using GNU ld, then there's no point in even trying these
  14729. # tests. Check for that first. We should have already tested for gld
  14730. # by now (in libtool), but require it now just to be safe...
  14731. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  14732. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  14733. # The name set by libtool depends on the version of libtool. Shame on us
  14734. # for depending on an impl detail, but c'est la vie. Older versions used
  14735. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  14736. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  14737. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  14738. # set (hence we're using an older libtool), then set it.
  14739. if test x${with_gnu_ld+set} != xset; then
  14740. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  14741. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  14742. with_gnu_ld=no
  14743. else
  14744. with_gnu_ld=$ac_cv_prog_gnu_ld
  14745. fi
  14746. fi
  14747. # Start by getting the version number. I think the libtool test already
  14748. # does some of this, but throws away the result.
  14749. libitm_ld_is_gold=no
  14750. libitm_ld_is_mold=no
  14751. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  14752. libitm_ld_is_gold=yes
  14753. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  14754. libitm_ld_is_mold=yes
  14755. fi
  14756. ldver=`$LD --version 2>/dev/null |
  14757. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  14758. libitm_gnu_ld_version=`echo $ldver | \
  14759. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  14760. # Set --gc-sections.
  14761. if test "$with_gnu_ld" = "notbroken"; then
  14762. # GNU ld it is! Joy and bunny rabbits!
  14763. # All these tests are for C++; save the language and the compiler flags.
  14764. # Need to do this so that g++ won't try to link in libstdc++
  14765. ac_test_CFLAGS="${CFLAGS+set}"
  14766. ac_save_CFLAGS="$CFLAGS"
  14767. CFLAGS='-x c++ -Wl,--gc-sections'
  14768. # Check for -Wl,--gc-sections
  14769. # XXX This test is broken at the moment, as symbols required for linking
  14770. # are now in libsupc++ (not built yet). In addition, this test has
  14771. # cored on solaris in the past. In addition, --gc-sections doesn't
  14772. # really work at the moment (keeps on discarding used sections, first
  14773. # .eh_frame and now some of the glibc sections for iconv).
  14774. # Bzzzzt. Thanks for playing, maybe next time.
  14775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  14776. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  14777. if test "$cross_compiling" = yes; then :
  14778. ac_sectionLDflags=yes
  14779. else
  14780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14781. /* end confdefs.h. */
  14782. int main(void)
  14783. {
  14784. try { throw 1; }
  14785. catch (...) { };
  14786. return 0;
  14787. }
  14788. _ACEOF
  14789. if ac_fn_c_try_run "$LINENO"; then :
  14790. ac_sectionLDflags=yes
  14791. else
  14792. ac_sectionLDflags=no
  14793. fi
  14794. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14795. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14796. fi
  14797. if test "$ac_test_CFLAGS" = set; then
  14798. CFLAGS="$ac_save_CFLAGS"
  14799. else
  14800. # this is the suspicious part
  14801. CFLAGS=''
  14802. fi
  14803. if test "$ac_sectionLDflags" = "yes"; then
  14804. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  14805. fi
  14806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  14807. $as_echo "$ac_sectionLDflags" >&6; }
  14808. fi
  14809. # Set linker optimization flags.
  14810. if test x"$with_gnu_ld" = x"yes"; then
  14811. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  14812. fi
  14813. # Check whether --enable-symvers was given.
  14814. if test "${enable_symvers+set}" = set; then :
  14815. enableval=$enable_symvers;
  14816. case "$enableval" in
  14817. yes|no|gnu*|sun) ;;
  14818. *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  14819. esac
  14820. else
  14821. enable_symvers=yes
  14822. fi
  14823. # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
  14824. # don't know enough about $LD to do tricks...
  14825. # Turn a 'yes' into a suitable default.
  14826. if test x$enable_symvers = xyes ; then
  14827. # FIXME The following test is too strict, in theory.
  14828. if test $enable_shared = no || test "x$LD" = x; then
  14829. enable_symvers=no
  14830. else
  14831. if test $with_gnu_ld = yes ; then
  14832. enable_symvers=gnu
  14833. else
  14834. case ${target_os} in
  14835. # Sun symbol versioning exists since Solaris 2.5.
  14836. solaris2.[5-9]* | solaris2.1[0-9]*)
  14837. enable_symvers=sun ;;
  14838. *)
  14839. enable_symvers=no ;;
  14840. esac
  14841. fi
  14842. fi
  14843. fi
  14844. # Check if 'sun' was requested on non-Solaris 2 platforms.
  14845. if test x$enable_symvers = xsun ; then
  14846. case ${target_os} in
  14847. solaris2*)
  14848. # All fine.
  14849. ;;
  14850. *)
  14851. # Unlikely to work.
  14852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  14853. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  14854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  14855. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  14856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14857. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14858. enable_symvers=no
  14859. ;;
  14860. esac
  14861. fi
  14862. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  14863. if test $enable_symvers != no; then
  14864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  14865. $as_echo_n "checking for shared libgcc... " >&6; }
  14866. ac_save_CFLAGS="$CFLAGS"
  14867. CFLAGS=' -lgcc_s'
  14868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14869. /* end confdefs.h. */
  14870. int
  14871. main ()
  14872. {
  14873. return 0;
  14874. ;
  14875. return 0;
  14876. }
  14877. _ACEOF
  14878. if ac_fn_c_try_link "$LINENO"; then :
  14879. libitm_shared_libgcc=yes
  14880. else
  14881. libitm_shared_libgcc=no
  14882. fi
  14883. rm -f core conftest.err conftest.$ac_objext \
  14884. conftest$ac_exeext conftest.$ac_ext
  14885. CFLAGS="$ac_save_CFLAGS"
  14886. if test $libitm_shared_libgcc = no; then
  14887. cat > conftest.c <<EOF
  14888. int main (void) { return 0; }
  14889. EOF
  14890. libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  14891. -shared -shared-libgcc -o conftest.so \
  14892. conftest.c -v 2>&1 >/dev/null \
  14893. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  14894. rm -f conftest.c conftest.so
  14895. if test x${libitm_libgcc_s_suffix+set} = xset; then
  14896. CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
  14897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14898. /* end confdefs.h. */
  14899. int
  14900. main ()
  14901. {
  14902. return 0;
  14903. ;
  14904. return 0;
  14905. }
  14906. _ACEOF
  14907. if ac_fn_c_try_link "$LINENO"; then :
  14908. libitm_shared_libgcc=yes
  14909. fi
  14910. rm -f core conftest.err conftest.$ac_objext \
  14911. conftest$ac_exeext conftest.$ac_ext
  14912. CFLAGS="$ac_save_CFLAGS"
  14913. fi
  14914. fi
  14915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
  14916. $as_echo "$libitm_shared_libgcc" >&6; }
  14917. fi
  14918. # For GNU ld, we need at least this version. The format is described in
  14919. # LIBITM_CHECK_LINKER_FEATURES above.
  14920. libitm_min_gnu_ld_version=21400
  14921. # XXXXXXXXXXX libitm_gnu_ld_version=21390
  14922. # Check to see if unspecified "yes" value can win, given results above.
  14923. # Change "yes" into either "no" or a style name.
  14924. if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
  14925. if test $with_gnu_ld = yes; then
  14926. if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
  14927. enable_symvers=gnu
  14928. elif test $libitm_ld_is_gold = yes ; then
  14929. enable_symvers=gnu
  14930. elif test $libitm_ld_is_mold = yes ; then
  14931. enable_symvers=gnu
  14932. else
  14933. # The right tools, the right setup, but too old. Fallbacks?
  14934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
  14935. $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  14937. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  14939. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  14940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
  14941. $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
  14942. if test $libitm_gnu_ld_version -ge 21200 ; then
  14943. # Globbing fix is present, proper block support is not.
  14944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14945. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14946. enable_symvers=no
  14947. else
  14948. # 2.11 or older.
  14949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14950. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14951. enable_symvers=no
  14952. fi
  14953. fi
  14954. elif test $enable_symvers = sun; then
  14955. : All interesting versions of Sun ld support sun style symbol versioning.
  14956. else
  14957. # just fail for now
  14958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  14959. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  14961. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  14962. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  14963. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  14964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  14965. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  14966. enable_symvers=no
  14967. fi
  14968. fi
  14969. if test $enable_symvers != no; then
  14970. LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
  14971. LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
  14972. else
  14973. LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
  14974. LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
  14975. fi
  14976. if test $enable_symvers = gnu; then
  14977. LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  14978. LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  14979. else
  14980. LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  14981. LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  14982. fi
  14983. if test $enable_symvers = sun; then
  14984. LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  14985. LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  14986. else
  14987. LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  14988. LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  14989. fi
  14990. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  14991. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  14992. if test $enable_symvers = gnu; then
  14993. $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  14994. fi
  14995. # See if we can emit unwind info in the sjlj stub.
  14996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
  14997. $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
  14998. if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
  14999. $as_echo_n "(cached) " >&6
  15000. else
  15001. gcc_cv_as_cfi_pseudo_op=unknown
  15002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15003. /* end confdefs.h. */
  15004. asm (".cfi_startproc\n\t.cfi_endproc");
  15005. int
  15006. main ()
  15007. {
  15008. ;
  15009. return 0;
  15010. }
  15011. _ACEOF
  15012. if ac_fn_c_try_compile "$LINENO"; then :
  15013. gcc_cv_as_cfi_pseudo_op=yes
  15014. else
  15015. gcc_cv_as_cfi_pseudo_op=no
  15016. fi
  15017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15018. fi
  15019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
  15020. $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
  15021. if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
  15022. $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
  15023. fi
  15024. # Determine the proper ABI type for size_t.
  15025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
  15026. $as_echo_n "checking how size_t is mangled... " >&6; }
  15027. if ${libitm_cv_size_t_mangling+:} false; then :
  15028. $as_echo_n "(cached) " >&6
  15029. else
  15030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15031. /* end confdefs.h. */
  15032. int
  15033. main ()
  15034. {
  15035. extern __SIZE_TYPE__ x; extern unsigned long x;
  15036. ;
  15037. return 0;
  15038. }
  15039. _ACEOF
  15040. if ac_fn_c_try_compile "$LINENO"; then :
  15041. libitm_cv_size_t_mangling=m
  15042. else
  15043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15044. /* end confdefs.h. */
  15045. int
  15046. main ()
  15047. {
  15048. extern __SIZE_TYPE__ x; extern unsigned int x;
  15049. ;
  15050. return 0;
  15051. }
  15052. _ACEOF
  15053. if ac_fn_c_try_compile "$LINENO"; then :
  15054. libitm_cv_size_t_mangling=j
  15055. else
  15056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15057. /* end confdefs.h. */
  15058. int
  15059. main ()
  15060. {
  15061. extern __SIZE_TYPE__ x; extern unsigned long long x;
  15062. ;
  15063. return 0;
  15064. }
  15065. _ACEOF
  15066. if ac_fn_c_try_compile "$LINENO"; then :
  15067. libitm_cv_size_t_mangling=y
  15068. else
  15069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15070. /* end confdefs.h. */
  15071. int
  15072. main ()
  15073. {
  15074. extern __SIZE_TYPE__ x; extern unsigned short x;
  15075. ;
  15076. return 0;
  15077. }
  15078. _ACEOF
  15079. if ac_fn_c_try_compile "$LINENO"; then :
  15080. libitm_cv_size_t_mangling=t
  15081. else
  15082. libitm_cv_size_t_mangling=x
  15083. fi
  15084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15085. fi
  15086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15087. fi
  15088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15089. fi
  15090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15091. fi
  15092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
  15093. $as_echo "$libitm_cv_size_t_mangling" >&6; }
  15094. if test $libitm_cv_size_t_mangling = x; then
  15095. as_fn_error $? "Unknown underlying type for size_t" "$LINENO" 5
  15096. fi
  15097. cat >>confdefs.h <<_ACEOF
  15098. #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
  15099. _ACEOF
  15100. # Get target configury.
  15101. . ${srcdir}/configure.tgt
  15102. if test -n "$UNSUPPORTED"; then
  15103. as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
  15104. fi
  15105. CFLAGS="$save_CFLAGS $XCFLAGS"
  15106. # Check for __sync_val_compare_and_swap, but only after the target has
  15107. # had a chance to set XCFLAGS.
  15108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
  15109. $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
  15110. if ${libitm_cv_have_sync_builtins+:} false; then :
  15111. $as_echo_n "(cached) " >&6
  15112. else
  15113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15114. /* end confdefs.h. */
  15115. int
  15116. main ()
  15117. {
  15118. int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
  15119. ;
  15120. return 0;
  15121. }
  15122. _ACEOF
  15123. if ac_fn_c_try_link "$LINENO"; then :
  15124. libitm_cv_have_sync_builtins=yes
  15125. else
  15126. libitm_cv_have_sync_builtins=no
  15127. fi
  15128. rm -f core conftest.err conftest.$ac_objext \
  15129. conftest$ac_exeext conftest.$ac_ext
  15130. fi
  15131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
  15132. $as_echo "$libitm_cv_have_sync_builtins" >&6; }
  15133. if test $libitm_cv_have_sync_builtins = yes; then
  15134. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  15135. fi
  15136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
  15137. $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
  15138. if ${libitm_cv_have_64bit_sync_builtins+:} false; then :
  15139. $as_echo_n "(cached) " >&6
  15140. else
  15141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15142. /* end confdefs.h. */
  15143. #include <stdint.h>
  15144. int
  15145. main ()
  15146. {
  15147. uint64_t foo, bar;
  15148. bar = __sync_val_compare_and_swap(&foo, 0, 1);
  15149. ;
  15150. return 0;
  15151. }
  15152. _ACEOF
  15153. if ac_fn_c_try_link "$LINENO"; then :
  15154. libitm_cv_have_64bit_sync_builtins=yes
  15155. else
  15156. libitm_cv_have_64bit_sync_builtins=no
  15157. fi
  15158. rm -f core conftest.err conftest.$ac_objext \
  15159. conftest$ac_exeext conftest.$ac_ext
  15160. fi
  15161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
  15162. $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
  15163. if test $libitm_cv_have_64bit_sync_builtins = yes; then
  15164. $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
  15165. fi
  15166. case "${target_cpu}" in
  15167. i[34567]86 | x86_64)
  15168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
  15169. $as_echo_n "checking if the assembler supports AVX... " >&6; }
  15170. if ${libitm_cv_as_avx+:} false; then :
  15171. $as_echo_n "(cached) " >&6
  15172. else
  15173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15174. /* end confdefs.h. */
  15175. int
  15176. main ()
  15177. {
  15178. asm("vzeroupper");
  15179. ;
  15180. return 0;
  15181. }
  15182. _ACEOF
  15183. if ac_fn_c_try_compile "$LINENO"; then :
  15184. libitm_cv_as_avx=yes
  15185. else
  15186. libitm_cv_as_avx=no
  15187. fi
  15188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15189. fi
  15190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
  15191. $as_echo "$libitm_cv_as_avx" >&6; }
  15192. if test x$libitm_cv_as_avx = xyes; then
  15193. $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
  15194. fi
  15195. ;;
  15196. esac
  15197. case "${target_cpu}" in
  15198. i[34567]86 | x86_64)
  15199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
  15200. $as_echo_n "checking if the assembler supports RTM... " >&6; }
  15201. if ${libitm_cv_as_rtm+:} false; then :
  15202. $as_echo_n "(cached) " >&6
  15203. else
  15204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15205. /* end confdefs.h. */
  15206. int
  15207. main ()
  15208. {
  15209. asm("1: xbegin 1b; xend");
  15210. ;
  15211. return 0;
  15212. }
  15213. _ACEOF
  15214. if ac_fn_c_try_compile "$LINENO"; then :
  15215. libitm_cv_as_rtm=yes
  15216. else
  15217. libitm_cv_as_rtm=no
  15218. fi
  15219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15220. fi
  15221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
  15222. $as_echo "$libitm_cv_as_rtm" >&6; }
  15223. if test x$libitm_cv_as_rtm = xyes; then
  15224. $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
  15225. fi
  15226. ;;
  15227. esac
  15228. case "${target_cpu}" in
  15229. powerpc*)
  15230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
  15231. $as_echo_n "checking if the assembler supports HTM... " >&6; }
  15232. if ${libitm_cv_as_htm+:} false; then :
  15233. $as_echo_n "(cached) " >&6
  15234. else
  15235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15236. /* end confdefs.h. */
  15237. int
  15238. main ()
  15239. {
  15240. asm("tbegin. 0; tend. 0");
  15241. ;
  15242. return 0;
  15243. }
  15244. _ACEOF
  15245. if ac_fn_c_try_compile "$LINENO"; then :
  15246. libitm_cv_as_htm=yes
  15247. else
  15248. libitm_cv_as_htm=no
  15249. fi
  15250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15251. fi
  15252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
  15253. $as_echo "$libitm_cv_as_htm" >&6; }
  15254. if test x$libitm_cv_as_htm = xyes; then
  15255. $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
  15256. fi
  15257. ;;
  15258. s390*)
  15259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
  15260. $as_echo_n "checking if the assembler supports HTM... " >&6; }
  15261. if ${libitm_cv_as_htm+:} false; then :
  15262. $as_echo_n "(cached) " >&6
  15263. else
  15264. save_CFLAGS="$CFLAGS"
  15265. CFLAGS="$CFLAGS -march=zEC12"
  15266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15267. /* end confdefs.h. */
  15268. int
  15269. main ()
  15270. {
  15271. asm("tbegin 0,0; tend");
  15272. ;
  15273. return 0;
  15274. }
  15275. _ACEOF
  15276. if ac_fn_c_try_compile "$LINENO"; then :
  15277. libitm_cv_as_htm=yes
  15278. else
  15279. libitm_cv_as_htm=no
  15280. fi
  15281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15282. CFLAGS="$save_CFLAGS"
  15283. fi
  15284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
  15285. $as_echo "$libitm_cv_as_htm" >&6; }
  15286. if test x$libitm_cv_as_htm = xyes; then
  15287. $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
  15288. fi
  15289. ;;
  15290. esac
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
  15292. $as_echo_n "checking whether weak refs work like ELF... " >&6; }
  15293. if ${ac_cv_have_elf_style_weakref+:} false; then :
  15294. $as_echo_n "(cached) " >&6
  15295. else
  15296. weakref_m4_saved_CFLAGS="$CFLAGS"
  15297. case "${host}" in
  15298. *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
  15299. *) ;;
  15300. esac
  15301. if test "$cross_compiling" = yes; then :
  15302. case "${host}" in
  15303. *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
  15304. *) ac_cv_have_elf_style_weakref=yes;;
  15305. esac
  15306. else
  15307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15308. /* end confdefs.h. */
  15309. extern void fNotToBeFound(void) __attribute__((weak));
  15310. int main ()
  15311. {
  15312. if (fNotToBeFound)
  15313. return 1;
  15314. else
  15315. return 0;
  15316. }
  15317. _ACEOF
  15318. if ac_fn_c_try_run "$LINENO"; then :
  15319. ac_cv_have_elf_style_weakref=yes
  15320. else
  15321. ac_cv_have_elf_style_weakref=no
  15322. fi
  15323. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15324. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15325. fi
  15326. CFLAGS="$weakref_m4_saved_CFLAGS"
  15327. fi
  15328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
  15329. $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
  15330. if test x"$ac_cv_have_elf_style_weakref" = xyes; then
  15331. $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
  15332. fi
  15333. # Cleanup and exit.
  15334. CFLAGS="$save_CFLAGS"
  15335. cat >confcache <<\_ACEOF
  15336. # This file is a shell script that caches the results of configure
  15337. # tests run on this system so they can be shared between configure
  15338. # scripts and configure runs, see configure's option --config-cache.
  15339. # It is not useful on other systems. If it contains results you don't
  15340. # want to keep, you may remove or edit it.
  15341. #
  15342. # config.status only pays attention to the cache file if you give it
  15343. # the --recheck option to rerun configure.
  15344. #
  15345. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15346. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15347. # following values.
  15348. _ACEOF
  15349. # The following way of writing the cache mishandles newlines in values,
  15350. # but we know of no workaround that is simple, portable, and efficient.
  15351. # So, we kill variables containing newlines.
  15352. # Ultrix sh set writes to stderr and can't be redirected directly,
  15353. # and sets the high bit in the cache file unless we assign to the vars.
  15354. (
  15355. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15356. eval ac_val=\$$ac_var
  15357. case $ac_val in #(
  15358. *${as_nl}*)
  15359. case $ac_var in #(
  15360. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15361. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15362. esac
  15363. case $ac_var in #(
  15364. _ | IFS | as_nl) ;; #(
  15365. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15366. *) { eval $ac_var=; unset $ac_var;} ;;
  15367. esac ;;
  15368. esac
  15369. done
  15370. (set) 2>&1 |
  15371. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15372. *${as_nl}ac_space=\ *)
  15373. # `set' does not quote correctly, so add quotes: double-quote
  15374. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15375. sed -n \
  15376. "s/'/'\\\\''/g;
  15377. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15378. ;; #(
  15379. *)
  15380. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15381. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15382. ;;
  15383. esac |
  15384. sort
  15385. ) |
  15386. sed '
  15387. /^ac_cv_env_/b end
  15388. t clear
  15389. :clear
  15390. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15391. t end
  15392. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15393. :end' >>confcache
  15394. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15395. if test -w "$cache_file"; then
  15396. if test "x$cache_file" != "x/dev/null"; then
  15397. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15398. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15399. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15400. cat confcache >"$cache_file"
  15401. else
  15402. case $cache_file in #(
  15403. */* | ?:*)
  15404. mv -f confcache "$cache_file"$$ &&
  15405. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15406. *)
  15407. mv -f confcache "$cache_file" ;;
  15408. esac
  15409. fi
  15410. fi
  15411. else
  15412. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15413. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15414. fi
  15415. fi
  15416. rm -f confcache
  15417. # Check whether --enable-werror was given.
  15418. if test "${enable_werror+set}" = set; then :
  15419. enableval=$enable_werror;
  15420. fi
  15421. # Add -Wall -Werror if we are using GCC.
  15422. if test "x$GCC" = "xyes"; then :
  15423. XCFLAGS="$XCFLAGS -Wall"
  15424. fi
  15425. if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
  15426. XCFLAGS="$XCFLAGS -Werror"
  15427. fi
  15428. XCFLAGS="$XCFLAGS $XPCFLAGS"
  15429. # Add CET specific flags if CET is enabled
  15430. # Check whether --enable-cet was given.
  15431. if test "${enable_cet+set}" = set; then :
  15432. enableval=$enable_cet;
  15433. case "$enableval" in
  15434. yes|no|auto) ;;
  15435. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  15436. esac
  15437. else
  15438. enable_cet=auto
  15439. fi
  15440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  15441. $as_echo_n "checking for CET support... " >&6; }
  15442. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  15443. case "$host" in
  15444. i[34567]86-*-linux* | x86_64-*-linux*)
  15445. case "$enable_cet" in
  15446. auto)
  15447. # Check if target supports multi-byte NOPs
  15448. # and if compiler and assembler support CET insn.
  15449. cet_save_CFLAGS="$CFLAGS"
  15450. CFLAGS="$CFLAGS -fcf-protection"
  15451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15452. /* end confdefs.h. */
  15453. int
  15454. main ()
  15455. {
  15456. #if !defined(__SSE2__)
  15457. #error target does not support multi-byte NOPs
  15458. #else
  15459. asm ("setssbsy");
  15460. #endif
  15461. ;
  15462. return 0;
  15463. }
  15464. _ACEOF
  15465. if ac_fn_c_try_compile "$LINENO"; then :
  15466. enable_cet=yes
  15467. else
  15468. enable_cet=no
  15469. fi
  15470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15471. CFLAGS="$cet_save_CFLAGS"
  15472. ;;
  15473. yes)
  15474. # Check if assembler supports CET.
  15475. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15476. /* end confdefs.h. */
  15477. int
  15478. main ()
  15479. {
  15480. asm ("setssbsy");
  15481. ;
  15482. return 0;
  15483. }
  15484. _ACEOF
  15485. if ac_fn_c_try_compile "$LINENO"; then :
  15486. else
  15487. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  15488. fi
  15489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15490. ;;
  15491. esac
  15492. ;;
  15493. *)
  15494. enable_cet=no
  15495. ;;
  15496. esac
  15497. if test x$enable_cet = xyes; then
  15498. CET_FLAGS="-fcf-protection -mshstk"
  15499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15500. $as_echo "yes" >&6; }
  15501. else
  15502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15503. $as_echo "no" >&6; }
  15504. fi
  15505. XCFLAGS="$XCFLAGS $CET_FLAGS"
  15506. if test ${multilib} = yes; then
  15507. multilib_arg="--enable-multilib"
  15508. else
  15509. multilib_arg=
  15510. fi
  15511. # Set up the set of libraries that we need to link against for libitm.
  15512. # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
  15513. # which will force linkage against -lpthread (or equivalent for the system).
  15514. # That's not 100% ideal, but about the best we can do easily.
  15515. if test $enable_shared = yes; then
  15516. link_itm="-litm %{static: $LIBS}"
  15517. else
  15518. link_itm="-litm $LIBS"
  15519. fi
  15520. if test "$ARCH" = arm; then
  15521. ARCH_ARM_TRUE=
  15522. ARCH_ARM_FALSE='#'
  15523. else
  15524. ARCH_ARM_TRUE='#'
  15525. ARCH_ARM_FALSE=
  15526. fi
  15527. if test "$ARCH" = x86; then
  15528. ARCH_X86_TRUE=
  15529. ARCH_X86_FALSE='#'
  15530. else
  15531. ARCH_X86_TRUE='#'
  15532. ARCH_X86_FALSE=
  15533. fi
  15534. if test "$libitm_cv_as_avx" = yes; then
  15535. ARCH_X86_AVX_TRUE=
  15536. ARCH_X86_AVX_FALSE='#'
  15537. else
  15538. ARCH_X86_AVX_TRUE='#'
  15539. ARCH_X86_AVX_FALSE=
  15540. fi
  15541. if test $enable_linux_futex = yes; then
  15542. ARCH_FUTEX_TRUE=
  15543. ARCH_FUTEX_FALSE='#'
  15544. else
  15545. ARCH_FUTEX_TRUE='#'
  15546. ARCH_FUTEX_FALSE=
  15547. fi
  15548. # Determine what GCC version number to use in filesystem paths.
  15549. get_gcc_base_ver="cat"
  15550. # Check whether --with-gcc-major-version-only was given.
  15551. if test "${with_gcc_major_version_only+set}" = set; then :
  15552. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  15553. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  15554. fi
  15555. fi
  15556. ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
  15557. cat >confcache <<\_ACEOF
  15558. # This file is a shell script that caches the results of configure
  15559. # tests run on this system so they can be shared between configure
  15560. # scripts and configure runs, see configure's option --config-cache.
  15561. # It is not useful on other systems. If it contains results you don't
  15562. # want to keep, you may remove or edit it.
  15563. #
  15564. # config.status only pays attention to the cache file if you give it
  15565. # the --recheck option to rerun configure.
  15566. #
  15567. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15568. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15569. # following values.
  15570. _ACEOF
  15571. # The following way of writing the cache mishandles newlines in values,
  15572. # but we know of no workaround that is simple, portable, and efficient.
  15573. # So, we kill variables containing newlines.
  15574. # Ultrix sh set writes to stderr and can't be redirected directly,
  15575. # and sets the high bit in the cache file unless we assign to the vars.
  15576. (
  15577. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15578. eval ac_val=\$$ac_var
  15579. case $ac_val in #(
  15580. *${as_nl}*)
  15581. case $ac_var in #(
  15582. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15583. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15584. esac
  15585. case $ac_var in #(
  15586. _ | IFS | as_nl) ;; #(
  15587. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15588. *) { eval $ac_var=; unset $ac_var;} ;;
  15589. esac ;;
  15590. esac
  15591. done
  15592. (set) 2>&1 |
  15593. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15594. *${as_nl}ac_space=\ *)
  15595. # `set' does not quote correctly, so add quotes: double-quote
  15596. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15597. sed -n \
  15598. "s/'/'\\\\''/g;
  15599. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15600. ;; #(
  15601. *)
  15602. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15603. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15604. ;;
  15605. esac |
  15606. sort
  15607. ) |
  15608. sed '
  15609. /^ac_cv_env_/b end
  15610. t clear
  15611. :clear
  15612. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15613. t end
  15614. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15615. :end' >>confcache
  15616. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15617. if test -w "$cache_file"; then
  15618. if test "x$cache_file" != "x/dev/null"; then
  15619. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15620. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15621. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15622. cat confcache >"$cache_file"
  15623. else
  15624. case $cache_file in #(
  15625. */* | ?:*)
  15626. mv -f confcache "$cache_file"$$ &&
  15627. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15628. *)
  15629. mv -f confcache "$cache_file" ;;
  15630. esac
  15631. fi
  15632. fi
  15633. else
  15634. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15635. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15636. fi
  15637. fi
  15638. rm -f confcache
  15639. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15640. # Let make expand exec_prefix.
  15641. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15642. DEFS=-DHAVE_CONFIG_H
  15643. ac_libobjs=
  15644. ac_ltlibobjs=
  15645. U=
  15646. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15647. # 1. Remove the extension, and $U if already installed.
  15648. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15649. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15650. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15651. # will be set to the directory where LIBOBJS objects are built.
  15652. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15653. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15654. done
  15655. LIBOBJS=$ac_libobjs
  15656. LTLIBOBJS=$ac_ltlibobjs
  15657. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  15658. as_fn_error $? "conditional \"GENINSRC\" was never defined.
  15659. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15660. fi
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15662. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15663. if test -n "$am_sleep_pid"; then
  15664. # Hide warnings about reused PIDs.
  15665. wait $am_sleep_pid 2>/dev/null
  15666. fi
  15667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15668. $as_echo "done" >&6; }
  15669. if test -n "$EXEEXT"; then
  15670. am__EXEEXT_TRUE=
  15671. am__EXEEXT_FALSE='#'
  15672. else
  15673. am__EXEEXT_TRUE='#'
  15674. am__EXEEXT_FALSE=
  15675. fi
  15676. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15677. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15678. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15679. fi
  15680. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15681. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15682. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15683. fi
  15684. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15685. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15686. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15687. fi
  15688. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  15689. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  15690. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15691. fi
  15692. if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
  15693. as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
  15694. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15695. fi
  15696. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  15697. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  15698. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15699. fi
  15700. if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
  15701. as_fn_error $? "conditional \"HAVE_HWCAP\" was never defined.
  15702. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15703. fi
  15704. if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
  15705. as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
  15706. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15707. fi
  15708. if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  15709. as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  15710. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15711. fi
  15712. if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  15713. as_fn_error $? "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  15714. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15715. fi
  15716. if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
  15717. as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
  15718. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15719. fi
  15720. if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
  15721. as_fn_error $? "conditional \"ARCH_X86\" was never defined.
  15722. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15723. fi
  15724. if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
  15725. as_fn_error $? "conditional \"ARCH_X86_AVX\" was never defined.
  15726. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15727. fi
  15728. if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
  15729. as_fn_error $? "conditional \"ARCH_FUTEX\" was never defined.
  15730. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15731. fi
  15732. : "${CONFIG_STATUS=./config.status}"
  15733. ac_write_fail=0
  15734. ac_clean_files_save=$ac_clean_files
  15735. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15737. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15738. as_write_fail=0
  15739. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15740. #! $SHELL
  15741. # Generated by $as_me.
  15742. # Run this file to recreate the current configuration.
  15743. # Compiler output produced by configure, useful for debugging
  15744. # configure, is in config.log if it exists.
  15745. debug=false
  15746. ac_cs_recheck=false
  15747. ac_cs_silent=false
  15748. SHELL=\${CONFIG_SHELL-$SHELL}
  15749. export SHELL
  15750. _ASEOF
  15751. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15752. ## -------------------- ##
  15753. ## M4sh Initialization. ##
  15754. ## -------------------- ##
  15755. # Be more Bourne compatible
  15756. DUALCASE=1; export DUALCASE # for MKS sh
  15757. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15758. emulate sh
  15759. NULLCMD=:
  15760. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15761. # is contrary to our usage. Disable this feature.
  15762. alias -g '${1+"$@"}'='"$@"'
  15763. setopt NO_GLOB_SUBST
  15764. else
  15765. case `(set -o) 2>/dev/null` in #(
  15766. *posix*) :
  15767. set -o posix ;; #(
  15768. *) :
  15769. ;;
  15770. esac
  15771. fi
  15772. as_nl='
  15773. '
  15774. export as_nl
  15775. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15776. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15777. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15778. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15779. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15780. # but without wasting forks for bash or zsh.
  15781. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15782. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15783. as_echo='print -r --'
  15784. as_echo_n='print -rn --'
  15785. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15786. as_echo='printf %s\n'
  15787. as_echo_n='printf %s'
  15788. else
  15789. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15790. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15791. as_echo_n='/usr/ucb/echo -n'
  15792. else
  15793. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15794. as_echo_n_body='eval
  15795. arg=$1;
  15796. case $arg in #(
  15797. *"$as_nl"*)
  15798. expr "X$arg" : "X\\(.*\\)$as_nl";
  15799. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15800. esac;
  15801. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15802. '
  15803. export as_echo_n_body
  15804. as_echo_n='sh -c $as_echo_n_body as_echo'
  15805. fi
  15806. export as_echo_body
  15807. as_echo='sh -c $as_echo_body as_echo'
  15808. fi
  15809. # The user is always right.
  15810. if test "${PATH_SEPARATOR+set}" != set; then
  15811. PATH_SEPARATOR=:
  15812. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15813. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15814. PATH_SEPARATOR=';'
  15815. }
  15816. fi
  15817. # IFS
  15818. # We need space, tab and new line, in precisely that order. Quoting is
  15819. # there to prevent editors from complaining about space-tab.
  15820. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15821. # splitting by setting IFS to empty value.)
  15822. IFS=" "" $as_nl"
  15823. # Find who we are. Look in the path if we contain no directory separator.
  15824. as_myself=
  15825. case $0 in #((
  15826. *[\\/]* ) as_myself=$0 ;;
  15827. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15828. for as_dir in $PATH
  15829. do
  15830. IFS=$as_save_IFS
  15831. test -z "$as_dir" && as_dir=.
  15832. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15833. done
  15834. IFS=$as_save_IFS
  15835. ;;
  15836. esac
  15837. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15838. # in which case we are not to be found in the path.
  15839. if test "x$as_myself" = x; then
  15840. as_myself=$0
  15841. fi
  15842. if test ! -f "$as_myself"; then
  15843. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15844. exit 1
  15845. fi
  15846. # Unset variables that we do not need and which cause bugs (e.g. in
  15847. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15848. # suppresses any "Segmentation fault" message there. '((' could
  15849. # trigger a bug in pdksh 5.2.14.
  15850. for as_var in BASH_ENV ENV MAIL MAILPATH
  15851. do eval test x\${$as_var+set} = xset \
  15852. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15853. done
  15854. PS1='$ '
  15855. PS2='> '
  15856. PS4='+ '
  15857. # NLS nuisances.
  15858. LC_ALL=C
  15859. export LC_ALL
  15860. LANGUAGE=C
  15861. export LANGUAGE
  15862. # CDPATH.
  15863. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15864. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15865. # ----------------------------------------
  15866. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15867. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15868. # script with STATUS, using 1 if that was 0.
  15869. as_fn_error ()
  15870. {
  15871. as_status=$1; test $as_status -eq 0 && as_status=1
  15872. if test "$4"; then
  15873. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15874. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15875. fi
  15876. $as_echo "$as_me: error: $2" >&2
  15877. as_fn_exit $as_status
  15878. } # as_fn_error
  15879. # as_fn_set_status STATUS
  15880. # -----------------------
  15881. # Set $? to STATUS, without forking.
  15882. as_fn_set_status ()
  15883. {
  15884. return $1
  15885. } # as_fn_set_status
  15886. # as_fn_exit STATUS
  15887. # -----------------
  15888. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15889. as_fn_exit ()
  15890. {
  15891. set +e
  15892. as_fn_set_status $1
  15893. exit $1
  15894. } # as_fn_exit
  15895. # as_fn_unset VAR
  15896. # ---------------
  15897. # Portably unset VAR.
  15898. as_fn_unset ()
  15899. {
  15900. { eval $1=; unset $1;}
  15901. }
  15902. as_unset=as_fn_unset
  15903. # as_fn_append VAR VALUE
  15904. # ----------------------
  15905. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15906. # advantage of any shell optimizations that allow amortized linear growth over
  15907. # repeated appends, instead of the typical quadratic growth present in naive
  15908. # implementations.
  15909. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15910. eval 'as_fn_append ()
  15911. {
  15912. eval $1+=\$2
  15913. }'
  15914. else
  15915. as_fn_append ()
  15916. {
  15917. eval $1=\$$1\$2
  15918. }
  15919. fi # as_fn_append
  15920. # as_fn_arith ARG...
  15921. # ------------------
  15922. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15923. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15924. # must be portable across $(()) and expr.
  15925. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15926. eval 'as_fn_arith ()
  15927. {
  15928. as_val=$(( $* ))
  15929. }'
  15930. else
  15931. as_fn_arith ()
  15932. {
  15933. as_val=`expr "$@" || test $? -eq 1`
  15934. }
  15935. fi # as_fn_arith
  15936. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15937. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15938. as_expr=expr
  15939. else
  15940. as_expr=false
  15941. fi
  15942. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15943. as_basename=basename
  15944. else
  15945. as_basename=false
  15946. fi
  15947. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15948. as_dirname=dirname
  15949. else
  15950. as_dirname=false
  15951. fi
  15952. as_me=`$as_basename -- "$0" ||
  15953. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15954. X"$0" : 'X\(//\)$' \| \
  15955. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15956. $as_echo X/"$0" |
  15957. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15958. s//\1/
  15959. q
  15960. }
  15961. /^X\/\(\/\/\)$/{
  15962. s//\1/
  15963. q
  15964. }
  15965. /^X\/\(\/\).*/{
  15966. s//\1/
  15967. q
  15968. }
  15969. s/.*/./; q'`
  15970. # Avoid depending upon Character Ranges.
  15971. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15972. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15973. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15974. as_cr_digits='0123456789'
  15975. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15976. ECHO_C= ECHO_N= ECHO_T=
  15977. case `echo -n x` in #(((((
  15978. -n*)
  15979. case `echo 'xy\c'` in
  15980. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15981. xy) ECHO_C='\c';;
  15982. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15983. ECHO_T=' ';;
  15984. esac;;
  15985. *)
  15986. ECHO_N='-n';;
  15987. esac
  15988. rm -f conf$$ conf$$.exe conf$$.file
  15989. if test -d conf$$.dir; then
  15990. rm -f conf$$.dir/conf$$.file
  15991. else
  15992. rm -f conf$$.dir
  15993. mkdir conf$$.dir 2>/dev/null
  15994. fi
  15995. if (echo >conf$$.file) 2>/dev/null; then
  15996. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15997. as_ln_s='ln -s'
  15998. # ... but there are two gotchas:
  15999. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16000. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16001. # In both cases, we have to default to `cp -pR'.
  16002. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16003. as_ln_s='cp -pR'
  16004. elif ln conf$$.file conf$$ 2>/dev/null; then
  16005. as_ln_s=ln
  16006. else
  16007. as_ln_s='cp -pR'
  16008. fi
  16009. else
  16010. as_ln_s='cp -pR'
  16011. fi
  16012. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16013. rmdir conf$$.dir 2>/dev/null
  16014. # as_fn_mkdir_p
  16015. # -------------
  16016. # Create "$as_dir" as a directory, including parents if necessary.
  16017. as_fn_mkdir_p ()
  16018. {
  16019. case $as_dir in #(
  16020. -*) as_dir=./$as_dir;;
  16021. esac
  16022. test -d "$as_dir" || eval $as_mkdir_p || {
  16023. as_dirs=
  16024. while :; do
  16025. case $as_dir in #(
  16026. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16027. *) as_qdir=$as_dir;;
  16028. esac
  16029. as_dirs="'$as_qdir' $as_dirs"
  16030. as_dir=`$as_dirname -- "$as_dir" ||
  16031. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16032. X"$as_dir" : 'X\(//\)[^/]' \| \
  16033. X"$as_dir" : 'X\(//\)$' \| \
  16034. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16035. $as_echo X"$as_dir" |
  16036. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16037. s//\1/
  16038. q
  16039. }
  16040. /^X\(\/\/\)[^/].*/{
  16041. s//\1/
  16042. q
  16043. }
  16044. /^X\(\/\/\)$/{
  16045. s//\1/
  16046. q
  16047. }
  16048. /^X\(\/\).*/{
  16049. s//\1/
  16050. q
  16051. }
  16052. s/.*/./; q'`
  16053. test -d "$as_dir" && break
  16054. done
  16055. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16056. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16057. } # as_fn_mkdir_p
  16058. if mkdir -p . 2>/dev/null; then
  16059. as_mkdir_p='mkdir -p "$as_dir"'
  16060. else
  16061. test -d ./-p && rmdir ./-p
  16062. as_mkdir_p=false
  16063. fi
  16064. # as_fn_executable_p FILE
  16065. # -----------------------
  16066. # Test if FILE is an executable regular file.
  16067. as_fn_executable_p ()
  16068. {
  16069. test -f "$1" && test -x "$1"
  16070. } # as_fn_executable_p
  16071. as_test_x='test -x'
  16072. as_executable_p=as_fn_executable_p
  16073. # Sed expression to map a string onto a valid CPP name.
  16074. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16075. # Sed expression to map a string onto a valid variable name.
  16076. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16077. exec 6>&1
  16078. ## ----------------------------------- ##
  16079. ## Main body of $CONFIG_STATUS script. ##
  16080. ## ----------------------------------- ##
  16081. _ASEOF
  16082. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16083. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16084. # Save the log message, to keep $0 and so on meaningful, and to
  16085. # report actual input values of CONFIG_FILES etc. instead of their
  16086. # values after options handling.
  16087. ac_log="
  16088. This file was extended by GNU TM Runtime Library $as_me 1.0, which was
  16089. generated by GNU Autoconf 2.69. Invocation command line was
  16090. CONFIG_FILES = $CONFIG_FILES
  16091. CONFIG_HEADERS = $CONFIG_HEADERS
  16092. CONFIG_LINKS = $CONFIG_LINKS
  16093. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16094. $ $0 $@
  16095. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16096. "
  16097. _ACEOF
  16098. case $ac_config_files in *"
  16099. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16100. esac
  16101. case $ac_config_headers in *"
  16102. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  16103. esac
  16104. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16105. # Files that config.status was made for.
  16106. config_files="$ac_config_files"
  16107. config_headers="$ac_config_headers"
  16108. config_commands="$ac_config_commands"
  16109. _ACEOF
  16110. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16111. ac_cs_usage="\
  16112. \`$as_me' instantiates files and other configuration actions
  16113. from templates according to the current configuration. Unless the files
  16114. and actions are specified as TAGs, all are instantiated by default.
  16115. Usage: $0 [OPTION]... [TAG]...
  16116. -h, --help print this help, then exit
  16117. -V, --version print version number and configuration settings, then exit
  16118. --config print configuration, then exit
  16119. -q, --quiet, --silent
  16120. do not print progress messages
  16121. -d, --debug don't remove temporary files
  16122. --recheck update $as_me by reconfiguring in the same conditions
  16123. --file=FILE[:TEMPLATE]
  16124. instantiate the configuration file FILE
  16125. --header=FILE[:TEMPLATE]
  16126. instantiate the configuration header FILE
  16127. Configuration files:
  16128. $config_files
  16129. Configuration headers:
  16130. $config_headers
  16131. Configuration commands:
  16132. $config_commands
  16133. Report bugs to the package provider.
  16134. GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
  16135. General help using GNU software: <http://www.gnu.org/gethelp/>."
  16136. _ACEOF
  16137. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16138. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16139. ac_cs_version="\\
  16140. GNU TM Runtime Library config.status 1.0
  16141. configured by $0, generated by GNU Autoconf 2.69,
  16142. with options \\"\$ac_cs_config\\"
  16143. Copyright (C) 2012 Free Software Foundation, Inc.
  16144. This config.status script is free software; the Free Software Foundation
  16145. gives unlimited permission to copy, distribute and modify it."
  16146. ac_pwd='$ac_pwd'
  16147. srcdir='$srcdir'
  16148. INSTALL='$INSTALL'
  16149. MKDIR_P='$MKDIR_P'
  16150. AWK='$AWK'
  16151. test -n "\$AWK" || AWK=awk
  16152. _ACEOF
  16153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16154. # The default lists apply if the user does not specify any file.
  16155. ac_need_defaults=:
  16156. while test $# != 0
  16157. do
  16158. case $1 in
  16159. --*=?*)
  16160. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16161. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16162. ac_shift=:
  16163. ;;
  16164. --*=)
  16165. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16166. ac_optarg=
  16167. ac_shift=:
  16168. ;;
  16169. *)
  16170. ac_option=$1
  16171. ac_optarg=$2
  16172. ac_shift=shift
  16173. ;;
  16174. esac
  16175. case $ac_option in
  16176. # Handling of the options.
  16177. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16178. ac_cs_recheck=: ;;
  16179. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16180. $as_echo "$ac_cs_version"; exit ;;
  16181. --config | --confi | --conf | --con | --co | --c )
  16182. $as_echo "$ac_cs_config"; exit ;;
  16183. --debug | --debu | --deb | --de | --d | -d )
  16184. debug=: ;;
  16185. --file | --fil | --fi | --f )
  16186. $ac_shift
  16187. case $ac_optarg in
  16188. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16189. '') as_fn_error $? "missing file argument" ;;
  16190. esac
  16191. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16192. ac_need_defaults=false;;
  16193. --header | --heade | --head | --hea )
  16194. $ac_shift
  16195. case $ac_optarg in
  16196. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16197. esac
  16198. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  16199. ac_need_defaults=false;;
  16200. --he | --h)
  16201. # Conflict between --help and --header
  16202. as_fn_error $? "ambiguous option: \`$1'
  16203. Try \`$0 --help' for more information.";;
  16204. --help | --hel | -h )
  16205. $as_echo "$ac_cs_usage"; exit ;;
  16206. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16207. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16208. ac_cs_silent=: ;;
  16209. # This is an error.
  16210. -*) as_fn_error $? "unrecognized option: \`$1'
  16211. Try \`$0 --help' for more information." ;;
  16212. *) as_fn_append ac_config_targets " $1"
  16213. ac_need_defaults=false ;;
  16214. esac
  16215. shift
  16216. done
  16217. ac_configure_extra_args=
  16218. if $ac_cs_silent; then
  16219. exec 6>/dev/null
  16220. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16221. fi
  16222. _ACEOF
  16223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16224. if \$ac_cs_recheck; then
  16225. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16226. shift
  16227. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16228. CONFIG_SHELL='$SHELL'
  16229. export CONFIG_SHELL
  16230. exec "\$@"
  16231. fi
  16232. _ACEOF
  16233. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16234. exec 5>>config.log
  16235. {
  16236. echo
  16237. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16238. ## Running $as_me. ##
  16239. _ASBOX
  16240. $as_echo "$ac_log"
  16241. } >&5
  16242. _ACEOF
  16243. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16244. #
  16245. # INIT-COMMANDS
  16246. #
  16247. srcdir="$srcdir"
  16248. host="$host"
  16249. target="$target"
  16250. with_multisubdir="$with_multisubdir"
  16251. with_multisrctop="$with_multisrctop"
  16252. with_target_subdir="$with_target_subdir"
  16253. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  16254. multi_basedir="$multi_basedir"
  16255. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16256. CC="$CC"
  16257. CXX="$CXX"
  16258. GFORTRAN="$GFORTRAN"
  16259. GDC="$GDC"
  16260. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16261. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16262. # if CDPATH is set.
  16263. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16264. sed_quote_subst='$sed_quote_subst'
  16265. double_quote_subst='$double_quote_subst'
  16266. delay_variable_subst='$delay_variable_subst'
  16267. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  16268. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  16269. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  16270. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  16271. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  16272. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  16273. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  16274. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  16275. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  16276. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  16277. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  16278. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  16279. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  16280. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  16281. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  16282. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  16283. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  16284. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  16285. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  16286. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  16287. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  16288. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  16289. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  16290. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  16291. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  16292. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  16293. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  16294. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  16295. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  16296. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  16297. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  16298. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  16299. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  16300. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  16301. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  16302. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  16303. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  16304. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16305. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16306. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  16307. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  16308. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  16309. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  16310. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  16311. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  16312. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  16313. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  16314. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  16315. 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"`'
  16316. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  16317. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  16318. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  16319. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  16320. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  16321. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  16322. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  16323. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  16324. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  16325. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  16326. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  16327. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  16328. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  16329. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  16330. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  16331. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16332. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  16333. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  16334. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  16335. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  16336. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  16337. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  16338. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  16339. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  16340. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16341. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  16342. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  16343. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  16344. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16345. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  16346. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  16347. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  16348. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  16349. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  16350. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  16351. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  16352. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16353. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  16354. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  16355. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  16356. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  16357. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  16358. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  16359. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  16360. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  16361. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  16362. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  16363. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  16364. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  16365. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  16366. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  16367. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  16368. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  16369. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  16370. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  16371. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  16372. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  16373. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  16374. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  16375. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  16376. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  16377. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  16378. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  16379. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  16380. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  16381. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  16382. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  16383. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  16384. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  16385. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  16386. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  16387. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  16388. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  16389. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  16390. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  16391. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  16392. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  16393. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  16394. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16395. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16396. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16397. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  16398. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  16399. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16400. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  16401. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  16402. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  16403. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  16404. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  16405. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  16406. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16407. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16408. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  16409. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16410. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16411. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16412. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16413. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16414. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16415. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16416. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16417. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  16418. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16419. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  16420. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  16421. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  16422. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  16423. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  16424. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  16425. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  16426. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  16427. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  16428. fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
  16429. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  16430. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16431. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16432. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  16433. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  16434. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  16435. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  16436. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  16437. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16438. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  16439. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  16440. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  16441. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  16442. LTCC='$LTCC'
  16443. LTCFLAGS='$LTCFLAGS'
  16444. compiler='$compiler_DEFAULT'
  16445. # A function that is used when there is no print builtin or printf.
  16446. func_fallback_echo ()
  16447. {
  16448. eval 'cat <<_LTECHO_EOF
  16449. \$1
  16450. _LTECHO_EOF'
  16451. }
  16452. # Quote evaled strings.
  16453. for var in SHELL \
  16454. ECHO \
  16455. SED \
  16456. GREP \
  16457. EGREP \
  16458. FGREP \
  16459. LD \
  16460. NM \
  16461. LN_S \
  16462. lt_SP2NL \
  16463. lt_NL2SP \
  16464. reload_flag \
  16465. OBJDUMP \
  16466. deplibs_check_method \
  16467. file_magic_cmd \
  16468. AR \
  16469. AR_FLAGS \
  16470. STRIP \
  16471. RANLIB \
  16472. CC \
  16473. CFLAGS \
  16474. compiler \
  16475. lt_cv_sys_global_symbol_pipe \
  16476. lt_cv_sys_global_symbol_to_cdecl \
  16477. lt_cv_sys_global_symbol_to_c_name_address \
  16478. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  16479. lt_prog_compiler_no_builtin_flag \
  16480. lt_prog_compiler_wl \
  16481. lt_prog_compiler_pic \
  16482. lt_prog_compiler_static \
  16483. lt_cv_prog_compiler_c_o \
  16484. need_locks \
  16485. DSYMUTIL \
  16486. NMEDIT \
  16487. LIPO \
  16488. OTOOL \
  16489. OTOOL64 \
  16490. shrext_cmds \
  16491. export_dynamic_flag_spec \
  16492. whole_archive_flag_spec \
  16493. compiler_needs_object \
  16494. with_gnu_ld \
  16495. allow_undefined_flag \
  16496. no_undefined_flag \
  16497. hardcode_libdir_flag_spec \
  16498. hardcode_libdir_flag_spec_ld \
  16499. hardcode_libdir_separator \
  16500. fix_srcfile_path \
  16501. exclude_expsyms \
  16502. include_expsyms \
  16503. file_list_spec \
  16504. variables_saved_for_relink \
  16505. libname_spec \
  16506. library_names_spec \
  16507. soname_spec \
  16508. install_override_mode \
  16509. finish_eval \
  16510. old_striplib \
  16511. striplib \
  16512. compiler_lib_search_dirs \
  16513. predep_objects \
  16514. postdep_objects \
  16515. predeps \
  16516. postdeps \
  16517. compiler_lib_search_path \
  16518. LD_CXX \
  16519. reload_flag_CXX \
  16520. compiler_CXX \
  16521. lt_prog_compiler_no_builtin_flag_CXX \
  16522. lt_prog_compiler_wl_CXX \
  16523. lt_prog_compiler_pic_CXX \
  16524. lt_prog_compiler_static_CXX \
  16525. lt_cv_prog_compiler_c_o_CXX \
  16526. export_dynamic_flag_spec_CXX \
  16527. whole_archive_flag_spec_CXX \
  16528. compiler_needs_object_CXX \
  16529. with_gnu_ld_CXX \
  16530. allow_undefined_flag_CXX \
  16531. no_undefined_flag_CXX \
  16532. hardcode_libdir_flag_spec_CXX \
  16533. hardcode_libdir_flag_spec_ld_CXX \
  16534. hardcode_libdir_separator_CXX \
  16535. fix_srcfile_path_CXX \
  16536. exclude_expsyms_CXX \
  16537. include_expsyms_CXX \
  16538. file_list_spec_CXX \
  16539. compiler_lib_search_dirs_CXX \
  16540. predep_objects_CXX \
  16541. postdep_objects_CXX \
  16542. predeps_CXX \
  16543. postdeps_CXX \
  16544. compiler_lib_search_path_CXX; do
  16545. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16546. *[\\\\\\\`\\"\\\$]*)
  16547. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16548. ;;
  16549. *)
  16550. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16551. ;;
  16552. esac
  16553. done
  16554. # Double-quote double-evaled strings.
  16555. for var in reload_cmds \
  16556. old_postinstall_cmds \
  16557. old_postuninstall_cmds \
  16558. old_archive_cmds \
  16559. extract_expsyms_cmds \
  16560. old_archive_from_new_cmds \
  16561. old_archive_from_expsyms_cmds \
  16562. archive_cmds \
  16563. archive_expsym_cmds \
  16564. module_cmds \
  16565. module_expsym_cmds \
  16566. export_symbols_cmds \
  16567. prelink_cmds \
  16568. postinstall_cmds \
  16569. postuninstall_cmds \
  16570. finish_cmds \
  16571. sys_lib_search_path_spec \
  16572. sys_lib_dlsearch_path_spec \
  16573. reload_cmds_CXX \
  16574. old_archive_cmds_CXX \
  16575. old_archive_from_new_cmds_CXX \
  16576. old_archive_from_expsyms_cmds_CXX \
  16577. archive_cmds_CXX \
  16578. archive_expsym_cmds_CXX \
  16579. module_cmds_CXX \
  16580. module_expsym_cmds_CXX \
  16581. export_symbols_cmds_CXX \
  16582. prelink_cmds_CXX; do
  16583. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16584. *[\\\\\\\`\\"\\\$]*)
  16585. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16586. ;;
  16587. *)
  16588. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16589. ;;
  16590. esac
  16591. done
  16592. ac_aux_dir='$ac_aux_dir'
  16593. xsi_shell='$xsi_shell'
  16594. lt_shell_append='$lt_shell_append'
  16595. # See if we are running on zsh, and set the options which allow our
  16596. # commands through without removal of \ escapes INIT.
  16597. if test -n "\${ZSH_VERSION+set}" ; then
  16598. setopt NO_GLOB_SUBST
  16599. fi
  16600. PACKAGE='$PACKAGE'
  16601. VERSION='$VERSION'
  16602. TIMESTAMP='$TIMESTAMP'
  16603. RM='$RM'
  16604. ofile='$ofile'
  16605. GCC="$GCC"
  16606. CC="$CC"
  16607. acx_cv_header_stdint="$acx_cv_header_stdint"
  16608. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  16609. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  16610. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  16611. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  16612. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  16613. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  16614. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  16615. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  16616. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  16617. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  16618. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  16619. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  16620. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  16621. _ACEOF
  16622. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16623. # Handling of arguments.
  16624. for ac_config_target in $ac_config_targets
  16625. do
  16626. case $ac_config_target in
  16627. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16628. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  16629. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16630. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16631. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  16632. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16633. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  16634. "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
  16635. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16636. esac
  16637. done
  16638. # If the user did not use the arguments to specify the items to instantiate,
  16639. # then the envvar interface is used. Set only those that are not.
  16640. # We use the long form for the default assignment because of an extremely
  16641. # bizarre bug on SunOS 4.1.3.
  16642. if $ac_need_defaults; then
  16643. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16644. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16645. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16646. fi
  16647. # Have a temporary directory for convenience. Make it in the build tree
  16648. # simply because there is no reason against having it here, and in addition,
  16649. # creating and moving files from /tmp can sometimes cause problems.
  16650. # Hook for its removal unless debugging.
  16651. # Note that there is a small window in which the directory will not be cleaned:
  16652. # after its creation but before its name has been assigned to `$tmp'.
  16653. $debug ||
  16654. {
  16655. tmp= ac_tmp=
  16656. trap 'exit_status=$?
  16657. : "${ac_tmp:=$tmp}"
  16658. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16659. ' 0
  16660. trap 'as_fn_exit 1' 1 2 13 15
  16661. }
  16662. # Create a (secure) tmp directory for tmp files.
  16663. {
  16664. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16665. test -d "$tmp"
  16666. } ||
  16667. {
  16668. tmp=./conf$$-$RANDOM
  16669. (umask 077 && mkdir "$tmp")
  16670. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16671. ac_tmp=$tmp
  16672. # Set up the scripts for CONFIG_FILES section.
  16673. # No need to generate them if there are no CONFIG_FILES.
  16674. # This happens for instance with `./config.status config.h'.
  16675. if test -n "$CONFIG_FILES"; then
  16676. ac_cr=`echo X | tr X '\015'`
  16677. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16678. # But we know of no other shell where ac_cr would be empty at this
  16679. # point, so we can use a bashism as a fallback.
  16680. if test "x$ac_cr" = x; then
  16681. eval ac_cr=\$\'\\r\'
  16682. fi
  16683. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16684. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16685. ac_cs_awk_cr='\\r'
  16686. else
  16687. ac_cs_awk_cr=$ac_cr
  16688. fi
  16689. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16690. _ACEOF
  16691. {
  16692. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16693. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16694. echo "_ACEOF"
  16695. } >conf$$subs.sh ||
  16696. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16697. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16698. ac_delim='%!_!# '
  16699. for ac_last_try in false false false false false :; do
  16700. . ./conf$$subs.sh ||
  16701. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16702. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16703. if test $ac_delim_n = $ac_delim_num; then
  16704. break
  16705. elif $ac_last_try; then
  16706. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16707. else
  16708. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16709. fi
  16710. done
  16711. rm -f conf$$subs.sh
  16712. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16713. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16714. _ACEOF
  16715. sed -n '
  16716. h
  16717. s/^/S["/; s/!.*/"]=/
  16718. p
  16719. g
  16720. s/^[^!]*!//
  16721. :repl
  16722. t repl
  16723. s/'"$ac_delim"'$//
  16724. t delim
  16725. :nl
  16726. h
  16727. s/\(.\{148\}\)..*/\1/
  16728. t more1
  16729. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16730. p
  16731. n
  16732. b repl
  16733. :more1
  16734. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16735. p
  16736. g
  16737. s/.\{148\}//
  16738. t nl
  16739. :delim
  16740. h
  16741. s/\(.\{148\}\)..*/\1/
  16742. t more2
  16743. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16744. p
  16745. b
  16746. :more2
  16747. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16748. p
  16749. g
  16750. s/.\{148\}//
  16751. t delim
  16752. ' <conf$$subs.awk | sed '
  16753. /^[^""]/{
  16754. N
  16755. s/\n//
  16756. }
  16757. ' >>$CONFIG_STATUS || ac_write_fail=1
  16758. rm -f conf$$subs.awk
  16759. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16760. _ACAWK
  16761. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16762. for (key in S) S_is_set[key] = 1
  16763. FS = ""
  16764. }
  16765. {
  16766. line = $ 0
  16767. nfields = split(line, field, "@")
  16768. substed = 0
  16769. len = length(field[1])
  16770. for (i = 2; i < nfields; i++) {
  16771. key = field[i]
  16772. keylen = length(key)
  16773. if (S_is_set[key]) {
  16774. value = S[key]
  16775. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16776. len += length(value) + length(field[++i])
  16777. substed = 1
  16778. } else
  16779. len += 1 + keylen
  16780. }
  16781. print line
  16782. }
  16783. _ACAWK
  16784. _ACEOF
  16785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16786. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16787. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16788. else
  16789. cat
  16790. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16791. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16792. _ACEOF
  16793. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16794. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16795. # trailing colons and then remove the whole line if VPATH becomes empty
  16796. # (actually we leave an empty line to preserve line numbers).
  16797. if test "x$srcdir" = x.; then
  16798. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16799. h
  16800. s///
  16801. s/^/:/
  16802. s/[ ]*$/:/
  16803. s/:\$(srcdir):/:/g
  16804. s/:\${srcdir}:/:/g
  16805. s/:@srcdir@:/:/g
  16806. s/^:*//
  16807. s/:*$//
  16808. x
  16809. s/\(=[ ]*\).*/\1/
  16810. G
  16811. s/\n//
  16812. s/^[^=]*=[ ]*$//
  16813. }'
  16814. fi
  16815. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16816. fi # test -n "$CONFIG_FILES"
  16817. # Set up the scripts for CONFIG_HEADERS section.
  16818. # No need to generate them if there are no CONFIG_HEADERS.
  16819. # This happens for instance with `./config.status Makefile'.
  16820. if test -n "$CONFIG_HEADERS"; then
  16821. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16822. BEGIN {
  16823. _ACEOF
  16824. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16825. # here-document in config.status, that substitutes the proper values into
  16826. # config.h.in to produce config.h.
  16827. # Create a delimiter string that does not exist in confdefs.h, to ease
  16828. # handling of long lines.
  16829. ac_delim='%!_!# '
  16830. for ac_last_try in false false :; do
  16831. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16832. if test -z "$ac_tt"; then
  16833. break
  16834. elif $ac_last_try; then
  16835. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16836. else
  16837. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16838. fi
  16839. done
  16840. # For the awk script, D is an array of macro values keyed by name,
  16841. # likewise P contains macro parameters if any. Preserve backslash
  16842. # newline sequences.
  16843. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16844. sed -n '
  16845. s/.\{148\}/&'"$ac_delim"'/g
  16846. t rset
  16847. :rset
  16848. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16849. t def
  16850. d
  16851. :def
  16852. s/\\$//
  16853. t bsnl
  16854. s/["\\]/\\&/g
  16855. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16856. D["\1"]=" \3"/p
  16857. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16858. d
  16859. :bsnl
  16860. s/["\\]/\\&/g
  16861. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16862. D["\1"]=" \3\\\\\\n"\\/p
  16863. t cont
  16864. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16865. t cont
  16866. d
  16867. :cont
  16868. n
  16869. s/.\{148\}/&'"$ac_delim"'/g
  16870. t clear
  16871. :clear
  16872. s/\\$//
  16873. t bsnlc
  16874. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16875. d
  16876. :bsnlc
  16877. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16878. b cont
  16879. ' <confdefs.h | sed '
  16880. s/'"$ac_delim"'/"\\\
  16881. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16882. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16883. for (key in D) D_is_set[key] = 1
  16884. FS = ""
  16885. }
  16886. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16887. line = \$ 0
  16888. split(line, arg, " ")
  16889. if (arg[1] == "#") {
  16890. defundef = arg[2]
  16891. mac1 = arg[3]
  16892. } else {
  16893. defundef = substr(arg[1], 2)
  16894. mac1 = arg[2]
  16895. }
  16896. split(mac1, mac2, "(") #)
  16897. macro = mac2[1]
  16898. prefix = substr(line, 1, index(line, defundef) - 1)
  16899. if (D_is_set[macro]) {
  16900. # Preserve the white space surrounding the "#".
  16901. print prefix "define", macro P[macro] D[macro]
  16902. next
  16903. } else {
  16904. # Replace #undef with comments. This is necessary, for example,
  16905. # in the case of _POSIX_SOURCE, which is predefined and required
  16906. # on some systems where configure will not decide to define it.
  16907. if (defundef == "undef") {
  16908. print "/*", prefix defundef, macro, "*/"
  16909. next
  16910. }
  16911. }
  16912. }
  16913. { print }
  16914. _ACAWK
  16915. _ACEOF
  16916. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16917. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16918. fi # test -n "$CONFIG_HEADERS"
  16919. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16920. shift
  16921. for ac_tag
  16922. do
  16923. case $ac_tag in
  16924. :[FHLC]) ac_mode=$ac_tag; continue;;
  16925. esac
  16926. case $ac_mode$ac_tag in
  16927. :[FHL]*:*);;
  16928. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16929. :[FH]-) ac_tag=-:-;;
  16930. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16931. esac
  16932. ac_save_IFS=$IFS
  16933. IFS=:
  16934. set x $ac_tag
  16935. IFS=$ac_save_IFS
  16936. shift
  16937. ac_file=$1
  16938. shift
  16939. case $ac_mode in
  16940. :L) ac_source=$1;;
  16941. :[FH])
  16942. ac_file_inputs=
  16943. for ac_f
  16944. do
  16945. case $ac_f in
  16946. -) ac_f="$ac_tmp/stdin";;
  16947. *) # Look for the file first in the build tree, then in the source tree
  16948. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16949. # because $ac_f cannot contain `:'.
  16950. test -f "$ac_f" ||
  16951. case $ac_f in
  16952. [\\/$]*) false;;
  16953. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16954. esac ||
  16955. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16956. esac
  16957. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16958. as_fn_append ac_file_inputs " '$ac_f'"
  16959. done
  16960. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16961. # use $as_me), people would be surprised to read:
  16962. # /* config.h. Generated by config.status. */
  16963. configure_input='Generated from '`
  16964. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16965. `' by configure.'
  16966. if test x"$ac_file" != x-; then
  16967. configure_input="$ac_file. $configure_input"
  16968. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16969. $as_echo "$as_me: creating $ac_file" >&6;}
  16970. fi
  16971. # Neutralize special characters interpreted by sed in replacement strings.
  16972. case $configure_input in #(
  16973. *\&* | *\|* | *\\* )
  16974. ac_sed_conf_input=`$as_echo "$configure_input" |
  16975. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16976. *) ac_sed_conf_input=$configure_input;;
  16977. esac
  16978. case $ac_tag in
  16979. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16980. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16981. esac
  16982. ;;
  16983. esac
  16984. ac_dir=`$as_dirname -- "$ac_file" ||
  16985. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16986. X"$ac_file" : 'X\(//\)[^/]' \| \
  16987. X"$ac_file" : 'X\(//\)$' \| \
  16988. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16989. $as_echo X"$ac_file" |
  16990. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16991. s//\1/
  16992. q
  16993. }
  16994. /^X\(\/\/\)[^/].*/{
  16995. s//\1/
  16996. q
  16997. }
  16998. /^X\(\/\/\)$/{
  16999. s//\1/
  17000. q
  17001. }
  17002. /^X\(\/\).*/{
  17003. s//\1/
  17004. q
  17005. }
  17006. s/.*/./; q'`
  17007. as_dir="$ac_dir"; as_fn_mkdir_p
  17008. ac_builddir=.
  17009. case "$ac_dir" in
  17010. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17011. *)
  17012. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17013. # A ".." for each directory in $ac_dir_suffix.
  17014. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17015. case $ac_top_builddir_sub in
  17016. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17017. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17018. esac ;;
  17019. esac
  17020. ac_abs_top_builddir=$ac_pwd
  17021. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17022. # for backward compatibility:
  17023. ac_top_builddir=$ac_top_build_prefix
  17024. case $srcdir in
  17025. .) # We are building in place.
  17026. ac_srcdir=.
  17027. ac_top_srcdir=$ac_top_builddir_sub
  17028. ac_abs_top_srcdir=$ac_pwd ;;
  17029. [\\/]* | ?:[\\/]* ) # Absolute name.
  17030. ac_srcdir=$srcdir$ac_dir_suffix;
  17031. ac_top_srcdir=$srcdir
  17032. ac_abs_top_srcdir=$srcdir ;;
  17033. *) # Relative name.
  17034. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17035. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17036. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17037. esac
  17038. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17039. case $ac_mode in
  17040. :F)
  17041. #
  17042. # CONFIG_FILE
  17043. #
  17044. case $INSTALL in
  17045. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17046. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17047. esac
  17048. ac_MKDIR_P=$MKDIR_P
  17049. case $MKDIR_P in
  17050. [\\/$]* | ?:[\\/]* ) ;;
  17051. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  17052. esac
  17053. _ACEOF
  17054. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17055. # If the template does not know about datarootdir, expand it.
  17056. # FIXME: This hack should be removed a few years after 2.60.
  17057. ac_datarootdir_hack=; ac_datarootdir_seen=
  17058. ac_sed_dataroot='
  17059. /datarootdir/ {
  17060. p
  17061. q
  17062. }
  17063. /@datadir@/p
  17064. /@docdir@/p
  17065. /@infodir@/p
  17066. /@localedir@/p
  17067. /@mandir@/p'
  17068. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17069. *datarootdir*) ac_datarootdir_seen=yes;;
  17070. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17072. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17073. _ACEOF
  17074. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17075. ac_datarootdir_hack='
  17076. s&@datadir@&$datadir&g
  17077. s&@docdir@&$docdir&g
  17078. s&@infodir@&$infodir&g
  17079. s&@localedir@&$localedir&g
  17080. s&@mandir@&$mandir&g
  17081. s&\\\${datarootdir}&$datarootdir&g' ;;
  17082. esac
  17083. _ACEOF
  17084. # Neutralize VPATH when `$srcdir' = `.'.
  17085. # Shell code in configure.ac might set extrasub.
  17086. # FIXME: do we really want to maintain this feature?
  17087. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17088. ac_sed_extra="$ac_vpsub
  17089. $extrasub
  17090. _ACEOF
  17091. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17092. :t
  17093. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17094. s|@configure_input@|$ac_sed_conf_input|;t t
  17095. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17096. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17097. s&@srcdir@&$ac_srcdir&;t t
  17098. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17099. s&@top_srcdir@&$ac_top_srcdir&;t t
  17100. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17101. s&@builddir@&$ac_builddir&;t t
  17102. s&@abs_builddir@&$ac_abs_builddir&;t t
  17103. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17104. s&@INSTALL@&$ac_INSTALL&;t t
  17105. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  17106. $ac_datarootdir_hack
  17107. "
  17108. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  17109. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17110. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17111. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17112. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17113. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17115. which seems to be undefined. Please make sure it is defined" >&5
  17116. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17117. which seems to be undefined. Please make sure it is defined" >&2;}
  17118. rm -f "$ac_tmp/stdin"
  17119. case $ac_file in
  17120. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17121. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17122. esac \
  17123. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17124. ;;
  17125. :H)
  17126. #
  17127. # CONFIG_HEADER
  17128. #
  17129. if test x"$ac_file" != x-; then
  17130. {
  17131. $as_echo "/* $configure_input */" \
  17132. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  17133. } >"$ac_tmp/config.h" \
  17134. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17135. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  17136. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  17137. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  17138. else
  17139. rm -f "$ac_file"
  17140. mv "$ac_tmp/config.h" "$ac_file" \
  17141. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17142. fi
  17143. else
  17144. $as_echo "/* $configure_input */" \
  17145. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  17146. || as_fn_error $? "could not create -" "$LINENO" 5
  17147. fi
  17148. # Compute "$ac_file"'s index in $config_headers.
  17149. _am_arg="$ac_file"
  17150. _am_stamp_count=1
  17151. for _am_header in $config_headers :; do
  17152. case $_am_header in
  17153. $_am_arg | $_am_arg:* )
  17154. break ;;
  17155. * )
  17156. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17157. esac
  17158. done
  17159. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  17160. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17161. X"$_am_arg" : 'X\(//\)[^/]' \| \
  17162. X"$_am_arg" : 'X\(//\)$' \| \
  17163. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  17164. $as_echo X"$_am_arg" |
  17165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17166. s//\1/
  17167. q
  17168. }
  17169. /^X\(\/\/\)[^/].*/{
  17170. s//\1/
  17171. q
  17172. }
  17173. /^X\(\/\/\)$/{
  17174. s//\1/
  17175. q
  17176. }
  17177. /^X\(\/\).*/{
  17178. s//\1/
  17179. q
  17180. }
  17181. s/.*/./; q'`/stamp-h$_am_stamp_count
  17182. ;;
  17183. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  17184. $as_echo "$as_me: executing $ac_file commands" >&6;}
  17185. ;;
  17186. esac
  17187. case $ac_file$ac_mode in
  17188. "default-1":C)
  17189. # Only add multilib support code if we just rebuilt the top-level
  17190. # Makefile.
  17191. case " $CONFIG_FILES " in
  17192. *" Makefile "*)
  17193. ac_file=Makefile . ${multi_basedir}/config-ml.in
  17194. ;;
  17195. esac ;;
  17196. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  17197. # Older Autoconf quotes --file arguments for eval, but not when files
  17198. # are listed without --file. Let's play safe and only enable the eval
  17199. # if we detect the quoting.
  17200. case $CONFIG_FILES in
  17201. *\'*) eval set x "$CONFIG_FILES" ;;
  17202. *) set x $CONFIG_FILES ;;
  17203. esac
  17204. shift
  17205. for mf
  17206. do
  17207. # Strip MF so we end up with the name of the file.
  17208. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17209. # Check whether this is an Automake generated Makefile or not.
  17210. # We used to match only the files named 'Makefile.in', but
  17211. # some people rename them; so instead we look at the file content.
  17212. # Grep'ing the first line is not enough: some people post-process
  17213. # each Makefile.in and add a new line on top of each file to say so.
  17214. # Grep'ing the whole file is not good either: AIX grep has a line
  17215. # limit of 2048, but all sed's we know have understand at least 4000.
  17216. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  17217. dirpart=`$as_dirname -- "$mf" ||
  17218. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17219. X"$mf" : 'X\(//\)[^/]' \| \
  17220. X"$mf" : 'X\(//\)$' \| \
  17221. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17222. $as_echo X"$mf" |
  17223. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17224. s//\1/
  17225. q
  17226. }
  17227. /^X\(\/\/\)[^/].*/{
  17228. s//\1/
  17229. q
  17230. }
  17231. /^X\(\/\/\)$/{
  17232. s//\1/
  17233. q
  17234. }
  17235. /^X\(\/\).*/{
  17236. s//\1/
  17237. q
  17238. }
  17239. s/.*/./; q'`
  17240. else
  17241. continue
  17242. fi
  17243. # Extract the definition of DEPDIR, am__include, and am__quote
  17244. # from the Makefile without running 'make'.
  17245. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17246. test -z "$DEPDIR" && continue
  17247. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17248. test -z "$am__include" && continue
  17249. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17250. # Find all dependency output files, they are included files with
  17251. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17252. # simplest approach to changing $(DEPDIR) to its actual value in the
  17253. # expansion.
  17254. for file in `sed -n "
  17255. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17256. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  17257. # Make sure the directory exists.
  17258. test -f "$dirpart/$file" && continue
  17259. fdir=`$as_dirname -- "$file" ||
  17260. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17261. X"$file" : 'X\(//\)[^/]' \| \
  17262. X"$file" : 'X\(//\)$' \| \
  17263. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17264. $as_echo X"$file" |
  17265. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17266. s//\1/
  17267. q
  17268. }
  17269. /^X\(\/\/\)[^/].*/{
  17270. s//\1/
  17271. q
  17272. }
  17273. /^X\(\/\/\)$/{
  17274. s//\1/
  17275. q
  17276. }
  17277. /^X\(\/\).*/{
  17278. s//\1/
  17279. q
  17280. }
  17281. s/.*/./; q'`
  17282. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  17283. # echo "creating $dirpart/$file"
  17284. echo '# dummy' > "$dirpart/$file"
  17285. done
  17286. done
  17287. }
  17288. ;;
  17289. "libtool":C)
  17290. # See if we are running on zsh, and set the options which allow our
  17291. # commands through without removal of \ escapes.
  17292. if test -n "${ZSH_VERSION+set}" ; then
  17293. setopt NO_GLOB_SUBST
  17294. fi
  17295. cfgfile="${ofile}T"
  17296. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  17297. $RM "$cfgfile"
  17298. cat <<_LT_EOF >> "$cfgfile"
  17299. #! $SHELL
  17300. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  17301. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  17302. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17303. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  17304. #
  17305. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  17306. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  17307. # Written by Gordon Matzigkeit, 1996
  17308. #
  17309. # This file is part of GNU Libtool.
  17310. #
  17311. # GNU Libtool is free software; you can redistribute it and/or
  17312. # modify it under the terms of the GNU General Public License as
  17313. # published by the Free Software Foundation; either version 2 of
  17314. # the License, or (at your option) any later version.
  17315. #
  17316. # As a special exception to the GNU General Public License,
  17317. # if you distribute this file as part of a program or library that
  17318. # is built using GNU Libtool, you may include this file under the
  17319. # same distribution terms that you use for the rest of that program.
  17320. #
  17321. # GNU Libtool is distributed in the hope that it will be useful,
  17322. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17323. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17324. # GNU General Public License for more details.
  17325. #
  17326. # You should have received a copy of the GNU General Public License
  17327. # along with GNU Libtool; see the file COPYING. If not, a copy
  17328. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  17329. # obtained by writing to the Free Software Foundation, Inc.,
  17330. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17331. # The names of the tagged configurations supported by this script.
  17332. available_tags="CXX "
  17333. # ### BEGIN LIBTOOL CONFIG
  17334. # Which release of libtool.m4 was used?
  17335. macro_version=$macro_version
  17336. macro_revision=$macro_revision
  17337. # Whether or not to build shared libraries.
  17338. build_libtool_libs=$enable_shared
  17339. # Whether or not to build static libraries.
  17340. build_old_libs=$enable_static
  17341. # What type of objects to build.
  17342. pic_mode=$pic_mode
  17343. # Whether or not to optimize for fast installation.
  17344. fast_install=$enable_fast_install
  17345. # Shell to use when invoking shell scripts.
  17346. SHELL=$lt_SHELL
  17347. # An echo program that protects backslashes.
  17348. ECHO=$lt_ECHO
  17349. # The host system.
  17350. host_alias=$host_alias
  17351. host=$host
  17352. host_os=$host_os
  17353. # The build system.
  17354. build_alias=$build_alias
  17355. build=$build
  17356. build_os=$build_os
  17357. # A sed program that does not truncate output.
  17358. SED=$lt_SED
  17359. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17360. Xsed="\$SED -e 1s/^X//"
  17361. # A grep program that handles long lines.
  17362. GREP=$lt_GREP
  17363. # An ERE matcher.
  17364. EGREP=$lt_EGREP
  17365. # A literal string matcher.
  17366. FGREP=$lt_FGREP
  17367. # A BSD- or MS-compatible name lister.
  17368. NM=$lt_NM
  17369. # Whether we need soft or hard links.
  17370. LN_S=$lt_LN_S
  17371. # What is the maximum length of a command?
  17372. max_cmd_len=$max_cmd_len
  17373. # Object file suffix (normally "o").
  17374. objext=$ac_objext
  17375. # Executable file suffix (normally "").
  17376. exeext=$exeext
  17377. # whether the shell understands "unset".
  17378. lt_unset=$lt_unset
  17379. # turn spaces into newlines.
  17380. SP2NL=$lt_lt_SP2NL
  17381. # turn newlines into spaces.
  17382. NL2SP=$lt_lt_NL2SP
  17383. # An object symbol dumper.
  17384. OBJDUMP=$lt_OBJDUMP
  17385. # Method to check whether dependent libraries are shared objects.
  17386. deplibs_check_method=$lt_deplibs_check_method
  17387. # Command to use when deplibs_check_method == "file_magic".
  17388. file_magic_cmd=$lt_file_magic_cmd
  17389. # The archiver.
  17390. AR=$lt_AR
  17391. AR_FLAGS=$lt_AR_FLAGS
  17392. # A symbol stripping program.
  17393. STRIP=$lt_STRIP
  17394. # Commands used to install an old-style archive.
  17395. RANLIB=$lt_RANLIB
  17396. old_postinstall_cmds=$lt_old_postinstall_cmds
  17397. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17398. # Whether to use a lock for old archive extraction.
  17399. lock_old_archive_extraction=$lock_old_archive_extraction
  17400. # A C compiler.
  17401. LTCC=$lt_CC
  17402. # LTCC compiler flags.
  17403. LTCFLAGS=$lt_CFLAGS
  17404. # Take the output of nm and produce a listing of raw symbols and C names.
  17405. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17406. # Transform the output of nm in a proper C declaration.
  17407. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17408. # Transform the output of nm in a C name address pair.
  17409. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17410. # Transform the output of nm in a C name address pair when lib prefix is needed.
  17411. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  17412. # The name of the directory that contains temporary libtool files.
  17413. objdir=$objdir
  17414. # Used to examine libraries when file_magic_cmd begins with "file".
  17415. MAGIC_CMD=$MAGIC_CMD
  17416. # Must we lock files when doing compilation?
  17417. need_locks=$lt_need_locks
  17418. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  17419. DSYMUTIL=$lt_DSYMUTIL
  17420. # Tool to change global to local symbols on Mac OS X.
  17421. NMEDIT=$lt_NMEDIT
  17422. # Tool to manipulate fat objects and archives on Mac OS X.
  17423. LIPO=$lt_LIPO
  17424. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  17425. OTOOL=$lt_OTOOL
  17426. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  17427. OTOOL64=$lt_OTOOL64
  17428. # Old archive suffix (normally "a").
  17429. libext=$libext
  17430. # Shared library suffix (normally ".so").
  17431. shrext_cmds=$lt_shrext_cmds
  17432. # The commands to extract the exported symbol list from a shared archive.
  17433. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17434. # Variables whose values should be saved in libtool wrapper scripts and
  17435. # restored at link time.
  17436. variables_saved_for_relink=$lt_variables_saved_for_relink
  17437. # Do we need the "lib" prefix for modules?
  17438. need_lib_prefix=$need_lib_prefix
  17439. # Do we need a version for libraries?
  17440. need_version=$need_version
  17441. # Library versioning type.
  17442. version_type=$version_type
  17443. # Shared library runtime path variable.
  17444. runpath_var=$runpath_var
  17445. # Shared library path variable.
  17446. shlibpath_var=$shlibpath_var
  17447. # Is shlibpath searched before the hard-coded library search path?
  17448. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17449. # Format of library name prefix.
  17450. libname_spec=$lt_libname_spec
  17451. # List of archive names. First name is the real one, the rest are links.
  17452. # The last name is the one that the linker finds with -lNAME
  17453. library_names_spec=$lt_library_names_spec
  17454. # The coded name of the library, if different from the real name.
  17455. soname_spec=$lt_soname_spec
  17456. # Permission mode override for installation of shared libraries.
  17457. install_override_mode=$lt_install_override_mode
  17458. # Command to use after installation of a shared archive.
  17459. postinstall_cmds=$lt_postinstall_cmds
  17460. # Command to use after uninstallation of a shared archive.
  17461. postuninstall_cmds=$lt_postuninstall_cmds
  17462. # Commands used to finish a libtool library installation in a directory.
  17463. finish_cmds=$lt_finish_cmds
  17464. # As "finish_cmds", except a single script fragment to be evaled but
  17465. # not shown.
  17466. finish_eval=$lt_finish_eval
  17467. # Whether we should hardcode library paths into libraries.
  17468. hardcode_into_libs=$hardcode_into_libs
  17469. # Compile-time system search path for libraries.
  17470. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17471. # Run-time system search path for libraries.
  17472. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17473. # Whether dlopen is supported.
  17474. dlopen_support=$enable_dlopen
  17475. # Whether dlopen of programs is supported.
  17476. dlopen_self=$enable_dlopen_self
  17477. # Whether dlopen of statically linked programs is supported.
  17478. dlopen_self_static=$enable_dlopen_self_static
  17479. # Commands to strip libraries.
  17480. old_striplib=$lt_old_striplib
  17481. striplib=$lt_striplib
  17482. # The linker used to build libraries.
  17483. LD=$lt_LD
  17484. # How to create reloadable object files.
  17485. reload_flag=$lt_reload_flag
  17486. reload_cmds=$lt_reload_cmds
  17487. # Commands used to build an old-style archive.
  17488. old_archive_cmds=$lt_old_archive_cmds
  17489. # A language specific compiler.
  17490. CC=$lt_compiler
  17491. # Is the compiler the GNU compiler?
  17492. with_gcc=$GCC
  17493. # Compiler flag to turn off builtin functions.
  17494. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  17495. # How to pass a linker flag through the compiler.
  17496. wl=$lt_lt_prog_compiler_wl
  17497. # Additional compiler flags for building library objects.
  17498. pic_flag=$lt_lt_prog_compiler_pic
  17499. # Compiler flag to prevent dynamic linking.
  17500. link_static_flag=$lt_lt_prog_compiler_static
  17501. # Does compiler simultaneously support -c and -o options?
  17502. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  17503. # Whether or not to add -lc for building shared libraries.
  17504. build_libtool_need_lc=$archive_cmds_need_lc
  17505. # Whether or not to disallow shared libs when runtime libs are static.
  17506. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  17507. # Compiler flag to allow reflexive dlopens.
  17508. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17509. # Compiler flag to generate shared objects directly from archives.
  17510. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17511. # Whether the compiler copes with passing no objects directly.
  17512. compiler_needs_object=$lt_compiler_needs_object
  17513. # Create an old-style archive from a shared archive.
  17514. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17515. # Create a temporary old-style archive to link instead of a shared archive.
  17516. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17517. # Commands used to build a shared archive.
  17518. archive_cmds=$lt_archive_cmds
  17519. archive_expsym_cmds=$lt_archive_expsym_cmds
  17520. # Commands used to build a loadable module if different from building
  17521. # a shared archive.
  17522. module_cmds=$lt_module_cmds
  17523. module_expsym_cmds=$lt_module_expsym_cmds
  17524. # Whether we are building with GNU ld or not.
  17525. with_gnu_ld=$lt_with_gnu_ld
  17526. # Flag that allows shared libraries with undefined symbols to be built.
  17527. allow_undefined_flag=$lt_allow_undefined_flag
  17528. # Flag that enforces no undefined symbols.
  17529. no_undefined_flag=$lt_no_undefined_flag
  17530. # Flag to hardcode \$libdir into a binary during linking.
  17531. # This must work even if \$libdir does not exist
  17532. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17533. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17534. # during linking. This must work even if \$libdir does not exist.
  17535. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  17536. # Whether we need a single "-rpath" flag with a separated argument.
  17537. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17538. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17539. # DIR into the resulting binary.
  17540. hardcode_direct=$hardcode_direct
  17541. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17542. # DIR into the resulting binary and the resulting library dependency is
  17543. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17544. # library is relocated.
  17545. hardcode_direct_absolute=$hardcode_direct_absolute
  17546. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17547. # into the resulting binary.
  17548. hardcode_minus_L=$hardcode_minus_L
  17549. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17550. # into the resulting binary.
  17551. hardcode_shlibpath_var=$hardcode_shlibpath_var
  17552. # Set to "yes" if building a shared library automatically hardcodes DIR
  17553. # into the library and all subsequent libraries and executables linked
  17554. # against it.
  17555. hardcode_automatic=$hardcode_automatic
  17556. # Set to yes if linker adds runtime paths of dependent libraries
  17557. # to runtime path list.
  17558. inherit_rpath=$inherit_rpath
  17559. # Whether libtool must link a program against all its dependency libraries.
  17560. link_all_deplibs=$link_all_deplibs
  17561. # Fix the shell variable \$srcfile for the compiler.
  17562. fix_srcfile_path=$lt_fix_srcfile_path
  17563. # Set to "yes" if exported symbols are required.
  17564. always_export_symbols=$always_export_symbols
  17565. # The commands to list exported symbols.
  17566. export_symbols_cmds=$lt_export_symbols_cmds
  17567. # Symbols that should not be listed in the preloaded symbols.
  17568. exclude_expsyms=$lt_exclude_expsyms
  17569. # Symbols that must always be exported.
  17570. include_expsyms=$lt_include_expsyms
  17571. # Commands necessary for linking programs (against libraries) with templates.
  17572. prelink_cmds=$lt_prelink_cmds
  17573. # Specify filename containing input files.
  17574. file_list_spec=$lt_file_list_spec
  17575. # How to hardcode a shared library path into an executable.
  17576. hardcode_action=$hardcode_action
  17577. # The directories searched by this compiler when creating a shared library.
  17578. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  17579. # Dependencies to place before and after the objects being linked to
  17580. # create a shared library.
  17581. predep_objects=$lt_predep_objects
  17582. postdep_objects=$lt_postdep_objects
  17583. predeps=$lt_predeps
  17584. postdeps=$lt_postdeps
  17585. # The library search path used internally by the compiler when linking
  17586. # a shared library.
  17587. compiler_lib_search_path=$lt_compiler_lib_search_path
  17588. # ### END LIBTOOL CONFIG
  17589. _LT_EOF
  17590. case $host_os in
  17591. aix3*)
  17592. cat <<\_LT_EOF >> "$cfgfile"
  17593. # AIX sometimes has problems with the GCC collect2 program. For some
  17594. # reason, if we set the COLLECT_NAMES environment variable, the problems
  17595. # vanish in a puff of smoke.
  17596. if test "X${COLLECT_NAMES+set}" != Xset; then
  17597. COLLECT_NAMES=
  17598. export COLLECT_NAMES
  17599. fi
  17600. _LT_EOF
  17601. ;;
  17602. esac
  17603. ltmain="$ac_aux_dir/ltmain.sh"
  17604. # We use sed instead of cat because bash on DJGPP gets confused if
  17605. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17606. # text mode, it properly converts lines to CR/LF. This bash problem
  17607. # is reportedly fixed, but why not run on old versions too?
  17608. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  17609. || (rm -f "$cfgfile"; exit 1)
  17610. case $xsi_shell in
  17611. yes)
  17612. cat << \_LT_EOF >> "$cfgfile"
  17613. # func_dirname file append nondir_replacement
  17614. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17615. # otherwise set result to NONDIR_REPLACEMENT.
  17616. func_dirname ()
  17617. {
  17618. case ${1} in
  17619. */*) func_dirname_result="${1%/*}${2}" ;;
  17620. * ) func_dirname_result="${3}" ;;
  17621. esac
  17622. }
  17623. # func_basename file
  17624. func_basename ()
  17625. {
  17626. func_basename_result="${1##*/}"
  17627. }
  17628. # func_dirname_and_basename file append nondir_replacement
  17629. # perform func_basename and func_dirname in a single function
  17630. # call:
  17631. # dirname: Compute the dirname of FILE. If nonempty,
  17632. # add APPEND to the result, otherwise set result
  17633. # to NONDIR_REPLACEMENT.
  17634. # value returned in "$func_dirname_result"
  17635. # basename: Compute filename of FILE.
  17636. # value retuned in "$func_basename_result"
  17637. # Implementation must be kept synchronized with func_dirname
  17638. # and func_basename. For efficiency, we do not delegate to
  17639. # those functions but instead duplicate the functionality here.
  17640. func_dirname_and_basename ()
  17641. {
  17642. case ${1} in
  17643. */*) func_dirname_result="${1%/*}${2}" ;;
  17644. * ) func_dirname_result="${3}" ;;
  17645. esac
  17646. func_basename_result="${1##*/}"
  17647. }
  17648. # func_stripname prefix suffix name
  17649. # strip PREFIX and SUFFIX off of NAME.
  17650. # PREFIX and SUFFIX must not contain globbing or regex special
  17651. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17652. # dot (in which case that matches only a dot).
  17653. func_stripname ()
  17654. {
  17655. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  17656. # positional parameters, so assign one to ordinary parameter first.
  17657. func_stripname_result=${3}
  17658. func_stripname_result=${func_stripname_result#"${1}"}
  17659. func_stripname_result=${func_stripname_result%"${2}"}
  17660. }
  17661. # func_opt_split
  17662. func_opt_split ()
  17663. {
  17664. func_opt_split_opt=${1%%=*}
  17665. func_opt_split_arg=${1#*=}
  17666. }
  17667. # func_lo2o object
  17668. func_lo2o ()
  17669. {
  17670. case ${1} in
  17671. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  17672. *) func_lo2o_result=${1} ;;
  17673. esac
  17674. }
  17675. # func_xform libobj-or-source
  17676. func_xform ()
  17677. {
  17678. func_xform_result=${1%.*}.lo
  17679. }
  17680. # func_arith arithmetic-term...
  17681. func_arith ()
  17682. {
  17683. func_arith_result=$(( $* ))
  17684. }
  17685. # func_len string
  17686. # STRING may not start with a hyphen.
  17687. func_len ()
  17688. {
  17689. func_len_result=${#1}
  17690. }
  17691. _LT_EOF
  17692. ;;
  17693. *) # Bourne compatible functions.
  17694. cat << \_LT_EOF >> "$cfgfile"
  17695. # func_dirname file append nondir_replacement
  17696. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  17697. # otherwise set result to NONDIR_REPLACEMENT.
  17698. func_dirname ()
  17699. {
  17700. # Extract subdirectory from the argument.
  17701. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  17702. if test "X$func_dirname_result" = "X${1}"; then
  17703. func_dirname_result="${3}"
  17704. else
  17705. func_dirname_result="$func_dirname_result${2}"
  17706. fi
  17707. }
  17708. # func_basename file
  17709. func_basename ()
  17710. {
  17711. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  17712. }
  17713. # func_stripname prefix suffix name
  17714. # strip PREFIX and SUFFIX off of NAME.
  17715. # PREFIX and SUFFIX must not contain globbing or regex special
  17716. # characters, hashes, percent signs, but SUFFIX may contain a leading
  17717. # dot (in which case that matches only a dot).
  17718. # func_strip_suffix prefix name
  17719. func_stripname ()
  17720. {
  17721. case ${2} in
  17722. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  17723. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  17724. esac
  17725. }
  17726. # sed scripts:
  17727. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  17728. my_sed_long_arg='1s/^-[^=]*=//'
  17729. # func_opt_split
  17730. func_opt_split ()
  17731. {
  17732. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  17733. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  17734. }
  17735. # func_lo2o object
  17736. func_lo2o ()
  17737. {
  17738. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  17739. }
  17740. # func_xform libobj-or-source
  17741. func_xform ()
  17742. {
  17743. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  17744. }
  17745. # func_arith arithmetic-term...
  17746. func_arith ()
  17747. {
  17748. func_arith_result=`expr "$@"`
  17749. }
  17750. # func_len string
  17751. # STRING may not start with a hyphen.
  17752. func_len ()
  17753. {
  17754. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  17755. }
  17756. _LT_EOF
  17757. esac
  17758. case $lt_shell_append in
  17759. yes)
  17760. cat << \_LT_EOF >> "$cfgfile"
  17761. # func_append var value
  17762. # Append VALUE to the end of shell variable VAR.
  17763. func_append ()
  17764. {
  17765. eval "$1+=\$2"
  17766. }
  17767. _LT_EOF
  17768. ;;
  17769. *)
  17770. cat << \_LT_EOF >> "$cfgfile"
  17771. # func_append var value
  17772. # Append VALUE to the end of shell variable VAR.
  17773. func_append ()
  17774. {
  17775. eval "$1=\$$1\$2"
  17776. }
  17777. _LT_EOF
  17778. ;;
  17779. esac
  17780. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  17781. || (rm -f "$cfgfile"; exit 1)
  17782. mv -f "$cfgfile" "$ofile" ||
  17783. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17784. chmod +x "$ofile"
  17785. cat <<_LT_EOF >> "$ofile"
  17786. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17787. # The linker used to build libraries.
  17788. LD=$lt_LD_CXX
  17789. # How to create reloadable object files.
  17790. reload_flag=$lt_reload_flag_CXX
  17791. reload_cmds=$lt_reload_cmds_CXX
  17792. # Commands used to build an old-style archive.
  17793. old_archive_cmds=$lt_old_archive_cmds_CXX
  17794. # A language specific compiler.
  17795. CC=$lt_compiler_CXX
  17796. # Is the compiler the GNU compiler?
  17797. with_gcc=$GCC_CXX
  17798. # Compiler flag to turn off builtin functions.
  17799. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17800. # How to pass a linker flag through the compiler.
  17801. wl=$lt_lt_prog_compiler_wl_CXX
  17802. # Additional compiler flags for building library objects.
  17803. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17804. # Compiler flag to prevent dynamic linking.
  17805. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17806. # Does compiler simultaneously support -c and -o options?
  17807. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17808. # Whether or not to add -lc for building shared libraries.
  17809. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17810. # Whether or not to disallow shared libs when runtime libs are static.
  17811. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17812. # Compiler flag to allow reflexive dlopens.
  17813. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17814. # Compiler flag to generate shared objects directly from archives.
  17815. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17816. # Whether the compiler copes with passing no objects directly.
  17817. compiler_needs_object=$lt_compiler_needs_object_CXX
  17818. # Create an old-style archive from a shared archive.
  17819. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17820. # Create a temporary old-style archive to link instead of a shared archive.
  17821. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17822. # Commands used to build a shared archive.
  17823. archive_cmds=$lt_archive_cmds_CXX
  17824. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17825. # Commands used to build a loadable module if different from building
  17826. # a shared archive.
  17827. module_cmds=$lt_module_cmds_CXX
  17828. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17829. # Whether we are building with GNU ld or not.
  17830. with_gnu_ld=$lt_with_gnu_ld_CXX
  17831. # Flag that allows shared libraries with undefined symbols to be built.
  17832. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17833. # Flag that enforces no undefined symbols.
  17834. no_undefined_flag=$lt_no_undefined_flag_CXX
  17835. # Flag to hardcode \$libdir into a binary during linking.
  17836. # This must work even if \$libdir does not exist
  17837. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17838. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17839. # during linking. This must work even if \$libdir does not exist.
  17840. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17841. # Whether we need a single "-rpath" flag with a separated argument.
  17842. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17843. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17844. # DIR into the resulting binary.
  17845. hardcode_direct=$hardcode_direct_CXX
  17846. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17847. # DIR into the resulting binary and the resulting library dependency is
  17848. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17849. # library is relocated.
  17850. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17851. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17852. # into the resulting binary.
  17853. hardcode_minus_L=$hardcode_minus_L_CXX
  17854. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17855. # into the resulting binary.
  17856. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17857. # Set to "yes" if building a shared library automatically hardcodes DIR
  17858. # into the library and all subsequent libraries and executables linked
  17859. # against it.
  17860. hardcode_automatic=$hardcode_automatic_CXX
  17861. # Set to yes if linker adds runtime paths of dependent libraries
  17862. # to runtime path list.
  17863. inherit_rpath=$inherit_rpath_CXX
  17864. # Whether libtool must link a program against all its dependency libraries.
  17865. link_all_deplibs=$link_all_deplibs_CXX
  17866. # Fix the shell variable \$srcfile for the compiler.
  17867. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  17868. # Set to "yes" if exported symbols are required.
  17869. always_export_symbols=$always_export_symbols_CXX
  17870. # The commands to list exported symbols.
  17871. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17872. # Symbols that should not be listed in the preloaded symbols.
  17873. exclude_expsyms=$lt_exclude_expsyms_CXX
  17874. # Symbols that must always be exported.
  17875. include_expsyms=$lt_include_expsyms_CXX
  17876. # Commands necessary for linking programs (against libraries) with templates.
  17877. prelink_cmds=$lt_prelink_cmds_CXX
  17878. # Specify filename containing input files.
  17879. file_list_spec=$lt_file_list_spec_CXX
  17880. # How to hardcode a shared library path into an executable.
  17881. hardcode_action=$hardcode_action_CXX
  17882. # The directories searched by this compiler when creating a shared library.
  17883. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17884. # Dependencies to place before and after the objects being linked to
  17885. # create a shared library.
  17886. predep_objects=$lt_predep_objects_CXX
  17887. postdep_objects=$lt_postdep_objects_CXX
  17888. predeps=$lt_predeps_CXX
  17889. postdeps=$lt_postdeps_CXX
  17890. # The library search path used internally by the compiler when linking
  17891. # a shared library.
  17892. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17893. # ### END LIBTOOL TAG CONFIG: CXX
  17894. _LT_EOF
  17895. ;;
  17896. "gstdint.h":C)
  17897. if test "$GCC" = yes; then
  17898. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  17899. else
  17900. echo "/* generated for $CC */" > tmp-stdint.h
  17901. fi
  17902. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17903. #ifndef GCC_GENERATED_STDINT_H
  17904. #define GCC_GENERATED_STDINT_H 1
  17905. #include <sys/types.h>
  17906. EOF
  17907. if test "$acx_cv_header_stdint" != stdint.h; then
  17908. echo "#include <stddef.h>" >> tmp-stdint.h
  17909. fi
  17910. if test "$acx_cv_header_stdint" != stddef.h; then
  17911. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  17912. fi
  17913. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17914. /* glibc uses these symbols as guards to prevent redefinitions. */
  17915. #ifdef __int8_t_defined
  17916. #define _INT8_T
  17917. #define _INT16_T
  17918. #define _INT32_T
  17919. #endif
  17920. #ifdef __uint32_t_defined
  17921. #define _UINT32_T
  17922. #endif
  17923. EOF
  17924. # ----------------- done header, emit basic int types -------------
  17925. if test "$acx_cv_header_stdint" = stddef.h; then
  17926. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17927. #ifndef _UINT8_T
  17928. #define _UINT8_T
  17929. #ifndef __uint8_t_defined
  17930. #define __uint8_t_defined
  17931. #ifndef uint8_t
  17932. typedef unsigned $acx_cv_type_int8_t uint8_t;
  17933. #endif
  17934. #endif
  17935. #endif
  17936. #ifndef _UINT16_T
  17937. #define _UINT16_T
  17938. #ifndef __uint16_t_defined
  17939. #define __uint16_t_defined
  17940. #ifndef uint16_t
  17941. typedef unsigned $acx_cv_type_int16_t uint16_t;
  17942. #endif
  17943. #endif
  17944. #endif
  17945. #ifndef _UINT32_T
  17946. #define _UINT32_T
  17947. #ifndef __uint32_t_defined
  17948. #define __uint32_t_defined
  17949. #ifndef uint32_t
  17950. typedef unsigned $acx_cv_type_int32_t uint32_t;
  17951. #endif
  17952. #endif
  17953. #endif
  17954. #ifndef _INT8_T
  17955. #define _INT8_T
  17956. #ifndef __int8_t_defined
  17957. #define __int8_t_defined
  17958. #ifndef int8_t
  17959. typedef $acx_cv_type_int8_t int8_t;
  17960. #endif
  17961. #endif
  17962. #endif
  17963. #ifndef _INT16_T
  17964. #define _INT16_T
  17965. #ifndef __int16_t_defined
  17966. #define __int16_t_defined
  17967. #ifndef int16_t
  17968. typedef $acx_cv_type_int16_t int16_t;
  17969. #endif
  17970. #endif
  17971. #endif
  17972. #ifndef _INT32_T
  17973. #define _INT32_T
  17974. #ifndef __int32_t_defined
  17975. #define __int32_t_defined
  17976. #ifndef int32_t
  17977. typedef $acx_cv_type_int32_t int32_t;
  17978. #endif
  17979. #endif
  17980. #endif
  17981. EOF
  17982. elif test "$ac_cv_type_u_int32_t" = yes; then
  17983. sed 's/^ *//' >> tmp-stdint.h <<EOF
  17984. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  17985. #ifndef _INT8_T
  17986. #define _INT8_T
  17987. #endif
  17988. #ifndef _INT16_T
  17989. #define _INT16_T
  17990. #endif
  17991. #ifndef _INT32_T
  17992. #define _INT32_T
  17993. #endif
  17994. #ifndef _UINT8_T
  17995. #define _UINT8_T
  17996. #ifndef __uint8_t_defined
  17997. #define __uint8_t_defined
  17998. #ifndef uint8_t
  17999. typedef u_int8_t uint8_t;
  18000. #endif
  18001. #endif
  18002. #endif
  18003. #ifndef _UINT16_T
  18004. #define _UINT16_T
  18005. #ifndef __uint16_t_defined
  18006. #define __uint16_t_defined
  18007. #ifndef uint16_t
  18008. typedef u_int16_t uint16_t;
  18009. #endif
  18010. #endif
  18011. #endif
  18012. #ifndef _UINT32_T
  18013. #define _UINT32_T
  18014. #ifndef __uint32_t_defined
  18015. #define __uint32_t_defined
  18016. #ifndef uint32_t
  18017. typedef u_int32_t uint32_t;
  18018. #endif
  18019. #endif
  18020. #endif
  18021. EOF
  18022. else
  18023. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18024. /* Some systems have guard macros to prevent redefinitions, define them. */
  18025. #ifndef _INT8_T
  18026. #define _INT8_T
  18027. #endif
  18028. #ifndef _INT16_T
  18029. #define _INT16_T
  18030. #endif
  18031. #ifndef _INT32_T
  18032. #define _INT32_T
  18033. #endif
  18034. #ifndef _UINT8_T
  18035. #define _UINT8_T
  18036. #endif
  18037. #ifndef _UINT16_T
  18038. #define _UINT16_T
  18039. #endif
  18040. #ifndef _UINT32_T
  18041. #define _UINT32_T
  18042. #endif
  18043. EOF
  18044. fi
  18045. # ------------- done basic int types, emit int64_t types ------------
  18046. if test "$ac_cv_type_uint64_t" = yes; then
  18047. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18048. /* system headers have good uint64_t and int64_t */
  18049. #ifndef _INT64_T
  18050. #define _INT64_T
  18051. #endif
  18052. #ifndef _UINT64_T
  18053. #define _UINT64_T
  18054. #endif
  18055. EOF
  18056. elif test "$ac_cv_type_u_int64_t" = yes; then
  18057. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18058. /* system headers have an u_int64_t (and int64_t) */
  18059. #ifndef _INT64_T
  18060. #define _INT64_T
  18061. #endif
  18062. #ifndef _UINT64_T
  18063. #define _UINT64_T
  18064. #ifndef __uint64_t_defined
  18065. #define __uint64_t_defined
  18066. #ifndef uint64_t
  18067. typedef u_int64_t uint64_t;
  18068. #endif
  18069. #endif
  18070. #endif
  18071. EOF
  18072. elif test -n "$acx_cv_type_int64_t"; then
  18073. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18074. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  18075. #ifndef _INT64_T
  18076. #define _INT64_T
  18077. #ifndef int64_t
  18078. typedef $acx_cv_type_int64_t int64_t;
  18079. #endif
  18080. #endif
  18081. #ifndef _UINT64_T
  18082. #define _UINT64_T
  18083. #ifndef __uint64_t_defined
  18084. #define __uint64_t_defined
  18085. #ifndef uint64_t
  18086. typedef unsigned $acx_cv_type_int64_t uint64_t;
  18087. #endif
  18088. #endif
  18089. #endif
  18090. EOF
  18091. else
  18092. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18093. /* some common heuristics for int64_t, using compiler-specific tests */
  18094. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  18095. #ifndef _INT64_T
  18096. #define _INT64_T
  18097. #ifndef __int64_t_defined
  18098. #ifndef int64_t
  18099. typedef long long int64_t;
  18100. #endif
  18101. #endif
  18102. #endif
  18103. #ifndef _UINT64_T
  18104. #define _UINT64_T
  18105. #ifndef uint64_t
  18106. typedef unsigned long long uint64_t;
  18107. #endif
  18108. #endif
  18109. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  18110. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  18111. does not implement __extension__. But that compiler doesn't define
  18112. __GNUC_MINOR__. */
  18113. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  18114. # define __extension__
  18115. # endif
  18116. # ifndef _INT64_T
  18117. # define _INT64_T
  18118. # ifndef int64_t
  18119. __extension__ typedef long long int64_t;
  18120. # endif
  18121. # endif
  18122. # ifndef _UINT64_T
  18123. # define _UINT64_T
  18124. # ifndef uint64_t
  18125. __extension__ typedef unsigned long long uint64_t;
  18126. # endif
  18127. # endif
  18128. #elif !defined __STRICT_ANSI__
  18129. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  18130. # ifndef _INT64_T
  18131. # define _INT64_T
  18132. # ifndef int64_t
  18133. typedef __int64 int64_t;
  18134. # endif
  18135. # endif
  18136. # ifndef _UINT64_T
  18137. # define _UINT64_T
  18138. # ifndef uint64_t
  18139. typedef unsigned __int64 uint64_t;
  18140. # endif
  18141. # endif
  18142. # endif /* compiler */
  18143. #endif /* ANSI version */
  18144. EOF
  18145. fi
  18146. # ------------- done int64_t types, emit intptr types ------------
  18147. if test "$ac_cv_type_uintptr_t" != yes; then
  18148. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18149. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  18150. #ifndef __uintptr_t_defined
  18151. #ifndef uintptr_t
  18152. typedef u$acx_cv_type_intptr_t uintptr_t;
  18153. #endif
  18154. #endif
  18155. #ifndef __intptr_t_defined
  18156. #ifndef intptr_t
  18157. typedef $acx_cv_type_intptr_t intptr_t;
  18158. #endif
  18159. #endif
  18160. EOF
  18161. fi
  18162. # ------------- done intptr types, emit int_least types ------------
  18163. if test "$ac_cv_type_int_least32_t" != yes; then
  18164. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18165. /* Define int_least types */
  18166. typedef int8_t int_least8_t;
  18167. typedef int16_t int_least16_t;
  18168. typedef int32_t int_least32_t;
  18169. #ifdef _INT64_T
  18170. typedef int64_t int_least64_t;
  18171. #endif
  18172. typedef uint8_t uint_least8_t;
  18173. typedef uint16_t uint_least16_t;
  18174. typedef uint32_t uint_least32_t;
  18175. #ifdef _UINT64_T
  18176. typedef uint64_t uint_least64_t;
  18177. #endif
  18178. EOF
  18179. fi
  18180. # ------------- done intptr types, emit int_fast types ------------
  18181. if test "$ac_cv_type_int_fast32_t" != yes; then
  18182. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18183. /* Define int_fast types. short is often slow */
  18184. typedef int8_t int_fast8_t;
  18185. typedef int int_fast16_t;
  18186. typedef int32_t int_fast32_t;
  18187. #ifdef _INT64_T
  18188. typedef int64_t int_fast64_t;
  18189. #endif
  18190. typedef uint8_t uint_fast8_t;
  18191. typedef unsigned int uint_fast16_t;
  18192. typedef uint32_t uint_fast32_t;
  18193. #ifdef _UINT64_T
  18194. typedef uint64_t uint_fast64_t;
  18195. #endif
  18196. EOF
  18197. fi
  18198. if test "$ac_cv_type_uintmax_t" != yes; then
  18199. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18200. /* Define intmax based on what we found */
  18201. #ifndef intmax_t
  18202. #ifdef _INT64_T
  18203. typedef int64_t intmax_t;
  18204. #else
  18205. typedef long intmax_t;
  18206. #endif
  18207. #endif
  18208. #ifndef uintmax_t
  18209. #ifdef _UINT64_T
  18210. typedef uint64_t uintmax_t;
  18211. #else
  18212. typedef unsigned long uintmax_t;
  18213. #endif
  18214. #endif
  18215. EOF
  18216. fi
  18217. sed 's/^ *//' >> tmp-stdint.h <<EOF
  18218. #endif /* GCC_GENERATED_STDINT_H */
  18219. EOF
  18220. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  18221. rm -f tmp-stdint.h
  18222. else
  18223. mv -f tmp-stdint.h gstdint.h
  18224. fi
  18225. ;;
  18226. esac
  18227. done # for ac_tag
  18228. as_fn_exit 0
  18229. _ACEOF
  18230. ac_clean_files=$ac_clean_files_save
  18231. test $ac_write_fail = 0 ||
  18232. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  18233. # configure is writing to config.log, and then calls config.status.
  18234. # config.status does its own redirection, appending to config.log.
  18235. # Unfortunately, on DOS this fails, as config.log is still kept open
  18236. # by configure, so config.status won't be able to write to it; its
  18237. # output is simply discarded. So we exec the FD to /dev/null,
  18238. # effectively closing config.log, so it can be properly (re)opened and
  18239. # appended to by config.status. When coming back to configure, we
  18240. # need to make the FD available again.
  18241. if test "$no_create" != yes; then
  18242. ac_cs_success=:
  18243. ac_config_status_args=
  18244. test "$silent" = yes &&
  18245. ac_config_status_args="$ac_config_status_args --quiet"
  18246. exec 5>/dev/null
  18247. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18248. exec 5>>config.log
  18249. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18250. # would make configure fail if this is the last instruction.
  18251. $ac_cs_success || as_fn_exit 1
  18252. fi
  18253. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  18254. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  18255. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  18256. fi