configure 526 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GNU Atomic 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 Atomic Library'
  539. PACKAGE_TARNAME='libatomic'
  540. PACKAGE_VERSION='1.0'
  541. PACKAGE_STRING='GNU Atomic Library 1.0'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL='http://www.gnu.org/software/libatomic/'
  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_X86_64_FALSE
  585. ARCH_X86_64_TRUE
  586. ARCH_I386_FALSE
  587. ARCH_I386_TRUE
  588. ARCH_ARM_LINUX_FALSE
  589. ARCH_ARM_LINUX_TRUE
  590. ARCH_AARCH64_LINUX_FALSE
  591. ARCH_AARCH64_LINUX_TRUE
  592. HAVE_IFUNC_FALSE
  593. HAVE_IFUNC_TRUE
  594. tmake_file
  595. SIZES
  596. XLDFLAGS
  597. XCFLAGS
  598. config_path
  599. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
  600. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
  601. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
  602. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
  603. LIBAT_BUILD_VERSIONED_SHLIB_FALSE
  604. LIBAT_BUILD_VERSIONED_SHLIB_TRUE
  605. OPT_LDFLAGS
  606. SECTION_LDFLAGS
  607. enable_aarch64_lse
  608. libtool_VERSION
  609. MAINT
  610. MAINTAINER_MODE_FALSE
  611. MAINTAINER_MODE_TRUE
  612. enable_static
  613. enable_shared
  614. lt_host_flags
  615. CPP
  616. OTOOL64
  617. OTOOL
  618. LIPO
  619. NMEDIT
  620. DSYMUTIL
  621. OBJDUMP
  622. LN_S
  623. ac_ct_DUMPBIN
  624. DUMPBIN
  625. LD
  626. FGREP
  627. EGREP
  628. GREP
  629. SED
  630. LIBTOOL
  631. PERL
  632. RANLIB
  633. NM
  634. AR
  635. am__fastdepCCAS_FALSE
  636. am__fastdepCCAS_TRUE
  637. CCASDEPMODE
  638. CCASFLAGS
  639. CCAS
  640. am__fastdepCC_FALSE
  641. am__fastdepCC_TRUE
  642. CCDEPMODE
  643. am__nodep
  644. AMDEPBACKSLASH
  645. AMDEP_FALSE
  646. AMDEP_TRUE
  647. am__quote
  648. am__include
  649. DEPDIR
  650. OBJEXT
  651. EXEEXT
  652. ac_ct_CC
  653. CPPFLAGS
  654. LDFLAGS
  655. CFLAGS
  656. CC
  657. toolexeclibdir
  658. toolexecdir
  659. multi_basedir
  660. AM_BACKSLASH
  661. AM_DEFAULT_VERBOSITY
  662. AM_DEFAULT_V
  663. AM_V
  664. am__untar
  665. am__tar
  666. AMTAR
  667. am__leading_dot
  668. SET_MAKE
  669. AWK
  670. mkdir_p
  671. MKDIR_P
  672. INSTALL_STRIP_PROGRAM
  673. STRIP
  674. install_sh
  675. MAKEINFO
  676. AUTOHEADER
  677. AUTOMAKE
  678. AUTOCONF
  679. ACLOCAL
  680. VERSION
  681. PACKAGE
  682. CYGPATH_W
  683. am__isrc
  684. INSTALL_DATA
  685. INSTALL_SCRIPT
  686. INSTALL_PROGRAM
  687. target_os
  688. target_vendor
  689. target_cpu
  690. target
  691. host_os
  692. host_vendor
  693. host_cpu
  694. host
  695. build_os
  696. build_vendor
  697. build_cpu
  698. build
  699. GENINSRC_FALSE
  700. GENINSRC_TRUE
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files=''
  740. ac_user_opts='
  741. enable_option_checking
  742. enable_version_specific_runtime_libs
  743. enable_generated_files_in_srcdir
  744. enable_silent_rules
  745. enable_multilib
  746. with_toolexeclibdir
  747. enable_dependency_tracking
  748. enable_shared
  749. enable_static
  750. with_pic
  751. enable_fast_install
  752. with_gnu_ld
  753. enable_libtool_lock
  754. enable_maintainer_mode
  755. enable_symvers
  756. enable_werror
  757. enable_cet
  758. with_gcc_major_version_only
  759. '
  760. ac_precious_vars='build_alias
  761. host_alias
  762. target_alias
  763. CPP
  764. CPPFLAGS'
  765. # Initialize some variables set by options.
  766. ac_init_help=
  767. ac_init_version=false
  768. ac_unrecognized_opts=
  769. ac_unrecognized_sep=
  770. # The variables have the same names as the options, with
  771. # dashes changed to underlines.
  772. cache_file=/dev/null
  773. exec_prefix=NONE
  774. no_create=
  775. no_recursion=
  776. prefix=NONE
  777. program_prefix=NONE
  778. program_suffix=NONE
  779. program_transform_name=s,x,x,
  780. silent=
  781. site=
  782. srcdir=
  783. verbose=
  784. x_includes=NONE
  785. x_libraries=NONE
  786. # Installation directory options.
  787. # These are left unexpanded so users can "make install exec_prefix=/foo"
  788. # and all the variables that are supposed to be based on exec_prefix
  789. # by default will actually change.
  790. # Use braces instead of parens because sh, perl, etc. also accept them.
  791. # (The list follows the same order as the GNU Coding Standards.)
  792. bindir='${exec_prefix}/bin'
  793. sbindir='${exec_prefix}/sbin'
  794. libexecdir='${exec_prefix}/libexec'
  795. datarootdir='${prefix}/share'
  796. datadir='${datarootdir}'
  797. sysconfdir='${prefix}/etc'
  798. sharedstatedir='${prefix}/com'
  799. localstatedir='${prefix}/var'
  800. includedir='${prefix}/include'
  801. oldincludedir='/usr/include'
  802. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  803. infodir='${datarootdir}/info'
  804. htmldir='${docdir}'
  805. dvidir='${docdir}'
  806. pdfdir='${docdir}'
  807. psdir='${docdir}'
  808. libdir='${exec_prefix}/lib'
  809. localedir='${datarootdir}/locale'
  810. mandir='${datarootdir}/man'
  811. ac_prev=
  812. ac_dashdash=
  813. for ac_option
  814. do
  815. # If the previous option needs an argument, assign it.
  816. if test -n "$ac_prev"; then
  817. eval $ac_prev=\$ac_option
  818. ac_prev=
  819. continue
  820. fi
  821. case $ac_option in
  822. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  823. *=) ac_optarg= ;;
  824. *) ac_optarg=yes ;;
  825. esac
  826. # Accept the important Cygnus configure options, so we can diagnose typos.
  827. case $ac_dashdash$ac_option in
  828. --)
  829. ac_dashdash=yes ;;
  830. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  831. ac_prev=bindir ;;
  832. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  833. bindir=$ac_optarg ;;
  834. -build | --build | --buil | --bui | --bu)
  835. ac_prev=build_alias ;;
  836. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  837. build_alias=$ac_optarg ;;
  838. -cache-file | --cache-file | --cache-fil | --cache-fi \
  839. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  840. ac_prev=cache_file ;;
  841. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  842. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  843. cache_file=$ac_optarg ;;
  844. --config-cache | -C)
  845. cache_file=config.cache ;;
  846. -datadir | --datadir | --datadi | --datad)
  847. ac_prev=datadir ;;
  848. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  849. datadir=$ac_optarg ;;
  850. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  851. | --dataroo | --dataro | --datar)
  852. ac_prev=datarootdir ;;
  853. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  854. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  855. datarootdir=$ac_optarg ;;
  856. -disable-* | --disable-*)
  857. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  858. # Reject names that are not valid shell variable names.
  859. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  860. as_fn_error $? "invalid feature name: $ac_useropt"
  861. ac_useropt_orig=$ac_useropt
  862. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  863. case $ac_user_opts in
  864. *"
  865. "enable_$ac_useropt"
  866. "*) ;;
  867. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  868. ac_unrecognized_sep=', ';;
  869. esac
  870. eval enable_$ac_useropt=no ;;
  871. -docdir | --docdir | --docdi | --doc | --do)
  872. ac_prev=docdir ;;
  873. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  874. docdir=$ac_optarg ;;
  875. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  876. ac_prev=dvidir ;;
  877. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  878. dvidir=$ac_optarg ;;
  879. -enable-* | --enable-*)
  880. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  881. # Reject names that are not valid shell variable names.
  882. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  883. as_fn_error $? "invalid feature name: $ac_useropt"
  884. ac_useropt_orig=$ac_useropt
  885. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  886. case $ac_user_opts in
  887. *"
  888. "enable_$ac_useropt"
  889. "*) ;;
  890. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  891. ac_unrecognized_sep=', ';;
  892. esac
  893. eval enable_$ac_useropt=\$ac_optarg ;;
  894. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  895. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  896. | --exec | --exe | --ex)
  897. ac_prev=exec_prefix ;;
  898. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  899. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  900. | --exec=* | --exe=* | --ex=*)
  901. exec_prefix=$ac_optarg ;;
  902. -gas | --gas | --ga | --g)
  903. # Obsolete; use --with-gas.
  904. with_gas=yes ;;
  905. -help | --help | --hel | --he | -h)
  906. ac_init_help=long ;;
  907. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  908. ac_init_help=recursive ;;
  909. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  910. ac_init_help=short ;;
  911. -host | --host | --hos | --ho)
  912. ac_prev=host_alias ;;
  913. -host=* | --host=* | --hos=* | --ho=*)
  914. host_alias=$ac_optarg ;;
  915. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  916. ac_prev=htmldir ;;
  917. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  918. | --ht=*)
  919. htmldir=$ac_optarg ;;
  920. -includedir | --includedir | --includedi | --included | --include \
  921. | --includ | --inclu | --incl | --inc)
  922. ac_prev=includedir ;;
  923. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  924. | --includ=* | --inclu=* | --incl=* | --inc=*)
  925. includedir=$ac_optarg ;;
  926. -infodir | --infodir | --infodi | --infod | --info | --inf)
  927. ac_prev=infodir ;;
  928. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  929. infodir=$ac_optarg ;;
  930. -libdir | --libdir | --libdi | --libd)
  931. ac_prev=libdir ;;
  932. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  933. libdir=$ac_optarg ;;
  934. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  935. | --libexe | --libex | --libe)
  936. ac_prev=libexecdir ;;
  937. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  938. | --libexe=* | --libex=* | --libe=*)
  939. libexecdir=$ac_optarg ;;
  940. -localedir | --localedir | --localedi | --localed | --locale)
  941. ac_prev=localedir ;;
  942. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  943. localedir=$ac_optarg ;;
  944. -localstatedir | --localstatedir | --localstatedi | --localstated \
  945. | --localstate | --localstat | --localsta | --localst | --locals)
  946. ac_prev=localstatedir ;;
  947. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  948. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  949. localstatedir=$ac_optarg ;;
  950. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  951. ac_prev=mandir ;;
  952. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  953. mandir=$ac_optarg ;;
  954. -nfp | --nfp | --nf)
  955. # Obsolete; use --without-fp.
  956. with_fp=no ;;
  957. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  958. | --no-cr | --no-c | -n)
  959. no_create=yes ;;
  960. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  961. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  962. no_recursion=yes ;;
  963. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  964. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  965. | --oldin | --oldi | --old | --ol | --o)
  966. ac_prev=oldincludedir ;;
  967. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  968. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  969. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  970. oldincludedir=$ac_optarg ;;
  971. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  972. ac_prev=prefix ;;
  973. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  974. prefix=$ac_optarg ;;
  975. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  976. | --program-pre | --program-pr | --program-p)
  977. ac_prev=program_prefix ;;
  978. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  979. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  980. program_prefix=$ac_optarg ;;
  981. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  982. | --program-suf | --program-su | --program-s)
  983. ac_prev=program_suffix ;;
  984. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  985. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  986. program_suffix=$ac_optarg ;;
  987. -program-transform-name | --program-transform-name \
  988. | --program-transform-nam | --program-transform-na \
  989. | --program-transform-n | --program-transform- \
  990. | --program-transform | --program-transfor \
  991. | --program-transfo | --program-transf \
  992. | --program-trans | --program-tran \
  993. | --progr-tra | --program-tr | --program-t)
  994. ac_prev=program_transform_name ;;
  995. -program-transform-name=* | --program-transform-name=* \
  996. | --program-transform-nam=* | --program-transform-na=* \
  997. | --program-transform-n=* | --program-transform-=* \
  998. | --program-transform=* | --program-transfor=* \
  999. | --program-transfo=* | --program-transf=* \
  1000. | --program-trans=* | --program-tran=* \
  1001. | --progr-tra=* | --program-tr=* | --program-t=*)
  1002. program_transform_name=$ac_optarg ;;
  1003. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1004. ac_prev=pdfdir ;;
  1005. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1006. pdfdir=$ac_optarg ;;
  1007. -psdir | --psdir | --psdi | --psd | --ps)
  1008. ac_prev=psdir ;;
  1009. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1010. psdir=$ac_optarg ;;
  1011. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1012. | -silent | --silent | --silen | --sile | --sil)
  1013. silent=yes ;;
  1014. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1015. ac_prev=sbindir ;;
  1016. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1017. | --sbi=* | --sb=*)
  1018. sbindir=$ac_optarg ;;
  1019. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1020. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1021. | --sharedst | --shareds | --shared | --share | --shar \
  1022. | --sha | --sh)
  1023. ac_prev=sharedstatedir ;;
  1024. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1025. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1026. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1027. | --sha=* | --sh=*)
  1028. sharedstatedir=$ac_optarg ;;
  1029. -site | --site | --sit)
  1030. ac_prev=site ;;
  1031. -site=* | --site=* | --sit=*)
  1032. site=$ac_optarg ;;
  1033. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1034. ac_prev=srcdir ;;
  1035. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1036. srcdir=$ac_optarg ;;
  1037. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1038. | --syscon | --sysco | --sysc | --sys | --sy)
  1039. ac_prev=sysconfdir ;;
  1040. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1041. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1042. sysconfdir=$ac_optarg ;;
  1043. -target | --target | --targe | --targ | --tar | --ta | --t)
  1044. ac_prev=target_alias ;;
  1045. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1046. target_alias=$ac_optarg ;;
  1047. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1048. verbose=yes ;;
  1049. -version | --version | --versio | --versi | --vers | -V)
  1050. ac_init_version=: ;;
  1051. -with-* | --with-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid package name: $ac_useropt"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "with_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval with_$ac_useropt=\$ac_optarg ;;
  1066. -without-* | --without-*)
  1067. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1068. # Reject names that are not valid shell variable names.
  1069. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1070. as_fn_error $? "invalid package name: $ac_useropt"
  1071. ac_useropt_orig=$ac_useropt
  1072. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1073. case $ac_user_opts in
  1074. *"
  1075. "with_$ac_useropt"
  1076. "*) ;;
  1077. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1078. ac_unrecognized_sep=', ';;
  1079. esac
  1080. eval with_$ac_useropt=no ;;
  1081. --x)
  1082. # Obsolete; use --with-x.
  1083. with_x=yes ;;
  1084. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1085. | --x-incl | --x-inc | --x-in | --x-i)
  1086. ac_prev=x_includes ;;
  1087. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1088. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1089. x_includes=$ac_optarg ;;
  1090. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1091. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1092. ac_prev=x_libraries ;;
  1093. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1094. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1095. x_libraries=$ac_optarg ;;
  1096. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1097. Try \`$0 --help' for more information"
  1098. ;;
  1099. *=*)
  1100. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1101. # Reject names that are not valid shell variable names.
  1102. case $ac_envvar in #(
  1103. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1104. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1105. esac
  1106. eval $ac_envvar=\$ac_optarg
  1107. export $ac_envvar ;;
  1108. *)
  1109. # FIXME: should be removed in autoconf 3.0.
  1110. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1111. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1112. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1113. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1114. ;;
  1115. esac
  1116. done
  1117. if test -n "$ac_prev"; then
  1118. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1119. as_fn_error $? "missing argument to $ac_option"
  1120. fi
  1121. if test -n "$ac_unrecognized_opts"; then
  1122. case $enable_option_checking in
  1123. no) ;;
  1124. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1125. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1126. esac
  1127. fi
  1128. # Check all directory arguments for consistency.
  1129. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1130. datadir sysconfdir sharedstatedir localstatedir includedir \
  1131. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1132. libdir localedir mandir
  1133. do
  1134. eval ac_val=\$$ac_var
  1135. # Remove trailing slashes.
  1136. case $ac_val in
  1137. */ )
  1138. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1139. eval $ac_var=\$ac_val;;
  1140. esac
  1141. # Be sure to have absolute directory names.
  1142. case $ac_val in
  1143. [\\/$]* | ?:[\\/]* ) continue;;
  1144. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1145. esac
  1146. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1147. done
  1148. # There might be people who depend on the old broken behavior: `$host'
  1149. # used to hold the argument of --host etc.
  1150. # FIXME: To remove some day.
  1151. build=$build_alias
  1152. host=$host_alias
  1153. target=$target_alias
  1154. # FIXME: To remove some day.
  1155. if test "x$host_alias" != x; then
  1156. if test "x$build_alias" = x; then
  1157. cross_compiling=maybe
  1158. elif test "x$build_alias" != "x$host_alias"; then
  1159. cross_compiling=yes
  1160. fi
  1161. fi
  1162. ac_tool_prefix=
  1163. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1164. test "$silent" = yes && exec 6>/dev/null
  1165. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1166. ac_ls_di=`ls -di .` &&
  1167. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1168. as_fn_error $? "working directory cannot be determined"
  1169. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1170. as_fn_error $? "pwd does not report name of working directory"
  1171. # Find the source files, if location was not specified.
  1172. if test -z "$srcdir"; then
  1173. ac_srcdir_defaulted=yes
  1174. # Try the directory containing this script, then the parent directory.
  1175. ac_confdir=`$as_dirname -- "$as_myself" ||
  1176. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1177. X"$as_myself" : 'X\(//\)[^/]' \| \
  1178. X"$as_myself" : 'X\(//\)$' \| \
  1179. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1180. $as_echo X"$as_myself" |
  1181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1182. s//\1/
  1183. q
  1184. }
  1185. /^X\(\/\/\)[^/].*/{
  1186. s//\1/
  1187. q
  1188. }
  1189. /^X\(\/\/\)$/{
  1190. s//\1/
  1191. q
  1192. }
  1193. /^X\(\/\).*/{
  1194. s//\1/
  1195. q
  1196. }
  1197. s/.*/./; q'`
  1198. srcdir=$ac_confdir
  1199. if test ! -r "$srcdir/$ac_unique_file"; then
  1200. srcdir=..
  1201. fi
  1202. else
  1203. ac_srcdir_defaulted=no
  1204. fi
  1205. if test ! -r "$srcdir/$ac_unique_file"; then
  1206. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1207. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1208. fi
  1209. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1210. ac_abs_confdir=`(
  1211. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1212. pwd)`
  1213. # When building in place, set srcdir=.
  1214. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1215. srcdir=.
  1216. fi
  1217. # Remove unnecessary trailing slashes from srcdir.
  1218. # Double slashes in file names in object file debugging info
  1219. # mess up M-x gdb in Emacs.
  1220. case $srcdir in
  1221. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1222. esac
  1223. for ac_var in $ac_precious_vars; do
  1224. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1225. eval ac_env_${ac_var}_value=\$${ac_var}
  1226. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1227. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1228. done
  1229. #
  1230. # Report the --help message.
  1231. #
  1232. if test "$ac_init_help" = "long"; then
  1233. # Omit some internal or obsolete options to make the list less imposing.
  1234. # This message is too long to be a string in the A/UX 3.1 sh.
  1235. cat <<_ACEOF
  1236. \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
  1237. Usage: $0 [OPTION]... [VAR=VALUE]...
  1238. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1239. VAR=VALUE. See below for descriptions of some of the useful variables.
  1240. Defaults for the options are specified in brackets.
  1241. Configuration:
  1242. -h, --help display this help and exit
  1243. --help=short display options specific to this package
  1244. --help=recursive display the short help of all the included packages
  1245. -V, --version display version information and exit
  1246. -q, --quiet, --silent do not print \`checking ...' messages
  1247. --cache-file=FILE cache test results in FILE [disabled]
  1248. -C, --config-cache alias for \`--cache-file=config.cache'
  1249. -n, --no-create do not create output files
  1250. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1251. Installation directories:
  1252. --prefix=PREFIX install architecture-independent files in PREFIX
  1253. [$ac_default_prefix]
  1254. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1255. [PREFIX]
  1256. By default, \`make install' will install all the files in
  1257. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1258. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1259. for instance \`--prefix=\$HOME'.
  1260. For better control, use the options below.
  1261. Fine tuning of the installation directories:
  1262. --bindir=DIR user executables [EPREFIX/bin]
  1263. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1264. --libexecdir=DIR program executables [EPREFIX/libexec]
  1265. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1266. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1267. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1268. --libdir=DIR object code libraries [EPREFIX/lib]
  1269. --includedir=DIR C header files [PREFIX/include]
  1270. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1271. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1272. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1273. --infodir=DIR info documentation [DATAROOTDIR/info]
  1274. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1275. --mandir=DIR man documentation [DATAROOTDIR/man]
  1276. --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
  1277. --htmldir=DIR html documentation [DOCDIR]
  1278. --dvidir=DIR dvi documentation [DOCDIR]
  1279. --pdfdir=DIR pdf documentation [DOCDIR]
  1280. --psdir=DIR ps documentation [DOCDIR]
  1281. _ACEOF
  1282. cat <<\_ACEOF
  1283. Program names:
  1284. --program-prefix=PREFIX prepend PREFIX to installed program names
  1285. --program-suffix=SUFFIX append SUFFIX to installed program names
  1286. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1287. System types:
  1288. --build=BUILD configure for building on BUILD [guessed]
  1289. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1290. --target=TARGET configure for building compilers for TARGET [HOST]
  1291. _ACEOF
  1292. fi
  1293. if test -n "$ac_init_help"; then
  1294. case $ac_init_help in
  1295. short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
  1296. esac
  1297. cat <<\_ACEOF
  1298. Optional Features:
  1299. --disable-option-checking ignore unrecognized --enable/--with options
  1300. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1301. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1302. --enable-version-specific-runtime-libs
  1303. Specify that runtime libraries should be installed
  1304. in a compiler-specific directory [default=no]
  1305. --enable-generated-files-in-srcdir
  1306. put copies of generated files in source dir intended
  1307. for creating source tarballs for users without
  1308. texinfo bison or flex. [default=no]
  1309. --enable-silent-rules less verbose build output (undo: "make V=1")
  1310. --disable-silent-rules verbose build output (undo: "make V=0")
  1311. --enable-multilib build many library versions (default)
  1312. --enable-dependency-tracking
  1313. do not reject slow dependency extractors
  1314. --disable-dependency-tracking
  1315. speeds up one-time build
  1316. --enable-shared[=PKGS] build shared libraries [default=yes]
  1317. --enable-static[=PKGS] build static libraries [default=yes]
  1318. --enable-fast-install[=PKGS]
  1319. optimize for fast installation [default=yes]
  1320. --disable-libtool-lock avoid locking (might break parallel builds)
  1321. --enable-maintainer-mode
  1322. enable make rules and dependencies not useful (and
  1323. sometimes confusing) to the casual installer
  1324. --enable-symvers=STYLE enables symbol versioning of the shared library
  1325. [default=yes]
  1326. --disable-werror disable building with -Werror
  1327. --enable-cet enable Intel CET in target libraries [default=auto]
  1328. Optional Packages:
  1329. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1330. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1331. --with-toolexeclibdir=DIR
  1332. install libraries built with a cross compiler within
  1333. DIR
  1334. --with-pic try to use only PIC/non-PIC objects [default=use
  1335. both]
  1336. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1337. --with-gcc-major-version-only
  1338. use only GCC major number in filesystem paths
  1339. Some influential environment variables:
  1340. CC C compiler command
  1341. CFLAGS C compiler flags
  1342. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1343. nonstandard directory <lib dir>
  1344. LIBS libraries to pass to the linker, e.g. -l<library>
  1345. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1346. you have headers in a nonstandard directory <include dir>
  1347. CCAS assembler compiler command (defaults to CC)
  1348. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1349. CPP C preprocessor
  1350. Use these variables to override the choices made by `configure' or to help
  1351. it to find libraries and programs with nonstandard names/locations.
  1352. Report bugs to the package provider.
  1353. GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
  1354. General help using GNU software: <http://www.gnu.org/gethelp/>.
  1355. _ACEOF
  1356. ac_status=$?
  1357. fi
  1358. if test "$ac_init_help" = "recursive"; then
  1359. # If there are subdirs, report their specific --help.
  1360. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1361. test -d "$ac_dir" ||
  1362. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1363. continue
  1364. ac_builddir=.
  1365. case "$ac_dir" in
  1366. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1367. *)
  1368. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1369. # A ".." for each directory in $ac_dir_suffix.
  1370. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1371. case $ac_top_builddir_sub in
  1372. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1373. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1374. esac ;;
  1375. esac
  1376. ac_abs_top_builddir=$ac_pwd
  1377. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1378. # for backward compatibility:
  1379. ac_top_builddir=$ac_top_build_prefix
  1380. case $srcdir in
  1381. .) # We are building in place.
  1382. ac_srcdir=.
  1383. ac_top_srcdir=$ac_top_builddir_sub
  1384. ac_abs_top_srcdir=$ac_pwd ;;
  1385. [\\/]* | ?:[\\/]* ) # Absolute name.
  1386. ac_srcdir=$srcdir$ac_dir_suffix;
  1387. ac_top_srcdir=$srcdir
  1388. ac_abs_top_srcdir=$srcdir ;;
  1389. *) # Relative name.
  1390. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1391. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1392. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1393. esac
  1394. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1395. cd "$ac_dir" || { ac_status=$?; continue; }
  1396. # Check for guested configure.
  1397. if test -f "$ac_srcdir/configure.gnu"; then
  1398. echo &&
  1399. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1400. elif test -f "$ac_srcdir/configure"; then
  1401. echo &&
  1402. $SHELL "$ac_srcdir/configure" --help=recursive
  1403. else
  1404. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1405. fi || ac_status=$?
  1406. cd "$ac_pwd" || { ac_status=$?; break; }
  1407. done
  1408. fi
  1409. test -n "$ac_init_help" && exit $ac_status
  1410. if $ac_init_version; then
  1411. cat <<\_ACEOF
  1412. GNU Atomic Library configure 1.0
  1413. generated by GNU Autoconf 2.69
  1414. Copyright (C) 2012 Free Software Foundation, Inc.
  1415. This configure script is free software; the Free Software Foundation
  1416. gives unlimited permission to copy, distribute and modify it.
  1417. _ACEOF
  1418. exit
  1419. fi
  1420. ## ------------------------ ##
  1421. ## Autoconf initialization. ##
  1422. ## ------------------------ ##
  1423. # ac_fn_c_try_compile LINENO
  1424. # --------------------------
  1425. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1426. ac_fn_c_try_compile ()
  1427. {
  1428. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1429. rm -f conftest.$ac_objext
  1430. if { { ac_try="$ac_compile"
  1431. case "(($ac_try" in
  1432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1433. *) ac_try_echo=$ac_try;;
  1434. esac
  1435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1436. $as_echo "$ac_try_echo"; } >&5
  1437. (eval "$ac_compile") 2>conftest.err
  1438. ac_status=$?
  1439. if test -s conftest.err; then
  1440. grep -v '^ *+' conftest.err >conftest.er1
  1441. cat conftest.er1 >&5
  1442. mv -f conftest.er1 conftest.err
  1443. fi
  1444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1445. test $ac_status = 0; } && {
  1446. test -z "$ac_c_werror_flag" ||
  1447. test ! -s conftest.err
  1448. } && test -s conftest.$ac_objext; then :
  1449. ac_retval=0
  1450. else
  1451. $as_echo "$as_me: failed program was:" >&5
  1452. sed 's/^/| /' conftest.$ac_ext >&5
  1453. ac_retval=1
  1454. fi
  1455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1456. as_fn_set_status $ac_retval
  1457. } # ac_fn_c_try_compile
  1458. # ac_fn_c_try_link LINENO
  1459. # -----------------------
  1460. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1461. ac_fn_c_try_link ()
  1462. {
  1463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1464. rm -f conftest.$ac_objext conftest$ac_exeext
  1465. if { { ac_try="$ac_link"
  1466. case "(($ac_try" in
  1467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1468. *) ac_try_echo=$ac_try;;
  1469. esac
  1470. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1471. $as_echo "$ac_try_echo"; } >&5
  1472. (eval "$ac_link") 2>conftest.err
  1473. ac_status=$?
  1474. if test -s conftest.err; then
  1475. grep -v '^ *+' conftest.err >conftest.er1
  1476. cat conftest.er1 >&5
  1477. mv -f conftest.er1 conftest.err
  1478. fi
  1479. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1480. test $ac_status = 0; } && {
  1481. test -z "$ac_c_werror_flag" ||
  1482. test ! -s conftest.err
  1483. } && test -s conftest$ac_exeext && {
  1484. test "$cross_compiling" = yes ||
  1485. test -x conftest$ac_exeext
  1486. }; then :
  1487. ac_retval=0
  1488. else
  1489. $as_echo "$as_me: failed program was:" >&5
  1490. sed 's/^/| /' conftest.$ac_ext >&5
  1491. ac_retval=1
  1492. fi
  1493. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1494. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1495. # interfere with the next link command; also delete a directory that is
  1496. # left behind by Apple's compiler. We do this before executing the actions.
  1497. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. as_fn_set_status $ac_retval
  1500. } # ac_fn_c_try_link
  1501. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1502. # -------------------------------------------------------
  1503. # Tests whether HEADER exists and can be compiled using the include files in
  1504. # INCLUDES, setting the cache variable VAR accordingly.
  1505. ac_fn_c_check_header_compile ()
  1506. {
  1507. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1509. $as_echo_n "checking for $2... " >&6; }
  1510. if eval \${$3+:} false; then :
  1511. $as_echo_n "(cached) " >&6
  1512. else
  1513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1514. /* end confdefs.h. */
  1515. $4
  1516. #include <$2>
  1517. _ACEOF
  1518. if ac_fn_c_try_compile "$LINENO"; then :
  1519. eval "$3=yes"
  1520. else
  1521. eval "$3=no"
  1522. fi
  1523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1524. fi
  1525. eval ac_res=\$$3
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1527. $as_echo "$ac_res" >&6; }
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. } # ac_fn_c_check_header_compile
  1530. # ac_fn_c_try_cpp LINENO
  1531. # ----------------------
  1532. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1533. ac_fn_c_try_cpp ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1537. case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1544. ac_status=$?
  1545. if test -s conftest.err; then
  1546. grep -v '^ *+' conftest.err >conftest.er1
  1547. cat conftest.er1 >&5
  1548. mv -f conftest.er1 conftest.err
  1549. fi
  1550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1551. test $ac_status = 0; } > conftest.i && {
  1552. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1553. test ! -s conftest.err
  1554. }; then :
  1555. ac_retval=0
  1556. else
  1557. $as_echo "$as_me: failed program was:" >&5
  1558. sed 's/^/| /' conftest.$ac_ext >&5
  1559. ac_retval=1
  1560. fi
  1561. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1562. as_fn_set_status $ac_retval
  1563. } # ac_fn_c_try_cpp
  1564. # ac_fn_c_try_run LINENO
  1565. # ----------------------
  1566. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1567. # that executables *can* be run.
  1568. ac_fn_c_try_run ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. if { { ac_try="$ac_link"
  1572. case "(($ac_try" in
  1573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1574. *) ac_try_echo=$ac_try;;
  1575. esac
  1576. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1577. $as_echo "$ac_try_echo"; } >&5
  1578. (eval "$ac_link") 2>&5
  1579. ac_status=$?
  1580. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1581. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1582. { { case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_try") 2>&5
  1589. ac_status=$?
  1590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1591. test $ac_status = 0; }; }; then :
  1592. ac_retval=0
  1593. else
  1594. $as_echo "$as_me: program exited with status $ac_status" >&5
  1595. $as_echo "$as_me: failed program was:" >&5
  1596. sed 's/^/| /' conftest.$ac_ext >&5
  1597. ac_retval=$ac_status
  1598. fi
  1599. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. as_fn_set_status $ac_retval
  1602. } # ac_fn_c_try_run
  1603. # ac_fn_c_check_func LINENO FUNC VAR
  1604. # ----------------------------------
  1605. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1606. ac_fn_c_check_func ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1610. $as_echo_n "checking for $2... " >&6; }
  1611. if eval \${$3+:} false; then :
  1612. $as_echo_n "(cached) " >&6
  1613. else
  1614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1615. /* end confdefs.h. */
  1616. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1617. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1618. #define $2 innocuous_$2
  1619. /* System header to define __stub macros and hopefully few prototypes,
  1620. which can conflict with char $2 (); below.
  1621. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1622. <limits.h> exists even on freestanding compilers. */
  1623. #ifdef __STDC__
  1624. # include <limits.h>
  1625. #else
  1626. # include <assert.h>
  1627. #endif
  1628. #undef $2
  1629. /* Override any GCC internal prototype to avoid an error.
  1630. Use char because int might match the return type of a GCC
  1631. builtin and then its argument prototype would still apply. */
  1632. #ifdef __cplusplus
  1633. extern "C"
  1634. #endif
  1635. char $2 ();
  1636. /* The GNU C library defines this for functions which it implements
  1637. to always fail with ENOSYS. Some functions are actually named
  1638. something starting with __ and the normal name is an alias. */
  1639. #if defined __stub_$2 || defined __stub___$2
  1640. choke me
  1641. #endif
  1642. int
  1643. main ()
  1644. {
  1645. return $2 ();
  1646. ;
  1647. return 0;
  1648. }
  1649. _ACEOF
  1650. if ac_fn_c_try_link "$LINENO"; then :
  1651. eval "$3=yes"
  1652. else
  1653. eval "$3=no"
  1654. fi
  1655. rm -f core conftest.err conftest.$ac_objext \
  1656. conftest$ac_exeext conftest.$ac_ext
  1657. fi
  1658. eval ac_res=\$$3
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1660. $as_echo "$ac_res" >&6; }
  1661. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1662. } # ac_fn_c_check_func
  1663. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1664. # -------------------------------------------
  1665. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1666. # variable VAR accordingly.
  1667. ac_fn_c_check_type ()
  1668. {
  1669. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1671. $as_echo_n "checking for $2... " >&6; }
  1672. if eval \${$3+:} false; then :
  1673. $as_echo_n "(cached) " >&6
  1674. else
  1675. eval "$3=no"
  1676. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1677. /* end confdefs.h. */
  1678. $4
  1679. int
  1680. main ()
  1681. {
  1682. if (sizeof ($2))
  1683. return 0;
  1684. ;
  1685. return 0;
  1686. }
  1687. _ACEOF
  1688. if ac_fn_c_try_compile "$LINENO"; then :
  1689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1690. /* end confdefs.h. */
  1691. $4
  1692. int
  1693. main ()
  1694. {
  1695. if (sizeof (($2)))
  1696. return 0;
  1697. ;
  1698. return 0;
  1699. }
  1700. _ACEOF
  1701. if ac_fn_c_try_compile "$LINENO"; then :
  1702. else
  1703. eval "$3=yes"
  1704. fi
  1705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1706. fi
  1707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1708. fi
  1709. eval ac_res=\$$3
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1711. $as_echo "$ac_res" >&6; }
  1712. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1713. } # ac_fn_c_check_type
  1714. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1715. # --------------------------------------------
  1716. # Tries to find the compile-time value of EXPR in a program that includes
  1717. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1718. # computed
  1719. ac_fn_c_compute_int ()
  1720. {
  1721. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1722. if test "$cross_compiling" = yes; then
  1723. # Depending upon the size, compute the lo and hi bounds.
  1724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1725. /* end confdefs.h. */
  1726. $4
  1727. int
  1728. main ()
  1729. {
  1730. static int test_array [1 - 2 * !(($2) >= 0)];
  1731. test_array [0] = 0;
  1732. return test_array [0];
  1733. ;
  1734. return 0;
  1735. }
  1736. _ACEOF
  1737. if ac_fn_c_try_compile "$LINENO"; then :
  1738. ac_lo=0 ac_mid=0
  1739. while :; do
  1740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1741. /* end confdefs.h. */
  1742. $4
  1743. int
  1744. main ()
  1745. {
  1746. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1747. test_array [0] = 0;
  1748. return test_array [0];
  1749. ;
  1750. return 0;
  1751. }
  1752. _ACEOF
  1753. if ac_fn_c_try_compile "$LINENO"; then :
  1754. ac_hi=$ac_mid; break
  1755. else
  1756. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1757. if test $ac_lo -le $ac_mid; then
  1758. ac_lo= ac_hi=
  1759. break
  1760. fi
  1761. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1762. fi
  1763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. done
  1765. else
  1766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1767. /* end confdefs.h. */
  1768. $4
  1769. int
  1770. main ()
  1771. {
  1772. static int test_array [1 - 2 * !(($2) < 0)];
  1773. test_array [0] = 0;
  1774. return test_array [0];
  1775. ;
  1776. return 0;
  1777. }
  1778. _ACEOF
  1779. if ac_fn_c_try_compile "$LINENO"; then :
  1780. ac_hi=-1 ac_mid=-1
  1781. while :; do
  1782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1783. /* end confdefs.h. */
  1784. $4
  1785. int
  1786. main ()
  1787. {
  1788. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1789. test_array [0] = 0;
  1790. return test_array [0];
  1791. ;
  1792. return 0;
  1793. }
  1794. _ACEOF
  1795. if ac_fn_c_try_compile "$LINENO"; then :
  1796. ac_lo=$ac_mid; break
  1797. else
  1798. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1799. if test $ac_mid -le $ac_hi; then
  1800. ac_lo= ac_hi=
  1801. break
  1802. fi
  1803. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1804. fi
  1805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1806. done
  1807. else
  1808. ac_lo= ac_hi=
  1809. fi
  1810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1811. fi
  1812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1813. # Binary search between lo and hi bounds.
  1814. while test "x$ac_lo" != "x$ac_hi"; do
  1815. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1817. /* end confdefs.h. */
  1818. $4
  1819. int
  1820. main ()
  1821. {
  1822. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1823. test_array [0] = 0;
  1824. return test_array [0];
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. if ac_fn_c_try_compile "$LINENO"; then :
  1830. ac_hi=$ac_mid
  1831. else
  1832. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1833. fi
  1834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1835. done
  1836. case $ac_lo in #((
  1837. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1838. '') ac_retval=1 ;;
  1839. esac
  1840. else
  1841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1842. /* end confdefs.h. */
  1843. $4
  1844. static long int longval () { return $2; }
  1845. static unsigned long int ulongval () { return $2; }
  1846. #include <stdio.h>
  1847. #include <stdlib.h>
  1848. int
  1849. main ()
  1850. {
  1851. FILE *f = fopen ("conftest.val", "w");
  1852. if (! f)
  1853. return 1;
  1854. if (($2) < 0)
  1855. {
  1856. long int i = longval ();
  1857. if (i != ($2))
  1858. return 1;
  1859. fprintf (f, "%ld", i);
  1860. }
  1861. else
  1862. {
  1863. unsigned long int i = ulongval ();
  1864. if (i != ($2))
  1865. return 1;
  1866. fprintf (f, "%lu", i);
  1867. }
  1868. /* Do not output a trailing newline, as this causes \r\n confusion
  1869. on some platforms. */
  1870. return ferror (f) || fclose (f) != 0;
  1871. ;
  1872. return 0;
  1873. }
  1874. _ACEOF
  1875. if ac_fn_c_try_run "$LINENO"; then :
  1876. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1877. else
  1878. ac_retval=1
  1879. fi
  1880. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1881. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1882. rm -f conftest.val
  1883. fi
  1884. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1885. as_fn_set_status $ac_retval
  1886. } # ac_fn_c_compute_int
  1887. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1888. # -------------------------------------------------------
  1889. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1890. # the include files in INCLUDES and setting the cache variable VAR
  1891. # accordingly.
  1892. ac_fn_c_check_header_mongrel ()
  1893. {
  1894. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1895. if eval \${$3+:} false; then :
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1897. $as_echo_n "checking for $2... " >&6; }
  1898. if eval \${$3+:} false; then :
  1899. $as_echo_n "(cached) " >&6
  1900. fi
  1901. eval ac_res=\$$3
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1903. $as_echo "$ac_res" >&6; }
  1904. else
  1905. # Is the header compilable?
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1907. $as_echo_n "checking $2 usability... " >&6; }
  1908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1909. /* end confdefs.h. */
  1910. $4
  1911. #include <$2>
  1912. _ACEOF
  1913. if ac_fn_c_try_compile "$LINENO"; then :
  1914. ac_header_compiler=yes
  1915. else
  1916. ac_header_compiler=no
  1917. fi
  1918. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1920. $as_echo "$ac_header_compiler" >&6; }
  1921. # Is the header present?
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1923. $as_echo_n "checking $2 presence... " >&6; }
  1924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1925. /* end confdefs.h. */
  1926. #include <$2>
  1927. _ACEOF
  1928. if ac_fn_c_try_cpp "$LINENO"; then :
  1929. ac_header_preproc=yes
  1930. else
  1931. ac_header_preproc=no
  1932. fi
  1933. rm -f conftest.err conftest.i conftest.$ac_ext
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1935. $as_echo "$ac_header_preproc" >&6; }
  1936. # So? What about this header?
  1937. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1938. yes:no: )
  1939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1940. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1942. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1943. ;;
  1944. no:yes:* )
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1946. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1948. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1950. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1952. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1954. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1955. ;;
  1956. esac
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1958. $as_echo_n "checking for $2... " >&6; }
  1959. if eval \${$3+:} false; then :
  1960. $as_echo_n "(cached) " >&6
  1961. else
  1962. eval "$3=\$ac_header_compiler"
  1963. fi
  1964. eval ac_res=\$$3
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1966. $as_echo "$ac_res" >&6; }
  1967. fi
  1968. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1969. } # ac_fn_c_check_header_mongrel
  1970. cat >config.log <<_ACEOF
  1971. This file contains any messages produced by compilers while
  1972. running configure, to aid debugging if configure makes a mistake.
  1973. It was created by GNU Atomic Library $as_me 1.0, which was
  1974. generated by GNU Autoconf 2.69. Invocation command line was
  1975. $ $0 $@
  1976. _ACEOF
  1977. exec 5>>config.log
  1978. {
  1979. cat <<_ASUNAME
  1980. ## --------- ##
  1981. ## Platform. ##
  1982. ## --------- ##
  1983. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1984. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1985. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1986. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1987. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1988. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1989. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1990. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1991. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1992. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1993. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1994. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1995. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1996. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1997. _ASUNAME
  1998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1999. for as_dir in $PATH
  2000. do
  2001. IFS=$as_save_IFS
  2002. test -z "$as_dir" && as_dir=.
  2003. $as_echo "PATH: $as_dir"
  2004. done
  2005. IFS=$as_save_IFS
  2006. } >&5
  2007. cat >&5 <<_ACEOF
  2008. ## ----------- ##
  2009. ## Core tests. ##
  2010. ## ----------- ##
  2011. _ACEOF
  2012. # Keep a trace of the command line.
  2013. # Strip out --no-create and --no-recursion so they do not pile up.
  2014. # Strip out --silent because we don't want to record it for future runs.
  2015. # Also quote any args containing shell meta-characters.
  2016. # Make two passes to allow for proper duplicate-argument suppression.
  2017. ac_configure_args=
  2018. ac_configure_args0=
  2019. ac_configure_args1=
  2020. ac_must_keep_next=false
  2021. for ac_pass in 1 2
  2022. do
  2023. for ac_arg
  2024. do
  2025. case $ac_arg in
  2026. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2027. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2028. | -silent | --silent | --silen | --sile | --sil)
  2029. continue ;;
  2030. *\'*)
  2031. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2032. esac
  2033. case $ac_pass in
  2034. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2035. 2)
  2036. as_fn_append ac_configure_args1 " '$ac_arg'"
  2037. if test $ac_must_keep_next = true; then
  2038. ac_must_keep_next=false # Got value, back to normal.
  2039. else
  2040. case $ac_arg in
  2041. *=* | --config-cache | -C | -disable-* | --disable-* \
  2042. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2043. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2044. | -with-* | --with-* | -without-* | --without-* | --x)
  2045. case "$ac_configure_args0 " in
  2046. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2047. esac
  2048. ;;
  2049. -* ) ac_must_keep_next=true ;;
  2050. esac
  2051. fi
  2052. as_fn_append ac_configure_args " '$ac_arg'"
  2053. ;;
  2054. esac
  2055. done
  2056. done
  2057. { ac_configure_args0=; unset ac_configure_args0;}
  2058. { ac_configure_args1=; unset ac_configure_args1;}
  2059. # When interrupted or exit'd, cleanup temporary files, and complete
  2060. # config.log. We remove comments because anyway the quotes in there
  2061. # would cause problems or look ugly.
  2062. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2063. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2064. trap 'exit_status=$?
  2065. # Save into config.log some information that might help in debugging.
  2066. {
  2067. echo
  2068. $as_echo "## ---------------- ##
  2069. ## Cache variables. ##
  2070. ## ---------------- ##"
  2071. echo
  2072. # The following way of writing the cache mishandles newlines in values,
  2073. (
  2074. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2075. eval ac_val=\$$ac_var
  2076. case $ac_val in #(
  2077. *${as_nl}*)
  2078. case $ac_var in #(
  2079. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2080. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2081. esac
  2082. case $ac_var in #(
  2083. _ | IFS | as_nl) ;; #(
  2084. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2085. *) { eval $ac_var=; unset $ac_var;} ;;
  2086. esac ;;
  2087. esac
  2088. done
  2089. (set) 2>&1 |
  2090. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2091. *${as_nl}ac_space=\ *)
  2092. sed -n \
  2093. "s/'\''/'\''\\\\'\'''\''/g;
  2094. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2095. ;; #(
  2096. *)
  2097. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2098. ;;
  2099. esac |
  2100. sort
  2101. )
  2102. echo
  2103. $as_echo "## ----------------- ##
  2104. ## Output variables. ##
  2105. ## ----------------- ##"
  2106. echo
  2107. for ac_var in $ac_subst_vars
  2108. do
  2109. eval ac_val=\$$ac_var
  2110. case $ac_val in
  2111. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2112. esac
  2113. $as_echo "$ac_var='\''$ac_val'\''"
  2114. done | sort
  2115. echo
  2116. if test -n "$ac_subst_files"; then
  2117. $as_echo "## ------------------- ##
  2118. ## File substitutions. ##
  2119. ## ------------------- ##"
  2120. echo
  2121. for ac_var in $ac_subst_files
  2122. do
  2123. eval ac_val=\$$ac_var
  2124. case $ac_val in
  2125. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2126. esac
  2127. $as_echo "$ac_var='\''$ac_val'\''"
  2128. done | sort
  2129. echo
  2130. fi
  2131. if test -s confdefs.h; then
  2132. $as_echo "## ----------- ##
  2133. ## confdefs.h. ##
  2134. ## ----------- ##"
  2135. echo
  2136. cat confdefs.h
  2137. echo
  2138. fi
  2139. test "$ac_signal" != 0 &&
  2140. $as_echo "$as_me: caught signal $ac_signal"
  2141. $as_echo "$as_me: exit $exit_status"
  2142. } >&5
  2143. rm -f core *.core core.conftest.* &&
  2144. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2145. exit $exit_status
  2146. ' 0
  2147. for ac_signal in 1 2 13 15; do
  2148. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2149. done
  2150. ac_signal=0
  2151. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2152. rm -f -r conftest* confdefs.h
  2153. $as_echo "/* confdefs.h */" > confdefs.h
  2154. # Predefined preprocessor variables.
  2155. cat >>confdefs.h <<_ACEOF
  2156. #define PACKAGE_NAME "$PACKAGE_NAME"
  2157. _ACEOF
  2158. cat >>confdefs.h <<_ACEOF
  2159. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2160. _ACEOF
  2161. cat >>confdefs.h <<_ACEOF
  2162. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2163. _ACEOF
  2164. cat >>confdefs.h <<_ACEOF
  2165. #define PACKAGE_STRING "$PACKAGE_STRING"
  2166. _ACEOF
  2167. cat >>confdefs.h <<_ACEOF
  2168. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2169. _ACEOF
  2170. cat >>confdefs.h <<_ACEOF
  2171. #define PACKAGE_URL "$PACKAGE_URL"
  2172. _ACEOF
  2173. # Let the site file select an alternate cache file if it wants to.
  2174. # Prefer an explicitly selected file to automatically selected ones.
  2175. ac_site_file1=NONE
  2176. ac_site_file2=NONE
  2177. if test -n "$CONFIG_SITE"; then
  2178. # We do not want a PATH search for config.site.
  2179. case $CONFIG_SITE in #((
  2180. -*) ac_site_file1=./$CONFIG_SITE;;
  2181. */*) ac_site_file1=$CONFIG_SITE;;
  2182. *) ac_site_file1=./$CONFIG_SITE;;
  2183. esac
  2184. elif test "x$prefix" != xNONE; then
  2185. ac_site_file1=$prefix/share/config.site
  2186. ac_site_file2=$prefix/etc/config.site
  2187. else
  2188. ac_site_file1=$ac_default_prefix/share/config.site
  2189. ac_site_file2=$ac_default_prefix/etc/config.site
  2190. fi
  2191. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2192. do
  2193. test "x$ac_site_file" = xNONE && continue
  2194. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2196. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2197. sed 's/^/| /' "$ac_site_file" >&5
  2198. . "$ac_site_file" \
  2199. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2200. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2201. as_fn_error $? "failed to load site script $ac_site_file
  2202. See \`config.log' for more details" "$LINENO" 5; }
  2203. fi
  2204. done
  2205. if test -r "$cache_file"; then
  2206. # Some versions of bash will fail to source /dev/null (special files
  2207. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2208. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2210. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2211. case $cache_file in
  2212. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2213. *) . "./$cache_file";;
  2214. esac
  2215. fi
  2216. else
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2218. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2219. >$cache_file
  2220. fi
  2221. # Check that the precious variables saved in the cache have kept the same
  2222. # value.
  2223. ac_cache_corrupted=false
  2224. for ac_var in $ac_precious_vars; do
  2225. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2226. eval ac_new_set=\$ac_env_${ac_var}_set
  2227. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2228. eval ac_new_val=\$ac_env_${ac_var}_value
  2229. case $ac_old_set,$ac_new_set in
  2230. set,)
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2232. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2233. ac_cache_corrupted=: ;;
  2234. ,set)
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2236. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2237. ac_cache_corrupted=: ;;
  2238. ,);;
  2239. *)
  2240. if test "x$ac_old_val" != "x$ac_new_val"; then
  2241. # differences in whitespace do not lead to failure.
  2242. ac_old_val_w=`echo x $ac_old_val`
  2243. ac_new_val_w=`echo x $ac_new_val`
  2244. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2246. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2247. ac_cache_corrupted=:
  2248. else
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2250. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2251. eval $ac_var=\$ac_old_val
  2252. fi
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2254. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2256. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2257. fi;;
  2258. esac
  2259. # Pass precious variables to config.status.
  2260. if test "$ac_new_set" = set; then
  2261. case $ac_new_val in
  2262. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2263. *) ac_arg=$ac_var=$ac_new_val ;;
  2264. esac
  2265. case " $ac_configure_args " in
  2266. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2267. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2268. esac
  2269. fi
  2270. done
  2271. if $ac_cache_corrupted; then
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2273. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2275. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2276. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2277. fi
  2278. ## -------------------- ##
  2279. ## Main body of script. ##
  2280. ## -------------------- ##
  2281. ac_ext=c
  2282. ac_cpp='$CPP $CPPFLAGS'
  2283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2286. ac_config_headers="$ac_config_headers auto-config.h"
  2287. # -------
  2288. # Options
  2289. # -------
  2290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
  2291. $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
  2292. # Check whether --enable-version-specific-runtime-libs was given.
  2293. if test "${enable_version_specific_runtime_libs+set}" = set; then :
  2294. enableval=$enable_version_specific_runtime_libs;
  2295. case "$enableval" in
  2296. yes|no) ;;
  2297. *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
  2298. esac
  2299. else
  2300. enable_version_specific_runtime_libs=no
  2301. fi
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
  2303. $as_echo "$enable_version_specific_runtime_libs" >&6; }
  2304. # We would like our source tree to be readonly. However when releases or
  2305. # pre-releases are generated, the flex/bison generated files as well as the
  2306. # various formats of manuals need to be included along with the rest of the
  2307. # sources. Therefore we have --enable-generated-files-in-srcdir to do
  2308. # just that.
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
  2310. $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
  2311. # Check whether --enable-generated-files-in-srcdir was given.
  2312. if test "${enable_generated_files_in_srcdir+set}" = set; then :
  2313. enableval=$enable_generated_files_in_srcdir;
  2314. case "$enableval" in
  2315. yes|no) ;;
  2316. *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
  2317. esac
  2318. else
  2319. enable_generated_files_in_srcdir=no
  2320. fi
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
  2322. $as_echo "$enable_generated_files_in_srcdir" >&6; }
  2323. if test "$enable_generated_files_in_srcdir" = yes; then
  2324. GENINSRC_TRUE=
  2325. GENINSRC_FALSE='#'
  2326. else
  2327. GENINSRC_TRUE='#'
  2328. GENINSRC_FALSE=
  2329. fi
  2330. # -------
  2331. # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
  2332. #
  2333. # You will slowly go insane if you do not grok the following fact: when
  2334. # building this library, the top-level /target/ becomes the library's /host/.
  2335. #
  2336. # configure then causes --target to default to --host, exactly like any
  2337. # other package using autoconf. Therefore, 'target' and 'host' will
  2338. # always be the same. This makes sense both for native and cross compilers
  2339. # just think about it for a little while. :-)
  2340. #
  2341. # Also, if this library is being configured as part of a cross compiler, the
  2342. # top-level configure script will pass the "real" host as $with_cross_host.
  2343. #
  2344. # Do not delete or change the following two lines. For why, see
  2345. # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
  2346. ac_aux_dir=
  2347. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2348. if test -f "$ac_dir/install-sh"; then
  2349. ac_aux_dir=$ac_dir
  2350. ac_install_sh="$ac_aux_dir/install-sh -c"
  2351. break
  2352. elif test -f "$ac_dir/install.sh"; then
  2353. ac_aux_dir=$ac_dir
  2354. ac_install_sh="$ac_aux_dir/install.sh -c"
  2355. break
  2356. elif test -f "$ac_dir/shtool"; then
  2357. ac_aux_dir=$ac_dir
  2358. ac_install_sh="$ac_aux_dir/shtool install -c"
  2359. break
  2360. fi
  2361. done
  2362. if test -z "$ac_aux_dir"; then
  2363. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2364. fi
  2365. # These three variables are undocumented and unsupported,
  2366. # and are intended to be withdrawn in a future Autoconf release.
  2367. # They can cause serious problems if a builder's source tree is in a directory
  2368. # whose full name contains unusual characters.
  2369. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2370. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2371. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2372. # Make sure we can run config.sub.
  2373. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2374. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2376. $as_echo_n "checking build system type... " >&6; }
  2377. if ${ac_cv_build+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. ac_build_alias=$build_alias
  2381. test "x$ac_build_alias" = x &&
  2382. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2383. test "x$ac_build_alias" = x &&
  2384. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2385. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2386. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2387. fi
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2389. $as_echo "$ac_cv_build" >&6; }
  2390. case $ac_cv_build in
  2391. *-*-*) ;;
  2392. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2393. esac
  2394. build=$ac_cv_build
  2395. ac_save_IFS=$IFS; IFS='-'
  2396. set x $ac_cv_build
  2397. shift
  2398. build_cpu=$1
  2399. build_vendor=$2
  2400. shift; shift
  2401. # Remember, the first character of IFS is used to create $*,
  2402. # except with old shells:
  2403. build_os=$*
  2404. IFS=$ac_save_IFS
  2405. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2407. $as_echo_n "checking host system type... " >&6; }
  2408. if ${ac_cv_host+:} false; then :
  2409. $as_echo_n "(cached) " >&6
  2410. else
  2411. if test "x$host_alias" = x; then
  2412. ac_cv_host=$ac_cv_build
  2413. else
  2414. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2415. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2416. fi
  2417. fi
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2419. $as_echo "$ac_cv_host" >&6; }
  2420. case $ac_cv_host in
  2421. *-*-*) ;;
  2422. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2423. esac
  2424. host=$ac_cv_host
  2425. ac_save_IFS=$IFS; IFS='-'
  2426. set x $ac_cv_host
  2427. shift
  2428. host_cpu=$1
  2429. host_vendor=$2
  2430. shift; shift
  2431. # Remember, the first character of IFS is used to create $*,
  2432. # except with old shells:
  2433. host_os=$*
  2434. IFS=$ac_save_IFS
  2435. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2437. $as_echo_n "checking target system type... " >&6; }
  2438. if ${ac_cv_target+:} false; then :
  2439. $as_echo_n "(cached) " >&6
  2440. else
  2441. if test "x$target_alias" = x; then
  2442. ac_cv_target=$ac_cv_host
  2443. else
  2444. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2445. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2446. fi
  2447. fi
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2449. $as_echo "$ac_cv_target" >&6; }
  2450. case $ac_cv_target in
  2451. *-*-*) ;;
  2452. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2453. esac
  2454. target=$ac_cv_target
  2455. ac_save_IFS=$IFS; IFS='-'
  2456. set x $ac_cv_target
  2457. shift
  2458. target_cpu=$1
  2459. target_vendor=$2
  2460. shift; shift
  2461. # Remember, the first character of IFS is used to create $*,
  2462. # except with old shells:
  2463. target_os=$*
  2464. IFS=$ac_save_IFS
  2465. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2466. # The aliases save the names the user supplied, while $host etc.
  2467. # will get canonicalized.
  2468. test -n "$target_alias" &&
  2469. test "$program_prefix$program_suffix$program_transform_name" = \
  2470. NONENONEs,x,x, &&
  2471. program_prefix=${target_alias}-
  2472. target_alias=${target_alias-$host_alias}
  2473. # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
  2474. # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
  2475. # 1.9.0: minimum required version
  2476. # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
  2477. # of other PACKAGE_* variables will, however, and there's nothing
  2478. # we can do about that; they come from AC_INIT).
  2479. # no-dist: we don't want 'dist' and related rules.
  2480. # foreign: we don't follow the normal rules for GNU packages (no COPYING
  2481. # file in the top srcdir, etc, etc), so stop complaining.
  2482. # -Wall: turns on all automake warnings...
  2483. # -Wno-portability: ...except this one, since GNU make is required.
  2484. # -Wno-override: ... and this one, since we do want this in testsuite.
  2485. am__api_version='1.15'
  2486. # Find a good install program. We prefer a C program (faster),
  2487. # so one script is as good as another. But avoid the broken or
  2488. # incompatible versions:
  2489. # SysV /etc/install, /usr/sbin/install
  2490. # SunOS /usr/etc/install
  2491. # IRIX /sbin/install
  2492. # AIX /bin/install
  2493. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2494. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2495. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2496. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2497. # OS/2's system install, which has a completely different semantic
  2498. # ./install, which can be erroneously created by make from ./install.sh.
  2499. # Reject install programs that cannot install multiple files.
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2501. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2502. if test -z "$INSTALL"; then
  2503. if ${ac_cv_path_install+:} false; then :
  2504. $as_echo_n "(cached) " >&6
  2505. else
  2506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2507. for as_dir in $PATH
  2508. do
  2509. IFS=$as_save_IFS
  2510. test -z "$as_dir" && as_dir=.
  2511. # Account for people who put trailing slashes in PATH elements.
  2512. case $as_dir/ in #((
  2513. ./ | .// | /[cC]/* | \
  2514. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2515. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2516. /usr/ucb/* ) ;;
  2517. *)
  2518. # OSF1 and SCO ODT 3.0 have their own names for install.
  2519. # Don't use installbsd from OSF since it installs stuff as root
  2520. # by default.
  2521. for ac_prog in ginstall scoinst install; do
  2522. for ac_exec_ext in '' $ac_executable_extensions; do
  2523. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2524. if test $ac_prog = install &&
  2525. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2526. # AIX install. It has an incompatible calling convention.
  2527. :
  2528. elif test $ac_prog = install &&
  2529. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2530. # program-specific install script used by HP pwplus--don't use.
  2531. :
  2532. else
  2533. rm -rf conftest.one conftest.two conftest.dir
  2534. echo one > conftest.one
  2535. echo two > conftest.two
  2536. mkdir conftest.dir
  2537. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2538. test -s conftest.one && test -s conftest.two &&
  2539. test -s conftest.dir/conftest.one &&
  2540. test -s conftest.dir/conftest.two
  2541. then
  2542. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2543. break 3
  2544. fi
  2545. fi
  2546. fi
  2547. done
  2548. done
  2549. ;;
  2550. esac
  2551. done
  2552. IFS=$as_save_IFS
  2553. rm -rf conftest.one conftest.two conftest.dir
  2554. fi
  2555. if test "${ac_cv_path_install+set}" = set; then
  2556. INSTALL=$ac_cv_path_install
  2557. else
  2558. # As a last resort, use the slow shell script. Don't cache a
  2559. # value for INSTALL within a source directory, because that will
  2560. # break other packages using the cache if that directory is
  2561. # removed, or if the value is a relative name.
  2562. INSTALL=$ac_install_sh
  2563. fi
  2564. fi
  2565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2566. $as_echo "$INSTALL" >&6; }
  2567. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2568. # It thinks the first close brace ends the variable substitution.
  2569. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2570. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2571. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2573. $as_echo_n "checking whether build environment is sane... " >&6; }
  2574. # Reject unsafe characters in $srcdir or the absolute working directory
  2575. # name. Accept space and tab only in the latter.
  2576. am_lf='
  2577. '
  2578. case `pwd` in
  2579. *[\\\"\#\$\&\'\`$am_lf]*)
  2580. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2581. esac
  2582. case $srcdir in
  2583. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2584. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2585. esac
  2586. # Do 'set' in a subshell so we don't clobber the current shell's
  2587. # arguments. Must try -L first in case configure is actually a
  2588. # symlink; some systems play weird games with the mod time of symlinks
  2589. # (eg FreeBSD returns the mod time of the symlink's containing
  2590. # directory).
  2591. if (
  2592. am_has_slept=no
  2593. for am_try in 1 2; do
  2594. echo "timestamp, slept: $am_has_slept" > conftest.file
  2595. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2596. if test "$*" = "X"; then
  2597. # -L didn't work.
  2598. set X `ls -t "$srcdir/configure" conftest.file`
  2599. fi
  2600. if test "$*" != "X $srcdir/configure conftest.file" \
  2601. && test "$*" != "X conftest.file $srcdir/configure"; then
  2602. # If neither matched, then we have a broken ls. This can happen
  2603. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2604. # broken ls alias from the environment. This has actually
  2605. # happened. Such a system could not be considered "sane".
  2606. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2607. alias in your environment" "$LINENO" 5
  2608. fi
  2609. if test "$2" = conftest.file || test $am_try -eq 2; then
  2610. break
  2611. fi
  2612. # Just in case.
  2613. sleep 1
  2614. am_has_slept=yes
  2615. done
  2616. test "$2" = conftest.file
  2617. )
  2618. then
  2619. # Ok.
  2620. :
  2621. else
  2622. as_fn_error $? "newly created file is older than distributed files!
  2623. Check your system clock" "$LINENO" 5
  2624. fi
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2626. $as_echo "yes" >&6; }
  2627. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2628. # generated files are strictly newer.
  2629. am_sleep_pid=
  2630. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2631. ( sleep 1 ) &
  2632. am_sleep_pid=$!
  2633. fi
  2634. rm -f conftest.file
  2635. test "$program_prefix" != NONE &&
  2636. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2637. # Use a double $ so make ignores it.
  2638. test "$program_suffix" != NONE &&
  2639. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2640. # Double any \ or $.
  2641. # By default was `s,x,x', remove it if useless.
  2642. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2643. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2644. # Expand $ac_aux_dir to an absolute path.
  2645. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2646. if test x"${MISSING+set}" != xset; then
  2647. case $am_aux_dir in
  2648. *\ * | *\ *)
  2649. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2650. *)
  2651. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2652. esac
  2653. fi
  2654. # Use eval to expand $SHELL
  2655. if eval "$MISSING --is-lightweight"; then
  2656. am_missing_run="$MISSING "
  2657. else
  2658. am_missing_run=
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2660. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2661. fi
  2662. if test x"${install_sh+set}" != xset; then
  2663. case $am_aux_dir in
  2664. *\ * | *\ *)
  2665. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2666. *)
  2667. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2668. esac
  2669. fi
  2670. # Installed binaries are usually stripped using 'strip' when the user
  2671. # run "make install-strip". However 'strip' might not be the right
  2672. # tool to use in cross-compilation environments, therefore Automake
  2673. # will honor the 'STRIP' environment variable to overrule this program.
  2674. if test "$cross_compiling" != no; then
  2675. if test -n "$ac_tool_prefix"; then
  2676. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2677. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2679. $as_echo_n "checking for $ac_word... " >&6; }
  2680. if ${ac_cv_prog_STRIP+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. if test -n "$STRIP"; then
  2684. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2685. else
  2686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2687. for as_dir in $PATH
  2688. do
  2689. IFS=$as_save_IFS
  2690. test -z "$as_dir" && as_dir=.
  2691. for ac_exec_ext in '' $ac_executable_extensions; do
  2692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2693. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2695. break 2
  2696. fi
  2697. done
  2698. done
  2699. IFS=$as_save_IFS
  2700. fi
  2701. fi
  2702. STRIP=$ac_cv_prog_STRIP
  2703. if test -n "$STRIP"; then
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2705. $as_echo "$STRIP" >&6; }
  2706. else
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2708. $as_echo "no" >&6; }
  2709. fi
  2710. fi
  2711. if test -z "$ac_cv_prog_STRIP"; then
  2712. ac_ct_STRIP=$STRIP
  2713. # Extract the first word of "strip", so it can be a program name with args.
  2714. set dummy strip; ac_word=$2
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$ac_ct_STRIP"; then
  2721. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2730. ac_cv_prog_ac_ct_STRIP="strip"
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737. fi
  2738. fi
  2739. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2740. if test -n "$ac_ct_STRIP"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2742. $as_echo "$ac_ct_STRIP" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. if test "x$ac_ct_STRIP" = x; then
  2748. STRIP=":"
  2749. else
  2750. case $cross_compiling:$ac_tool_warned in
  2751. yes:)
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2753. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2754. ac_tool_warned=yes ;;
  2755. esac
  2756. STRIP=$ac_ct_STRIP
  2757. fi
  2758. else
  2759. STRIP="$ac_cv_prog_STRIP"
  2760. fi
  2761. fi
  2762. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2764. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2765. if test -z "$MKDIR_P"; then
  2766. if ${ac_cv_path_mkdir+:} false; then :
  2767. $as_echo_n "(cached) " >&6
  2768. else
  2769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2770. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2771. do
  2772. IFS=$as_save_IFS
  2773. test -z "$as_dir" && as_dir=.
  2774. for ac_prog in mkdir gmkdir; do
  2775. for ac_exec_ext in '' $ac_executable_extensions; do
  2776. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2777. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2778. 'mkdir (GNU coreutils) '* | \
  2779. 'mkdir (coreutils) '* | \
  2780. 'mkdir (fileutils) '4.1*)
  2781. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2782. break 3;;
  2783. esac
  2784. done
  2785. done
  2786. done
  2787. IFS=$as_save_IFS
  2788. fi
  2789. test -d ./--version && rmdir ./--version
  2790. if test "${ac_cv_path_mkdir+set}" = set; then
  2791. MKDIR_P="$ac_cv_path_mkdir -p"
  2792. else
  2793. # As a last resort, use the slow shell script. Don't cache a
  2794. # value for MKDIR_P within a source directory, because that will
  2795. # break other packages using the cache if that directory is
  2796. # removed, or if the value is a relative name.
  2797. MKDIR_P="$ac_install_sh -d"
  2798. fi
  2799. fi
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2801. $as_echo "$MKDIR_P" >&6; }
  2802. for ac_prog in gawk mawk nawk awk
  2803. do
  2804. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2805. set dummy $ac_prog; ac_word=$2
  2806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2807. $as_echo_n "checking for $ac_word... " >&6; }
  2808. if ${ac_cv_prog_AWK+:} false; then :
  2809. $as_echo_n "(cached) " >&6
  2810. else
  2811. if test -n "$AWK"; then
  2812. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2813. else
  2814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2815. for as_dir in $PATH
  2816. do
  2817. IFS=$as_save_IFS
  2818. test -z "$as_dir" && as_dir=.
  2819. for ac_exec_ext in '' $ac_executable_extensions; do
  2820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2821. ac_cv_prog_AWK="$ac_prog"
  2822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2823. break 2
  2824. fi
  2825. done
  2826. done
  2827. IFS=$as_save_IFS
  2828. fi
  2829. fi
  2830. AWK=$ac_cv_prog_AWK
  2831. if test -n "$AWK"; then
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2833. $as_echo "$AWK" >&6; }
  2834. else
  2835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2836. $as_echo "no" >&6; }
  2837. fi
  2838. test -n "$AWK" && break
  2839. done
  2840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2841. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2842. set x ${MAKE-make}
  2843. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2844. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2845. $as_echo_n "(cached) " >&6
  2846. else
  2847. cat >conftest.make <<\_ACEOF
  2848. SHELL = /bin/sh
  2849. all:
  2850. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2851. _ACEOF
  2852. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2853. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2854. *@@@%%%=?*=@@@%%%*)
  2855. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2856. *)
  2857. eval ac_cv_prog_make_${ac_make}_set=no;;
  2858. esac
  2859. rm -f conftest.make
  2860. fi
  2861. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2863. $as_echo "yes" >&6; }
  2864. SET_MAKE=
  2865. else
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2867. $as_echo "no" >&6; }
  2868. SET_MAKE="MAKE=${MAKE-make}"
  2869. fi
  2870. rm -rf .tst 2>/dev/null
  2871. mkdir .tst 2>/dev/null
  2872. if test -d .tst; then
  2873. am__leading_dot=.
  2874. else
  2875. am__leading_dot=_
  2876. fi
  2877. rmdir .tst 2>/dev/null
  2878. # Check whether --enable-silent-rules was given.
  2879. if test "${enable_silent_rules+set}" = set; then :
  2880. enableval=$enable_silent_rules;
  2881. fi
  2882. case $enable_silent_rules in # (((
  2883. yes) AM_DEFAULT_VERBOSITY=0;;
  2884. no) AM_DEFAULT_VERBOSITY=1;;
  2885. *) AM_DEFAULT_VERBOSITY=1;;
  2886. esac
  2887. am_make=${MAKE-make}
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2889. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2890. if ${am_cv_make_support_nested_variables+:} false; then :
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. if $as_echo 'TRUE=$(BAR$(V))
  2894. BAR0=false
  2895. BAR1=true
  2896. V=1
  2897. am__doit:
  2898. @$(TRUE)
  2899. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2900. am_cv_make_support_nested_variables=yes
  2901. else
  2902. am_cv_make_support_nested_variables=no
  2903. fi
  2904. fi
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2906. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2907. if test $am_cv_make_support_nested_variables = yes; then
  2908. AM_V='$(V)'
  2909. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2910. else
  2911. AM_V=$AM_DEFAULT_VERBOSITY
  2912. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2913. fi
  2914. AM_BACKSLASH='\'
  2915. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2916. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2917. # is not polluted with repeated "-I."
  2918. am__isrc=' -I$(srcdir)'
  2919. # test to see if srcdir already configured
  2920. if test -f $srcdir/config.status; then
  2921. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2922. fi
  2923. fi
  2924. # test whether we have cygpath
  2925. if test -z "$CYGPATH_W"; then
  2926. if (cygpath --version) >/dev/null 2>/dev/null; then
  2927. CYGPATH_W='cygpath -w'
  2928. else
  2929. CYGPATH_W=echo
  2930. fi
  2931. fi
  2932. # Define the identity of the package.
  2933. PACKAGE='libatomic'
  2934. VERSION='1.0'
  2935. cat >>confdefs.h <<_ACEOF
  2936. #define PACKAGE "$PACKAGE"
  2937. _ACEOF
  2938. cat >>confdefs.h <<_ACEOF
  2939. #define VERSION "$VERSION"
  2940. _ACEOF
  2941. # Some tools Automake needs.
  2942. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2943. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2944. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2945. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2946. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2947. # For better backward compatibility. To be removed once Automake 1.9.x
  2948. # dies out for good. For more background, see:
  2949. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2950. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2951. mkdir_p='$(MKDIR_P)'
  2952. # We need awk for the "check" target (and possibly the TAP driver). The
  2953. # system "awk" is bad on some platforms.
  2954. # Always define AMTAR for backward compatibility. Yes, it's still used
  2955. # in the wild :-( We should find a proper way to deprecate it ...
  2956. AMTAR='$${TAR-tar}'
  2957. # We'll loop over all known methods to create a tar archive until one works.
  2958. _am_tools='gnutar pax cpio none'
  2959. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2960. # POSIX will say in a future version that running "rm -f" with no argument
  2961. # is OK; and we want to be able to make that assumption in our Makefile
  2962. # recipes. So use an aggressive probe to check that the usage we want is
  2963. # actually supported "in the wild" to an acceptable degree.
  2964. # See automake bug#10828.
  2965. # To make any issue more visible, cause the running configure to be aborted
  2966. # by default if the 'rm' program in use doesn't match our expectations; the
  2967. # user can still override this though.
  2968. if rm -f && rm -fr && rm -rf; then : OK; else
  2969. cat >&2 <<'END'
  2970. Oops!
  2971. Your 'rm' program seems unable to run without file operands specified
  2972. on the command line, even when the '-f' option is present. This is contrary
  2973. to the behaviour of most rm programs out there, and not conforming with
  2974. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2975. Please tell bug-automake@gnu.org about your system, including the value
  2976. of your $PATH and any error possibly output before this message. This
  2977. can help us improve future automake versions.
  2978. END
  2979. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2980. echo 'Configuration will proceed anyway, since you have set the' >&2
  2981. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2982. echo >&2
  2983. else
  2984. cat >&2 <<'END'
  2985. Aborting the configuration process, to ensure you take notice of the issue.
  2986. You can download and install GNU coreutils to get an 'rm' implementation
  2987. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2988. If you want to complete the configuration process using your problematic
  2989. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2990. to "yes", and re-run configure.
  2991. END
  2992. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2993. fi
  2994. fi
  2995. # Default to --enable-multilib
  2996. # Check whether --enable-multilib was given.
  2997. if test "${enable_multilib+set}" = set; then :
  2998. enableval=$enable_multilib; case "$enableval" in
  2999. yes) multilib=yes ;;
  3000. no) multilib=no ;;
  3001. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  3002. esac
  3003. else
  3004. multilib=yes
  3005. fi
  3006. # We may get other options which we leave undocumented:
  3007. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  3008. # See config-ml.in if you want the gory details.
  3009. if test "$srcdir" = "."; then
  3010. if test "$with_target_subdir" != "."; then
  3011. multi_basedir="$srcdir/$with_multisrctop../.."
  3012. else
  3013. multi_basedir="$srcdir/$with_multisrctop.."
  3014. fi
  3015. else
  3016. multi_basedir="$srcdir/.."
  3017. fi
  3018. # Even if the default multilib is not a cross compilation,
  3019. # it may be that some of the other multilibs are.
  3020. if test $cross_compiling = no && test $multilib = yes \
  3021. && test "x${with_multisubdir}" != x ; then
  3022. cross_compiling=maybe
  3023. fi
  3024. ac_config_commands="$ac_config_commands default-1"
  3025. # Check whether --with-toolexeclibdir was given.
  3026. if test "${with_toolexeclibdir+set}" = set; then :
  3027. withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
  3028. /)
  3029. ;;
  3030. */)
  3031. with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
  3032. ;;
  3033. esac
  3034. else
  3035. with_toolexeclibdir=no
  3036. fi
  3037. # Calculate toolexeclibdir
  3038. # Also toolexecdir, though it's only used in toolexeclibdir
  3039. case ${enable_version_specific_runtime_libs} in
  3040. yes)
  3041. # Need the gcc compiler version to know where to install libraries
  3042. # and header files if --enable-version-specific-runtime-libs option
  3043. # is selected.
  3044. toolexecdir='$(libdir)/gcc/$(target_alias)'
  3045. toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
  3046. ;;
  3047. no)
  3048. if test -n "$with_cross_host" &&
  3049. test x"$with_cross_host" != x"no"; then
  3050. # Install a library built with a cross compiler in tooldir, not libdir.
  3051. toolexecdir='$(exec_prefix)/$(target_alias)'
  3052. case ${with_toolexeclibdir} in
  3053. no)
  3054. toolexeclibdir='$(toolexecdir)/lib'
  3055. ;;
  3056. *)
  3057. toolexeclibdir=${with_toolexeclibdir}
  3058. ;;
  3059. esac
  3060. else
  3061. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  3062. toolexeclibdir='$(libdir)'
  3063. fi
  3064. multi_os_directory=`$CC -print-multi-os-directory`
  3065. case $multi_os_directory in
  3066. .) ;; # Avoid trailing /.
  3067. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  3068. esac
  3069. ;;
  3070. esac
  3071. # Check the compiler.
  3072. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  3073. # We must force CC to /not/ be precious variables; otherwise
  3074. # the wrong, non-multilib-adjusted value will be used in multilibs.
  3075. # As a side effect, we have to subst CFLAGS ourselves.
  3076. ac_ext=c
  3077. ac_cpp='$CPP $CPPFLAGS'
  3078. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3079. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3080. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3081. if test -n "$ac_tool_prefix"; then
  3082. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3083. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3085. $as_echo_n "checking for $ac_word... " >&6; }
  3086. if ${ac_cv_prog_CC+:} false; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. if test -n "$CC"; then
  3090. ac_cv_prog_CC="$CC" # Let the user override the test.
  3091. else
  3092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. for ac_exec_ext in '' $ac_executable_extensions; do
  3098. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3099. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3101. break 2
  3102. fi
  3103. done
  3104. done
  3105. IFS=$as_save_IFS
  3106. fi
  3107. fi
  3108. CC=$ac_cv_prog_CC
  3109. if test -n "$CC"; then
  3110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3111. $as_echo "$CC" >&6; }
  3112. else
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3114. $as_echo "no" >&6; }
  3115. fi
  3116. fi
  3117. if test -z "$ac_cv_prog_CC"; then
  3118. ac_ct_CC=$CC
  3119. # Extract the first word of "gcc", so it can be a program name with args.
  3120. set dummy gcc; ac_word=$2
  3121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3122. $as_echo_n "checking for $ac_word... " >&6; }
  3123. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3124. $as_echo_n "(cached) " >&6
  3125. else
  3126. if test -n "$ac_ct_CC"; then
  3127. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3128. else
  3129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3130. for as_dir in $PATH
  3131. do
  3132. IFS=$as_save_IFS
  3133. test -z "$as_dir" && as_dir=.
  3134. for ac_exec_ext in '' $ac_executable_extensions; do
  3135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3136. ac_cv_prog_ac_ct_CC="gcc"
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3138. break 2
  3139. fi
  3140. done
  3141. done
  3142. IFS=$as_save_IFS
  3143. fi
  3144. fi
  3145. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3146. if test -n "$ac_ct_CC"; then
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3148. $as_echo "$ac_ct_CC" >&6; }
  3149. else
  3150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3151. $as_echo "no" >&6; }
  3152. fi
  3153. if test "x$ac_ct_CC" = x; then
  3154. CC=""
  3155. else
  3156. case $cross_compiling:$ac_tool_warned in
  3157. yes:)
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3159. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3160. ac_tool_warned=yes ;;
  3161. esac
  3162. CC=$ac_ct_CC
  3163. fi
  3164. else
  3165. CC="$ac_cv_prog_CC"
  3166. fi
  3167. if test -z "$CC"; then
  3168. if test -n "$ac_tool_prefix"; then
  3169. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3170. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3172. $as_echo_n "checking for $ac_word... " >&6; }
  3173. if ${ac_cv_prog_CC+:} false; then :
  3174. $as_echo_n "(cached) " >&6
  3175. else
  3176. if test -n "$CC"; then
  3177. ac_cv_prog_CC="$CC" # Let the user override the test.
  3178. else
  3179. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3180. for as_dir in $PATH
  3181. do
  3182. IFS=$as_save_IFS
  3183. test -z "$as_dir" && as_dir=.
  3184. for ac_exec_ext in '' $ac_executable_extensions; do
  3185. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3186. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3187. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3188. break 2
  3189. fi
  3190. done
  3191. done
  3192. IFS=$as_save_IFS
  3193. fi
  3194. fi
  3195. CC=$ac_cv_prog_CC
  3196. if test -n "$CC"; then
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3198. $as_echo "$CC" >&6; }
  3199. else
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3201. $as_echo "no" >&6; }
  3202. fi
  3203. fi
  3204. fi
  3205. if test -z "$CC"; then
  3206. # Extract the first word of "cc", so it can be a program name with args.
  3207. set dummy cc; ac_word=$2
  3208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3209. $as_echo_n "checking for $ac_word... " >&6; }
  3210. if ${ac_cv_prog_CC+:} false; then :
  3211. $as_echo_n "(cached) " >&6
  3212. else
  3213. if test -n "$CC"; then
  3214. ac_cv_prog_CC="$CC" # Let the user override the test.
  3215. else
  3216. ac_prog_rejected=no
  3217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3218. for as_dir in $PATH
  3219. do
  3220. IFS=$as_save_IFS
  3221. test -z "$as_dir" && as_dir=.
  3222. for ac_exec_ext in '' $ac_executable_extensions; do
  3223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3224. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3225. ac_prog_rejected=yes
  3226. continue
  3227. fi
  3228. ac_cv_prog_CC="cc"
  3229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3230. break 2
  3231. fi
  3232. done
  3233. done
  3234. IFS=$as_save_IFS
  3235. if test $ac_prog_rejected = yes; then
  3236. # We found a bogon in the path, so make sure we never use it.
  3237. set dummy $ac_cv_prog_CC
  3238. shift
  3239. if test $# != 0; then
  3240. # We chose a different compiler from the bogus one.
  3241. # However, it has the same basename, so the bogon will be chosen
  3242. # first if we set CC to just the basename; use the full file name.
  3243. shift
  3244. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3245. fi
  3246. fi
  3247. fi
  3248. fi
  3249. CC=$ac_cv_prog_CC
  3250. if test -n "$CC"; then
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3252. $as_echo "$CC" >&6; }
  3253. else
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3255. $as_echo "no" >&6; }
  3256. fi
  3257. fi
  3258. if test -z "$CC"; then
  3259. if test -n "$ac_tool_prefix"; then
  3260. for ac_prog in cl.exe
  3261. do
  3262. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3263. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3265. $as_echo_n "checking for $ac_word... " >&6; }
  3266. if ${ac_cv_prog_CC+:} false; then :
  3267. $as_echo_n "(cached) " >&6
  3268. else
  3269. if test -n "$CC"; then
  3270. ac_cv_prog_CC="$CC" # Let the user override the test.
  3271. else
  3272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3273. for as_dir in $PATH
  3274. do
  3275. IFS=$as_save_IFS
  3276. test -z "$as_dir" && as_dir=.
  3277. for ac_exec_ext in '' $ac_executable_extensions; do
  3278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3279. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3281. break 2
  3282. fi
  3283. done
  3284. done
  3285. IFS=$as_save_IFS
  3286. fi
  3287. fi
  3288. CC=$ac_cv_prog_CC
  3289. if test -n "$CC"; then
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3291. $as_echo "$CC" >&6; }
  3292. else
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3294. $as_echo "no" >&6; }
  3295. fi
  3296. test -n "$CC" && break
  3297. done
  3298. fi
  3299. if test -z "$CC"; then
  3300. ac_ct_CC=$CC
  3301. for ac_prog in cl.exe
  3302. do
  3303. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3304. set dummy $ac_prog; ac_word=$2
  3305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3306. $as_echo_n "checking for $ac_word... " >&6; }
  3307. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3308. $as_echo_n "(cached) " >&6
  3309. else
  3310. if test -n "$ac_ct_CC"; then
  3311. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3312. else
  3313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3314. for as_dir in $PATH
  3315. do
  3316. IFS=$as_save_IFS
  3317. test -z "$as_dir" && as_dir=.
  3318. for ac_exec_ext in '' $ac_executable_extensions; do
  3319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3320. ac_cv_prog_ac_ct_CC="$ac_prog"
  3321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3322. break 2
  3323. fi
  3324. done
  3325. done
  3326. IFS=$as_save_IFS
  3327. fi
  3328. fi
  3329. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3330. if test -n "$ac_ct_CC"; then
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3332. $as_echo "$ac_ct_CC" >&6; }
  3333. else
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3335. $as_echo "no" >&6; }
  3336. fi
  3337. test -n "$ac_ct_CC" && break
  3338. done
  3339. if test "x$ac_ct_CC" = x; then
  3340. CC=""
  3341. else
  3342. case $cross_compiling:$ac_tool_warned in
  3343. yes:)
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3346. ac_tool_warned=yes ;;
  3347. esac
  3348. CC=$ac_ct_CC
  3349. fi
  3350. fi
  3351. fi
  3352. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3354. as_fn_error $? "no acceptable C compiler found in \$PATH
  3355. See \`config.log' for more details" "$LINENO" 5; }
  3356. # Provide some information about the compiler.
  3357. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3358. set X $ac_compile
  3359. ac_compiler=$2
  3360. for ac_option in --version -v -V -qversion; do
  3361. { { ac_try="$ac_compiler $ac_option >&5"
  3362. case "(($ac_try" in
  3363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3364. *) ac_try_echo=$ac_try;;
  3365. esac
  3366. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3367. $as_echo "$ac_try_echo"; } >&5
  3368. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3369. ac_status=$?
  3370. if test -s conftest.err; then
  3371. sed '10a\
  3372. ... rest of stderr output deleted ...
  3373. 10q' conftest.err >conftest.er1
  3374. cat conftest.er1 >&5
  3375. fi
  3376. rm -f conftest.er1 conftest.err
  3377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3378. test $ac_status = 0; }
  3379. done
  3380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3381. /* end confdefs.h. */
  3382. int
  3383. main ()
  3384. {
  3385. ;
  3386. return 0;
  3387. }
  3388. _ACEOF
  3389. ac_clean_files_save=$ac_clean_files
  3390. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3391. # Try to create an executable without -o first, disregard a.out.
  3392. # It will help us diagnose broken compilers, and finding out an intuition
  3393. # of exeext.
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3395. $as_echo_n "checking whether the C compiler works... " >&6; }
  3396. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3397. # The possible output files:
  3398. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3399. ac_rmfiles=
  3400. for ac_file in $ac_files
  3401. do
  3402. case $ac_file in
  3403. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3404. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3405. esac
  3406. done
  3407. rm -f $ac_rmfiles
  3408. if { { ac_try="$ac_link_default"
  3409. case "(($ac_try" in
  3410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3411. *) ac_try_echo=$ac_try;;
  3412. esac
  3413. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3414. $as_echo "$ac_try_echo"; } >&5
  3415. (eval "$ac_link_default") 2>&5
  3416. ac_status=$?
  3417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3418. test $ac_status = 0; }; then :
  3419. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3420. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3421. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3422. # so that the user can short-circuit this test for compilers unknown to
  3423. # Autoconf.
  3424. for ac_file in $ac_files ''
  3425. do
  3426. test -f "$ac_file" || continue
  3427. case $ac_file in
  3428. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3429. ;;
  3430. [ab].out )
  3431. # We found the default executable, but exeext='' is most
  3432. # certainly right.
  3433. break;;
  3434. *.* )
  3435. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3436. then :; else
  3437. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3438. fi
  3439. # We set ac_cv_exeext here because the later test for it is not
  3440. # safe: cross compilers may not add the suffix if given an `-o'
  3441. # argument, so we may need to know it at that point already.
  3442. # Even if this section looks crufty: it has the advantage of
  3443. # actually working.
  3444. break;;
  3445. * )
  3446. break;;
  3447. esac
  3448. done
  3449. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3450. else
  3451. ac_file=''
  3452. fi
  3453. if test -z "$ac_file"; then :
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3455. $as_echo "no" >&6; }
  3456. $as_echo "$as_me: failed program was:" >&5
  3457. sed 's/^/| /' conftest.$ac_ext >&5
  3458. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3459. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3460. as_fn_error 77 "C compiler cannot create executables
  3461. See \`config.log' for more details" "$LINENO" 5; }
  3462. else
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3464. $as_echo "yes" >&6; }
  3465. fi
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3467. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3469. $as_echo "$ac_file" >&6; }
  3470. ac_exeext=$ac_cv_exeext
  3471. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3472. ac_clean_files=$ac_clean_files_save
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3474. $as_echo_n "checking for suffix of executables... " >&6; }
  3475. if { { ac_try="$ac_link"
  3476. case "(($ac_try" in
  3477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3478. *) ac_try_echo=$ac_try;;
  3479. esac
  3480. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3481. $as_echo "$ac_try_echo"; } >&5
  3482. (eval "$ac_link") 2>&5
  3483. ac_status=$?
  3484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3485. test $ac_status = 0; }; then :
  3486. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3487. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3488. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3489. # `rm'.
  3490. for ac_file in conftest.exe conftest conftest.*; do
  3491. test -f "$ac_file" || continue
  3492. case $ac_file in
  3493. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3494. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3495. break;;
  3496. * ) break;;
  3497. esac
  3498. done
  3499. else
  3500. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3501. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3502. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3503. See \`config.log' for more details" "$LINENO" 5; }
  3504. fi
  3505. rm -f conftest conftest$ac_cv_exeext
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3507. $as_echo "$ac_cv_exeext" >&6; }
  3508. rm -f conftest.$ac_ext
  3509. EXEEXT=$ac_cv_exeext
  3510. ac_exeext=$EXEEXT
  3511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3512. /* end confdefs.h. */
  3513. #include <stdio.h>
  3514. int
  3515. main ()
  3516. {
  3517. FILE *f = fopen ("conftest.out", "w");
  3518. return ferror (f) || fclose (f) != 0;
  3519. ;
  3520. return 0;
  3521. }
  3522. _ACEOF
  3523. ac_clean_files="$ac_clean_files conftest.out"
  3524. # Check that the compiler produces executables we can run. If not, either
  3525. # the compiler is broken, or we cross compile.
  3526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3527. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3528. if test "$cross_compiling" != yes; then
  3529. { { ac_try="$ac_link"
  3530. case "(($ac_try" in
  3531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3532. *) ac_try_echo=$ac_try;;
  3533. esac
  3534. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3535. $as_echo "$ac_try_echo"; } >&5
  3536. (eval "$ac_link") 2>&5
  3537. ac_status=$?
  3538. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3539. test $ac_status = 0; }
  3540. if { ac_try='./conftest$ac_cv_exeext'
  3541. { { case "(($ac_try" in
  3542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3543. *) ac_try_echo=$ac_try;;
  3544. esac
  3545. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3546. $as_echo "$ac_try_echo"; } >&5
  3547. (eval "$ac_try") 2>&5
  3548. ac_status=$?
  3549. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3550. test $ac_status = 0; }; }; then
  3551. cross_compiling=no
  3552. else
  3553. if test "$cross_compiling" = maybe; then
  3554. cross_compiling=yes
  3555. else
  3556. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3557. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3558. as_fn_error $? "cannot run C compiled programs.
  3559. If you meant to cross compile, use \`--host'.
  3560. See \`config.log' for more details" "$LINENO" 5; }
  3561. fi
  3562. fi
  3563. fi
  3564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3565. $as_echo "$cross_compiling" >&6; }
  3566. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3567. ac_clean_files=$ac_clean_files_save
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3569. $as_echo_n "checking for suffix of object files... " >&6; }
  3570. if ${ac_cv_objext+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3574. /* end confdefs.h. */
  3575. int
  3576. main ()
  3577. {
  3578. ;
  3579. return 0;
  3580. }
  3581. _ACEOF
  3582. rm -f conftest.o conftest.obj
  3583. if { { ac_try="$ac_compile"
  3584. case "(($ac_try" in
  3585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3586. *) ac_try_echo=$ac_try;;
  3587. esac
  3588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3589. $as_echo "$ac_try_echo"; } >&5
  3590. (eval "$ac_compile") 2>&5
  3591. ac_status=$?
  3592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3593. test $ac_status = 0; }; then :
  3594. for ac_file in conftest.o conftest.obj conftest.*; do
  3595. test -f "$ac_file" || continue;
  3596. case $ac_file in
  3597. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3598. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3599. break;;
  3600. esac
  3601. done
  3602. else
  3603. $as_echo "$as_me: failed program was:" >&5
  3604. sed 's/^/| /' conftest.$ac_ext >&5
  3605. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3606. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3607. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3608. See \`config.log' for more details" "$LINENO" 5; }
  3609. fi
  3610. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3611. fi
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3613. $as_echo "$ac_cv_objext" >&6; }
  3614. OBJEXT=$ac_cv_objext
  3615. ac_objext=$OBJEXT
  3616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3617. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3618. if ${ac_cv_c_compiler_gnu+:} false; then :
  3619. $as_echo_n "(cached) " >&6
  3620. else
  3621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3622. /* end confdefs.h. */
  3623. int
  3624. main ()
  3625. {
  3626. #ifndef __GNUC__
  3627. choke me
  3628. #endif
  3629. ;
  3630. return 0;
  3631. }
  3632. _ACEOF
  3633. if ac_fn_c_try_compile "$LINENO"; then :
  3634. ac_compiler_gnu=yes
  3635. else
  3636. ac_compiler_gnu=no
  3637. fi
  3638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3639. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3640. fi
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3642. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3643. if test $ac_compiler_gnu = yes; then
  3644. GCC=yes
  3645. else
  3646. GCC=
  3647. fi
  3648. ac_test_CFLAGS=${CFLAGS+set}
  3649. ac_save_CFLAGS=$CFLAGS
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3651. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3652. if ${ac_cv_prog_cc_g+:} false; then :
  3653. $as_echo_n "(cached) " >&6
  3654. else
  3655. ac_save_c_werror_flag=$ac_c_werror_flag
  3656. ac_c_werror_flag=yes
  3657. ac_cv_prog_cc_g=no
  3658. CFLAGS="-g"
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. int
  3662. main ()
  3663. {
  3664. ;
  3665. return 0;
  3666. }
  3667. _ACEOF
  3668. if ac_fn_c_try_compile "$LINENO"; then :
  3669. ac_cv_prog_cc_g=yes
  3670. else
  3671. CFLAGS=""
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. if ac_fn_c_try_compile "$LINENO"; then :
  3682. else
  3683. ac_c_werror_flag=$ac_save_c_werror_flag
  3684. CFLAGS="-g"
  3685. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3686. /* end confdefs.h. */
  3687. int
  3688. main ()
  3689. {
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. if ac_fn_c_try_compile "$LINENO"; then :
  3695. ac_cv_prog_cc_g=yes
  3696. fi
  3697. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3698. fi
  3699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3700. fi
  3701. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3702. ac_c_werror_flag=$ac_save_c_werror_flag
  3703. fi
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3705. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3706. if test "$ac_test_CFLAGS" = set; then
  3707. CFLAGS=$ac_save_CFLAGS
  3708. elif test $ac_cv_prog_cc_g = yes; then
  3709. if test "$GCC" = yes; then
  3710. CFLAGS="-g -O2"
  3711. else
  3712. CFLAGS="-g"
  3713. fi
  3714. else
  3715. if test "$GCC" = yes; then
  3716. CFLAGS="-O2"
  3717. else
  3718. CFLAGS=
  3719. fi
  3720. fi
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3722. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3723. if ${ac_cv_prog_cc_c89+:} false; then :
  3724. $as_echo_n "(cached) " >&6
  3725. else
  3726. ac_cv_prog_cc_c89=no
  3727. ac_save_CC=$CC
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. #include <stdarg.h>
  3731. #include <stdio.h>
  3732. struct stat;
  3733. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3734. struct buf { int x; };
  3735. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3736. static char *e (p, i)
  3737. char **p;
  3738. int i;
  3739. {
  3740. return p[i];
  3741. }
  3742. static char *f (char * (*g) (char **, int), char **p, ...)
  3743. {
  3744. char *s;
  3745. va_list v;
  3746. va_start (v,p);
  3747. s = g (p, va_arg (v,int));
  3748. va_end (v);
  3749. return s;
  3750. }
  3751. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3752. function prototypes and stuff, but not '\xHH' hex character constants.
  3753. These don't provoke an error unfortunately, instead are silently treated
  3754. as 'x'. The following induces an error, until -std is added to get
  3755. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3756. array size at least. It's necessary to write '\x00'==0 to get something
  3757. that's true only with -std. */
  3758. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3759. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3760. inside strings and character constants. */
  3761. #define FOO(x) 'x'
  3762. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3763. int test (int i, double x);
  3764. struct s1 {int (*f) (int a);};
  3765. struct s2 {int (*f) (double a);};
  3766. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3767. int argc;
  3768. char **argv;
  3769. int
  3770. main ()
  3771. {
  3772. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3773. ;
  3774. return 0;
  3775. }
  3776. _ACEOF
  3777. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3778. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3779. do
  3780. CC="$ac_save_CC $ac_arg"
  3781. if ac_fn_c_try_compile "$LINENO"; then :
  3782. ac_cv_prog_cc_c89=$ac_arg
  3783. fi
  3784. rm -f core conftest.err conftest.$ac_objext
  3785. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3786. done
  3787. rm -f conftest.$ac_ext
  3788. CC=$ac_save_CC
  3789. fi
  3790. # AC_CACHE_VAL
  3791. case "x$ac_cv_prog_cc_c89" in
  3792. x)
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3794. $as_echo "none needed" >&6; } ;;
  3795. xno)
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3797. $as_echo "unsupported" >&6; } ;;
  3798. *)
  3799. CC="$CC $ac_cv_prog_cc_c89"
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3801. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3802. esac
  3803. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3804. fi
  3805. ac_ext=c
  3806. ac_cpp='$CPP $CPPFLAGS'
  3807. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3808. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3809. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3810. ac_ext=c
  3811. ac_cpp='$CPP $CPPFLAGS'
  3812. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3813. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3814. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3816. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3817. if ${am_cv_prog_cc_c_o+:} false; then :
  3818. $as_echo_n "(cached) " >&6
  3819. else
  3820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3821. /* end confdefs.h. */
  3822. int
  3823. main ()
  3824. {
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. # Make sure it works both with $CC and with simple cc.
  3830. # Following AC_PROG_CC_C_O, we do the test twice because some
  3831. # compilers refuse to overwrite an existing .o file with -o,
  3832. # though they will create one.
  3833. am_cv_prog_cc_c_o=yes
  3834. for am_i in 1 2; do
  3835. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3836. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3837. ac_status=$?
  3838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3839. (exit $ac_status); } \
  3840. && test -f conftest2.$ac_objext; then
  3841. : OK
  3842. else
  3843. am_cv_prog_cc_c_o=no
  3844. break
  3845. fi
  3846. done
  3847. rm -f core conftest*
  3848. unset am_i
  3849. fi
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3851. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3852. if test "$am_cv_prog_cc_c_o" != yes; then
  3853. # Losing compiler, so override with the script.
  3854. # FIXME: It is wrong to rewrite CC.
  3855. # But if we don't then we get into trouble of one sort or another.
  3856. # A longer-term fix would be to have automake use am__CC in this case,
  3857. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3858. CC="$am_aux_dir/compile $CC"
  3859. fi
  3860. ac_ext=c
  3861. ac_cpp='$CPP $CPPFLAGS'
  3862. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3863. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3864. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3865. DEPDIR="${am__leading_dot}deps"
  3866. ac_config_commands="$ac_config_commands depfiles"
  3867. am_make=${MAKE-make}
  3868. cat > confinc << 'END'
  3869. am__doit:
  3870. @echo this is the am__doit target
  3871. .PHONY: am__doit
  3872. END
  3873. # If we don't find an include directive, just comment out the code.
  3874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3875. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3876. am__include="#"
  3877. am__quote=
  3878. _am_result=none
  3879. # First try GNU make style include.
  3880. echo "include confinc" > confmf
  3881. # Ignore all kinds of additional output from 'make'.
  3882. case `$am_make -s -f confmf 2> /dev/null` in #(
  3883. *the\ am__doit\ target*)
  3884. am__include=include
  3885. am__quote=
  3886. _am_result=GNU
  3887. ;;
  3888. esac
  3889. # Now try BSD make style include.
  3890. if test "$am__include" = "#"; then
  3891. echo '.include "confinc"' > confmf
  3892. case `$am_make -s -f confmf 2> /dev/null` in #(
  3893. *the\ am__doit\ target*)
  3894. am__include=.include
  3895. am__quote="\""
  3896. _am_result=BSD
  3897. ;;
  3898. esac
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3901. $as_echo "$_am_result" >&6; }
  3902. rm -f confinc confmf
  3903. # Check whether --enable-dependency-tracking was given.
  3904. if test "${enable_dependency_tracking+set}" = set; then :
  3905. enableval=$enable_dependency_tracking;
  3906. fi
  3907. if test "x$enable_dependency_tracking" != xno; then
  3908. am_depcomp="$ac_aux_dir/depcomp"
  3909. AMDEPBACKSLASH='\'
  3910. am__nodep='_no'
  3911. fi
  3912. if test "x$enable_dependency_tracking" != xno; then
  3913. AMDEP_TRUE=
  3914. AMDEP_FALSE='#'
  3915. else
  3916. AMDEP_TRUE='#'
  3917. AMDEP_FALSE=
  3918. fi
  3919. depcc="$CC" am_compiler_list=
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3921. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3922. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3926. # We make a subdir and do the tests there. Otherwise we can end up
  3927. # making bogus files that we don't know about and never remove. For
  3928. # instance it was reported that on HP-UX the gcc test will end up
  3929. # making a dummy file named 'D' -- because '-MD' means "put the output
  3930. # in D".
  3931. rm -rf conftest.dir
  3932. mkdir conftest.dir
  3933. # Copy depcomp to subdir because otherwise we won't find it if we're
  3934. # using a relative directory.
  3935. cp "$am_depcomp" conftest.dir
  3936. cd conftest.dir
  3937. # We will build objects and dependencies in a subdirectory because
  3938. # it helps to detect inapplicable dependency modes. For instance
  3939. # both Tru64's cc and ICC support -MD to output dependencies as a
  3940. # side effect of compilation, but ICC will put the dependencies in
  3941. # the current directory while Tru64 will put them in the object
  3942. # directory.
  3943. mkdir sub
  3944. am_cv_CC_dependencies_compiler_type=none
  3945. if test "$am_compiler_list" = ""; then
  3946. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3947. fi
  3948. am__universal=false
  3949. case " $depcc " in #(
  3950. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3951. esac
  3952. for depmode in $am_compiler_list; do
  3953. # Setup a source with many dependencies, because some compilers
  3954. # like to wrap large dependency lists on column 80 (with \), and
  3955. # we should not choose a depcomp mode which is confused by this.
  3956. #
  3957. # We need to recreate these files for each test, as the compiler may
  3958. # overwrite some of them when testing with obscure command lines.
  3959. # This happens at least with the AIX C compiler.
  3960. : > sub/conftest.c
  3961. for i in 1 2 3 4 5 6; do
  3962. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3963. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3964. # Solaris 10 /bin/sh.
  3965. echo '/* dummy */' > sub/conftst$i.h
  3966. done
  3967. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3968. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3969. # mode. It turns out that the SunPro C++ compiler does not properly
  3970. # handle '-M -o', and we need to detect this. Also, some Intel
  3971. # versions had trouble with output in subdirs.
  3972. am__obj=sub/conftest.${OBJEXT-o}
  3973. am__minus_obj="-o $am__obj"
  3974. case $depmode in
  3975. gcc)
  3976. # This depmode causes a compiler race in universal mode.
  3977. test "$am__universal" = false || continue
  3978. ;;
  3979. nosideeffect)
  3980. # After this tag, mechanisms are not by side-effect, so they'll
  3981. # only be used when explicitly requested.
  3982. if test "x$enable_dependency_tracking" = xyes; then
  3983. continue
  3984. else
  3985. break
  3986. fi
  3987. ;;
  3988. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3989. # This compiler won't grok '-c -o', but also, the minuso test has
  3990. # not run yet. These depmodes are late enough in the game, and
  3991. # so weak that their functioning should not be impacted.
  3992. am__obj=conftest.${OBJEXT-o}
  3993. am__minus_obj=
  3994. ;;
  3995. none) break ;;
  3996. esac
  3997. if depmode=$depmode \
  3998. source=sub/conftest.c object=$am__obj \
  3999. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4000. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4001. >/dev/null 2>conftest.err &&
  4002. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4003. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4004. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4005. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4006. # icc doesn't choke on unknown options, it will just issue warnings
  4007. # or remarks (even with -Werror). So we grep stderr for any message
  4008. # that says an option was ignored or not supported.
  4009. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4010. # icc: Command line warning: ignoring option '-M'; no argument required
  4011. # The diagnosis changed in icc 8.0:
  4012. # icc: Command line remark: option '-MP' not supported
  4013. if (grep 'ignoring option' conftest.err ||
  4014. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4015. am_cv_CC_dependencies_compiler_type=$depmode
  4016. break
  4017. fi
  4018. fi
  4019. done
  4020. cd ..
  4021. rm -rf conftest.dir
  4022. else
  4023. am_cv_CC_dependencies_compiler_type=none
  4024. fi
  4025. fi
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4027. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4028. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4029. if
  4030. test "x$enable_dependency_tracking" != xno \
  4031. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4032. am__fastdepCC_TRUE=
  4033. am__fastdepCC_FALSE='#'
  4034. else
  4035. am__fastdepCC_TRUE='#'
  4036. am__fastdepCC_FALSE=
  4037. fi
  4038. # By default we simply use the C compiler to build assembly code.
  4039. test "${CCAS+set}" = set || CCAS=$CC
  4040. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  4041. depcc="$CCAS" am_compiler_list=
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4043. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4044. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  4045. $as_echo_n "(cached) " >&6
  4046. else
  4047. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4048. # We make a subdir and do the tests there. Otherwise we can end up
  4049. # making bogus files that we don't know about and never remove. For
  4050. # instance it was reported that on HP-UX the gcc test will end up
  4051. # making a dummy file named 'D' -- because '-MD' means "put the output
  4052. # in D".
  4053. rm -rf conftest.dir
  4054. mkdir conftest.dir
  4055. # Copy depcomp to subdir because otherwise we won't find it if we're
  4056. # using a relative directory.
  4057. cp "$am_depcomp" conftest.dir
  4058. cd conftest.dir
  4059. # We will build objects and dependencies in a subdirectory because
  4060. # it helps to detect inapplicable dependency modes. For instance
  4061. # both Tru64's cc and ICC support -MD to output dependencies as a
  4062. # side effect of compilation, but ICC will put the dependencies in
  4063. # the current directory while Tru64 will put them in the object
  4064. # directory.
  4065. mkdir sub
  4066. am_cv_CCAS_dependencies_compiler_type=none
  4067. if test "$am_compiler_list" = ""; then
  4068. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4069. fi
  4070. am__universal=false
  4071. for depmode in $am_compiler_list; do
  4072. # Setup a source with many dependencies, because some compilers
  4073. # like to wrap large dependency lists on column 80 (with \), and
  4074. # we should not choose a depcomp mode which is confused by this.
  4075. #
  4076. # We need to recreate these files for each test, as the compiler may
  4077. # overwrite some of them when testing with obscure command lines.
  4078. # This happens at least with the AIX C compiler.
  4079. : > sub/conftest.c
  4080. for i in 1 2 3 4 5 6; do
  4081. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4082. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4083. # Solaris 10 /bin/sh.
  4084. echo '/* dummy */' > sub/conftst$i.h
  4085. done
  4086. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4087. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4088. # mode. It turns out that the SunPro C++ compiler does not properly
  4089. # handle '-M -o', and we need to detect this. Also, some Intel
  4090. # versions had trouble with output in subdirs.
  4091. am__obj=sub/conftest.${OBJEXT-o}
  4092. am__minus_obj="-o $am__obj"
  4093. case $depmode in
  4094. gcc)
  4095. # This depmode causes a compiler race in universal mode.
  4096. test "$am__universal" = false || continue
  4097. ;;
  4098. nosideeffect)
  4099. # After this tag, mechanisms are not by side-effect, so they'll
  4100. # only be used when explicitly requested.
  4101. if test "x$enable_dependency_tracking" = xyes; then
  4102. continue
  4103. else
  4104. break
  4105. fi
  4106. ;;
  4107. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4108. # This compiler won't grok '-c -o', but also, the minuso test has
  4109. # not run yet. These depmodes are late enough in the game, and
  4110. # so weak that their functioning should not be impacted.
  4111. am__obj=conftest.${OBJEXT-o}
  4112. am__minus_obj=
  4113. ;;
  4114. none) break ;;
  4115. esac
  4116. if depmode=$depmode \
  4117. source=sub/conftest.c object=$am__obj \
  4118. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4119. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4120. >/dev/null 2>conftest.err &&
  4121. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4122. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4123. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4124. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4125. # icc doesn't choke on unknown options, it will just issue warnings
  4126. # or remarks (even with -Werror). So we grep stderr for any message
  4127. # that says an option was ignored or not supported.
  4128. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4129. # icc: Command line warning: ignoring option '-M'; no argument required
  4130. # The diagnosis changed in icc 8.0:
  4131. # icc: Command line remark: option '-MP' not supported
  4132. if (grep 'ignoring option' conftest.err ||
  4133. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4134. am_cv_CCAS_dependencies_compiler_type=$depmode
  4135. break
  4136. fi
  4137. fi
  4138. done
  4139. cd ..
  4140. rm -rf conftest.dir
  4141. else
  4142. am_cv_CCAS_dependencies_compiler_type=none
  4143. fi
  4144. fi
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4146. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4147. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4148. if
  4149. test "x$enable_dependency_tracking" != xno \
  4150. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4151. am__fastdepCCAS_TRUE=
  4152. am__fastdepCCAS_FALSE='#'
  4153. else
  4154. am__fastdepCCAS_TRUE='#'
  4155. am__fastdepCCAS_FALSE=
  4156. fi
  4157. # In order to override CFLAGS_FOR_TARGET, all of our special flags go
  4158. # in XCFLAGS. But we need them in CFLAGS during configury. So put them
  4159. # in both places for now and restore CFLAGS at the end of config.
  4160. save_CFLAGS="$CFLAGS"
  4161. # Find other programs we need.
  4162. if test -n "$ac_tool_prefix"; then
  4163. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4164. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4166. $as_echo_n "checking for $ac_word... " >&6; }
  4167. if ${ac_cv_prog_AR+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. if test -n "$AR"; then
  4171. ac_cv_prog_AR="$AR" # Let the user override the test.
  4172. else
  4173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4174. for as_dir in $PATH
  4175. do
  4176. IFS=$as_save_IFS
  4177. test -z "$as_dir" && as_dir=.
  4178. for ac_exec_ext in '' $ac_executable_extensions; do
  4179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4180. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4182. break 2
  4183. fi
  4184. done
  4185. done
  4186. IFS=$as_save_IFS
  4187. fi
  4188. fi
  4189. AR=$ac_cv_prog_AR
  4190. if test -n "$AR"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4192. $as_echo "$AR" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. fi
  4198. if test -z "$ac_cv_prog_AR"; then
  4199. ac_ct_AR=$AR
  4200. # Extract the first word of "ar", so it can be a program name with args.
  4201. set dummy ar; ac_word=$2
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4203. $as_echo_n "checking for $ac_word... " >&6; }
  4204. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. if test -n "$ac_ct_AR"; then
  4208. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4209. else
  4210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4211. for as_dir in $PATH
  4212. do
  4213. IFS=$as_save_IFS
  4214. test -z "$as_dir" && as_dir=.
  4215. for ac_exec_ext in '' $ac_executable_extensions; do
  4216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4217. ac_cv_prog_ac_ct_AR="ar"
  4218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4219. break 2
  4220. fi
  4221. done
  4222. done
  4223. IFS=$as_save_IFS
  4224. fi
  4225. fi
  4226. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4227. if test -n "$ac_ct_AR"; then
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4229. $as_echo "$ac_ct_AR" >&6; }
  4230. else
  4231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4232. $as_echo "no" >&6; }
  4233. fi
  4234. if test "x$ac_ct_AR" = x; then
  4235. AR=""
  4236. else
  4237. case $cross_compiling:$ac_tool_warned in
  4238. yes:)
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4241. ac_tool_warned=yes ;;
  4242. esac
  4243. AR=$ac_ct_AR
  4244. fi
  4245. else
  4246. AR="$ac_cv_prog_AR"
  4247. fi
  4248. if test -n "$ac_tool_prefix"; then
  4249. # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
  4250. set dummy ${ac_tool_prefix}nm; ac_word=$2
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4252. $as_echo_n "checking for $ac_word... " >&6; }
  4253. if ${ac_cv_prog_NM+:} false; then :
  4254. $as_echo_n "(cached) " >&6
  4255. else
  4256. if test -n "$NM"; then
  4257. ac_cv_prog_NM="$NM" # Let the user override the test.
  4258. else
  4259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4260. for as_dir in $PATH
  4261. do
  4262. IFS=$as_save_IFS
  4263. test -z "$as_dir" && as_dir=.
  4264. for ac_exec_ext in '' $ac_executable_extensions; do
  4265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4266. ac_cv_prog_NM="${ac_tool_prefix}nm"
  4267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4268. break 2
  4269. fi
  4270. done
  4271. done
  4272. IFS=$as_save_IFS
  4273. fi
  4274. fi
  4275. NM=$ac_cv_prog_NM
  4276. if test -n "$NM"; then
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  4278. $as_echo "$NM" >&6; }
  4279. else
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4281. $as_echo "no" >&6; }
  4282. fi
  4283. fi
  4284. if test -z "$ac_cv_prog_NM"; then
  4285. ac_ct_NM=$NM
  4286. # Extract the first word of "nm", so it can be a program name with args.
  4287. set dummy nm; ac_word=$2
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4289. $as_echo_n "checking for $ac_word... " >&6; }
  4290. if ${ac_cv_prog_ac_ct_NM+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. if test -n "$ac_ct_NM"; then
  4294. ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
  4295. else
  4296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4297. for as_dir in $PATH
  4298. do
  4299. IFS=$as_save_IFS
  4300. test -z "$as_dir" && as_dir=.
  4301. for ac_exec_ext in '' $ac_executable_extensions; do
  4302. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4303. ac_cv_prog_ac_ct_NM="nm"
  4304. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4305. break 2
  4306. fi
  4307. done
  4308. done
  4309. IFS=$as_save_IFS
  4310. fi
  4311. fi
  4312. ac_ct_NM=$ac_cv_prog_ac_ct_NM
  4313. if test -n "$ac_ct_NM"; then
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
  4315. $as_echo "$ac_ct_NM" >&6; }
  4316. else
  4317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4318. $as_echo "no" >&6; }
  4319. fi
  4320. if test "x$ac_ct_NM" = x; then
  4321. NM=""
  4322. else
  4323. case $cross_compiling:$ac_tool_warned in
  4324. yes:)
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4327. ac_tool_warned=yes ;;
  4328. esac
  4329. NM=$ac_ct_NM
  4330. fi
  4331. else
  4332. NM="$ac_cv_prog_NM"
  4333. fi
  4334. if test -n "$ac_tool_prefix"; then
  4335. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4336. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4338. $as_echo_n "checking for $ac_word... " >&6; }
  4339. if ${ac_cv_prog_RANLIB+:} false; then :
  4340. $as_echo_n "(cached) " >&6
  4341. else
  4342. if test -n "$RANLIB"; then
  4343. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4344. else
  4345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4346. for as_dir in $PATH
  4347. do
  4348. IFS=$as_save_IFS
  4349. test -z "$as_dir" && as_dir=.
  4350. for ac_exec_ext in '' $ac_executable_extensions; do
  4351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4352. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4354. break 2
  4355. fi
  4356. done
  4357. done
  4358. IFS=$as_save_IFS
  4359. fi
  4360. fi
  4361. RANLIB=$ac_cv_prog_RANLIB
  4362. if test -n "$RANLIB"; then
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4364. $as_echo "$RANLIB" >&6; }
  4365. else
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4367. $as_echo "no" >&6; }
  4368. fi
  4369. fi
  4370. if test -z "$ac_cv_prog_RANLIB"; then
  4371. ac_ct_RANLIB=$RANLIB
  4372. # Extract the first word of "ranlib", so it can be a program name with args.
  4373. set dummy ranlib; ac_word=$2
  4374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4375. $as_echo_n "checking for $ac_word... " >&6; }
  4376. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4377. $as_echo_n "(cached) " >&6
  4378. else
  4379. if test -n "$ac_ct_RANLIB"; then
  4380. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4381. else
  4382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4383. for as_dir in $PATH
  4384. do
  4385. IFS=$as_save_IFS
  4386. test -z "$as_dir" && as_dir=.
  4387. for ac_exec_ext in '' $ac_executable_extensions; do
  4388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4389. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4391. break 2
  4392. fi
  4393. done
  4394. done
  4395. IFS=$as_save_IFS
  4396. fi
  4397. fi
  4398. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4399. if test -n "$ac_ct_RANLIB"; then
  4400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4401. $as_echo "$ac_ct_RANLIB" >&6; }
  4402. else
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4404. $as_echo "no" >&6; }
  4405. fi
  4406. if test "x$ac_ct_RANLIB" = x; then
  4407. RANLIB="ranlib-not-found-in-path-error"
  4408. else
  4409. case $cross_compiling:$ac_tool_warned in
  4410. yes:)
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4412. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4413. ac_tool_warned=yes ;;
  4414. esac
  4415. RANLIB=$ac_ct_RANLIB
  4416. fi
  4417. else
  4418. RANLIB="$ac_cv_prog_RANLIB"
  4419. fi
  4420. # Extract the first word of "perl", so it can be a program name with args.
  4421. set dummy perl; ac_word=$2
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4423. $as_echo_n "checking for $ac_word... " >&6; }
  4424. if ${ac_cv_path_PERL+:} false; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. case $PERL in
  4428. [\\/]* | ?:[\\/]*)
  4429. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  4430. ;;
  4431. *)
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_exec_ext in '' $ac_executable_extensions; do
  4438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4439. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  4440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4441. break 2
  4442. fi
  4443. done
  4444. done
  4445. IFS=$as_save_IFS
  4446. test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
  4447. ;;
  4448. esac
  4449. fi
  4450. PERL=$ac_cv_path_PERL
  4451. if test -n "$PERL"; then
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  4453. $as_echo "$PERL" >&6; }
  4454. else
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4456. $as_echo "no" >&6; }
  4457. fi
  4458. # Configure libtool
  4459. case `pwd` in
  4460. *\ * | *\ *)
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4462. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4463. esac
  4464. macro_version='2.2.7a'
  4465. macro_revision='1.3134'
  4466. ltmain="$ac_aux_dir/ltmain.sh"
  4467. # Backslashify metacharacters that are still active within
  4468. # double-quoted strings.
  4469. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4470. # Same as above, but do not quote variable references.
  4471. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4472. # Sed substitution to delay expansion of an escaped shell variable in a
  4473. # double_quote_subst'ed string.
  4474. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4475. # Sed substitution to delay expansion of an escaped single quote.
  4476. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4477. # Sed substitution to avoid accidental globbing in evaled expressions
  4478. no_glob_subst='s/\*/\\\*/g'
  4479. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4480. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4481. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4483. $as_echo_n "checking how to print strings... " >&6; }
  4484. # Test print first, because it will be a builtin if present.
  4485. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4486. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4487. ECHO='print -r --'
  4488. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4489. ECHO='printf %s\n'
  4490. else
  4491. # Use this function as a fallback that always works.
  4492. func_fallback_echo ()
  4493. {
  4494. eval 'cat <<_LTECHO_EOF
  4495. $1
  4496. _LTECHO_EOF'
  4497. }
  4498. ECHO='func_fallback_echo'
  4499. fi
  4500. # func_echo_all arg...
  4501. # Invoke $ECHO with all args, space-separated.
  4502. func_echo_all ()
  4503. {
  4504. $ECHO ""
  4505. }
  4506. case "$ECHO" in
  4507. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4508. $as_echo "printf" >&6; } ;;
  4509. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4510. $as_echo "print -r" >&6; } ;;
  4511. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4512. $as_echo "cat" >&6; } ;;
  4513. esac
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4515. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4516. if ${ac_cv_path_SED+:} false; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4520. for ac_i in 1 2 3 4 5 6 7; do
  4521. ac_script="$ac_script$as_nl$ac_script"
  4522. done
  4523. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4524. { ac_script=; unset ac_script;}
  4525. if test -z "$SED"; then
  4526. ac_path_SED_found=false
  4527. # Loop through the user's path and test for each of PROGNAME-LIST
  4528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4529. for as_dir in $PATH
  4530. do
  4531. IFS=$as_save_IFS
  4532. test -z "$as_dir" && as_dir=.
  4533. for ac_prog in sed gsed; do
  4534. for ac_exec_ext in '' $ac_executable_extensions; do
  4535. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4536. as_fn_executable_p "$ac_path_SED" || continue
  4537. # Check for GNU ac_path_SED and select it if it is found.
  4538. # Check for GNU $ac_path_SED
  4539. case `"$ac_path_SED" --version 2>&1` in
  4540. *GNU*)
  4541. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4542. *)
  4543. ac_count=0
  4544. $as_echo_n 0123456789 >"conftest.in"
  4545. while :
  4546. do
  4547. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4548. mv "conftest.tmp" "conftest.in"
  4549. cp "conftest.in" "conftest.nl"
  4550. $as_echo '' >> "conftest.nl"
  4551. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4552. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4553. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4554. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4555. # Best one so far, save it but keep looking for a better one
  4556. ac_cv_path_SED="$ac_path_SED"
  4557. ac_path_SED_max=$ac_count
  4558. fi
  4559. # 10*(2^10) chars as input seems more than enough
  4560. test $ac_count -gt 10 && break
  4561. done
  4562. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4563. esac
  4564. $ac_path_SED_found && break 3
  4565. done
  4566. done
  4567. done
  4568. IFS=$as_save_IFS
  4569. if test -z "$ac_cv_path_SED"; then
  4570. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4571. fi
  4572. else
  4573. ac_cv_path_SED=$SED
  4574. fi
  4575. fi
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4577. $as_echo "$ac_cv_path_SED" >&6; }
  4578. SED="$ac_cv_path_SED"
  4579. rm -f conftest.sed
  4580. test -z "$SED" && SED=sed
  4581. Xsed="$SED -e 1s/^X//"
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4583. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4584. if ${ac_cv_path_GREP+:} false; then :
  4585. $as_echo_n "(cached) " >&6
  4586. else
  4587. if test -z "$GREP"; then
  4588. ac_path_GREP_found=false
  4589. # Loop through the user's path and test for each of PROGNAME-LIST
  4590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4592. do
  4593. IFS=$as_save_IFS
  4594. test -z "$as_dir" && as_dir=.
  4595. for ac_prog in grep ggrep; do
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4598. as_fn_executable_p "$ac_path_GREP" || continue
  4599. # Check for GNU ac_path_GREP and select it if it is found.
  4600. # Check for GNU $ac_path_GREP
  4601. case `"$ac_path_GREP" --version 2>&1` in
  4602. *GNU*)
  4603. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4604. *)
  4605. ac_count=0
  4606. $as_echo_n 0123456789 >"conftest.in"
  4607. while :
  4608. do
  4609. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4610. mv "conftest.tmp" "conftest.in"
  4611. cp "conftest.in" "conftest.nl"
  4612. $as_echo 'GREP' >> "conftest.nl"
  4613. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4614. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4615. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4616. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4617. # Best one so far, save it but keep looking for a better one
  4618. ac_cv_path_GREP="$ac_path_GREP"
  4619. ac_path_GREP_max=$ac_count
  4620. fi
  4621. # 10*(2^10) chars as input seems more than enough
  4622. test $ac_count -gt 10 && break
  4623. done
  4624. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4625. esac
  4626. $ac_path_GREP_found && break 3
  4627. done
  4628. done
  4629. done
  4630. IFS=$as_save_IFS
  4631. if test -z "$ac_cv_path_GREP"; then
  4632. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4633. fi
  4634. else
  4635. ac_cv_path_GREP=$GREP
  4636. fi
  4637. fi
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4639. $as_echo "$ac_cv_path_GREP" >&6; }
  4640. GREP="$ac_cv_path_GREP"
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4642. $as_echo_n "checking for egrep... " >&6; }
  4643. if ${ac_cv_path_EGREP+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4647. then ac_cv_path_EGREP="$GREP -E"
  4648. else
  4649. if test -z "$EGREP"; then
  4650. ac_path_EGREP_found=false
  4651. # Loop through the user's path and test for each of PROGNAME-LIST
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4654. do
  4655. IFS=$as_save_IFS
  4656. test -z "$as_dir" && as_dir=.
  4657. for ac_prog in egrep; do
  4658. for ac_exec_ext in '' $ac_executable_extensions; do
  4659. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4660. as_fn_executable_p "$ac_path_EGREP" || continue
  4661. # Check for GNU ac_path_EGREP and select it if it is found.
  4662. # Check for GNU $ac_path_EGREP
  4663. case `"$ac_path_EGREP" --version 2>&1` in
  4664. *GNU*)
  4665. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4666. *)
  4667. ac_count=0
  4668. $as_echo_n 0123456789 >"conftest.in"
  4669. while :
  4670. do
  4671. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4672. mv "conftest.tmp" "conftest.in"
  4673. cp "conftest.in" "conftest.nl"
  4674. $as_echo 'EGREP' >> "conftest.nl"
  4675. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4676. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4677. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4678. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4679. # Best one so far, save it but keep looking for a better one
  4680. ac_cv_path_EGREP="$ac_path_EGREP"
  4681. ac_path_EGREP_max=$ac_count
  4682. fi
  4683. # 10*(2^10) chars as input seems more than enough
  4684. test $ac_count -gt 10 && break
  4685. done
  4686. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4687. esac
  4688. $ac_path_EGREP_found && break 3
  4689. done
  4690. done
  4691. done
  4692. IFS=$as_save_IFS
  4693. if test -z "$ac_cv_path_EGREP"; then
  4694. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4695. fi
  4696. else
  4697. ac_cv_path_EGREP=$EGREP
  4698. fi
  4699. fi
  4700. fi
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4702. $as_echo "$ac_cv_path_EGREP" >&6; }
  4703. EGREP="$ac_cv_path_EGREP"
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4705. $as_echo_n "checking for fgrep... " >&6; }
  4706. if ${ac_cv_path_FGREP+:} false; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4710. then ac_cv_path_FGREP="$GREP -F"
  4711. else
  4712. if test -z "$FGREP"; then
  4713. ac_path_FGREP_found=false
  4714. # Loop through the user's path and test for each of PROGNAME-LIST
  4715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4716. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4717. do
  4718. IFS=$as_save_IFS
  4719. test -z "$as_dir" && as_dir=.
  4720. for ac_prog in fgrep; do
  4721. for ac_exec_ext in '' $ac_executable_extensions; do
  4722. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4723. as_fn_executable_p "$ac_path_FGREP" || continue
  4724. # Check for GNU ac_path_FGREP and select it if it is found.
  4725. # Check for GNU $ac_path_FGREP
  4726. case `"$ac_path_FGREP" --version 2>&1` in
  4727. *GNU*)
  4728. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4729. *)
  4730. ac_count=0
  4731. $as_echo_n 0123456789 >"conftest.in"
  4732. while :
  4733. do
  4734. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4735. mv "conftest.tmp" "conftest.in"
  4736. cp "conftest.in" "conftest.nl"
  4737. $as_echo 'FGREP' >> "conftest.nl"
  4738. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4739. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4740. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4741. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4742. # Best one so far, save it but keep looking for a better one
  4743. ac_cv_path_FGREP="$ac_path_FGREP"
  4744. ac_path_FGREP_max=$ac_count
  4745. fi
  4746. # 10*(2^10) chars as input seems more than enough
  4747. test $ac_count -gt 10 && break
  4748. done
  4749. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4750. esac
  4751. $ac_path_FGREP_found && break 3
  4752. done
  4753. done
  4754. done
  4755. IFS=$as_save_IFS
  4756. if test -z "$ac_cv_path_FGREP"; then
  4757. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4758. fi
  4759. else
  4760. ac_cv_path_FGREP=$FGREP
  4761. fi
  4762. fi
  4763. fi
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4765. $as_echo "$ac_cv_path_FGREP" >&6; }
  4766. FGREP="$ac_cv_path_FGREP"
  4767. test -z "$GREP" && GREP=grep
  4768. # Check whether --with-gnu-ld was given.
  4769. if test "${with_gnu_ld+set}" = set; then :
  4770. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4771. else
  4772. with_gnu_ld=no
  4773. fi
  4774. ac_prog=ld
  4775. if test "$GCC" = yes; then
  4776. # Check if gcc -print-prog-name=ld gives a path.
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4778. $as_echo_n "checking for ld used by $CC... " >&6; }
  4779. case $host in
  4780. *-*-mingw*)
  4781. # gcc leaves a trailing carriage return which upsets mingw
  4782. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4783. *)
  4784. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4785. esac
  4786. case $ac_prog in
  4787. # Accept absolute paths.
  4788. [\\/]* | ?:[\\/]*)
  4789. re_direlt='/[^/][^/]*/\.\./'
  4790. # Canonicalize the pathname of ld
  4791. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4792. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4793. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4794. done
  4795. test -z "$LD" && LD="$ac_prog"
  4796. ;;
  4797. "")
  4798. # If it fails, then pretend we aren't using GCC.
  4799. ac_prog=ld
  4800. ;;
  4801. *)
  4802. # If it is relative, then search for the first ld in PATH.
  4803. with_gnu_ld=unknown
  4804. ;;
  4805. esac
  4806. elif test "$with_gnu_ld" = yes; then
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4808. $as_echo_n "checking for GNU ld... " >&6; }
  4809. else
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4811. $as_echo_n "checking for non-GNU ld... " >&6; }
  4812. fi
  4813. if ${lt_cv_path_LD+:} false; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. if test -z "$LD"; then
  4817. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4818. for ac_dir in $PATH; do
  4819. IFS="$lt_save_ifs"
  4820. test -z "$ac_dir" && ac_dir=.
  4821. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4822. lt_cv_path_LD="$ac_dir/$ac_prog"
  4823. # Check to see if the program is GNU ld. I'd rather use --version,
  4824. # but apparently some variants of GNU ld only accept -v.
  4825. # Break only if it was the GNU/non-GNU ld that we prefer.
  4826. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4827. *GNU* | *'with BFD'*)
  4828. test "$with_gnu_ld" != no && break
  4829. ;;
  4830. *)
  4831. test "$with_gnu_ld" != yes && break
  4832. ;;
  4833. esac
  4834. fi
  4835. done
  4836. IFS="$lt_save_ifs"
  4837. else
  4838. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4839. fi
  4840. fi
  4841. LD="$lt_cv_path_LD"
  4842. if test -n "$LD"; then
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4844. $as_echo "$LD" >&6; }
  4845. else
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4847. $as_echo "no" >&6; }
  4848. fi
  4849. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4851. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4852. if ${lt_cv_prog_gnu_ld+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4856. case `$LD -v 2>&1 </dev/null` in
  4857. *GNU* | *'with BFD'*)
  4858. lt_cv_prog_gnu_ld=yes
  4859. ;;
  4860. *)
  4861. lt_cv_prog_gnu_ld=no
  4862. ;;
  4863. esac
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4866. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4867. with_gnu_ld=$lt_cv_prog_gnu_ld
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4869. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4870. if ${lt_cv_path_NM+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -n "$NM"; then
  4874. # Let the user override the test.
  4875. lt_cv_path_NM="$NM"
  4876. else
  4877. lt_nm_to_check="${ac_tool_prefix}nm"
  4878. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4879. lt_nm_to_check="$lt_nm_to_check nm"
  4880. fi
  4881. for lt_tmp_nm in $lt_nm_to_check; do
  4882. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4883. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4884. IFS="$lt_save_ifs"
  4885. test -z "$ac_dir" && ac_dir=.
  4886. tmp_nm="$ac_dir/$lt_tmp_nm"
  4887. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4888. # Check to see if the nm accepts a BSD-compat flag.
  4889. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4890. # nm: unknown option "B" ignored
  4891. # Tru64's nm complains that /dev/null is an invalid object file
  4892. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4893. */dev/null* | *'Invalid file or object type'*)
  4894. lt_cv_path_NM="$tmp_nm -B"
  4895. break
  4896. ;;
  4897. *)
  4898. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4899. */dev/null*)
  4900. lt_cv_path_NM="$tmp_nm -p"
  4901. break
  4902. ;;
  4903. *)
  4904. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4905. continue # so that we can try to find one that supports BSD flags
  4906. ;;
  4907. esac
  4908. ;;
  4909. esac
  4910. fi
  4911. done
  4912. IFS="$lt_save_ifs"
  4913. done
  4914. : ${lt_cv_path_NM=no}
  4915. fi
  4916. fi
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4918. $as_echo "$lt_cv_path_NM" >&6; }
  4919. if test "$lt_cv_path_NM" != "no"; then
  4920. NM="$lt_cv_path_NM"
  4921. else
  4922. # Didn't find any BSD compatible name lister, look for dumpbin.
  4923. if test -n "$DUMPBIN"; then :
  4924. # Let the user override the test.
  4925. else
  4926. if test -n "$ac_tool_prefix"; then
  4927. for ac_prog in dumpbin "link -dump"
  4928. do
  4929. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4930. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4932. $as_echo_n "checking for $ac_word... " >&6; }
  4933. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4934. $as_echo_n "(cached) " >&6
  4935. else
  4936. if test -n "$DUMPBIN"; then
  4937. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4938. else
  4939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4940. for as_dir in $PATH
  4941. do
  4942. IFS=$as_save_IFS
  4943. test -z "$as_dir" && as_dir=.
  4944. for ac_exec_ext in '' $ac_executable_extensions; do
  4945. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4946. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4948. break 2
  4949. fi
  4950. done
  4951. done
  4952. IFS=$as_save_IFS
  4953. fi
  4954. fi
  4955. DUMPBIN=$ac_cv_prog_DUMPBIN
  4956. if test -n "$DUMPBIN"; then
  4957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4958. $as_echo "$DUMPBIN" >&6; }
  4959. else
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4961. $as_echo "no" >&6; }
  4962. fi
  4963. test -n "$DUMPBIN" && break
  4964. done
  4965. fi
  4966. if test -z "$DUMPBIN"; then
  4967. ac_ct_DUMPBIN=$DUMPBIN
  4968. for ac_prog in dumpbin "link -dump"
  4969. do
  4970. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4971. set dummy $ac_prog; ac_word=$2
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4973. $as_echo_n "checking for $ac_word... " >&6; }
  4974. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. if test -n "$ac_ct_DUMPBIN"; then
  4978. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4979. else
  4980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4981. for as_dir in $PATH
  4982. do
  4983. IFS=$as_save_IFS
  4984. test -z "$as_dir" && as_dir=.
  4985. for ac_exec_ext in '' $ac_executable_extensions; do
  4986. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4987. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4989. break 2
  4990. fi
  4991. done
  4992. done
  4993. IFS=$as_save_IFS
  4994. fi
  4995. fi
  4996. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4997. if test -n "$ac_ct_DUMPBIN"; then
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4999. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5000. else
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5002. $as_echo "no" >&6; }
  5003. fi
  5004. test -n "$ac_ct_DUMPBIN" && break
  5005. done
  5006. if test "x$ac_ct_DUMPBIN" = x; then
  5007. DUMPBIN=":"
  5008. else
  5009. case $cross_compiling:$ac_tool_warned in
  5010. yes:)
  5011. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5012. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5013. ac_tool_warned=yes ;;
  5014. esac
  5015. DUMPBIN=$ac_ct_DUMPBIN
  5016. fi
  5017. fi
  5018. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5019. *COFF*)
  5020. DUMPBIN="$DUMPBIN -symbols"
  5021. ;;
  5022. *)
  5023. DUMPBIN=:
  5024. ;;
  5025. esac
  5026. fi
  5027. if test "$DUMPBIN" != ":"; then
  5028. NM="$DUMPBIN"
  5029. fi
  5030. fi
  5031. test -z "$NM" && NM=nm
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5033. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5034. if ${lt_cv_nm_interface+:} false; then :
  5035. $as_echo_n "(cached) " >&6
  5036. else
  5037. lt_cv_nm_interface="BSD nm"
  5038. echo "int some_variable = 0;" > conftest.$ac_ext
  5039. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5040. (eval "$ac_compile" 2>conftest.err)
  5041. cat conftest.err >&5
  5042. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5043. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5044. cat conftest.err >&5
  5045. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5046. cat conftest.out >&5
  5047. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5048. lt_cv_nm_interface="MS dumpbin"
  5049. fi
  5050. rm -f conftest*
  5051. fi
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5053. $as_echo "$lt_cv_nm_interface" >&6; }
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5055. $as_echo_n "checking whether ln -s works... " >&6; }
  5056. LN_S=$as_ln_s
  5057. if test "$LN_S" = "ln -s"; then
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5059. $as_echo "yes" >&6; }
  5060. else
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5062. $as_echo "no, using $LN_S" >&6; }
  5063. fi
  5064. # find the maximum length of command line arguments
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5066. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5067. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5068. $as_echo_n "(cached) " >&6
  5069. else
  5070. i=0
  5071. teststring="ABCD"
  5072. case $build_os in
  5073. msdosdjgpp*)
  5074. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5075. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5076. # during glob expansion). Even if it were fixed, the result of this
  5077. # check would be larger than it should be.
  5078. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5079. ;;
  5080. gnu*)
  5081. # Under GNU Hurd, this test is not required because there is
  5082. # no limit to the length of command line arguments.
  5083. # Libtool will interpret -1 as no limit whatsoever
  5084. lt_cv_sys_max_cmd_len=-1;
  5085. ;;
  5086. cygwin* | mingw* | cegcc*)
  5087. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5088. # about 5 minutes as the teststring grows exponentially.
  5089. # Worse, since 9x/ME are not pre-emptively multitasking,
  5090. # you end up with a "frozen" computer, even though with patience
  5091. # the test eventually succeeds (with a max line length of 256k).
  5092. # Instead, let's just punt: use the minimum linelength reported by
  5093. # all of the supported platforms: 8192 (on NT/2K/XP).
  5094. lt_cv_sys_max_cmd_len=8192;
  5095. ;;
  5096. mint*)
  5097. # On MiNT this can take a long time and run out of memory.
  5098. lt_cv_sys_max_cmd_len=8192;
  5099. ;;
  5100. amigaos*)
  5101. # On AmigaOS with pdksh, this test takes hours, literally.
  5102. # So we just punt and use a minimum line length of 8192.
  5103. lt_cv_sys_max_cmd_len=8192;
  5104. ;;
  5105. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5106. # This has been around since 386BSD, at least. Likely further.
  5107. if test -x /sbin/sysctl; then
  5108. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5109. elif test -x /usr/sbin/sysctl; then
  5110. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5111. else
  5112. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5113. fi
  5114. # And add a safety zone
  5115. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5116. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5117. ;;
  5118. interix*)
  5119. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5120. lt_cv_sys_max_cmd_len=196608
  5121. ;;
  5122. osf*)
  5123. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5124. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5125. # nice to cause kernel panics so lets avoid the loop below.
  5126. # First set a reasonable default.
  5127. lt_cv_sys_max_cmd_len=16384
  5128. #
  5129. if test -x /sbin/sysconfig; then
  5130. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5131. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5132. esac
  5133. fi
  5134. ;;
  5135. sco3.2v5*)
  5136. lt_cv_sys_max_cmd_len=102400
  5137. ;;
  5138. sysv5* | sco5v6* | sysv4.2uw2*)
  5139. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5140. if test -n "$kargmax"; then
  5141. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5142. else
  5143. lt_cv_sys_max_cmd_len=32768
  5144. fi
  5145. ;;
  5146. *)
  5147. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5148. if test -n "$lt_cv_sys_max_cmd_len"; then
  5149. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5150. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5151. else
  5152. # Make teststring a little bigger before we do anything with it.
  5153. # a 1K string should be a reasonable start.
  5154. for i in 1 2 3 4 5 6 7 8 ; do
  5155. teststring=$teststring$teststring
  5156. done
  5157. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5158. # If test is not a shell built-in, we'll probably end up computing a
  5159. # maximum length that is only half of the actual maximum length, but
  5160. # we can't tell.
  5161. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5162. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5163. test $i != 17 # 1/2 MB should be enough
  5164. do
  5165. i=`expr $i + 1`
  5166. teststring=$teststring$teststring
  5167. done
  5168. # Only check the string length outside the loop.
  5169. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5170. teststring=
  5171. # Add a significant safety factor because C++ compilers can tack on
  5172. # massive amounts of additional arguments before passing them to the
  5173. # linker. It appears as though 1/2 is a usable value.
  5174. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5175. fi
  5176. ;;
  5177. esac
  5178. fi
  5179. if test -n $lt_cv_sys_max_cmd_len ; then
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5181. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5182. else
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5184. $as_echo "none" >&6; }
  5185. fi
  5186. max_cmd_len=$lt_cv_sys_max_cmd_len
  5187. : ${CP="cp -f"}
  5188. : ${MV="mv -f"}
  5189. : ${RM="rm -f"}
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5191. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5192. # Try some XSI features
  5193. xsi_shell=no
  5194. ( _lt_dummy="a/b/c"
  5195. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5196. = c,a/b,, \
  5197. && eval 'test $(( 1 + 1 )) -eq 2 \
  5198. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5199. && xsi_shell=yes
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5201. $as_echo "$xsi_shell" >&6; }
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5203. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5204. lt_shell_append=no
  5205. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5206. >/dev/null 2>&1 \
  5207. && lt_shell_append=yes
  5208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5209. $as_echo "$lt_shell_append" >&6; }
  5210. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5211. lt_unset=unset
  5212. else
  5213. lt_unset=false
  5214. fi
  5215. # test EBCDIC or ASCII
  5216. case `echo X|tr X '\101'` in
  5217. A) # ASCII based system
  5218. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5219. lt_SP2NL='tr \040 \012'
  5220. lt_NL2SP='tr \015\012 \040\040'
  5221. ;;
  5222. *) # EBCDIC based system
  5223. lt_SP2NL='tr \100 \n'
  5224. lt_NL2SP='tr \r\n \100\100'
  5225. ;;
  5226. esac
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5228. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5229. if ${lt_cv_ld_reload_flag+:} false; then :
  5230. $as_echo_n "(cached) " >&6
  5231. else
  5232. lt_cv_ld_reload_flag='-r'
  5233. fi
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5235. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5236. reload_flag=$lt_cv_ld_reload_flag
  5237. case $reload_flag in
  5238. "" | " "*) ;;
  5239. *) reload_flag=" $reload_flag" ;;
  5240. esac
  5241. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5242. case $host_os in
  5243. darwin*)
  5244. if test "$GCC" = yes; then
  5245. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5246. else
  5247. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5248. fi
  5249. ;;
  5250. esac
  5251. if test -n "$ac_tool_prefix"; then
  5252. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5253. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5255. $as_echo_n "checking for $ac_word... " >&6; }
  5256. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5257. $as_echo_n "(cached) " >&6
  5258. else
  5259. if test -n "$OBJDUMP"; then
  5260. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5261. else
  5262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5263. for as_dir in $PATH
  5264. do
  5265. IFS=$as_save_IFS
  5266. test -z "$as_dir" && as_dir=.
  5267. for ac_exec_ext in '' $ac_executable_extensions; do
  5268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5269. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5271. break 2
  5272. fi
  5273. done
  5274. done
  5275. IFS=$as_save_IFS
  5276. fi
  5277. fi
  5278. OBJDUMP=$ac_cv_prog_OBJDUMP
  5279. if test -n "$OBJDUMP"; then
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5281. $as_echo "$OBJDUMP" >&6; }
  5282. else
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5284. $as_echo "no" >&6; }
  5285. fi
  5286. fi
  5287. if test -z "$ac_cv_prog_OBJDUMP"; then
  5288. ac_ct_OBJDUMP=$OBJDUMP
  5289. # Extract the first word of "objdump", so it can be a program name with args.
  5290. set dummy objdump; ac_word=$2
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5292. $as_echo_n "checking for $ac_word... " >&6; }
  5293. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5294. $as_echo_n "(cached) " >&6
  5295. else
  5296. if test -n "$ac_ct_OBJDUMP"; then
  5297. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5298. else
  5299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5300. for as_dir in $PATH
  5301. do
  5302. IFS=$as_save_IFS
  5303. test -z "$as_dir" && as_dir=.
  5304. for ac_exec_ext in '' $ac_executable_extensions; do
  5305. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5306. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5308. break 2
  5309. fi
  5310. done
  5311. done
  5312. IFS=$as_save_IFS
  5313. fi
  5314. fi
  5315. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5316. if test -n "$ac_ct_OBJDUMP"; then
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5318. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5319. else
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5321. $as_echo "no" >&6; }
  5322. fi
  5323. if test "x$ac_ct_OBJDUMP" = x; then
  5324. OBJDUMP="false"
  5325. else
  5326. case $cross_compiling:$ac_tool_warned in
  5327. yes:)
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5330. ac_tool_warned=yes ;;
  5331. esac
  5332. OBJDUMP=$ac_ct_OBJDUMP
  5333. fi
  5334. else
  5335. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5336. fi
  5337. test -z "$OBJDUMP" && OBJDUMP=objdump
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5339. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5340. if ${lt_cv_deplibs_check_method+:} false; then :
  5341. $as_echo_n "(cached) " >&6
  5342. else
  5343. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5344. lt_cv_file_magic_test_file=
  5345. lt_cv_deplibs_check_method='unknown'
  5346. # Need to set the preceding variable on all platforms that support
  5347. # interlibrary dependencies.
  5348. # 'none' -- dependencies not supported.
  5349. # `unknown' -- same as none, but documents that we really don't know.
  5350. # 'pass_all' -- all dependencies passed with no checks.
  5351. # 'test_compile' -- check by making test program.
  5352. # 'file_magic [[regex]]' -- check by looking for files in library path
  5353. # which responds to the $file_magic_cmd with a given extended regex.
  5354. # If you have `file' or equivalent on your system and you're not sure
  5355. # whether `pass_all' will *always* work, you probably want this one.
  5356. case $host_os in
  5357. aix[4-9]*)
  5358. lt_cv_deplibs_check_method=pass_all
  5359. ;;
  5360. beos*)
  5361. lt_cv_deplibs_check_method=pass_all
  5362. ;;
  5363. bsdi[45]*)
  5364. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5365. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5366. lt_cv_file_magic_test_file=/shlib/libc.so
  5367. ;;
  5368. cygwin*)
  5369. # func_win32_libid is a shell function defined in ltmain.sh
  5370. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5371. lt_cv_file_magic_cmd='func_win32_libid'
  5372. ;;
  5373. mingw* | pw32*)
  5374. # Base MSYS/MinGW do not provide the 'file' command needed by
  5375. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5376. # unless we find 'file', for example because we are cross-compiling.
  5377. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5378. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5379. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5380. lt_cv_file_magic_cmd='func_win32_libid'
  5381. else
  5382. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5383. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5384. fi
  5385. ;;
  5386. cegcc*)
  5387. # use the weaker test based on 'objdump'. See mingw*.
  5388. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5389. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5390. ;;
  5391. darwin* | rhapsody*)
  5392. lt_cv_deplibs_check_method=pass_all
  5393. ;;
  5394. freebsd* | dragonfly*)
  5395. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5396. case $host_cpu in
  5397. i*86 )
  5398. # Not sure whether the presence of OpenBSD here was a mistake.
  5399. # Let's accept both of them until this is cleared up.
  5400. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5401. lt_cv_file_magic_cmd=/usr/bin/file
  5402. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5403. ;;
  5404. esac
  5405. else
  5406. lt_cv_deplibs_check_method=pass_all
  5407. fi
  5408. ;;
  5409. gnu*)
  5410. lt_cv_deplibs_check_method=pass_all
  5411. ;;
  5412. haiku*)
  5413. lt_cv_deplibs_check_method=pass_all
  5414. ;;
  5415. hpux10.20* | hpux11*)
  5416. lt_cv_file_magic_cmd=/usr/bin/file
  5417. case $host_cpu in
  5418. ia64*)
  5419. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5420. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5421. ;;
  5422. hppa*64*)
  5423. 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]'
  5424. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5425. ;;
  5426. *)
  5427. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5428. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5429. ;;
  5430. esac
  5431. ;;
  5432. interix[3-9]*)
  5433. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5434. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5435. ;;
  5436. irix5* | irix6* | nonstopux*)
  5437. case $LD in
  5438. *-32|*"-32 ") libmagic=32-bit;;
  5439. *-n32|*"-n32 ") libmagic=N32;;
  5440. *-64|*"-64 ") libmagic=64-bit;;
  5441. *) libmagic=never-match;;
  5442. esac
  5443. lt_cv_deplibs_check_method=pass_all
  5444. ;;
  5445. # This must be Linux ELF.
  5446. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5447. lt_cv_deplibs_check_method=pass_all
  5448. ;;
  5449. netbsd*)
  5450. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5451. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5452. else
  5453. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5454. fi
  5455. ;;
  5456. newos6*)
  5457. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5458. lt_cv_file_magic_cmd=/usr/bin/file
  5459. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5460. ;;
  5461. *nto* | *qnx*)
  5462. lt_cv_deplibs_check_method=pass_all
  5463. ;;
  5464. openbsd*)
  5465. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5466. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5467. else
  5468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5469. fi
  5470. ;;
  5471. osf3* | osf4* | osf5*)
  5472. lt_cv_deplibs_check_method=pass_all
  5473. ;;
  5474. rdos*)
  5475. lt_cv_deplibs_check_method=pass_all
  5476. ;;
  5477. solaris*)
  5478. lt_cv_deplibs_check_method=pass_all
  5479. ;;
  5480. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. sysv4 | sysv4.3*)
  5484. case $host_vendor in
  5485. motorola)
  5486. 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]'
  5487. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5488. ;;
  5489. ncr)
  5490. lt_cv_deplibs_check_method=pass_all
  5491. ;;
  5492. sequent)
  5493. lt_cv_file_magic_cmd='/bin/file'
  5494. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5495. ;;
  5496. sni)
  5497. lt_cv_file_magic_cmd='/bin/file'
  5498. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5499. lt_cv_file_magic_test_file=/lib/libc.so
  5500. ;;
  5501. siemens)
  5502. lt_cv_deplibs_check_method=pass_all
  5503. ;;
  5504. pc)
  5505. lt_cv_deplibs_check_method=pass_all
  5506. ;;
  5507. esac
  5508. ;;
  5509. tpf*)
  5510. lt_cv_deplibs_check_method=pass_all
  5511. ;;
  5512. esac
  5513. fi
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5515. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5516. file_magic_cmd=$lt_cv_file_magic_cmd
  5517. deplibs_check_method=$lt_cv_deplibs_check_method
  5518. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5519. if test -n "$ac_tool_prefix"; then
  5520. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5521. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5523. $as_echo_n "checking for $ac_word... " >&6; }
  5524. if ${ac_cv_prog_AR+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. if test -n "$AR"; then
  5528. ac_cv_prog_AR="$AR" # Let the user override the test.
  5529. else
  5530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5531. for as_dir in $PATH
  5532. do
  5533. IFS=$as_save_IFS
  5534. test -z "$as_dir" && as_dir=.
  5535. for ac_exec_ext in '' $ac_executable_extensions; do
  5536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5537. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5539. break 2
  5540. fi
  5541. done
  5542. done
  5543. IFS=$as_save_IFS
  5544. fi
  5545. fi
  5546. AR=$ac_cv_prog_AR
  5547. if test -n "$AR"; then
  5548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5549. $as_echo "$AR" >&6; }
  5550. else
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5552. $as_echo "no" >&6; }
  5553. fi
  5554. fi
  5555. if test -z "$ac_cv_prog_AR"; then
  5556. ac_ct_AR=$AR
  5557. # Extract the first word of "ar", so it can be a program name with args.
  5558. set dummy ar; ac_word=$2
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5560. $as_echo_n "checking for $ac_word... " >&6; }
  5561. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. if test -n "$ac_ct_AR"; then
  5565. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5566. else
  5567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5568. for as_dir in $PATH
  5569. do
  5570. IFS=$as_save_IFS
  5571. test -z "$as_dir" && as_dir=.
  5572. for ac_exec_ext in '' $ac_executable_extensions; do
  5573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5574. ac_cv_prog_ac_ct_AR="ar"
  5575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5576. break 2
  5577. fi
  5578. done
  5579. done
  5580. IFS=$as_save_IFS
  5581. fi
  5582. fi
  5583. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5584. if test -n "$ac_ct_AR"; then
  5585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5586. $as_echo "$ac_ct_AR" >&6; }
  5587. else
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5589. $as_echo "no" >&6; }
  5590. fi
  5591. if test "x$ac_ct_AR" = x; then
  5592. AR="false"
  5593. else
  5594. case $cross_compiling:$ac_tool_warned in
  5595. yes:)
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5597. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5598. ac_tool_warned=yes ;;
  5599. esac
  5600. AR=$ac_ct_AR
  5601. fi
  5602. else
  5603. AR="$ac_cv_prog_AR"
  5604. fi
  5605. test -z "$AR" && AR=ar
  5606. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_STRIP+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$STRIP"; then
  5616. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. STRIP=$ac_cv_prog_STRIP
  5635. if test -n "$STRIP"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5637. $as_echo "$STRIP" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_STRIP"; then
  5644. ac_ct_STRIP=$STRIP
  5645. # Extract the first word of "strip", so it can be a program name with args.
  5646. set dummy strip; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_STRIP"; then
  5653. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_STRIP="strip"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5672. if test -n "$ac_ct_STRIP"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5674. $as_echo "$ac_ct_STRIP" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_STRIP" = x; then
  5680. STRIP=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. STRIP=$ac_ct_STRIP
  5689. fi
  5690. else
  5691. STRIP="$ac_cv_prog_STRIP"
  5692. fi
  5693. test -z "$STRIP" && STRIP=:
  5694. if test -n "$ac_tool_prefix"; then
  5695. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5696. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5698. $as_echo_n "checking for $ac_word... " >&6; }
  5699. if ${ac_cv_prog_RANLIB+:} false; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. if test -n "$RANLIB"; then
  5703. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5704. else
  5705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5706. for as_dir in $PATH
  5707. do
  5708. IFS=$as_save_IFS
  5709. test -z "$as_dir" && as_dir=.
  5710. for ac_exec_ext in '' $ac_executable_extensions; do
  5711. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5712. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5714. break 2
  5715. fi
  5716. done
  5717. done
  5718. IFS=$as_save_IFS
  5719. fi
  5720. fi
  5721. RANLIB=$ac_cv_prog_RANLIB
  5722. if test -n "$RANLIB"; then
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5724. $as_echo "$RANLIB" >&6; }
  5725. else
  5726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5727. $as_echo "no" >&6; }
  5728. fi
  5729. fi
  5730. if test -z "$ac_cv_prog_RANLIB"; then
  5731. ac_ct_RANLIB=$RANLIB
  5732. # Extract the first word of "ranlib", so it can be a program name with args.
  5733. set dummy ranlib; ac_word=$2
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5735. $as_echo_n "checking for $ac_word... " >&6; }
  5736. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. if test -n "$ac_ct_RANLIB"; then
  5740. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5741. else
  5742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5743. for as_dir in $PATH
  5744. do
  5745. IFS=$as_save_IFS
  5746. test -z "$as_dir" && as_dir=.
  5747. for ac_exec_ext in '' $ac_executable_extensions; do
  5748. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5749. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5751. break 2
  5752. fi
  5753. done
  5754. done
  5755. IFS=$as_save_IFS
  5756. fi
  5757. fi
  5758. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5759. if test -n "$ac_ct_RANLIB"; then
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5761. $as_echo "$ac_ct_RANLIB" >&6; }
  5762. else
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5764. $as_echo "no" >&6; }
  5765. fi
  5766. if test "x$ac_ct_RANLIB" = x; then
  5767. RANLIB=":"
  5768. else
  5769. case $cross_compiling:$ac_tool_warned in
  5770. yes:)
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5772. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5773. ac_tool_warned=yes ;;
  5774. esac
  5775. RANLIB=$ac_ct_RANLIB
  5776. fi
  5777. else
  5778. RANLIB="$ac_cv_prog_RANLIB"
  5779. fi
  5780. test -z "$RANLIB" && RANLIB=:
  5781. # Determine commands to create old-style static archives.
  5782. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5783. old_postinstall_cmds='chmod 644 $oldlib'
  5784. old_postuninstall_cmds=
  5785. if test -n "$RANLIB"; then
  5786. case $host_os in
  5787. openbsd*)
  5788. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5789. ;;
  5790. *)
  5791. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5792. ;;
  5793. esac
  5794. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5795. fi
  5796. case $host_os in
  5797. darwin*)
  5798. lock_old_archive_extraction=yes ;;
  5799. *)
  5800. lock_old_archive_extraction=no ;;
  5801. esac
  5802. # If no C compiler was specified, use CC.
  5803. LTCC=${LTCC-"$CC"}
  5804. # If no C compiler flags were specified, use CFLAGS.
  5805. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5806. # Allow CC to be a program name with arguments.
  5807. compiler=$CC
  5808. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5810. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5811. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5812. $as_echo_n "(cached) " >&6
  5813. else
  5814. # These are sane defaults that work on at least a few old systems.
  5815. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5816. # Character class describing NM global symbol codes.
  5817. symcode='[BCDEGRST]'
  5818. # Regexp to match symbols that can be accessed directly from C.
  5819. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5820. # Define system-specific variables.
  5821. case $host_os in
  5822. aix*)
  5823. symcode='[BCDT]'
  5824. ;;
  5825. cygwin* | mingw* | pw32* | cegcc*)
  5826. symcode='[ABCDGISTW]'
  5827. ;;
  5828. hpux*)
  5829. if test "$host_cpu" = ia64; then
  5830. symcode='[ABCDEGRST]'
  5831. fi
  5832. ;;
  5833. irix* | nonstopux*)
  5834. symcode='[BCDEGRST]'
  5835. ;;
  5836. osf*)
  5837. symcode='[BCDEGQRST]'
  5838. ;;
  5839. solaris*)
  5840. symcode='[BDRT]'
  5841. ;;
  5842. sco3.2v5*)
  5843. symcode='[DT]'
  5844. ;;
  5845. sysv4.2uw2*)
  5846. symcode='[DT]'
  5847. ;;
  5848. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5849. symcode='[ABDT]'
  5850. ;;
  5851. sysv4)
  5852. symcode='[DFNSTU]'
  5853. ;;
  5854. esac
  5855. # If we're using GNU nm, then use its standard symbol codes.
  5856. case `$NM -V 2>&1` in
  5857. *GNU* | *'with BFD'*)
  5858. symcode='[ABCDGIRSTW]' ;;
  5859. esac
  5860. # Transform an extracted symbol line into a proper C declaration.
  5861. # Some systems (esp. on ia64) link data and code symbols differently,
  5862. # so use this general approach.
  5863. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5864. # Transform an extracted symbol line into symbol name and symbol address
  5865. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5866. 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'"
  5867. # Handle CRLF in mingw tool chain
  5868. opt_cr=
  5869. case $build_os in
  5870. mingw*)
  5871. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5872. ;;
  5873. esac
  5874. # Try without a prefix underscore, then with it.
  5875. for ac_symprfx in "" "_"; do
  5876. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5877. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5878. # Write the raw and C identifiers.
  5879. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5880. # Fake it for dumpbin and say T for any non-static function
  5881. # and D for any global variable.
  5882. # Also find C++ and __fastcall symbols from MSVC++,
  5883. # which start with @ or ?.
  5884. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5885. " {last_section=section; section=\$ 3};"\
  5886. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5887. " \$ 0!~/External *\|/{next};"\
  5888. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5889. " {if(hide[section]) next};"\
  5890. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5891. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5892. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5893. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5894. " ' prfx=^$ac_symprfx"
  5895. else
  5896. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5897. fi
  5898. # Check to see that the pipe works correctly.
  5899. pipe_works=no
  5900. rm -f conftest*
  5901. cat > conftest.$ac_ext <<_LT_EOF
  5902. #ifdef __cplusplus
  5903. extern "C" {
  5904. #endif
  5905. char nm_test_var;
  5906. void nm_test_func(void);
  5907. void nm_test_func(void){}
  5908. #ifdef __cplusplus
  5909. }
  5910. #endif
  5911. int main(){nm_test_var='a';nm_test_func();return(0);}
  5912. _LT_EOF
  5913. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5914. (eval $ac_compile) 2>&5
  5915. ac_status=$?
  5916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5917. test $ac_status = 0; }; then
  5918. # Now try to grab the symbols.
  5919. nlist=conftest.nm
  5920. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5921. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5922. ac_status=$?
  5923. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5924. test $ac_status = 0; } && test -s "$nlist"; then
  5925. # Try sorting and uniquifying the output.
  5926. if sort "$nlist" | uniq > "$nlist"T; then
  5927. mv -f "$nlist"T "$nlist"
  5928. else
  5929. rm -f "$nlist"T
  5930. fi
  5931. # Make sure that we snagged all the symbols we need.
  5932. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5933. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5934. cat <<_LT_EOF > conftest.$ac_ext
  5935. #ifdef __cplusplus
  5936. extern "C" {
  5937. #endif
  5938. _LT_EOF
  5939. # Now generate the symbol file.
  5940. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5941. cat <<_LT_EOF >> conftest.$ac_ext
  5942. /* The mapping between symbol names and symbols. */
  5943. const struct {
  5944. const char *name;
  5945. void *address;
  5946. }
  5947. lt__PROGRAM__LTX_preloaded_symbols[] =
  5948. {
  5949. { "@PROGRAM@", (void *) 0 },
  5950. _LT_EOF
  5951. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5952. cat <<\_LT_EOF >> conftest.$ac_ext
  5953. {0, (void *) 0}
  5954. };
  5955. /* This works around a problem in FreeBSD linker */
  5956. #ifdef FREEBSD_WORKAROUND
  5957. static const void *lt_preloaded_setup() {
  5958. return lt__PROGRAM__LTX_preloaded_symbols;
  5959. }
  5960. #endif
  5961. #ifdef __cplusplus
  5962. }
  5963. #endif
  5964. _LT_EOF
  5965. # Now try linking the two files.
  5966. mv conftest.$ac_objext conftstm.$ac_objext
  5967. lt_save_LIBS="$LIBS"
  5968. lt_save_CFLAGS="$CFLAGS"
  5969. LIBS="conftstm.$ac_objext"
  5970. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5971. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5972. (eval $ac_link) 2>&5
  5973. ac_status=$?
  5974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5975. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5976. pipe_works=yes
  5977. fi
  5978. LIBS="$lt_save_LIBS"
  5979. CFLAGS="$lt_save_CFLAGS"
  5980. else
  5981. echo "cannot find nm_test_func in $nlist" >&5
  5982. fi
  5983. else
  5984. echo "cannot find nm_test_var in $nlist" >&5
  5985. fi
  5986. else
  5987. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5988. fi
  5989. else
  5990. echo "$progname: failed program was:" >&5
  5991. cat conftest.$ac_ext >&5
  5992. fi
  5993. rm -rf conftest* conftst*
  5994. # Do not use the global_symbol_pipe unless it works.
  5995. if test "$pipe_works" = yes; then
  5996. break
  5997. else
  5998. lt_cv_sys_global_symbol_pipe=
  5999. fi
  6000. done
  6001. fi
  6002. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6003. lt_cv_sys_global_symbol_to_cdecl=
  6004. fi
  6005. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6007. $as_echo "failed" >&6; }
  6008. else
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6010. $as_echo "ok" >&6; }
  6011. fi
  6012. # Check whether --enable-libtool-lock was given.
  6013. if test "${enable_libtool_lock+set}" = set; then :
  6014. enableval=$enable_libtool_lock;
  6015. fi
  6016. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6017. # Some flags need to be propagated to the compiler or linker for good
  6018. # libtool support.
  6019. case $host in
  6020. ia64-*-hpux*)
  6021. # Find out which ABI we are using.
  6022. echo 'int i;' > conftest.$ac_ext
  6023. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6024. (eval $ac_compile) 2>&5
  6025. ac_status=$?
  6026. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6027. test $ac_status = 0; }; then
  6028. case `/usr/bin/file conftest.$ac_objext` in
  6029. *ELF-32*)
  6030. HPUX_IA64_MODE="32"
  6031. ;;
  6032. *ELF-64*)
  6033. HPUX_IA64_MODE="64"
  6034. ;;
  6035. esac
  6036. fi
  6037. rm -rf conftest*
  6038. ;;
  6039. *-*-irix6*)
  6040. # Find out which ABI we are using.
  6041. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6042. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6043. (eval $ac_compile) 2>&5
  6044. ac_status=$?
  6045. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6046. test $ac_status = 0; }; then
  6047. if test "$lt_cv_prog_gnu_ld" = yes; then
  6048. case `/usr/bin/file conftest.$ac_objext` in
  6049. *32-bit*)
  6050. LD="${LD-ld} -melf32bsmip"
  6051. ;;
  6052. *N32*)
  6053. LD="${LD-ld} -melf32bmipn32"
  6054. ;;
  6055. *64-bit*)
  6056. LD="${LD-ld} -melf64bmip"
  6057. ;;
  6058. esac
  6059. else
  6060. case `/usr/bin/file conftest.$ac_objext` in
  6061. *32-bit*)
  6062. LD="${LD-ld} -32"
  6063. ;;
  6064. *N32*)
  6065. LD="${LD-ld} -n32"
  6066. ;;
  6067. *64-bit*)
  6068. LD="${LD-ld} -64"
  6069. ;;
  6070. esac
  6071. fi
  6072. fi
  6073. rm -rf conftest*
  6074. ;;
  6075. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6076. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6077. # Find out which ABI we are using.
  6078. echo 'int i;' > conftest.$ac_ext
  6079. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6080. (eval $ac_compile) 2>&5
  6081. ac_status=$?
  6082. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6083. test $ac_status = 0; }; then
  6084. case `/usr/bin/file conftest.o` in
  6085. *32-bit*)
  6086. case $host in
  6087. x86_64-*kfreebsd*-gnu)
  6088. LD="${LD-ld} -m elf_i386_fbsd"
  6089. ;;
  6090. x86_64-*linux*)
  6091. case `/usr/bin/file conftest.o` in
  6092. *x86-64*)
  6093. LD="${LD-ld} -m elf32_x86_64"
  6094. ;;
  6095. *)
  6096. LD="${LD-ld} -m elf_i386"
  6097. ;;
  6098. esac
  6099. ;;
  6100. powerpc64le-*linux*)
  6101. LD="${LD-ld} -m elf32lppclinux"
  6102. ;;
  6103. powerpc64-*linux*)
  6104. LD="${LD-ld} -m elf32ppclinux"
  6105. ;;
  6106. s390x-*linux*)
  6107. LD="${LD-ld} -m elf_s390"
  6108. ;;
  6109. sparc64-*linux*)
  6110. LD="${LD-ld} -m elf32_sparc"
  6111. ;;
  6112. esac
  6113. ;;
  6114. *64-bit*)
  6115. case $host in
  6116. x86_64-*kfreebsd*-gnu)
  6117. LD="${LD-ld} -m elf_x86_64_fbsd"
  6118. ;;
  6119. x86_64-*linux*)
  6120. LD="${LD-ld} -m elf_x86_64"
  6121. ;;
  6122. powerpcle-*linux*)
  6123. LD="${LD-ld} -m elf64lppc"
  6124. ;;
  6125. powerpc-*linux*)
  6126. LD="${LD-ld} -m elf64ppc"
  6127. ;;
  6128. s390*-*linux*|s390*-*tpf*)
  6129. LD="${LD-ld} -m elf64_s390"
  6130. ;;
  6131. sparc*-*linux*)
  6132. LD="${LD-ld} -m elf64_sparc"
  6133. ;;
  6134. esac
  6135. ;;
  6136. esac
  6137. fi
  6138. rm -rf conftest*
  6139. ;;
  6140. *-*-sco3.2v5*)
  6141. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6142. SAVE_CFLAGS="$CFLAGS"
  6143. CFLAGS="$CFLAGS -belf"
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6145. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6146. if ${lt_cv_cc_needs_belf+:} false; then :
  6147. $as_echo_n "(cached) " >&6
  6148. else
  6149. ac_ext=c
  6150. ac_cpp='$CPP $CPPFLAGS'
  6151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6155. /* end confdefs.h. */
  6156. int
  6157. main ()
  6158. {
  6159. ;
  6160. return 0;
  6161. }
  6162. _ACEOF
  6163. if ac_fn_c_try_link "$LINENO"; then :
  6164. lt_cv_cc_needs_belf=yes
  6165. else
  6166. lt_cv_cc_needs_belf=no
  6167. fi
  6168. rm -f core conftest.err conftest.$ac_objext \
  6169. conftest$ac_exeext conftest.$ac_ext
  6170. ac_ext=c
  6171. ac_cpp='$CPP $CPPFLAGS'
  6172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6175. fi
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6177. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6178. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6179. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6180. CFLAGS="$SAVE_CFLAGS"
  6181. fi
  6182. ;;
  6183. sparc*-*solaris*)
  6184. # Find out which ABI we are using.
  6185. echo 'int i;' > conftest.$ac_ext
  6186. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6187. (eval $ac_compile) 2>&5
  6188. ac_status=$?
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6190. test $ac_status = 0; }; then
  6191. case `/usr/bin/file conftest.o` in
  6192. *64-bit*)
  6193. case $lt_cv_prog_gnu_ld in
  6194. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6195. *)
  6196. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6197. LD="${LD-ld} -64"
  6198. fi
  6199. ;;
  6200. esac
  6201. ;;
  6202. esac
  6203. fi
  6204. rm -rf conftest*
  6205. ;;
  6206. esac
  6207. need_locks="$enable_libtool_lock"
  6208. case $host_os in
  6209. rhapsody* | darwin*)
  6210. if test -n "$ac_tool_prefix"; then
  6211. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6212. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6214. $as_echo_n "checking for $ac_word... " >&6; }
  6215. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. if test -n "$DSYMUTIL"; then
  6219. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6220. else
  6221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6222. for as_dir in $PATH
  6223. do
  6224. IFS=$as_save_IFS
  6225. test -z "$as_dir" && as_dir=.
  6226. for ac_exec_ext in '' $ac_executable_extensions; do
  6227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6228. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6230. break 2
  6231. fi
  6232. done
  6233. done
  6234. IFS=$as_save_IFS
  6235. fi
  6236. fi
  6237. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6238. if test -n "$DSYMUTIL"; then
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6240. $as_echo "$DSYMUTIL" >&6; }
  6241. else
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6243. $as_echo "no" >&6; }
  6244. fi
  6245. fi
  6246. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6247. ac_ct_DSYMUTIL=$DSYMUTIL
  6248. # Extract the first word of "dsymutil", so it can be a program name with args.
  6249. set dummy dsymutil; ac_word=$2
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6251. $as_echo_n "checking for $ac_word... " >&6; }
  6252. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6253. $as_echo_n "(cached) " >&6
  6254. else
  6255. if test -n "$ac_ct_DSYMUTIL"; then
  6256. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6257. else
  6258. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6259. for as_dir in $PATH
  6260. do
  6261. IFS=$as_save_IFS
  6262. test -z "$as_dir" && as_dir=.
  6263. for ac_exec_ext in '' $ac_executable_extensions; do
  6264. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6265. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6266. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6267. break 2
  6268. fi
  6269. done
  6270. done
  6271. IFS=$as_save_IFS
  6272. fi
  6273. fi
  6274. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6275. if test -n "$ac_ct_DSYMUTIL"; then
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6277. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6278. else
  6279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6280. $as_echo "no" >&6; }
  6281. fi
  6282. if test "x$ac_ct_DSYMUTIL" = x; then
  6283. DSYMUTIL=":"
  6284. else
  6285. case $cross_compiling:$ac_tool_warned in
  6286. yes:)
  6287. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6288. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6289. ac_tool_warned=yes ;;
  6290. esac
  6291. DSYMUTIL=$ac_ct_DSYMUTIL
  6292. fi
  6293. else
  6294. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6295. fi
  6296. if test -n "$ac_tool_prefix"; then
  6297. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6298. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6300. $as_echo_n "checking for $ac_word... " >&6; }
  6301. if ${ac_cv_prog_NMEDIT+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. if test -n "$NMEDIT"; then
  6305. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6306. else
  6307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6308. for as_dir in $PATH
  6309. do
  6310. IFS=$as_save_IFS
  6311. test -z "$as_dir" && as_dir=.
  6312. for ac_exec_ext in '' $ac_executable_extensions; do
  6313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6314. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6316. break 2
  6317. fi
  6318. done
  6319. done
  6320. IFS=$as_save_IFS
  6321. fi
  6322. fi
  6323. NMEDIT=$ac_cv_prog_NMEDIT
  6324. if test -n "$NMEDIT"; then
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6326. $as_echo "$NMEDIT" >&6; }
  6327. else
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6329. $as_echo "no" >&6; }
  6330. fi
  6331. fi
  6332. if test -z "$ac_cv_prog_NMEDIT"; then
  6333. ac_ct_NMEDIT=$NMEDIT
  6334. # Extract the first word of "nmedit", so it can be a program name with args.
  6335. set dummy nmedit; ac_word=$2
  6336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6337. $as_echo_n "checking for $ac_word... " >&6; }
  6338. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6339. $as_echo_n "(cached) " >&6
  6340. else
  6341. if test -n "$ac_ct_NMEDIT"; then
  6342. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6343. else
  6344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6345. for as_dir in $PATH
  6346. do
  6347. IFS=$as_save_IFS
  6348. test -z "$as_dir" && as_dir=.
  6349. for ac_exec_ext in '' $ac_executable_extensions; do
  6350. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6351. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6352. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6353. break 2
  6354. fi
  6355. done
  6356. done
  6357. IFS=$as_save_IFS
  6358. fi
  6359. fi
  6360. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6361. if test -n "$ac_ct_NMEDIT"; then
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6363. $as_echo "$ac_ct_NMEDIT" >&6; }
  6364. else
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6366. $as_echo "no" >&6; }
  6367. fi
  6368. if test "x$ac_ct_NMEDIT" = x; then
  6369. NMEDIT=":"
  6370. else
  6371. case $cross_compiling:$ac_tool_warned in
  6372. yes:)
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6375. ac_tool_warned=yes ;;
  6376. esac
  6377. NMEDIT=$ac_ct_NMEDIT
  6378. fi
  6379. else
  6380. NMEDIT="$ac_cv_prog_NMEDIT"
  6381. fi
  6382. if test -n "$ac_tool_prefix"; then
  6383. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6384. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6386. $as_echo_n "checking for $ac_word... " >&6; }
  6387. if ${ac_cv_prog_LIPO+:} false; then :
  6388. $as_echo_n "(cached) " >&6
  6389. else
  6390. if test -n "$LIPO"; then
  6391. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6392. else
  6393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6394. for as_dir in $PATH
  6395. do
  6396. IFS=$as_save_IFS
  6397. test -z "$as_dir" && as_dir=.
  6398. for ac_exec_ext in '' $ac_executable_extensions; do
  6399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6400. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6402. break 2
  6403. fi
  6404. done
  6405. done
  6406. IFS=$as_save_IFS
  6407. fi
  6408. fi
  6409. LIPO=$ac_cv_prog_LIPO
  6410. if test -n "$LIPO"; then
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6412. $as_echo "$LIPO" >&6; }
  6413. else
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6415. $as_echo "no" >&6; }
  6416. fi
  6417. fi
  6418. if test -z "$ac_cv_prog_LIPO"; then
  6419. ac_ct_LIPO=$LIPO
  6420. # Extract the first word of "lipo", so it can be a program name with args.
  6421. set dummy lipo; ac_word=$2
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6423. $as_echo_n "checking for $ac_word... " >&6; }
  6424. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6425. $as_echo_n "(cached) " >&6
  6426. else
  6427. if test -n "$ac_ct_LIPO"; then
  6428. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6429. else
  6430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6431. for as_dir in $PATH
  6432. do
  6433. IFS=$as_save_IFS
  6434. test -z "$as_dir" && as_dir=.
  6435. for ac_exec_ext in '' $ac_executable_extensions; do
  6436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6437. ac_cv_prog_ac_ct_LIPO="lipo"
  6438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6439. break 2
  6440. fi
  6441. done
  6442. done
  6443. IFS=$as_save_IFS
  6444. fi
  6445. fi
  6446. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6447. if test -n "$ac_ct_LIPO"; then
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6449. $as_echo "$ac_ct_LIPO" >&6; }
  6450. else
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6452. $as_echo "no" >&6; }
  6453. fi
  6454. if test "x$ac_ct_LIPO" = x; then
  6455. LIPO=":"
  6456. else
  6457. case $cross_compiling:$ac_tool_warned in
  6458. yes:)
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6461. ac_tool_warned=yes ;;
  6462. esac
  6463. LIPO=$ac_ct_LIPO
  6464. fi
  6465. else
  6466. LIPO="$ac_cv_prog_LIPO"
  6467. fi
  6468. if test -n "$ac_tool_prefix"; then
  6469. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6470. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6472. $as_echo_n "checking for $ac_word... " >&6; }
  6473. if ${ac_cv_prog_OTOOL+:} false; then :
  6474. $as_echo_n "(cached) " >&6
  6475. else
  6476. if test -n "$OTOOL"; then
  6477. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6478. else
  6479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6480. for as_dir in $PATH
  6481. do
  6482. IFS=$as_save_IFS
  6483. test -z "$as_dir" && as_dir=.
  6484. for ac_exec_ext in '' $ac_executable_extensions; do
  6485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6486. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6488. break 2
  6489. fi
  6490. done
  6491. done
  6492. IFS=$as_save_IFS
  6493. fi
  6494. fi
  6495. OTOOL=$ac_cv_prog_OTOOL
  6496. if test -n "$OTOOL"; then
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6498. $as_echo "$OTOOL" >&6; }
  6499. else
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6501. $as_echo "no" >&6; }
  6502. fi
  6503. fi
  6504. if test -z "$ac_cv_prog_OTOOL"; then
  6505. ac_ct_OTOOL=$OTOOL
  6506. # Extract the first word of "otool", so it can be a program name with args.
  6507. set dummy otool; ac_word=$2
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6509. $as_echo_n "checking for $ac_word... " >&6; }
  6510. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6511. $as_echo_n "(cached) " >&6
  6512. else
  6513. if test -n "$ac_ct_OTOOL"; then
  6514. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6515. else
  6516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6517. for as_dir in $PATH
  6518. do
  6519. IFS=$as_save_IFS
  6520. test -z "$as_dir" && as_dir=.
  6521. for ac_exec_ext in '' $ac_executable_extensions; do
  6522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6523. ac_cv_prog_ac_ct_OTOOL="otool"
  6524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6525. break 2
  6526. fi
  6527. done
  6528. done
  6529. IFS=$as_save_IFS
  6530. fi
  6531. fi
  6532. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6533. if test -n "$ac_ct_OTOOL"; then
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6535. $as_echo "$ac_ct_OTOOL" >&6; }
  6536. else
  6537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6538. $as_echo "no" >&6; }
  6539. fi
  6540. if test "x$ac_ct_OTOOL" = x; then
  6541. OTOOL=":"
  6542. else
  6543. case $cross_compiling:$ac_tool_warned in
  6544. yes:)
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6547. ac_tool_warned=yes ;;
  6548. esac
  6549. OTOOL=$ac_ct_OTOOL
  6550. fi
  6551. else
  6552. OTOOL="$ac_cv_prog_OTOOL"
  6553. fi
  6554. if test -n "$ac_tool_prefix"; then
  6555. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6556. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6558. $as_echo_n "checking for $ac_word... " >&6; }
  6559. if ${ac_cv_prog_OTOOL64+:} false; then :
  6560. $as_echo_n "(cached) " >&6
  6561. else
  6562. if test -n "$OTOOL64"; then
  6563. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6564. else
  6565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6566. for as_dir in $PATH
  6567. do
  6568. IFS=$as_save_IFS
  6569. test -z "$as_dir" && as_dir=.
  6570. for ac_exec_ext in '' $ac_executable_extensions; do
  6571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6572. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6574. break 2
  6575. fi
  6576. done
  6577. done
  6578. IFS=$as_save_IFS
  6579. fi
  6580. fi
  6581. OTOOL64=$ac_cv_prog_OTOOL64
  6582. if test -n "$OTOOL64"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6584. $as_echo "$OTOOL64" >&6; }
  6585. else
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6587. $as_echo "no" >&6; }
  6588. fi
  6589. fi
  6590. if test -z "$ac_cv_prog_OTOOL64"; then
  6591. ac_ct_OTOOL64=$OTOOL64
  6592. # Extract the first word of "otool64", so it can be a program name with args.
  6593. set dummy otool64; ac_word=$2
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6595. $as_echo_n "checking for $ac_word... " >&6; }
  6596. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. if test -n "$ac_ct_OTOOL64"; then
  6600. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6601. else
  6602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6603. for as_dir in $PATH
  6604. do
  6605. IFS=$as_save_IFS
  6606. test -z "$as_dir" && as_dir=.
  6607. for ac_exec_ext in '' $ac_executable_extensions; do
  6608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6609. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6611. break 2
  6612. fi
  6613. done
  6614. done
  6615. IFS=$as_save_IFS
  6616. fi
  6617. fi
  6618. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6619. if test -n "$ac_ct_OTOOL64"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6621. $as_echo "$ac_ct_OTOOL64" >&6; }
  6622. else
  6623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6624. $as_echo "no" >&6; }
  6625. fi
  6626. if test "x$ac_ct_OTOOL64" = x; then
  6627. OTOOL64=":"
  6628. else
  6629. case $cross_compiling:$ac_tool_warned in
  6630. yes:)
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6633. ac_tool_warned=yes ;;
  6634. esac
  6635. OTOOL64=$ac_ct_OTOOL64
  6636. fi
  6637. else
  6638. OTOOL64="$ac_cv_prog_OTOOL64"
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6641. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6642. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6643. $as_echo_n "(cached) " >&6
  6644. else
  6645. lt_cv_apple_cc_single_mod=no
  6646. if test -z "${LT_MULTI_MODULE}"; then
  6647. # By default we will add the -single_module flag. You can override
  6648. # by either setting the environment variable LT_MULTI_MODULE
  6649. # non-empty at configure time, or by adding -multi_module to the
  6650. # link flags.
  6651. rm -rf libconftest.dylib*
  6652. echo "int foo(void){return 1;}" > conftest.c
  6653. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6654. -dynamiclib -Wl,-single_module conftest.c" >&5
  6655. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6656. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6657. _lt_result=$?
  6658. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6659. lt_cv_apple_cc_single_mod=yes
  6660. else
  6661. cat conftest.err >&5
  6662. fi
  6663. rm -rf libconftest.dylib*
  6664. rm -f conftest.*
  6665. fi
  6666. fi
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6668. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6670. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6671. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6672. $as_echo_n "(cached) " >&6
  6673. else
  6674. lt_cv_ld_exported_symbols_list=no
  6675. save_LDFLAGS=$LDFLAGS
  6676. echo "_main" > conftest.sym
  6677. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6679. /* end confdefs.h. */
  6680. int
  6681. main ()
  6682. {
  6683. ;
  6684. return 0;
  6685. }
  6686. _ACEOF
  6687. if ac_fn_c_try_link "$LINENO"; then :
  6688. lt_cv_ld_exported_symbols_list=yes
  6689. else
  6690. lt_cv_ld_exported_symbols_list=no
  6691. fi
  6692. rm -f core conftest.err conftest.$ac_objext \
  6693. conftest$ac_exeext conftest.$ac_ext
  6694. LDFLAGS="$save_LDFLAGS"
  6695. fi
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6697. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6699. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6700. if ${lt_cv_ld_force_load+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. lt_cv_ld_force_load=no
  6704. cat > conftest.c << _LT_EOF
  6705. int forced_loaded() { return 2;}
  6706. _LT_EOF
  6707. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6708. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6709. echo "$AR cru libconftest.a conftest.o" >&5
  6710. $AR cru libconftest.a conftest.o 2>&5
  6711. cat > conftest.c << _LT_EOF
  6712. int main() { return 0;}
  6713. _LT_EOF
  6714. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6715. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6716. _lt_result=$?
  6717. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6718. lt_cv_ld_force_load=yes
  6719. else
  6720. cat conftest.err >&5
  6721. fi
  6722. rm -f conftest.err libconftest.a conftest conftest.c
  6723. rm -rf conftest.dSYM
  6724. fi
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6726. $as_echo "$lt_cv_ld_force_load" >&6; }
  6727. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  6728. # build without first building modern cctools / linker.
  6729. case $host_cpu-$host_os in
  6730. *-rhapsody* | *-darwin1.[012])
  6731. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6732. *-darwin1.*)
  6733. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6734. *-darwin*)
  6735. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  6736. # deployment target is forced to an earlier version.
  6737. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  6738. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  6739. ;;
  6740. 10.[012][,.]*)
  6741. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6742. ;;
  6743. *)
  6744. ;;
  6745. esac
  6746. ;;
  6747. esac
  6748. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6749. _lt_dar_single_mod='$single_module'
  6750. fi
  6751. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6752. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6753. else
  6754. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6755. fi
  6756. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6757. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6758. else
  6759. _lt_dsymutil=
  6760. fi
  6761. ;;
  6762. esac
  6763. ac_ext=c
  6764. ac_cpp='$CPP $CPPFLAGS'
  6765. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6766. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6767. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6769. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6770. # On Suns, sometimes $CPP names a directory.
  6771. if test -n "$CPP" && test -d "$CPP"; then
  6772. CPP=
  6773. fi
  6774. if test -z "$CPP"; then
  6775. if ${ac_cv_prog_CPP+:} false; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. # Double quotes because CPP needs to be expanded
  6779. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6780. do
  6781. ac_preproc_ok=false
  6782. for ac_c_preproc_warn_flag in '' yes
  6783. do
  6784. # Use a header file that comes with gcc, so configuring glibc
  6785. # with a fresh cross-compiler works.
  6786. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6787. # <limits.h> exists even on freestanding compilers.
  6788. # On the NeXT, cc -E runs the code through the compiler's parser,
  6789. # not just through cpp. "Syntax error" is here to catch this case.
  6790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6791. /* end confdefs.h. */
  6792. #ifdef __STDC__
  6793. # include <limits.h>
  6794. #else
  6795. # include <assert.h>
  6796. #endif
  6797. Syntax error
  6798. _ACEOF
  6799. if ac_fn_c_try_cpp "$LINENO"; then :
  6800. else
  6801. # Broken: fails on valid input.
  6802. continue
  6803. fi
  6804. rm -f conftest.err conftest.i conftest.$ac_ext
  6805. # OK, works on sane cases. Now check whether nonexistent headers
  6806. # can be detected and how.
  6807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6808. /* end confdefs.h. */
  6809. #include <ac_nonexistent.h>
  6810. _ACEOF
  6811. if ac_fn_c_try_cpp "$LINENO"; then :
  6812. # Broken: success on invalid input.
  6813. continue
  6814. else
  6815. # Passes both tests.
  6816. ac_preproc_ok=:
  6817. break
  6818. fi
  6819. rm -f conftest.err conftest.i conftest.$ac_ext
  6820. done
  6821. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6822. rm -f conftest.i conftest.err conftest.$ac_ext
  6823. if $ac_preproc_ok; then :
  6824. break
  6825. fi
  6826. done
  6827. ac_cv_prog_CPP=$CPP
  6828. fi
  6829. CPP=$ac_cv_prog_CPP
  6830. else
  6831. ac_cv_prog_CPP=$CPP
  6832. fi
  6833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6834. $as_echo "$CPP" >&6; }
  6835. ac_preproc_ok=false
  6836. for ac_c_preproc_warn_flag in '' yes
  6837. do
  6838. # Use a header file that comes with gcc, so configuring glibc
  6839. # with a fresh cross-compiler works.
  6840. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6841. # <limits.h> exists even on freestanding compilers.
  6842. # On the NeXT, cc -E runs the code through the compiler's parser,
  6843. # not just through cpp. "Syntax error" is here to catch this case.
  6844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6845. /* end confdefs.h. */
  6846. #ifdef __STDC__
  6847. # include <limits.h>
  6848. #else
  6849. # include <assert.h>
  6850. #endif
  6851. Syntax error
  6852. _ACEOF
  6853. if ac_fn_c_try_cpp "$LINENO"; then :
  6854. else
  6855. # Broken: fails on valid input.
  6856. continue
  6857. fi
  6858. rm -f conftest.err conftest.i conftest.$ac_ext
  6859. # OK, works on sane cases. Now check whether nonexistent headers
  6860. # can be detected and how.
  6861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6862. /* end confdefs.h. */
  6863. #include <ac_nonexistent.h>
  6864. _ACEOF
  6865. if ac_fn_c_try_cpp "$LINENO"; then :
  6866. # Broken: success on invalid input.
  6867. continue
  6868. else
  6869. # Passes both tests.
  6870. ac_preproc_ok=:
  6871. break
  6872. fi
  6873. rm -f conftest.err conftest.i conftest.$ac_ext
  6874. done
  6875. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6876. rm -f conftest.i conftest.err conftest.$ac_ext
  6877. if $ac_preproc_ok; then :
  6878. else
  6879. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6880. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6881. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6882. See \`config.log' for more details" "$LINENO" 5; }
  6883. fi
  6884. ac_ext=c
  6885. ac_cpp='$CPP $CPPFLAGS'
  6886. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6887. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6888. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6890. $as_echo_n "checking for ANSI C header files... " >&6; }
  6891. if ${ac_cv_header_stdc+:} false; then :
  6892. $as_echo_n "(cached) " >&6
  6893. else
  6894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6895. /* end confdefs.h. */
  6896. #include <stdlib.h>
  6897. #include <stdarg.h>
  6898. #include <string.h>
  6899. #include <float.h>
  6900. int
  6901. main ()
  6902. {
  6903. ;
  6904. return 0;
  6905. }
  6906. _ACEOF
  6907. if ac_fn_c_try_compile "$LINENO"; then :
  6908. ac_cv_header_stdc=yes
  6909. else
  6910. ac_cv_header_stdc=no
  6911. fi
  6912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. if test $ac_cv_header_stdc = yes; then
  6914. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6916. /* end confdefs.h. */
  6917. #include <string.h>
  6918. _ACEOF
  6919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6920. $EGREP "memchr" >/dev/null 2>&1; then :
  6921. else
  6922. ac_cv_header_stdc=no
  6923. fi
  6924. rm -f conftest*
  6925. fi
  6926. if test $ac_cv_header_stdc = yes; then
  6927. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6929. /* end confdefs.h. */
  6930. #include <stdlib.h>
  6931. _ACEOF
  6932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6933. $EGREP "free" >/dev/null 2>&1; then :
  6934. else
  6935. ac_cv_header_stdc=no
  6936. fi
  6937. rm -f conftest*
  6938. fi
  6939. if test $ac_cv_header_stdc = yes; then
  6940. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6941. if test "$cross_compiling" = yes; then :
  6942. :
  6943. else
  6944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6945. /* end confdefs.h. */
  6946. #include <ctype.h>
  6947. #include <stdlib.h>
  6948. #if ((' ' & 0x0FF) == 0x020)
  6949. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6950. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6951. #else
  6952. # define ISLOWER(c) \
  6953. (('a' <= (c) && (c) <= 'i') \
  6954. || ('j' <= (c) && (c) <= 'r') \
  6955. || ('s' <= (c) && (c) <= 'z'))
  6956. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6957. #endif
  6958. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6959. int
  6960. main ()
  6961. {
  6962. int i;
  6963. for (i = 0; i < 256; i++)
  6964. if (XOR (islower (i), ISLOWER (i))
  6965. || toupper (i) != TOUPPER (i))
  6966. return 2;
  6967. return 0;
  6968. }
  6969. _ACEOF
  6970. if ac_fn_c_try_run "$LINENO"; then :
  6971. else
  6972. ac_cv_header_stdc=no
  6973. fi
  6974. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6975. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6976. fi
  6977. fi
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6980. $as_echo "$ac_cv_header_stdc" >&6; }
  6981. if test $ac_cv_header_stdc = yes; then
  6982. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6983. fi
  6984. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6985. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6986. inttypes.h stdint.h unistd.h
  6987. do :
  6988. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6989. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6990. "
  6991. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6992. cat >>confdefs.h <<_ACEOF
  6993. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6994. _ACEOF
  6995. fi
  6996. done
  6997. for ac_header in dlfcn.h
  6998. do :
  6999. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7000. "
  7001. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7002. cat >>confdefs.h <<_ACEOF
  7003. #define HAVE_DLFCN_H 1
  7004. _ACEOF
  7005. fi
  7006. done
  7007. # Set options
  7008. enable_dlopen=no
  7009. enable_win32_dll=no
  7010. # Check whether --enable-shared was given.
  7011. if test "${enable_shared+set}" = set; then :
  7012. enableval=$enable_shared; p=${PACKAGE-default}
  7013. case $enableval in
  7014. yes) enable_shared=yes ;;
  7015. no) enable_shared=no ;;
  7016. *)
  7017. enable_shared=no
  7018. # Look at the argument we got. We use all the common list separators.
  7019. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7020. for pkg in $enableval; do
  7021. IFS="$lt_save_ifs"
  7022. if test "X$pkg" = "X$p"; then
  7023. enable_shared=yes
  7024. fi
  7025. done
  7026. IFS="$lt_save_ifs"
  7027. ;;
  7028. esac
  7029. else
  7030. enable_shared=yes
  7031. fi
  7032. # Check whether --enable-static was given.
  7033. if test "${enable_static+set}" = set; then :
  7034. enableval=$enable_static; p=${PACKAGE-default}
  7035. case $enableval in
  7036. yes) enable_static=yes ;;
  7037. no) enable_static=no ;;
  7038. *)
  7039. enable_static=no
  7040. # Look at the argument we got. We use all the common list separators.
  7041. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7042. for pkg in $enableval; do
  7043. IFS="$lt_save_ifs"
  7044. if test "X$pkg" = "X$p"; then
  7045. enable_static=yes
  7046. fi
  7047. done
  7048. IFS="$lt_save_ifs"
  7049. ;;
  7050. esac
  7051. else
  7052. enable_static=yes
  7053. fi
  7054. # Check whether --with-pic was given.
  7055. if test "${with_pic+set}" = set; then :
  7056. withval=$with_pic; pic_mode="$withval"
  7057. else
  7058. pic_mode=default
  7059. fi
  7060. test -z "$pic_mode" && pic_mode=default
  7061. # Check whether --enable-fast-install was given.
  7062. if test "${enable_fast_install+set}" = set; then :
  7063. enableval=$enable_fast_install; p=${PACKAGE-default}
  7064. case $enableval in
  7065. yes) enable_fast_install=yes ;;
  7066. no) enable_fast_install=no ;;
  7067. *)
  7068. enable_fast_install=no
  7069. # Look at the argument we got. We use all the common list separators.
  7070. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7071. for pkg in $enableval; do
  7072. IFS="$lt_save_ifs"
  7073. if test "X$pkg" = "X$p"; then
  7074. enable_fast_install=yes
  7075. fi
  7076. done
  7077. IFS="$lt_save_ifs"
  7078. ;;
  7079. esac
  7080. else
  7081. enable_fast_install=yes
  7082. fi
  7083. # This can be used to rebuild libtool when needed
  7084. LIBTOOL_DEPS="$ltmain"
  7085. # Always use our own libtool.
  7086. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7087. test -z "$LN_S" && LN_S="ln -s"
  7088. if test -n "${ZSH_VERSION+set}" ; then
  7089. setopt NO_GLOB_SUBST
  7090. fi
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7092. $as_echo_n "checking for objdir... " >&6; }
  7093. if ${lt_cv_objdir+:} false; then :
  7094. $as_echo_n "(cached) " >&6
  7095. else
  7096. rm -f .libs 2>/dev/null
  7097. mkdir .libs 2>/dev/null
  7098. if test -d .libs; then
  7099. lt_cv_objdir=.libs
  7100. else
  7101. # MS-DOS does not allow filenames that begin with a dot.
  7102. lt_cv_objdir=_libs
  7103. fi
  7104. rmdir .libs 2>/dev/null
  7105. fi
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7107. $as_echo "$lt_cv_objdir" >&6; }
  7108. objdir=$lt_cv_objdir
  7109. cat >>confdefs.h <<_ACEOF
  7110. #define LT_OBJDIR "$lt_cv_objdir/"
  7111. _ACEOF
  7112. case $host_os in
  7113. aix3*)
  7114. # AIX sometimes has problems with the GCC collect2 program. For some
  7115. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7116. # vanish in a puff of smoke.
  7117. if test "X${COLLECT_NAMES+set}" != Xset; then
  7118. COLLECT_NAMES=
  7119. export COLLECT_NAMES
  7120. fi
  7121. ;;
  7122. esac
  7123. # Global variables:
  7124. ofile=libtool
  7125. can_build_shared=yes
  7126. # All known linkers require a `.a' archive for static linking (except MSVC,
  7127. # which needs '.lib').
  7128. libext=a
  7129. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7130. old_CC="$CC"
  7131. old_CFLAGS="$CFLAGS"
  7132. # Set sane defaults for various variables
  7133. test -z "$CC" && CC=cc
  7134. test -z "$LTCC" && LTCC=$CC
  7135. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7136. test -z "$LD" && LD=ld
  7137. test -z "$ac_objext" && ac_objext=o
  7138. for cc_temp in $compiler""; do
  7139. case $cc_temp in
  7140. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7141. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7142. \-*) ;;
  7143. *) break;;
  7144. esac
  7145. done
  7146. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7147. # Only perform the check for file, if the check method requires it
  7148. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7149. case $deplibs_check_method in
  7150. file_magic*)
  7151. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7153. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7154. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7155. $as_echo_n "(cached) " >&6
  7156. else
  7157. case $MAGIC_CMD in
  7158. [\\/*] | ?:[\\/]*)
  7159. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7160. ;;
  7161. *)
  7162. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7163. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7164. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7165. for ac_dir in $ac_dummy; do
  7166. IFS="$lt_save_ifs"
  7167. test -z "$ac_dir" && ac_dir=.
  7168. if test -f $ac_dir/${ac_tool_prefix}file; then
  7169. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7170. if test -n "$file_magic_test_file"; then
  7171. case $deplibs_check_method in
  7172. "file_magic "*)
  7173. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7174. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7175. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7176. $EGREP "$file_magic_regex" > /dev/null; then
  7177. :
  7178. else
  7179. cat <<_LT_EOF 1>&2
  7180. *** Warning: the command libtool uses to detect shared libraries,
  7181. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7182. *** The result is that libtool may fail to recognize shared libraries
  7183. *** as such. This will affect the creation of libtool libraries that
  7184. *** depend on shared libraries, but programs linked with such libtool
  7185. *** libraries will work regardless of this problem. Nevertheless, you
  7186. *** may want to report the problem to your system manager and/or to
  7187. *** bug-libtool@gnu.org
  7188. _LT_EOF
  7189. fi ;;
  7190. esac
  7191. fi
  7192. break
  7193. fi
  7194. done
  7195. IFS="$lt_save_ifs"
  7196. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7197. ;;
  7198. esac
  7199. fi
  7200. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7201. if test -n "$MAGIC_CMD"; then
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7203. $as_echo "$MAGIC_CMD" >&6; }
  7204. else
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7206. $as_echo "no" >&6; }
  7207. fi
  7208. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7209. if test -n "$ac_tool_prefix"; then
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7211. $as_echo_n "checking for file... " >&6; }
  7212. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7213. $as_echo_n "(cached) " >&6
  7214. else
  7215. case $MAGIC_CMD in
  7216. [\\/*] | ?:[\\/]*)
  7217. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7218. ;;
  7219. *)
  7220. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7221. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7222. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7223. for ac_dir in $ac_dummy; do
  7224. IFS="$lt_save_ifs"
  7225. test -z "$ac_dir" && ac_dir=.
  7226. if test -f $ac_dir/file; then
  7227. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7228. if test -n "$file_magic_test_file"; then
  7229. case $deplibs_check_method in
  7230. "file_magic "*)
  7231. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7232. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7233. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7234. $EGREP "$file_magic_regex" > /dev/null; then
  7235. :
  7236. else
  7237. cat <<_LT_EOF 1>&2
  7238. *** Warning: the command libtool uses to detect shared libraries,
  7239. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7240. *** The result is that libtool may fail to recognize shared libraries
  7241. *** as such. This will affect the creation of libtool libraries that
  7242. *** depend on shared libraries, but programs linked with such libtool
  7243. *** libraries will work regardless of this problem. Nevertheless, you
  7244. *** may want to report the problem to your system manager and/or to
  7245. *** bug-libtool@gnu.org
  7246. _LT_EOF
  7247. fi ;;
  7248. esac
  7249. fi
  7250. break
  7251. fi
  7252. done
  7253. IFS="$lt_save_ifs"
  7254. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7255. ;;
  7256. esac
  7257. fi
  7258. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7259. if test -n "$MAGIC_CMD"; then
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7261. $as_echo "$MAGIC_CMD" >&6; }
  7262. else
  7263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7264. $as_echo "no" >&6; }
  7265. fi
  7266. else
  7267. MAGIC_CMD=:
  7268. fi
  7269. fi
  7270. fi
  7271. ;;
  7272. esac
  7273. # Use C for the default configuration in the libtool script
  7274. lt_save_CC="$CC"
  7275. ac_ext=c
  7276. ac_cpp='$CPP $CPPFLAGS'
  7277. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7278. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7279. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7280. # Source file extension for C test sources.
  7281. ac_ext=c
  7282. # Object file extension for compiled C test sources.
  7283. objext=o
  7284. objext=$objext
  7285. # Code to be used in simple compile tests
  7286. lt_simple_compile_test_code="int some_variable = 0;"
  7287. # Code to be used in simple link tests
  7288. lt_simple_link_test_code='int main(){return(0);}'
  7289. # If no C compiler was specified, use CC.
  7290. LTCC=${LTCC-"$CC"}
  7291. # If no C compiler flags were specified, use CFLAGS.
  7292. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7293. # Allow CC to be a program name with arguments.
  7294. compiler=$CC
  7295. # Save the default compiler, since it gets overwritten when the other
  7296. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7297. compiler_DEFAULT=$CC
  7298. # save warnings/boilerplate of simple test code
  7299. ac_outfile=conftest.$ac_objext
  7300. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7301. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7302. _lt_compiler_boilerplate=`cat conftest.err`
  7303. $RM conftest*
  7304. ac_outfile=conftest.$ac_objext
  7305. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7306. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7307. _lt_linker_boilerplate=`cat conftest.err`
  7308. $RM -r conftest*
  7309. ## CAVEAT EMPTOR:
  7310. ## There is no encapsulation within the following macros, do not change
  7311. ## the running order or otherwise move them around unless you know exactly
  7312. ## what you are doing...
  7313. if test -n "$compiler"; then
  7314. lt_prog_compiler_no_builtin_flag=
  7315. if test "$GCC" = yes; then
  7316. case $cc_basename in
  7317. nvcc*)
  7318. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7319. *)
  7320. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7321. esac
  7322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7323. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7324. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7325. $as_echo_n "(cached) " >&6
  7326. else
  7327. lt_cv_prog_compiler_rtti_exceptions=no
  7328. ac_outfile=conftest.$ac_objext
  7329. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7330. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7331. # Insert the option either (1) after the last *FLAGS variable, or
  7332. # (2) before a word containing "conftest.", or (3) at the end.
  7333. # Note that $ac_compile itself does not contain backslashes and begins
  7334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7335. # The option is referenced via a variable to avoid confusing sed.
  7336. lt_compile=`echo "$ac_compile" | $SED \
  7337. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7338. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7339. -e 's:$: $lt_compiler_flag:'`
  7340. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7341. (eval "$lt_compile" 2>conftest.err)
  7342. ac_status=$?
  7343. cat conftest.err >&5
  7344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7345. if (exit $ac_status) && test -s "$ac_outfile"; then
  7346. # The compiler can only warn and ignore the option if not recognized
  7347. # So say no if there are warnings other than the usual output.
  7348. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7349. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7350. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7351. lt_cv_prog_compiler_rtti_exceptions=yes
  7352. fi
  7353. fi
  7354. $RM conftest*
  7355. fi
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7357. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7358. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7359. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7360. else
  7361. :
  7362. fi
  7363. fi
  7364. lt_prog_compiler_wl=
  7365. lt_prog_compiler_pic=
  7366. lt_prog_compiler_static=
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7368. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7369. if test "$GCC" = yes; then
  7370. lt_prog_compiler_wl='-Wl,'
  7371. lt_prog_compiler_static='-static'
  7372. case $host_os in
  7373. aix*)
  7374. # All AIX code is PIC.
  7375. if test "$host_cpu" = ia64; then
  7376. # AIX 5 now supports IA64 processor
  7377. lt_prog_compiler_static='-Bstatic'
  7378. fi
  7379. lt_prog_compiler_pic='-fPIC'
  7380. ;;
  7381. amigaos*)
  7382. case $host_cpu in
  7383. powerpc)
  7384. # see comment about AmigaOS4 .so support
  7385. lt_prog_compiler_pic='-fPIC'
  7386. ;;
  7387. m68k)
  7388. # FIXME: we need at least 68020 code to build shared libraries, but
  7389. # adding the `-m68020' flag to GCC prevents building anything better,
  7390. # like `-m68040'.
  7391. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7392. ;;
  7393. esac
  7394. ;;
  7395. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7396. # PIC is the default for these OSes.
  7397. ;;
  7398. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7399. # This hack is so that the source file can tell whether it is being
  7400. # built for inclusion in a dll (and should export symbols for example).
  7401. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7402. # (--disable-auto-import) libraries
  7403. lt_prog_compiler_pic='-DDLL_EXPORT'
  7404. ;;
  7405. darwin* | rhapsody*)
  7406. # PIC is the default on this platform
  7407. # Common symbols not allowed in MH_DYLIB files
  7408. lt_prog_compiler_pic='-fno-common'
  7409. ;;
  7410. haiku*)
  7411. # PIC is the default for Haiku.
  7412. # The "-static" flag exists, but is broken.
  7413. lt_prog_compiler_static=
  7414. ;;
  7415. hpux*)
  7416. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7417. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7418. # sets the default TLS model and affects inlining.
  7419. case $host_cpu in
  7420. hppa*64*)
  7421. # +Z the default
  7422. ;;
  7423. *)
  7424. lt_prog_compiler_pic='-fPIC'
  7425. ;;
  7426. esac
  7427. ;;
  7428. interix[3-9]*)
  7429. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7430. # Instead, we relocate shared libraries at runtime.
  7431. ;;
  7432. msdosdjgpp*)
  7433. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7434. # on systems that don't support them.
  7435. lt_prog_compiler_can_build_shared=no
  7436. enable_shared=no
  7437. ;;
  7438. *nto* | *qnx*)
  7439. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7440. # it will coredump.
  7441. lt_prog_compiler_pic='-fPIC -shared'
  7442. ;;
  7443. sysv4*MP*)
  7444. if test -d /usr/nec; then
  7445. lt_prog_compiler_pic=-Kconform_pic
  7446. fi
  7447. ;;
  7448. *)
  7449. lt_prog_compiler_pic='-fPIC'
  7450. ;;
  7451. esac
  7452. case $cc_basename in
  7453. nvcc*) # Cuda Compiler Driver 2.2
  7454. lt_prog_compiler_wl='-Xlinker '
  7455. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7456. ;;
  7457. esac
  7458. else
  7459. # PORTME Check for flag to pass linker flags through the system compiler.
  7460. case $host_os in
  7461. aix*)
  7462. lt_prog_compiler_wl='-Wl,'
  7463. if test "$host_cpu" = ia64; then
  7464. # AIX 5 now supports IA64 processor
  7465. lt_prog_compiler_static='-Bstatic'
  7466. else
  7467. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7468. fi
  7469. ;;
  7470. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7471. # This hack is so that the source file can tell whether it is being
  7472. # built for inclusion in a dll (and should export symbols for example).
  7473. lt_prog_compiler_pic='-DDLL_EXPORT'
  7474. ;;
  7475. hpux9* | hpux10* | hpux11*)
  7476. lt_prog_compiler_wl='-Wl,'
  7477. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7478. # not for PA HP-UX.
  7479. case $host_cpu in
  7480. hppa*64*|ia64*)
  7481. # +Z the default
  7482. ;;
  7483. *)
  7484. lt_prog_compiler_pic='+Z'
  7485. ;;
  7486. esac
  7487. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7488. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7489. ;;
  7490. irix5* | irix6* | nonstopux*)
  7491. lt_prog_compiler_wl='-Wl,'
  7492. # PIC (with -KPIC) is the default.
  7493. lt_prog_compiler_static='-non_shared'
  7494. ;;
  7495. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7496. case $cc_basename in
  7497. # old Intel for x86_64 which still supported -KPIC.
  7498. ecc*)
  7499. lt_prog_compiler_wl='-Wl,'
  7500. lt_prog_compiler_pic='-KPIC'
  7501. lt_prog_compiler_static='-static'
  7502. ;;
  7503. # icc used to be incompatible with GCC.
  7504. # ICC 10 doesn't accept -KPIC any more.
  7505. icc* | ifort*)
  7506. lt_prog_compiler_wl='-Wl,'
  7507. lt_prog_compiler_pic='-fPIC'
  7508. lt_prog_compiler_static='-static'
  7509. ;;
  7510. # Lahey Fortran 8.1.
  7511. lf95*)
  7512. lt_prog_compiler_wl='-Wl,'
  7513. lt_prog_compiler_pic='--shared'
  7514. lt_prog_compiler_static='--static'
  7515. ;;
  7516. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7517. # Portland Group compilers (*not* the Pentium gcc compiler,
  7518. # which looks to be a dead project)
  7519. lt_prog_compiler_wl='-Wl,'
  7520. lt_prog_compiler_pic='-fpic'
  7521. lt_prog_compiler_static='-Bstatic'
  7522. ;;
  7523. ccc*)
  7524. lt_prog_compiler_wl='-Wl,'
  7525. # All Alpha code is PIC.
  7526. lt_prog_compiler_static='-non_shared'
  7527. ;;
  7528. xl* | bgxl* | bgf* | mpixl*)
  7529. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7530. lt_prog_compiler_wl='-Wl,'
  7531. lt_prog_compiler_pic='-qpic'
  7532. lt_prog_compiler_static='-qstaticlink'
  7533. ;;
  7534. *)
  7535. case `$CC -V 2>&1 | sed 5q` in
  7536. *Sun\ F* | *Sun*Fortran*)
  7537. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7538. lt_prog_compiler_pic='-KPIC'
  7539. lt_prog_compiler_static='-Bstatic'
  7540. lt_prog_compiler_wl=''
  7541. ;;
  7542. *Sun\ C*)
  7543. # Sun C 5.9
  7544. lt_prog_compiler_pic='-KPIC'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. lt_prog_compiler_wl='-Wl,'
  7547. ;;
  7548. esac
  7549. ;;
  7550. esac
  7551. ;;
  7552. newsos6)
  7553. lt_prog_compiler_pic='-KPIC'
  7554. lt_prog_compiler_static='-Bstatic'
  7555. ;;
  7556. *nto* | *qnx*)
  7557. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7558. # it will coredump.
  7559. lt_prog_compiler_pic='-fPIC -shared'
  7560. ;;
  7561. osf3* | osf4* | osf5*)
  7562. lt_prog_compiler_wl='-Wl,'
  7563. # All OSF/1 code is PIC.
  7564. lt_prog_compiler_static='-non_shared'
  7565. ;;
  7566. rdos*)
  7567. lt_prog_compiler_static='-non_shared'
  7568. ;;
  7569. solaris*)
  7570. lt_prog_compiler_pic='-KPIC'
  7571. lt_prog_compiler_static='-Bstatic'
  7572. case $cc_basename in
  7573. f77* | f90* | f95*)
  7574. lt_prog_compiler_wl='-Qoption ld ';;
  7575. *)
  7576. lt_prog_compiler_wl='-Wl,';;
  7577. esac
  7578. ;;
  7579. sunos4*)
  7580. lt_prog_compiler_wl='-Qoption ld '
  7581. lt_prog_compiler_pic='-PIC'
  7582. lt_prog_compiler_static='-Bstatic'
  7583. ;;
  7584. sysv4 | sysv4.2uw2* | sysv4.3*)
  7585. lt_prog_compiler_wl='-Wl,'
  7586. lt_prog_compiler_pic='-KPIC'
  7587. lt_prog_compiler_static='-Bstatic'
  7588. ;;
  7589. sysv4*MP*)
  7590. if test -d /usr/nec ;then
  7591. lt_prog_compiler_pic='-Kconform_pic'
  7592. lt_prog_compiler_static='-Bstatic'
  7593. fi
  7594. ;;
  7595. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7596. lt_prog_compiler_wl='-Wl,'
  7597. lt_prog_compiler_pic='-KPIC'
  7598. lt_prog_compiler_static='-Bstatic'
  7599. ;;
  7600. unicos*)
  7601. lt_prog_compiler_wl='-Wl,'
  7602. lt_prog_compiler_can_build_shared=no
  7603. ;;
  7604. uts4*)
  7605. lt_prog_compiler_pic='-pic'
  7606. lt_prog_compiler_static='-Bstatic'
  7607. ;;
  7608. *)
  7609. lt_prog_compiler_can_build_shared=no
  7610. ;;
  7611. esac
  7612. fi
  7613. case $host_os in
  7614. # For platforms which do not support PIC, -DPIC is meaningless:
  7615. *djgpp*)
  7616. lt_prog_compiler_pic=
  7617. ;;
  7618. *)
  7619. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7620. ;;
  7621. esac
  7622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7623. $as_echo "$lt_prog_compiler_pic" >&6; }
  7624. #
  7625. # Check to make sure the PIC flag actually works.
  7626. #
  7627. if test -n "$lt_prog_compiler_pic"; then
  7628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7629. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7630. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7631. $as_echo_n "(cached) " >&6
  7632. else
  7633. lt_cv_prog_compiler_pic_works=no
  7634. ac_outfile=conftest.$ac_objext
  7635. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7636. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7637. # Insert the option either (1) after the last *FLAGS variable, or
  7638. # (2) before a word containing "conftest.", or (3) at the end.
  7639. # Note that $ac_compile itself does not contain backslashes and begins
  7640. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7641. # The option is referenced via a variable to avoid confusing sed.
  7642. lt_compile=`echo "$ac_compile" | $SED \
  7643. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7644. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7645. -e 's:$: $lt_compiler_flag:'`
  7646. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7647. (eval "$lt_compile" 2>conftest.err)
  7648. ac_status=$?
  7649. cat conftest.err >&5
  7650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. if (exit $ac_status) && test -s "$ac_outfile"; then
  7652. # The compiler can only warn and ignore the option if not recognized
  7653. # So say no if there are warnings other than the usual output.
  7654. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7655. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7656. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7657. lt_cv_prog_compiler_pic_works=yes
  7658. fi
  7659. fi
  7660. $RM conftest*
  7661. fi
  7662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7663. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7664. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7665. case $lt_prog_compiler_pic in
  7666. "" | " "*) ;;
  7667. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7668. esac
  7669. else
  7670. lt_prog_compiler_pic=
  7671. lt_prog_compiler_can_build_shared=no
  7672. fi
  7673. fi
  7674. #
  7675. # Check to make sure the static flag actually works.
  7676. #
  7677. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7679. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7680. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7681. $as_echo_n "(cached) " >&6
  7682. else
  7683. lt_cv_prog_compiler_static_works=no
  7684. save_LDFLAGS="$LDFLAGS"
  7685. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7686. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7687. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7688. # The linker can only warn and ignore the option if not recognized
  7689. # So say no if there are warnings
  7690. if test -s conftest.err; then
  7691. # Append any errors to the config.log.
  7692. cat conftest.err 1>&5
  7693. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7694. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7695. if diff conftest.exp conftest.er2 >/dev/null; then
  7696. lt_cv_prog_compiler_static_works=yes
  7697. fi
  7698. else
  7699. lt_cv_prog_compiler_static_works=yes
  7700. fi
  7701. fi
  7702. $RM -r conftest*
  7703. LDFLAGS="$save_LDFLAGS"
  7704. fi
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7706. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7707. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7708. :
  7709. else
  7710. lt_prog_compiler_static=
  7711. fi
  7712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7713. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7714. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7715. $as_echo_n "(cached) " >&6
  7716. else
  7717. lt_cv_prog_compiler_c_o=no
  7718. $RM -r conftest 2>/dev/null
  7719. mkdir conftest
  7720. cd conftest
  7721. mkdir out
  7722. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7723. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7724. # Insert the option either (1) after the last *FLAGS variable, or
  7725. # (2) before a word containing "conftest.", or (3) at the end.
  7726. # Note that $ac_compile itself does not contain backslashes and begins
  7727. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7728. lt_compile=`echo "$ac_compile" | $SED \
  7729. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7730. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7731. -e 's:$: $lt_compiler_flag:'`
  7732. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7733. (eval "$lt_compile" 2>out/conftest.err)
  7734. ac_status=$?
  7735. cat out/conftest.err >&5
  7736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7737. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7738. then
  7739. # The compiler can only warn and ignore the option if not recognized
  7740. # So say no if there are warnings
  7741. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7742. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7743. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7744. lt_cv_prog_compiler_c_o=yes
  7745. fi
  7746. fi
  7747. chmod u+w . 2>&5
  7748. $RM conftest*
  7749. # SGI C++ compiler will create directory out/ii_files/ for
  7750. # template instantiation
  7751. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7752. $RM out/* && rmdir out
  7753. cd ..
  7754. $RM -r conftest
  7755. $RM conftest*
  7756. fi
  7757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7758. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7760. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7761. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7762. $as_echo_n "(cached) " >&6
  7763. else
  7764. lt_cv_prog_compiler_c_o=no
  7765. $RM -r conftest 2>/dev/null
  7766. mkdir conftest
  7767. cd conftest
  7768. mkdir out
  7769. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7770. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7771. # Insert the option either (1) after the last *FLAGS variable, or
  7772. # (2) before a word containing "conftest.", or (3) at the end.
  7773. # Note that $ac_compile itself does not contain backslashes and begins
  7774. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7775. lt_compile=`echo "$ac_compile" | $SED \
  7776. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7777. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7778. -e 's:$: $lt_compiler_flag:'`
  7779. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7780. (eval "$lt_compile" 2>out/conftest.err)
  7781. ac_status=$?
  7782. cat out/conftest.err >&5
  7783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7784. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7785. then
  7786. # The compiler can only warn and ignore the option if not recognized
  7787. # So say no if there are warnings
  7788. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7789. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7790. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7791. lt_cv_prog_compiler_c_o=yes
  7792. fi
  7793. fi
  7794. chmod u+w . 2>&5
  7795. $RM conftest*
  7796. # SGI C++ compiler will create directory out/ii_files/ for
  7797. # template instantiation
  7798. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7799. $RM out/* && rmdir out
  7800. cd ..
  7801. $RM -r conftest
  7802. $RM conftest*
  7803. fi
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7805. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7806. hard_links="nottested"
  7807. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7808. # do not overwrite the value of need_locks provided by the user
  7809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7810. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7811. hard_links=yes
  7812. $RM conftest*
  7813. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7814. touch conftest.a
  7815. ln conftest.a conftest.b 2>&5 || hard_links=no
  7816. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7818. $as_echo "$hard_links" >&6; }
  7819. if test "$hard_links" = no; then
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7821. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7822. need_locks=warn
  7823. fi
  7824. else
  7825. need_locks=no
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7828. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7829. runpath_var=
  7830. allow_undefined_flag=
  7831. always_export_symbols=no
  7832. archive_cmds=
  7833. archive_expsym_cmds=
  7834. compiler_needs_object=no
  7835. enable_shared_with_static_runtimes=no
  7836. export_dynamic_flag_spec=
  7837. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7838. hardcode_automatic=no
  7839. hardcode_direct=no
  7840. hardcode_direct_absolute=no
  7841. hardcode_libdir_flag_spec=
  7842. hardcode_libdir_flag_spec_ld=
  7843. hardcode_libdir_separator=
  7844. hardcode_minus_L=no
  7845. hardcode_shlibpath_var=unsupported
  7846. inherit_rpath=no
  7847. link_all_deplibs=unknown
  7848. module_cmds=
  7849. module_expsym_cmds=
  7850. old_archive_from_new_cmds=
  7851. old_archive_from_expsyms_cmds=
  7852. thread_safe_flag_spec=
  7853. whole_archive_flag_spec=
  7854. # include_expsyms should be a list of space-separated symbols to be *always*
  7855. # included in the symbol list
  7856. include_expsyms=
  7857. # exclude_expsyms can be an extended regexp of symbols to exclude
  7858. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7859. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7860. # as well as any symbol that contains `d'.
  7861. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7862. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7863. # platforms (ab)use it in PIC code, but their linkers get confused if
  7864. # the symbol is explicitly referenced. Since portable code cannot
  7865. # rely on this symbol name, it's probably fine to never include it in
  7866. # preloaded symbol tables.
  7867. # Exclude shared library initialization/finalization symbols.
  7868. extract_expsyms_cmds=
  7869. case $host_os in
  7870. cygwin* | mingw* | pw32* | cegcc*)
  7871. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7872. # When not using gcc, we currently assume that we are using
  7873. # Microsoft Visual C++.
  7874. if test "$GCC" != yes; then
  7875. with_gnu_ld=no
  7876. fi
  7877. ;;
  7878. interix*)
  7879. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7880. with_gnu_ld=yes
  7881. ;;
  7882. openbsd*)
  7883. with_gnu_ld=no
  7884. ;;
  7885. esac
  7886. ld_shlibs=yes
  7887. # On some targets, GNU ld is compatible enough with the native linker
  7888. # that we're better off using the native interface for both.
  7889. lt_use_gnu_ld_interface=no
  7890. if test "$with_gnu_ld" = yes; then
  7891. case $host_os in
  7892. aix*)
  7893. # The AIX port of GNU ld has always aspired to compatibility
  7894. # with the native linker. However, as the warning in the GNU ld
  7895. # block says, versions before 2.19.5* couldn't really create working
  7896. # shared libraries, regardless of the interface used.
  7897. case `$LD -v 2>&1` in
  7898. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7899. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7900. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7901. *)
  7902. lt_use_gnu_ld_interface=yes
  7903. ;;
  7904. esac
  7905. ;;
  7906. *)
  7907. lt_use_gnu_ld_interface=yes
  7908. ;;
  7909. esac
  7910. fi
  7911. if test "$lt_use_gnu_ld_interface" = yes; then
  7912. # If archive_cmds runs LD, not CC, wlarc should be empty
  7913. wlarc='${wl}'
  7914. # Set some defaults for GNU ld with shared library support. These
  7915. # are reset later if shared libraries are not supported. Putting them
  7916. # here allows them to be overridden if necessary.
  7917. runpath_var=LD_RUN_PATH
  7918. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7919. export_dynamic_flag_spec='${wl}--export-dynamic'
  7920. # ancient GNU ld didn't support --whole-archive et. al.
  7921. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7922. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7923. else
  7924. whole_archive_flag_spec=
  7925. fi
  7926. supports_anon_versioning=no
  7927. case `$LD -v 2>&1` in
  7928. *GNU\ gold*) supports_anon_versioning=yes ;;
  7929. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7930. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7931. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7932. *\ 2.11.*) ;; # other 2.11 versions
  7933. *) supports_anon_versioning=yes ;;
  7934. esac
  7935. # See if GNU ld supports shared libraries.
  7936. case $host_os in
  7937. aix[3-9]*)
  7938. # On AIX/PPC, the GNU linker is very broken
  7939. if test "$host_cpu" != ia64; then
  7940. ld_shlibs=no
  7941. cat <<_LT_EOF 1>&2
  7942. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7943. *** to be unable to reliably create shared libraries on AIX.
  7944. *** Therefore, libtool is disabling shared libraries support. If you
  7945. *** really care for shared libraries, you may want to install binutils
  7946. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7947. *** You will then need to restart the configuration process.
  7948. _LT_EOF
  7949. fi
  7950. ;;
  7951. amigaos*)
  7952. case $host_cpu in
  7953. powerpc)
  7954. # see comment about AmigaOS4 .so support
  7955. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7956. archive_expsym_cmds=''
  7957. ;;
  7958. m68k)
  7959. 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)'
  7960. hardcode_libdir_flag_spec='-L$libdir'
  7961. hardcode_minus_L=yes
  7962. ;;
  7963. esac
  7964. ;;
  7965. beos*)
  7966. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7967. allow_undefined_flag=unsupported
  7968. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7969. # support --undefined. This deserves some investigation. FIXME
  7970. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7971. else
  7972. ld_shlibs=no
  7973. fi
  7974. ;;
  7975. cygwin* | mingw* | pw32* | cegcc*)
  7976. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7977. # as there is no search path for DLLs.
  7978. hardcode_libdir_flag_spec='-L$libdir'
  7979. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7980. allow_undefined_flag=unsupported
  7981. always_export_symbols=no
  7982. enable_shared_with_static_runtimes=yes
  7983. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7984. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7985. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7986. # If the export-symbols file already is a .def file (1st line
  7987. # is EXPORTS), use it as is; otherwise, prepend...
  7988. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7989. cp $export_symbols $output_objdir/$soname.def;
  7990. else
  7991. echo EXPORTS > $output_objdir/$soname.def;
  7992. cat $export_symbols >> $output_objdir/$soname.def;
  7993. fi~
  7994. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7995. else
  7996. ld_shlibs=no
  7997. fi
  7998. ;;
  7999. haiku*)
  8000. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8001. link_all_deplibs=yes
  8002. ;;
  8003. interix[3-9]*)
  8004. hardcode_direct=no
  8005. hardcode_shlibpath_var=no
  8006. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8007. export_dynamic_flag_spec='${wl}-E'
  8008. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8009. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8010. # default) and relocated if they conflict, which is a slow very memory
  8011. # consuming and fragmenting process. To avoid this, we pick a random,
  8012. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8013. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8014. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8015. 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'
  8016. ;;
  8017. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8018. tmp_diet=no
  8019. if test "$host_os" = linux-dietlibc; then
  8020. case $cc_basename in
  8021. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8022. esac
  8023. fi
  8024. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8025. && test "$tmp_diet" = no
  8026. then
  8027. tmp_addflag=' $pic_flag'
  8028. tmp_sharedflag='-shared'
  8029. case $cc_basename,$host_cpu in
  8030. pgcc*) # Portland Group C compiler
  8031. 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'
  8032. tmp_addflag=' $pic_flag'
  8033. ;;
  8034. pgf77* | pgf90* | pgf95* | pgfortran*)
  8035. # Portland Group f77 and f90 compilers
  8036. 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'
  8037. tmp_addflag=' $pic_flag -Mnomain' ;;
  8038. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8039. tmp_addflag=' -i_dynamic' ;;
  8040. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8041. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8042. ifc* | ifort*) # Intel Fortran compiler
  8043. tmp_addflag=' -nofor_main' ;;
  8044. lf95*) # Lahey Fortran 8.1
  8045. whole_archive_flag_spec=
  8046. tmp_sharedflag='--shared' ;;
  8047. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8048. tmp_sharedflag='-qmkshrobj'
  8049. tmp_addflag= ;;
  8050. nvcc*) # Cuda Compiler Driver 2.2
  8051. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8052. compiler_needs_object=yes
  8053. ;;
  8054. esac
  8055. case `$CC -V 2>&1 | sed 5q` in
  8056. *Sun\ C*) # Sun C 5.9
  8057. 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'
  8058. compiler_needs_object=yes
  8059. tmp_sharedflag='-G' ;;
  8060. *Sun\ F*) # Sun Fortran 8.3
  8061. tmp_sharedflag='-G' ;;
  8062. esac
  8063. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8064. if test "x$supports_anon_versioning" = xyes; then
  8065. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8066. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8067. echo "local: *; };" >> $output_objdir/$libname.ver~
  8068. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8069. fi
  8070. case $cc_basename in
  8071. xlf* | bgf* | bgxlf* | mpixlf*)
  8072. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8073. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8074. hardcode_libdir_flag_spec=
  8075. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8076. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8077. if test "x$supports_anon_versioning" = xyes; then
  8078. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8079. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8080. echo "local: *; };" >> $output_objdir/$libname.ver~
  8081. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8082. fi
  8083. ;;
  8084. esac
  8085. else
  8086. ld_shlibs=no
  8087. fi
  8088. ;;
  8089. netbsd*)
  8090. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8091. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8092. wlarc=
  8093. else
  8094. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8095. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8096. fi
  8097. ;;
  8098. solaris*)
  8099. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8100. ld_shlibs=no
  8101. cat <<_LT_EOF 1>&2
  8102. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8103. *** create shared libraries on Solaris systems. Therefore, libtool
  8104. *** is disabling shared libraries support. We urge you to upgrade GNU
  8105. *** binutils to release 2.9.1 or newer. Another option is to modify
  8106. *** your PATH or compiler configuration so that the native linker is
  8107. *** used, and then restart.
  8108. _LT_EOF
  8109. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8110. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8111. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8112. else
  8113. ld_shlibs=no
  8114. fi
  8115. ;;
  8116. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8117. case `$LD -v 2>&1` in
  8118. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8119. ld_shlibs=no
  8120. cat <<_LT_EOF 1>&2
  8121. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8122. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8123. *** is disabling shared libraries support. We urge you to upgrade GNU
  8124. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8125. *** your PATH or compiler configuration so that the native linker is
  8126. *** used, and then restart.
  8127. _LT_EOF
  8128. ;;
  8129. *)
  8130. # For security reasons, it is highly recommended that you always
  8131. # use absolute paths for naming shared libraries, and exclude the
  8132. # DT_RUNPATH tag from executables and libraries. But doing so
  8133. # requires that you compile everything twice, which is a pain.
  8134. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8135. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8136. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8137. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8138. else
  8139. ld_shlibs=no
  8140. fi
  8141. ;;
  8142. esac
  8143. ;;
  8144. sunos4*)
  8145. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8146. wlarc=
  8147. hardcode_direct=yes
  8148. hardcode_shlibpath_var=no
  8149. ;;
  8150. *)
  8151. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8152. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8153. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8154. else
  8155. ld_shlibs=no
  8156. fi
  8157. ;;
  8158. esac
  8159. if test "$ld_shlibs" = no; then
  8160. runpath_var=
  8161. hardcode_libdir_flag_spec=
  8162. export_dynamic_flag_spec=
  8163. whole_archive_flag_spec=
  8164. fi
  8165. else
  8166. # PORTME fill in a description of your system's linker (not GNU ld)
  8167. case $host_os in
  8168. aix3*)
  8169. allow_undefined_flag=unsupported
  8170. always_export_symbols=yes
  8171. 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'
  8172. # Note: this linker hardcodes the directories in LIBPATH if there
  8173. # are no directories specified by -L.
  8174. hardcode_minus_L=yes
  8175. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8176. # Neither direct hardcoding nor static linking is supported with a
  8177. # broken collect2.
  8178. hardcode_direct=unsupported
  8179. fi
  8180. ;;
  8181. aix[4-9]*)
  8182. if test "$host_cpu" = ia64; then
  8183. # On IA64, the linker does run time linking by default, so we don't
  8184. # have to do anything special.
  8185. aix_use_runtimelinking=no
  8186. exp_sym_flag='-Bexport'
  8187. no_entry_flag=""
  8188. else
  8189. # If we're using GNU nm, then we don't want the "-C" option.
  8190. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8191. # Also, AIX nm treats weak defined symbols like other global
  8192. # defined symbols, whereas GNU nm marks them as "W".
  8193. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8194. 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'
  8195. else
  8196. 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'
  8197. fi
  8198. aix_use_runtimelinking=no
  8199. # Test if we are trying to use run time linking or normal
  8200. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8201. # need to do runtime linking.
  8202. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8203. for ld_flag in $LDFLAGS; do
  8204. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8205. aix_use_runtimelinking=yes
  8206. break
  8207. fi
  8208. done
  8209. ;;
  8210. esac
  8211. exp_sym_flag='-bexport'
  8212. no_entry_flag='-bnoentry'
  8213. fi
  8214. # When large executables or shared objects are built, AIX ld can
  8215. # have problems creating the table of contents. If linking a library
  8216. # or program results in "error TOC overflow" add -mminimal-toc to
  8217. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8218. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8219. archive_cmds=''
  8220. hardcode_direct=yes
  8221. hardcode_direct_absolute=yes
  8222. hardcode_libdir_separator=':'
  8223. link_all_deplibs=yes
  8224. file_list_spec='${wl}-f,'
  8225. if test "$GCC" = yes; then
  8226. case $host_os in aix4.[012]|aix4.[012].*)
  8227. # We only want to do this on AIX 4.2 and lower, the check
  8228. # below for broken collect2 doesn't work under 4.3+
  8229. collect2name=`${CC} -print-prog-name=collect2`
  8230. if test -f "$collect2name" &&
  8231. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8232. then
  8233. # We have reworked collect2
  8234. :
  8235. else
  8236. # We have old collect2
  8237. hardcode_direct=unsupported
  8238. # It fails to find uninstalled libraries when the uninstalled
  8239. # path is not listed in the libpath. Setting hardcode_minus_L
  8240. # to unsupported forces relinking
  8241. hardcode_minus_L=yes
  8242. hardcode_libdir_flag_spec='-L$libdir'
  8243. hardcode_libdir_separator=
  8244. fi
  8245. ;;
  8246. esac
  8247. shared_flag='-shared'
  8248. if test "$aix_use_runtimelinking" = yes; then
  8249. shared_flag="$shared_flag "'${wl}-G'
  8250. fi
  8251. else
  8252. # not using gcc
  8253. if test "$host_cpu" = ia64; then
  8254. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8255. # chokes on -Wl,-G. The following line is correct:
  8256. shared_flag='-G'
  8257. else
  8258. if test "$aix_use_runtimelinking" = yes; then
  8259. shared_flag='${wl}-G'
  8260. else
  8261. shared_flag='${wl}-bM:SRE'
  8262. fi
  8263. fi
  8264. fi
  8265. export_dynamic_flag_spec='${wl}-bexpall'
  8266. # It seems that -bexpall does not export symbols beginning with
  8267. # underscore (_), so it is better to generate a list of symbols to export.
  8268. always_export_symbols=yes
  8269. if test "$aix_use_runtimelinking" = yes; then
  8270. # Warning - without using the other runtime loading flags (-brtl),
  8271. # -berok will link without error, but may produce a broken library.
  8272. allow_undefined_flag='-berok'
  8273. # Determine the default libpath from the value encoded in an
  8274. # empty executable.
  8275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8276. /* end confdefs.h. */
  8277. int
  8278. main ()
  8279. {
  8280. ;
  8281. return 0;
  8282. }
  8283. _ACEOF
  8284. if ac_fn_c_try_link "$LINENO"; then :
  8285. lt_aix_libpath_sed='
  8286. /Import File Strings/,/^$/ {
  8287. /^0/ {
  8288. s/^0 *\(.*\)$/\1/
  8289. p
  8290. }
  8291. }'
  8292. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8293. # Check for a 64-bit object if we didn't find anything.
  8294. if test -z "$aix_libpath"; then
  8295. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8296. fi
  8297. fi
  8298. rm -f core conftest.err conftest.$ac_objext \
  8299. conftest$ac_exeext conftest.$ac_ext
  8300. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8301. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8302. 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"
  8303. else
  8304. if test "$host_cpu" = ia64; then
  8305. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8306. allow_undefined_flag="-z nodefs"
  8307. 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"
  8308. else
  8309. # Determine the default libpath from the value encoded in an
  8310. # empty executable.
  8311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8312. /* end confdefs.h. */
  8313. int
  8314. main ()
  8315. {
  8316. ;
  8317. return 0;
  8318. }
  8319. _ACEOF
  8320. if ac_fn_c_try_link "$LINENO"; then :
  8321. lt_aix_libpath_sed='
  8322. /Import File Strings/,/^$/ {
  8323. /^0/ {
  8324. s/^0 *\(.*\)$/\1/
  8325. p
  8326. }
  8327. }'
  8328. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8329. # Check for a 64-bit object if we didn't find anything.
  8330. if test -z "$aix_libpath"; then
  8331. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8332. fi
  8333. fi
  8334. rm -f core conftest.err conftest.$ac_objext \
  8335. conftest$ac_exeext conftest.$ac_ext
  8336. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8337. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8338. # Warning - without using the other run time loading flags,
  8339. # -berok will link without error, but may produce a broken library.
  8340. no_undefined_flag=' ${wl}-bernotok'
  8341. allow_undefined_flag=' ${wl}-berok'
  8342. if test "$with_gnu_ld" = yes; then
  8343. # We only use this code for GNU lds that support --whole-archive.
  8344. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8345. else
  8346. # Exported symbols can be pulled into shared objects from archives
  8347. whole_archive_flag_spec='$convenience'
  8348. fi
  8349. archive_cmds_need_lc=yes
  8350. # This is similar to how AIX traditionally builds its shared libraries.
  8351. 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'
  8352. fi
  8353. fi
  8354. ;;
  8355. amigaos*)
  8356. case $host_cpu in
  8357. powerpc)
  8358. # see comment about AmigaOS4 .so support
  8359. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8360. archive_expsym_cmds=''
  8361. ;;
  8362. m68k)
  8363. 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)'
  8364. hardcode_libdir_flag_spec='-L$libdir'
  8365. hardcode_minus_L=yes
  8366. ;;
  8367. esac
  8368. ;;
  8369. bsdi[45]*)
  8370. export_dynamic_flag_spec=-rdynamic
  8371. ;;
  8372. cygwin* | mingw* | pw32* | cegcc*)
  8373. # When not using gcc, we currently assume that we are using
  8374. # Microsoft Visual C++.
  8375. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8376. # no search path for DLLs.
  8377. hardcode_libdir_flag_spec=' '
  8378. allow_undefined_flag=unsupported
  8379. # Tell ltmain to make .lib files, not .a files.
  8380. libext=lib
  8381. # Tell ltmain to make .dll files, not .so files.
  8382. shrext_cmds=".dll"
  8383. # FIXME: Setting linknames here is a bad hack.
  8384. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8385. # The linker will automatically build a .lib file if we build a DLL.
  8386. old_archive_from_new_cmds='true'
  8387. # FIXME: Should let the user specify the lib program.
  8388. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8389. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8390. enable_shared_with_static_runtimes=yes
  8391. ;;
  8392. darwin* | rhapsody*)
  8393. archive_cmds_need_lc=no
  8394. hardcode_direct=no
  8395. hardcode_automatic=yes
  8396. hardcode_shlibpath_var=unsupported
  8397. if test "$lt_cv_ld_force_load" = "yes"; then
  8398. 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\"`'
  8399. else
  8400. whole_archive_flag_spec=''
  8401. fi
  8402. link_all_deplibs=yes
  8403. allow_undefined_flag="$_lt_dar_allow_undefined"
  8404. case $cc_basename in
  8405. ifort*) _lt_dar_can_shared=yes ;;
  8406. *) _lt_dar_can_shared=$GCC ;;
  8407. esac
  8408. if test "$_lt_dar_can_shared" = "yes"; then
  8409. output_verbose_link_cmd=func_echo_all
  8410. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8411. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8412. 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}"
  8413. 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}"
  8414. else
  8415. ld_shlibs=no
  8416. fi
  8417. ;;
  8418. dgux*)
  8419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8420. hardcode_libdir_flag_spec='-L$libdir'
  8421. hardcode_shlibpath_var=no
  8422. ;;
  8423. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8424. # support. Future versions do this automatically, but an explicit c++rt0.o
  8425. # does not break anything, and helps significantly (at the cost of a little
  8426. # extra space).
  8427. freebsd2.2*)
  8428. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8429. hardcode_libdir_flag_spec='-R$libdir'
  8430. hardcode_direct=yes
  8431. hardcode_shlibpath_var=no
  8432. ;;
  8433. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8434. freebsd2.*)
  8435. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8436. hardcode_direct=yes
  8437. hardcode_minus_L=yes
  8438. hardcode_shlibpath_var=no
  8439. ;;
  8440. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8441. freebsd* | dragonfly*)
  8442. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8443. hardcode_libdir_flag_spec='-R$libdir'
  8444. hardcode_direct=yes
  8445. hardcode_shlibpath_var=no
  8446. ;;
  8447. hpux9*)
  8448. if test "$GCC" = yes; then
  8449. 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'
  8450. else
  8451. 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'
  8452. fi
  8453. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8454. hardcode_libdir_separator=:
  8455. hardcode_direct=yes
  8456. # hardcode_minus_L: Not really in the search PATH,
  8457. # but as the default location of the library.
  8458. hardcode_minus_L=yes
  8459. export_dynamic_flag_spec='${wl}-E'
  8460. ;;
  8461. hpux10*)
  8462. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8463. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8464. else
  8465. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8466. fi
  8467. if test "$with_gnu_ld" = no; then
  8468. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8469. hardcode_libdir_flag_spec_ld='+b $libdir'
  8470. hardcode_libdir_separator=:
  8471. hardcode_direct=yes
  8472. hardcode_direct_absolute=yes
  8473. export_dynamic_flag_spec='${wl}-E'
  8474. # hardcode_minus_L: Not really in the search PATH,
  8475. # but as the default location of the library.
  8476. hardcode_minus_L=yes
  8477. fi
  8478. ;;
  8479. hpux11*)
  8480. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8481. case $host_cpu in
  8482. hppa*64*)
  8483. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8484. ;;
  8485. ia64*)
  8486. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8487. ;;
  8488. *)
  8489. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8490. ;;
  8491. esac
  8492. else
  8493. case $host_cpu in
  8494. hppa*64*)
  8495. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8496. ;;
  8497. ia64*)
  8498. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8499. ;;
  8500. *)
  8501. # Older versions of the 11.00 compiler do not understand -b yet
  8502. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8504. $as_echo_n "checking if $CC understands -b... " >&6; }
  8505. if ${lt_cv_prog_compiler__b+:} false; then :
  8506. $as_echo_n "(cached) " >&6
  8507. else
  8508. lt_cv_prog_compiler__b=no
  8509. save_LDFLAGS="$LDFLAGS"
  8510. LDFLAGS="$LDFLAGS -b"
  8511. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8512. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8513. # The linker can only warn and ignore the option if not recognized
  8514. # So say no if there are warnings
  8515. if test -s conftest.err; then
  8516. # Append any errors to the config.log.
  8517. cat conftest.err 1>&5
  8518. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8519. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8520. if diff conftest.exp conftest.er2 >/dev/null; then
  8521. lt_cv_prog_compiler__b=yes
  8522. fi
  8523. else
  8524. lt_cv_prog_compiler__b=yes
  8525. fi
  8526. fi
  8527. $RM -r conftest*
  8528. LDFLAGS="$save_LDFLAGS"
  8529. fi
  8530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8531. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8532. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8533. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8534. else
  8535. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8536. fi
  8537. ;;
  8538. esac
  8539. fi
  8540. if test "$with_gnu_ld" = no; then
  8541. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8542. hardcode_libdir_separator=:
  8543. case $host_cpu in
  8544. hppa*64*|ia64*)
  8545. hardcode_direct=no
  8546. hardcode_shlibpath_var=no
  8547. ;;
  8548. *)
  8549. hardcode_direct=yes
  8550. hardcode_direct_absolute=yes
  8551. export_dynamic_flag_spec='${wl}-E'
  8552. # hardcode_minus_L: Not really in the search PATH,
  8553. # but as the default location of the library.
  8554. hardcode_minus_L=yes
  8555. ;;
  8556. esac
  8557. fi
  8558. ;;
  8559. irix5* | irix6* | nonstopux*)
  8560. if test "$GCC" = yes; then
  8561. 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'
  8562. # Try to use the -exported_symbol ld option, if it does not
  8563. # work, assume that -exports_file does not work either and
  8564. # implicitly export all symbols.
  8565. save_LDFLAGS="$LDFLAGS"
  8566. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8568. /* end confdefs.h. */
  8569. int foo(void) {}
  8570. _ACEOF
  8571. if ac_fn_c_try_link "$LINENO"; then :
  8572. 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'
  8573. fi
  8574. rm -f core conftest.err conftest.$ac_objext \
  8575. conftest$ac_exeext conftest.$ac_ext
  8576. LDFLAGS="$save_LDFLAGS"
  8577. else
  8578. 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'
  8579. 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'
  8580. fi
  8581. archive_cmds_need_lc='no'
  8582. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8583. hardcode_libdir_separator=:
  8584. inherit_rpath=yes
  8585. link_all_deplibs=yes
  8586. ;;
  8587. netbsd*)
  8588. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8589. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8590. else
  8591. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8592. fi
  8593. hardcode_libdir_flag_spec='-R$libdir'
  8594. hardcode_direct=yes
  8595. hardcode_shlibpath_var=no
  8596. ;;
  8597. newsos6)
  8598. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8599. hardcode_direct=yes
  8600. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8601. hardcode_libdir_separator=:
  8602. hardcode_shlibpath_var=no
  8603. ;;
  8604. *nto* | *qnx*)
  8605. ;;
  8606. openbsd*)
  8607. if test -f /usr/libexec/ld.so; then
  8608. hardcode_direct=yes
  8609. hardcode_shlibpath_var=no
  8610. hardcode_direct_absolute=yes
  8611. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8612. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8613. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8614. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8615. export_dynamic_flag_spec='${wl}-E'
  8616. else
  8617. case $host_os in
  8618. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8619. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8620. hardcode_libdir_flag_spec='-R$libdir'
  8621. ;;
  8622. *)
  8623. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8624. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8625. ;;
  8626. esac
  8627. fi
  8628. else
  8629. ld_shlibs=no
  8630. fi
  8631. ;;
  8632. os2*)
  8633. hardcode_libdir_flag_spec='-L$libdir'
  8634. hardcode_minus_L=yes
  8635. allow_undefined_flag=unsupported
  8636. 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'
  8637. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8638. ;;
  8639. osf3*)
  8640. if test "$GCC" = yes; then
  8641. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8642. 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'
  8643. else
  8644. allow_undefined_flag=' -expect_unresolved \*'
  8645. 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'
  8646. fi
  8647. archive_cmds_need_lc='no'
  8648. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8649. hardcode_libdir_separator=:
  8650. ;;
  8651. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8652. if test "$GCC" = yes; then
  8653. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8654. 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'
  8655. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8656. else
  8657. allow_undefined_flag=' -expect_unresolved \*'
  8658. 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'
  8659. 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~
  8660. $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'
  8661. # Both c and cxx compiler support -rpath directly
  8662. hardcode_libdir_flag_spec='-rpath $libdir'
  8663. fi
  8664. archive_cmds_need_lc='no'
  8665. hardcode_libdir_separator=:
  8666. ;;
  8667. solaris*)
  8668. no_undefined_flag=' -z defs'
  8669. if test "$GCC" = yes; then
  8670. wlarc='${wl}'
  8671. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8672. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8673. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8674. else
  8675. case `$CC -V 2>&1` in
  8676. *"Compilers 5.0"*)
  8677. wlarc=''
  8678. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8679. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8680. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8681. ;;
  8682. *)
  8683. wlarc='${wl}'
  8684. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8685. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8686. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8687. ;;
  8688. esac
  8689. fi
  8690. hardcode_libdir_flag_spec='-R$libdir'
  8691. hardcode_shlibpath_var=no
  8692. case $host_os in
  8693. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8694. *)
  8695. # The compiler driver will combine and reorder linker options,
  8696. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8697. # but is careful enough not to reorder.
  8698. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8699. if test "$GCC" = yes; then
  8700. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8701. else
  8702. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8703. fi
  8704. ;;
  8705. esac
  8706. link_all_deplibs=yes
  8707. ;;
  8708. sunos4*)
  8709. if test "x$host_vendor" = xsequent; then
  8710. # Use $CC to link under sequent, because it throws in some extra .o
  8711. # files that make .init and .fini sections work.
  8712. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8713. else
  8714. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8715. fi
  8716. hardcode_libdir_flag_spec='-L$libdir'
  8717. hardcode_direct=yes
  8718. hardcode_minus_L=yes
  8719. hardcode_shlibpath_var=no
  8720. ;;
  8721. sysv4)
  8722. case $host_vendor in
  8723. sni)
  8724. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8725. hardcode_direct=yes # is this really true???
  8726. ;;
  8727. siemens)
  8728. ## LD is ld it makes a PLAMLIB
  8729. ## CC just makes a GrossModule.
  8730. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8731. reload_cmds='$CC -r -o $output$reload_objs'
  8732. hardcode_direct=no
  8733. ;;
  8734. motorola)
  8735. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8736. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8737. ;;
  8738. esac
  8739. runpath_var='LD_RUN_PATH'
  8740. hardcode_shlibpath_var=no
  8741. ;;
  8742. sysv4.3*)
  8743. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8744. hardcode_shlibpath_var=no
  8745. export_dynamic_flag_spec='-Bexport'
  8746. ;;
  8747. sysv4*MP*)
  8748. if test -d /usr/nec; then
  8749. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8750. hardcode_shlibpath_var=no
  8751. runpath_var=LD_RUN_PATH
  8752. hardcode_runpath_var=yes
  8753. ld_shlibs=yes
  8754. fi
  8755. ;;
  8756. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8757. no_undefined_flag='${wl}-z,text'
  8758. archive_cmds_need_lc=no
  8759. hardcode_shlibpath_var=no
  8760. runpath_var='LD_RUN_PATH'
  8761. if test "$GCC" = yes; then
  8762. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8763. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8764. else
  8765. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8766. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8767. fi
  8768. ;;
  8769. sysv5* | sco3.2v5* | sco5v6*)
  8770. # Note: We can NOT use -z defs as we might desire, because we do not
  8771. # link with -lc, and that would cause any symbols used from libc to
  8772. # always be unresolved, which means just about no library would
  8773. # ever link correctly. If we're not using GNU ld we use -z text
  8774. # though, which does catch some bad symbols but isn't as heavy-handed
  8775. # as -z defs.
  8776. no_undefined_flag='${wl}-z,text'
  8777. allow_undefined_flag='${wl}-z,nodefs'
  8778. archive_cmds_need_lc=no
  8779. hardcode_shlibpath_var=no
  8780. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8781. hardcode_libdir_separator=':'
  8782. link_all_deplibs=yes
  8783. export_dynamic_flag_spec='${wl}-Bexport'
  8784. runpath_var='LD_RUN_PATH'
  8785. if test "$GCC" = yes; then
  8786. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8787. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8788. else
  8789. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8790. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8791. fi
  8792. ;;
  8793. uts4*)
  8794. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8795. hardcode_libdir_flag_spec='-L$libdir'
  8796. hardcode_shlibpath_var=no
  8797. ;;
  8798. *)
  8799. ld_shlibs=no
  8800. ;;
  8801. esac
  8802. if test x$host_vendor = xsni; then
  8803. case $host in
  8804. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8805. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8806. ;;
  8807. esac
  8808. fi
  8809. fi
  8810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8811. $as_echo "$ld_shlibs" >&6; }
  8812. test "$ld_shlibs" = no && can_build_shared=no
  8813. with_gnu_ld=$with_gnu_ld
  8814. #
  8815. # Do we need to explicitly link libc?
  8816. #
  8817. case "x$archive_cmds_need_lc" in
  8818. x|xyes)
  8819. # Assume -lc should be added
  8820. archive_cmds_need_lc=yes
  8821. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8822. case $archive_cmds in
  8823. *'~'*)
  8824. # FIXME: we may have to deal with multi-command sequences.
  8825. ;;
  8826. '$CC '*)
  8827. # Test whether the compiler implicitly links with -lc since on some
  8828. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8829. # to ld, don't add -lc before -lgcc.
  8830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8831. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8832. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8833. $as_echo_n "(cached) " >&6
  8834. else
  8835. $RM conftest*
  8836. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8837. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8838. (eval $ac_compile) 2>&5
  8839. ac_status=$?
  8840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8841. test $ac_status = 0; } 2>conftest.err; then
  8842. soname=conftest
  8843. lib=conftest
  8844. libobjs=conftest.$ac_objext
  8845. deplibs=
  8846. wl=$lt_prog_compiler_wl
  8847. pic_flag=$lt_prog_compiler_pic
  8848. compiler_flags=-v
  8849. linker_flags=-v
  8850. verstring=
  8851. output_objdir=.
  8852. libname=conftest
  8853. lt_save_allow_undefined_flag=$allow_undefined_flag
  8854. allow_undefined_flag=
  8855. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8856. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8857. ac_status=$?
  8858. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8859. test $ac_status = 0; }
  8860. then
  8861. lt_cv_archive_cmds_need_lc=no
  8862. else
  8863. lt_cv_archive_cmds_need_lc=yes
  8864. fi
  8865. allow_undefined_flag=$lt_save_allow_undefined_flag
  8866. else
  8867. cat conftest.err 1>&5
  8868. fi
  8869. $RM conftest*
  8870. fi
  8871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8872. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8873. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8874. ;;
  8875. esac
  8876. fi
  8877. ;;
  8878. esac
  8879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8880. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8881. if test "$GCC" = yes; then
  8882. case $host_os in
  8883. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8884. *) lt_awk_arg="/^libraries:/" ;;
  8885. esac
  8886. case $host_os in
  8887. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8888. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8889. esac
  8890. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8891. case $lt_search_path_spec in
  8892. *\;*)
  8893. # if the path contains ";" then we assume it to be the separator
  8894. # otherwise default to the standard path separator (i.e. ":") - it is
  8895. # assumed that no part of a normal pathname contains ";" but that should
  8896. # okay in the real world where ";" in dirpaths is itself problematic.
  8897. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8898. ;;
  8899. *)
  8900. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8901. ;;
  8902. esac
  8903. # Ok, now we have the path, separated by spaces, we can step through it
  8904. # and add multilib dir if necessary.
  8905. lt_tmp_lt_search_path_spec=
  8906. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8907. for lt_sys_path in $lt_search_path_spec; do
  8908. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8909. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8910. else
  8911. test -d "$lt_sys_path" && \
  8912. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8913. fi
  8914. done
  8915. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8916. BEGIN {RS=" "; FS="/|\n";} {
  8917. lt_foo="";
  8918. lt_count=0;
  8919. for (lt_i = NF; lt_i > 0; lt_i--) {
  8920. if ($lt_i != "" && $lt_i != ".") {
  8921. if ($lt_i == "..") {
  8922. lt_count++;
  8923. } else {
  8924. if (lt_count == 0) {
  8925. lt_foo="/" $lt_i lt_foo;
  8926. } else {
  8927. lt_count--;
  8928. }
  8929. }
  8930. }
  8931. }
  8932. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8933. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8934. }'`
  8935. # AWK program above erroneously prepends '/' to C:/dos/paths
  8936. # for these hosts.
  8937. case $host_os in
  8938. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8939. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8940. esac
  8941. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8942. else
  8943. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8944. fi
  8945. library_names_spec=
  8946. libname_spec='lib$name'
  8947. soname_spec=
  8948. shrext_cmds=".so"
  8949. postinstall_cmds=
  8950. postuninstall_cmds=
  8951. finish_cmds=
  8952. finish_eval=
  8953. shlibpath_var=
  8954. shlibpath_overrides_runpath=unknown
  8955. version_type=none
  8956. dynamic_linker="$host_os ld.so"
  8957. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8958. need_lib_prefix=unknown
  8959. hardcode_into_libs=no
  8960. # when you set need_version to no, make sure it does not cause -set_version
  8961. # flags to be left without arguments
  8962. need_version=unknown
  8963. case $host_os in
  8964. aix3*)
  8965. version_type=linux
  8966. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8967. shlibpath_var=LIBPATH
  8968. # AIX 3 has no versioning support, so we append a major version to the name.
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. ;;
  8971. aix[4-9]*)
  8972. version_type=linux
  8973. need_lib_prefix=no
  8974. need_version=no
  8975. hardcode_into_libs=yes
  8976. if test "$host_cpu" = ia64; then
  8977. # AIX 5 supports IA64
  8978. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8979. shlibpath_var=LD_LIBRARY_PATH
  8980. else
  8981. # With GCC up to 2.95.x, collect2 would create an import file
  8982. # for dependence libraries. The import file would start with
  8983. # the line `#! .'. This would cause the generated library to
  8984. # depend on `.', always an invalid library. This was fixed in
  8985. # development snapshots of GCC prior to 3.0.
  8986. case $host_os in
  8987. aix4 | aix4.[01] | aix4.[01].*)
  8988. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8989. echo ' yes '
  8990. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8991. :
  8992. else
  8993. can_build_shared=no
  8994. fi
  8995. ;;
  8996. esac
  8997. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8998. # soname into executable. Probably we can add versioning support to
  8999. # collect2, so additional links can be useful in future.
  9000. if test "$aix_use_runtimelinking" = yes; then
  9001. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9002. # instead of lib<name>.a to let people know that these are not
  9003. # typical AIX shared libraries.
  9004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9005. else
  9006. # We preserve .a as extension for shared libraries through AIX4.2
  9007. # and later when we are not doing run time linking.
  9008. library_names_spec='${libname}${release}.a $libname.a'
  9009. soname_spec='${libname}${release}${shared_ext}$major'
  9010. fi
  9011. shlibpath_var=LIBPATH
  9012. fi
  9013. ;;
  9014. amigaos*)
  9015. case $host_cpu in
  9016. powerpc)
  9017. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9018. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9020. ;;
  9021. m68k)
  9022. library_names_spec='$libname.ixlibrary $libname.a'
  9023. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9024. 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'
  9025. ;;
  9026. esac
  9027. ;;
  9028. beos*)
  9029. library_names_spec='${libname}${shared_ext}'
  9030. dynamic_linker="$host_os ld.so"
  9031. shlibpath_var=LIBRARY_PATH
  9032. ;;
  9033. bsdi[45]*)
  9034. version_type=linux
  9035. need_version=no
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9037. soname_spec='${libname}${release}${shared_ext}$major'
  9038. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9039. shlibpath_var=LD_LIBRARY_PATH
  9040. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9041. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9042. # the default ld.so.conf also contains /usr/contrib/lib and
  9043. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9044. # libtool to hard-code these into programs
  9045. ;;
  9046. cygwin* | mingw* | pw32* | cegcc*)
  9047. version_type=windows
  9048. shrext_cmds=".dll"
  9049. need_version=no
  9050. need_lib_prefix=no
  9051. case $GCC,$host_os in
  9052. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9053. library_names_spec='$libname.dll.a'
  9054. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9055. postinstall_cmds='base_file=`basename \${file}`~
  9056. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9057. dldir=$destdir/`dirname \$dlpath`~
  9058. test -d \$dldir || mkdir -p \$dldir~
  9059. $install_prog $dir/$dlname \$dldir/$dlname~
  9060. chmod a+x \$dldir/$dlname~
  9061. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9062. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9063. fi'
  9064. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9065. dlpath=$dir/\$dldll~
  9066. $RM \$dlpath'
  9067. shlibpath_overrides_runpath=yes
  9068. case $host_os in
  9069. cygwin*)
  9070. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9071. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9072. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9073. ;;
  9074. mingw* | cegcc*)
  9075. # MinGW DLLs use traditional 'lib' prefix
  9076. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9077. ;;
  9078. pw32*)
  9079. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9080. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9081. ;;
  9082. esac
  9083. ;;
  9084. *)
  9085. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9086. ;;
  9087. esac
  9088. dynamic_linker='Win32 ld.exe'
  9089. # FIXME: first we should search . and the directory the executable is in
  9090. shlibpath_var=PATH
  9091. ;;
  9092. darwin* | rhapsody*)
  9093. dynamic_linker="$host_os dyld"
  9094. version_type=darwin
  9095. need_lib_prefix=no
  9096. need_version=no
  9097. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9098. soname_spec='${libname}${release}${major}$shared_ext'
  9099. shlibpath_overrides_runpath=yes
  9100. shlibpath_var=DYLD_LIBRARY_PATH
  9101. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9102. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9103. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9104. ;;
  9105. dgux*)
  9106. version_type=linux
  9107. need_lib_prefix=no
  9108. need_version=no
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9110. soname_spec='${libname}${release}${shared_ext}$major'
  9111. shlibpath_var=LD_LIBRARY_PATH
  9112. ;;
  9113. freebsd* | dragonfly*)
  9114. # DragonFly does not have aout. When/if they implement a new
  9115. # versioning mechanism, adjust this.
  9116. if test -x /usr/bin/objformat; then
  9117. objformat=`/usr/bin/objformat`
  9118. else
  9119. case $host_os in
  9120. freebsd[23].*) objformat=aout ;;
  9121. *) objformat=elf ;;
  9122. esac
  9123. fi
  9124. version_type=freebsd-$objformat
  9125. case $version_type in
  9126. freebsd-elf*)
  9127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9128. need_version=no
  9129. need_lib_prefix=no
  9130. ;;
  9131. freebsd-*)
  9132. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9133. need_version=yes
  9134. ;;
  9135. esac
  9136. shlibpath_var=LD_LIBRARY_PATH
  9137. case $host_os in
  9138. freebsd2.*)
  9139. shlibpath_overrides_runpath=yes
  9140. ;;
  9141. freebsd3.[01]* | freebsdelf3.[01]*)
  9142. shlibpath_overrides_runpath=yes
  9143. hardcode_into_libs=yes
  9144. ;;
  9145. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9146. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9147. shlibpath_overrides_runpath=no
  9148. hardcode_into_libs=yes
  9149. ;;
  9150. *) # from 4.6 on, and DragonFly
  9151. shlibpath_overrides_runpath=yes
  9152. hardcode_into_libs=yes
  9153. ;;
  9154. esac
  9155. ;;
  9156. haiku*)
  9157. version_type=linux
  9158. need_lib_prefix=no
  9159. need_version=no
  9160. dynamic_linker="$host_os runtime_loader"
  9161. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9162. soname_spec='${libname}${release}${shared_ext}$major'
  9163. shlibpath_var=LIBRARY_PATH
  9164. shlibpath_overrides_runpath=yes
  9165. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9166. hardcode_into_libs=yes
  9167. ;;
  9168. hpux9* | hpux10* | hpux11*)
  9169. # Give a soname corresponding to the major version so that dld.sl refuses to
  9170. # link against other versions.
  9171. version_type=sunos
  9172. need_lib_prefix=no
  9173. need_version=no
  9174. case $host_cpu in
  9175. ia64*)
  9176. shrext_cmds='.so'
  9177. hardcode_into_libs=yes
  9178. dynamic_linker="$host_os dld.so"
  9179. shlibpath_var=LD_LIBRARY_PATH
  9180. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. if test "X$HPUX_IA64_MODE" = X32; then
  9184. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9185. else
  9186. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9187. fi
  9188. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9189. ;;
  9190. hppa*64*)
  9191. shrext_cmds='.sl'
  9192. hardcode_into_libs=yes
  9193. dynamic_linker="$host_os dld.sl"
  9194. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9195. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9197. soname_spec='${libname}${release}${shared_ext}$major'
  9198. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9199. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9200. ;;
  9201. *)
  9202. shrext_cmds='.sl'
  9203. dynamic_linker="$host_os dld.sl"
  9204. shlibpath_var=SHLIB_PATH
  9205. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9207. soname_spec='${libname}${release}${shared_ext}$major'
  9208. ;;
  9209. esac
  9210. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9211. postinstall_cmds='chmod 555 $lib'
  9212. # or fails outright, so override atomically:
  9213. install_override_mode=555
  9214. ;;
  9215. interix[3-9]*)
  9216. version_type=linux
  9217. need_lib_prefix=no
  9218. need_version=no
  9219. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9220. soname_spec='${libname}${release}${shared_ext}$major'
  9221. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9222. shlibpath_var=LD_LIBRARY_PATH
  9223. shlibpath_overrides_runpath=no
  9224. hardcode_into_libs=yes
  9225. ;;
  9226. irix5* | irix6* | nonstopux*)
  9227. case $host_os in
  9228. nonstopux*) version_type=nonstopux ;;
  9229. *)
  9230. if test "$lt_cv_prog_gnu_ld" = yes; then
  9231. version_type=linux
  9232. else
  9233. version_type=irix
  9234. fi ;;
  9235. esac
  9236. need_lib_prefix=no
  9237. need_version=no
  9238. soname_spec='${libname}${release}${shared_ext}$major'
  9239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9240. case $host_os in
  9241. irix5* | nonstopux*)
  9242. libsuff= shlibsuff=
  9243. ;;
  9244. *)
  9245. case $LD in # libtool.m4 will add one of these switches to LD
  9246. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9247. libsuff= shlibsuff= libmagic=32-bit;;
  9248. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9249. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9250. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9251. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9252. *) libsuff= shlibsuff= libmagic=never-match;;
  9253. esac
  9254. ;;
  9255. esac
  9256. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9257. shlibpath_overrides_runpath=no
  9258. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9259. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9260. hardcode_into_libs=yes
  9261. ;;
  9262. # No shared lib support for Linux oldld, aout, or coff.
  9263. linux*oldld* | linux*aout* | linux*coff*)
  9264. dynamic_linker=no
  9265. ;;
  9266. # This must be Linux ELF.
  9267. # uclinux* changes (here and below) have been submitted to the libtool
  9268. # project, but have not yet been accepted: they are GCC-local changes
  9269. # for the time being. (See
  9270. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9271. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9272. version_type=linux
  9273. need_lib_prefix=no
  9274. need_version=no
  9275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9276. soname_spec='${libname}${release}${shared_ext}$major'
  9277. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9278. shlibpath_var=LD_LIBRARY_PATH
  9279. shlibpath_overrides_runpath=no
  9280. # Some binutils ld are patched to set DT_RUNPATH
  9281. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9282. $as_echo_n "(cached) " >&6
  9283. else
  9284. lt_cv_shlibpath_overrides_runpath=no
  9285. save_LDFLAGS=$LDFLAGS
  9286. save_libdir=$libdir
  9287. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9288. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9290. /* end confdefs.h. */
  9291. int
  9292. main ()
  9293. {
  9294. ;
  9295. return 0;
  9296. }
  9297. _ACEOF
  9298. if ac_fn_c_try_link "$LINENO"; then :
  9299. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9300. lt_cv_shlibpath_overrides_runpath=yes
  9301. fi
  9302. fi
  9303. rm -f core conftest.err conftest.$ac_objext \
  9304. conftest$ac_exeext conftest.$ac_ext
  9305. LDFLAGS=$save_LDFLAGS
  9306. libdir=$save_libdir
  9307. fi
  9308. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9309. # This implies no fast_install, which is unacceptable.
  9310. # Some rework will be needed to allow for fast_install
  9311. # before this can be enabled.
  9312. hardcode_into_libs=yes
  9313. # Append ld.so.conf contents to the search path
  9314. if test -f /etc/ld.so.conf; then
  9315. 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' ' '`
  9316. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9317. fi
  9318. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9319. # powerpc, because MkLinux only supported shared libraries with the
  9320. # GNU dynamic linker. Since this was broken with cross compilers,
  9321. # most powerpc-linux boxes support dynamic linking these days and
  9322. # people can always --disable-shared, the test was removed, and we
  9323. # assume the GNU/Linux dynamic linker is in use.
  9324. dynamic_linker='GNU/Linux ld.so'
  9325. ;;
  9326. netbsd*)
  9327. version_type=sunos
  9328. need_lib_prefix=no
  9329. need_version=no
  9330. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9331. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9332. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9333. dynamic_linker='NetBSD (a.out) ld.so'
  9334. else
  9335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9336. soname_spec='${libname}${release}${shared_ext}$major'
  9337. dynamic_linker='NetBSD ld.elf_so'
  9338. fi
  9339. shlibpath_var=LD_LIBRARY_PATH
  9340. shlibpath_overrides_runpath=yes
  9341. hardcode_into_libs=yes
  9342. ;;
  9343. newsos6)
  9344. version_type=linux
  9345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9346. shlibpath_var=LD_LIBRARY_PATH
  9347. shlibpath_overrides_runpath=yes
  9348. ;;
  9349. *nto* | *qnx*)
  9350. version_type=qnx
  9351. need_lib_prefix=no
  9352. need_version=no
  9353. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9354. soname_spec='${libname}${release}${shared_ext}$major'
  9355. shlibpath_var=LD_LIBRARY_PATH
  9356. shlibpath_overrides_runpath=no
  9357. hardcode_into_libs=yes
  9358. dynamic_linker='ldqnx.so'
  9359. ;;
  9360. openbsd*)
  9361. version_type=sunos
  9362. sys_lib_dlsearch_path_spec="/usr/lib"
  9363. need_lib_prefix=no
  9364. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9365. case $host_os in
  9366. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9367. *) need_version=no ;;
  9368. esac
  9369. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9370. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9371. shlibpath_var=LD_LIBRARY_PATH
  9372. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9373. case $host_os in
  9374. openbsd2.[89] | openbsd2.[89].*)
  9375. shlibpath_overrides_runpath=no
  9376. ;;
  9377. *)
  9378. shlibpath_overrides_runpath=yes
  9379. ;;
  9380. esac
  9381. else
  9382. shlibpath_overrides_runpath=yes
  9383. fi
  9384. ;;
  9385. os2*)
  9386. libname_spec='$name'
  9387. shrext_cmds=".dll"
  9388. need_lib_prefix=no
  9389. library_names_spec='$libname${shared_ext} $libname.a'
  9390. dynamic_linker='OS/2 ld.exe'
  9391. shlibpath_var=LIBPATH
  9392. ;;
  9393. osf3* | osf4* | osf5*)
  9394. version_type=osf
  9395. need_lib_prefix=no
  9396. need_version=no
  9397. soname_spec='${libname}${release}${shared_ext}$major'
  9398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9399. shlibpath_var=LD_LIBRARY_PATH
  9400. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9401. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9402. ;;
  9403. rdos*)
  9404. dynamic_linker=no
  9405. ;;
  9406. solaris*)
  9407. version_type=linux
  9408. need_lib_prefix=no
  9409. need_version=no
  9410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9411. soname_spec='${libname}${release}${shared_ext}$major'
  9412. shlibpath_var=LD_LIBRARY_PATH
  9413. shlibpath_overrides_runpath=yes
  9414. hardcode_into_libs=yes
  9415. # ldd complains unless libraries are executable
  9416. postinstall_cmds='chmod +x $lib'
  9417. ;;
  9418. sunos4*)
  9419. version_type=sunos
  9420. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9421. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9422. shlibpath_var=LD_LIBRARY_PATH
  9423. shlibpath_overrides_runpath=yes
  9424. if test "$with_gnu_ld" = yes; then
  9425. need_lib_prefix=no
  9426. fi
  9427. need_version=yes
  9428. ;;
  9429. sysv4 | sysv4.3*)
  9430. version_type=linux
  9431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9432. soname_spec='${libname}${release}${shared_ext}$major'
  9433. shlibpath_var=LD_LIBRARY_PATH
  9434. case $host_vendor in
  9435. sni)
  9436. shlibpath_overrides_runpath=no
  9437. need_lib_prefix=no
  9438. runpath_var=LD_RUN_PATH
  9439. ;;
  9440. siemens)
  9441. need_lib_prefix=no
  9442. ;;
  9443. motorola)
  9444. need_lib_prefix=no
  9445. need_version=no
  9446. shlibpath_overrides_runpath=no
  9447. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9448. ;;
  9449. esac
  9450. ;;
  9451. sysv4*MP*)
  9452. if test -d /usr/nec ;then
  9453. version_type=linux
  9454. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9455. soname_spec='$libname${shared_ext}.$major'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. fi
  9458. ;;
  9459. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9460. version_type=freebsd-elf
  9461. need_lib_prefix=no
  9462. need_version=no
  9463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9464. soname_spec='${libname}${release}${shared_ext}$major'
  9465. shlibpath_var=LD_LIBRARY_PATH
  9466. shlibpath_overrides_runpath=yes
  9467. hardcode_into_libs=yes
  9468. if test "$with_gnu_ld" = yes; then
  9469. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9470. else
  9471. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9472. case $host_os in
  9473. sco3.2v5*)
  9474. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9475. ;;
  9476. esac
  9477. fi
  9478. sys_lib_dlsearch_path_spec='/usr/lib'
  9479. ;;
  9480. tpf*)
  9481. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9482. version_type=linux
  9483. need_lib_prefix=no
  9484. need_version=no
  9485. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9486. shlibpath_var=LD_LIBRARY_PATH
  9487. shlibpath_overrides_runpath=no
  9488. hardcode_into_libs=yes
  9489. ;;
  9490. uts4*)
  9491. version_type=linux
  9492. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9493. soname_spec='${libname}${release}${shared_ext}$major'
  9494. shlibpath_var=LD_LIBRARY_PATH
  9495. ;;
  9496. *)
  9497. dynamic_linker=no
  9498. ;;
  9499. esac
  9500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9501. $as_echo "$dynamic_linker" >&6; }
  9502. test "$dynamic_linker" = no && can_build_shared=no
  9503. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9504. if test "$GCC" = yes; then
  9505. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9506. fi
  9507. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9508. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9509. fi
  9510. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9511. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9512. fi
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9514. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9515. hardcode_action=
  9516. if test -n "$hardcode_libdir_flag_spec" ||
  9517. test -n "$runpath_var" ||
  9518. test "X$hardcode_automatic" = "Xyes" ; then
  9519. # We can hardcode non-existent directories.
  9520. if test "$hardcode_direct" != no &&
  9521. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9522. # have to relink, otherwise we might link with an installed library
  9523. # when we should be linking with a yet-to-be-installed one
  9524. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9525. test "$hardcode_minus_L" != no; then
  9526. # Linking always hardcodes the temporary library directory.
  9527. hardcode_action=relink
  9528. else
  9529. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9530. hardcode_action=immediate
  9531. fi
  9532. else
  9533. # We cannot hardcode anything, or else we can only hardcode existing
  9534. # directories.
  9535. hardcode_action=unsupported
  9536. fi
  9537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9538. $as_echo "$hardcode_action" >&6; }
  9539. if test "$hardcode_action" = relink ||
  9540. test "$inherit_rpath" = yes; then
  9541. # Fast installation is not supported
  9542. enable_fast_install=no
  9543. elif test "$shlibpath_overrides_runpath" = yes ||
  9544. test "$enable_shared" = no; then
  9545. # Fast installation is not necessary
  9546. enable_fast_install=needless
  9547. fi
  9548. if test "x$enable_dlopen" != xyes; then
  9549. enable_dlopen=unknown
  9550. enable_dlopen_self=unknown
  9551. enable_dlopen_self_static=unknown
  9552. else
  9553. lt_cv_dlopen=no
  9554. lt_cv_dlopen_libs=
  9555. case $host_os in
  9556. beos*)
  9557. lt_cv_dlopen="load_add_on"
  9558. lt_cv_dlopen_libs=
  9559. lt_cv_dlopen_self=yes
  9560. ;;
  9561. mingw* | pw32* | cegcc*)
  9562. lt_cv_dlopen="LoadLibrary"
  9563. lt_cv_dlopen_libs=
  9564. ;;
  9565. cygwin*)
  9566. lt_cv_dlopen="dlopen"
  9567. lt_cv_dlopen_libs=
  9568. ;;
  9569. darwin*)
  9570. # if libdl is installed we need to link against it
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9572. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9573. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9574. $as_echo_n "(cached) " >&6
  9575. else
  9576. ac_check_lib_save_LIBS=$LIBS
  9577. LIBS="-ldl $LIBS"
  9578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9579. /* end confdefs.h. */
  9580. /* Override any GCC internal prototype to avoid an error.
  9581. Use char because int might match the return type of a GCC
  9582. builtin and then its argument prototype would still apply. */
  9583. #ifdef __cplusplus
  9584. extern "C"
  9585. #endif
  9586. char dlopen ();
  9587. int
  9588. main ()
  9589. {
  9590. return dlopen ();
  9591. ;
  9592. return 0;
  9593. }
  9594. _ACEOF
  9595. if ac_fn_c_try_link "$LINENO"; then :
  9596. ac_cv_lib_dl_dlopen=yes
  9597. else
  9598. ac_cv_lib_dl_dlopen=no
  9599. fi
  9600. rm -f core conftest.err conftest.$ac_objext \
  9601. conftest$ac_exeext conftest.$ac_ext
  9602. LIBS=$ac_check_lib_save_LIBS
  9603. fi
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9605. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9606. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9607. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9608. else
  9609. lt_cv_dlopen="dyld"
  9610. lt_cv_dlopen_libs=
  9611. lt_cv_dlopen_self=yes
  9612. fi
  9613. ;;
  9614. *)
  9615. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9616. if test "x$ac_cv_func_shl_load" = xyes; then :
  9617. lt_cv_dlopen="shl_load"
  9618. else
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9620. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9621. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9622. $as_echo_n "(cached) " >&6
  9623. else
  9624. ac_check_lib_save_LIBS=$LIBS
  9625. LIBS="-ldld $LIBS"
  9626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9627. /* end confdefs.h. */
  9628. /* Override any GCC internal prototype to avoid an error.
  9629. Use char because int might match the return type of a GCC
  9630. builtin and then its argument prototype would still apply. */
  9631. #ifdef __cplusplus
  9632. extern "C"
  9633. #endif
  9634. char shl_load ();
  9635. int
  9636. main ()
  9637. {
  9638. return shl_load ();
  9639. ;
  9640. return 0;
  9641. }
  9642. _ACEOF
  9643. if ac_fn_c_try_link "$LINENO"; then :
  9644. ac_cv_lib_dld_shl_load=yes
  9645. else
  9646. ac_cv_lib_dld_shl_load=no
  9647. fi
  9648. rm -f core conftest.err conftest.$ac_objext \
  9649. conftest$ac_exeext conftest.$ac_ext
  9650. LIBS=$ac_check_lib_save_LIBS
  9651. fi
  9652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9653. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9654. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9655. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9656. else
  9657. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9658. if test "x$ac_cv_func_dlopen" = xyes; then :
  9659. lt_cv_dlopen="dlopen"
  9660. else
  9661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9662. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9663. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9664. $as_echo_n "(cached) " >&6
  9665. else
  9666. ac_check_lib_save_LIBS=$LIBS
  9667. LIBS="-ldl $LIBS"
  9668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9669. /* end confdefs.h. */
  9670. /* Override any GCC internal prototype to avoid an error.
  9671. Use char because int might match the return type of a GCC
  9672. builtin and then its argument prototype would still apply. */
  9673. #ifdef __cplusplus
  9674. extern "C"
  9675. #endif
  9676. char dlopen ();
  9677. int
  9678. main ()
  9679. {
  9680. return dlopen ();
  9681. ;
  9682. return 0;
  9683. }
  9684. _ACEOF
  9685. if ac_fn_c_try_link "$LINENO"; then :
  9686. ac_cv_lib_dl_dlopen=yes
  9687. else
  9688. ac_cv_lib_dl_dlopen=no
  9689. fi
  9690. rm -f core conftest.err conftest.$ac_objext \
  9691. conftest$ac_exeext conftest.$ac_ext
  9692. LIBS=$ac_check_lib_save_LIBS
  9693. fi
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9695. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9696. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9697. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9698. else
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9700. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9701. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. ac_check_lib_save_LIBS=$LIBS
  9705. LIBS="-lsvld $LIBS"
  9706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9707. /* end confdefs.h. */
  9708. /* Override any GCC internal prototype to avoid an error.
  9709. Use char because int might match the return type of a GCC
  9710. builtin and then its argument prototype would still apply. */
  9711. #ifdef __cplusplus
  9712. extern "C"
  9713. #endif
  9714. char dlopen ();
  9715. int
  9716. main ()
  9717. {
  9718. return dlopen ();
  9719. ;
  9720. return 0;
  9721. }
  9722. _ACEOF
  9723. if ac_fn_c_try_link "$LINENO"; then :
  9724. ac_cv_lib_svld_dlopen=yes
  9725. else
  9726. ac_cv_lib_svld_dlopen=no
  9727. fi
  9728. rm -f core conftest.err conftest.$ac_objext \
  9729. conftest$ac_exeext conftest.$ac_ext
  9730. LIBS=$ac_check_lib_save_LIBS
  9731. fi
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9733. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9734. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9735. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9736. else
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9738. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9739. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9740. $as_echo_n "(cached) " >&6
  9741. else
  9742. ac_check_lib_save_LIBS=$LIBS
  9743. LIBS="-ldld $LIBS"
  9744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9745. /* end confdefs.h. */
  9746. /* Override any GCC internal prototype to avoid an error.
  9747. Use char because int might match the return type of a GCC
  9748. builtin and then its argument prototype would still apply. */
  9749. #ifdef __cplusplus
  9750. extern "C"
  9751. #endif
  9752. char dld_link ();
  9753. int
  9754. main ()
  9755. {
  9756. return dld_link ();
  9757. ;
  9758. return 0;
  9759. }
  9760. _ACEOF
  9761. if ac_fn_c_try_link "$LINENO"; then :
  9762. ac_cv_lib_dld_dld_link=yes
  9763. else
  9764. ac_cv_lib_dld_dld_link=no
  9765. fi
  9766. rm -f core conftest.err conftest.$ac_objext \
  9767. conftest$ac_exeext conftest.$ac_ext
  9768. LIBS=$ac_check_lib_save_LIBS
  9769. fi
  9770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9771. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9772. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9773. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9774. fi
  9775. fi
  9776. fi
  9777. fi
  9778. fi
  9779. fi
  9780. ;;
  9781. esac
  9782. if test "x$lt_cv_dlopen" != xno; then
  9783. enable_dlopen=yes
  9784. else
  9785. enable_dlopen=no
  9786. fi
  9787. case $lt_cv_dlopen in
  9788. dlopen)
  9789. save_CPPFLAGS="$CPPFLAGS"
  9790. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9791. save_LDFLAGS="$LDFLAGS"
  9792. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9793. save_LIBS="$LIBS"
  9794. LIBS="$lt_cv_dlopen_libs $LIBS"
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9796. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9797. if ${lt_cv_dlopen_self+:} false; then :
  9798. $as_echo_n "(cached) " >&6
  9799. else
  9800. if test "$cross_compiling" = yes; then :
  9801. lt_cv_dlopen_self=cross
  9802. else
  9803. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9804. lt_status=$lt_dlunknown
  9805. cat > conftest.$ac_ext <<_LT_EOF
  9806. #line 11385 "configure"
  9807. #include "confdefs.h"
  9808. #if HAVE_DLFCN_H
  9809. #include <dlfcn.h>
  9810. #endif
  9811. #include <stdio.h>
  9812. #ifdef RTLD_GLOBAL
  9813. # define LT_DLGLOBAL RTLD_GLOBAL
  9814. #else
  9815. # ifdef DL_GLOBAL
  9816. # define LT_DLGLOBAL DL_GLOBAL
  9817. # else
  9818. # define LT_DLGLOBAL 0
  9819. # endif
  9820. #endif
  9821. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9822. find out it does not work in some platform. */
  9823. #ifndef LT_DLLAZY_OR_NOW
  9824. # ifdef RTLD_LAZY
  9825. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9826. # else
  9827. # ifdef DL_LAZY
  9828. # define LT_DLLAZY_OR_NOW DL_LAZY
  9829. # else
  9830. # ifdef RTLD_NOW
  9831. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9832. # else
  9833. # ifdef DL_NOW
  9834. # define LT_DLLAZY_OR_NOW DL_NOW
  9835. # else
  9836. # define LT_DLLAZY_OR_NOW 0
  9837. # endif
  9838. # endif
  9839. # endif
  9840. # endif
  9841. #endif
  9842. /* When -fvisbility=hidden is used, assume the code has been annotated
  9843. correspondingly for the symbols needed. */
  9844. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9845. void fnord () __attribute__((visibility("default")));
  9846. #endif
  9847. void fnord () { int i=42; }
  9848. int main ()
  9849. {
  9850. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9851. int status = $lt_dlunknown;
  9852. if (self)
  9853. {
  9854. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9855. else
  9856. {
  9857. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9858. else puts (dlerror ());
  9859. }
  9860. /* dlclose (self); */
  9861. }
  9862. else
  9863. puts (dlerror ());
  9864. return status;
  9865. }
  9866. _LT_EOF
  9867. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9868. (eval $ac_link) 2>&5
  9869. ac_status=$?
  9870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9871. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9872. (./conftest; exit; ) >&5 2>/dev/null
  9873. lt_status=$?
  9874. case x$lt_status in
  9875. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9876. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9877. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9878. esac
  9879. else :
  9880. # compilation failed
  9881. lt_cv_dlopen_self=no
  9882. fi
  9883. fi
  9884. rm -fr conftest*
  9885. fi
  9886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9887. $as_echo "$lt_cv_dlopen_self" >&6; }
  9888. if test "x$lt_cv_dlopen_self" = xyes; then
  9889. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9891. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9892. if ${lt_cv_dlopen_self_static+:} false; then :
  9893. $as_echo_n "(cached) " >&6
  9894. else
  9895. if test "$cross_compiling" = yes; then :
  9896. lt_cv_dlopen_self_static=cross
  9897. else
  9898. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9899. lt_status=$lt_dlunknown
  9900. cat > conftest.$ac_ext <<_LT_EOF
  9901. #line 11491 "configure"
  9902. #include "confdefs.h"
  9903. #if HAVE_DLFCN_H
  9904. #include <dlfcn.h>
  9905. #endif
  9906. #include <stdio.h>
  9907. #ifdef RTLD_GLOBAL
  9908. # define LT_DLGLOBAL RTLD_GLOBAL
  9909. #else
  9910. # ifdef DL_GLOBAL
  9911. # define LT_DLGLOBAL DL_GLOBAL
  9912. # else
  9913. # define LT_DLGLOBAL 0
  9914. # endif
  9915. #endif
  9916. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9917. find out it does not work in some platform. */
  9918. #ifndef LT_DLLAZY_OR_NOW
  9919. # ifdef RTLD_LAZY
  9920. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9921. # else
  9922. # ifdef DL_LAZY
  9923. # define LT_DLLAZY_OR_NOW DL_LAZY
  9924. # else
  9925. # ifdef RTLD_NOW
  9926. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9927. # else
  9928. # ifdef DL_NOW
  9929. # define LT_DLLAZY_OR_NOW DL_NOW
  9930. # else
  9931. # define LT_DLLAZY_OR_NOW 0
  9932. # endif
  9933. # endif
  9934. # endif
  9935. # endif
  9936. #endif
  9937. /* When -fvisbility=hidden is used, assume the code has been annotated
  9938. correspondingly for the symbols needed. */
  9939. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9940. void fnord () __attribute__((visibility("default")));
  9941. #endif
  9942. void fnord () { int i=42; }
  9943. int main ()
  9944. {
  9945. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9946. int status = $lt_dlunknown;
  9947. if (self)
  9948. {
  9949. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9950. else
  9951. {
  9952. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9953. else puts (dlerror ());
  9954. }
  9955. /* dlclose (self); */
  9956. }
  9957. else
  9958. puts (dlerror ());
  9959. return status;
  9960. }
  9961. _LT_EOF
  9962. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9963. (eval $ac_link) 2>&5
  9964. ac_status=$?
  9965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9966. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9967. (./conftest; exit; ) >&5 2>/dev/null
  9968. lt_status=$?
  9969. case x$lt_status in
  9970. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9971. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9972. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9973. esac
  9974. else :
  9975. # compilation failed
  9976. lt_cv_dlopen_self_static=no
  9977. fi
  9978. fi
  9979. rm -fr conftest*
  9980. fi
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9982. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9983. fi
  9984. CPPFLAGS="$save_CPPFLAGS"
  9985. LDFLAGS="$save_LDFLAGS"
  9986. LIBS="$save_LIBS"
  9987. ;;
  9988. esac
  9989. case $lt_cv_dlopen_self in
  9990. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9991. *) enable_dlopen_self=unknown ;;
  9992. esac
  9993. case $lt_cv_dlopen_self_static in
  9994. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9995. *) enable_dlopen_self_static=unknown ;;
  9996. esac
  9997. fi
  9998. striplib=
  9999. old_striplib=
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10001. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10002. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10003. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10004. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10006. $as_echo "yes" >&6; }
  10007. else
  10008. # FIXME - insert some real tests, host_os isn't really good enough
  10009. case $host_os in
  10010. darwin*)
  10011. if test -n "$STRIP" ; then
  10012. striplib="$STRIP -x"
  10013. old_striplib="$STRIP -S"
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10015. $as_echo "yes" >&6; }
  10016. else
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10018. $as_echo "no" >&6; }
  10019. fi
  10020. ;;
  10021. *)
  10022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10023. $as_echo "no" >&6; }
  10024. ;;
  10025. esac
  10026. fi
  10027. # Report which library types will actually be built
  10028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10029. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10031. $as_echo "$can_build_shared" >&6; }
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10033. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10034. test "$can_build_shared" = "no" && enable_shared=no
  10035. # On AIX, shared libraries and static libraries use the same namespace, and
  10036. # are all built from PIC.
  10037. case $host_os in
  10038. aix3*)
  10039. test "$enable_shared" = yes && enable_static=no
  10040. if test -n "$RANLIB"; then
  10041. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10042. postinstall_cmds='$RANLIB $lib'
  10043. fi
  10044. ;;
  10045. aix[4-9]*)
  10046. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10047. test "$enable_shared" = yes && enable_static=no
  10048. fi
  10049. ;;
  10050. esac
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10052. $as_echo "$enable_shared" >&6; }
  10053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10054. $as_echo_n "checking whether to build static libraries... " >&6; }
  10055. # Make sure either enable_shared or enable_static is yes.
  10056. test "$enable_shared" = yes || enable_static=yes
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10058. $as_echo "$enable_static" >&6; }
  10059. fi
  10060. ac_ext=c
  10061. ac_cpp='$CPP $CPPFLAGS'
  10062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10065. CC="$lt_save_CC"
  10066. ac_config_commands="$ac_config_commands libtool"
  10067. # Only expand once:
  10068. case $host in
  10069. *-cygwin* | *-mingw*)
  10070. # 'host' will be top-level target in the case of a target lib,
  10071. # we must compare to with_cross_host to decide if this is a native
  10072. # or cross-compiler and select where to install dlls appropriately.
  10073. if test -n "$with_cross_host" &&
  10074. test x"$with_cross_host" != x"no"; then
  10075. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  10076. else
  10077. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  10078. fi
  10079. ;;
  10080. *)
  10081. lt_host_flags=
  10082. ;;
  10083. esac
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  10085. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  10086. # Check whether --enable-maintainer-mode was given.
  10087. if test "${enable_maintainer_mode+set}" = set; then :
  10088. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  10089. else
  10090. USE_MAINTAINER_MODE=no
  10091. fi
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  10093. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  10094. if test $USE_MAINTAINER_MODE = yes; then
  10095. MAINTAINER_MODE_TRUE=
  10096. MAINTAINER_MODE_FALSE='#'
  10097. else
  10098. MAINTAINER_MODE_TRUE='#'
  10099. MAINTAINER_MODE_FALSE=
  10100. fi
  10101. MAINT=$MAINTAINER_MODE_TRUE
  10102. # For libtool versioning info, format is CURRENT:REVISION:AGE
  10103. libtool_VERSION=3:0:2
  10104. # Check for used threading-model
  10105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
  10106. $as_echo_n "checking for thread model used by GCC... " >&6; }
  10107. target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  10108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
  10109. $as_echo "$target_thread_file" >&6; }
  10110. case "$target" in
  10111. *aarch64*)
  10112. ac_ext=c
  10113. ac_cpp='$CPP $CPPFLAGS'
  10114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10117. enable_aarch64_lse=
  10118. save_CFLAGS="$CFLAGS"
  10119. for real_option in -march=armv8-a+lse; do
  10120. # Do the check with the no- prefix removed since gcc silently
  10121. # accepts any -Wno-* option on purpose
  10122. case $real_option in
  10123. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  10124. *) option=$real_option ;;
  10125. esac
  10126. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  10128. $as_echo_n "checking whether $CC supports $option... " >&6; }
  10129. if eval \${$as_acx_Woption+:} false; then :
  10130. $as_echo_n "(cached) " >&6
  10131. else
  10132. CFLAGS="$option"
  10133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10134. /* end confdefs.h. */
  10135. int
  10136. main ()
  10137. {
  10138. ;
  10139. return 0;
  10140. }
  10141. _ACEOF
  10142. if ac_fn_c_try_compile "$LINENO"; then :
  10143. eval "$as_acx_Woption=yes"
  10144. else
  10145. eval "$as_acx_Woption=no"
  10146. fi
  10147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10148. fi
  10149. eval ac_res=\$$as_acx_Woption
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10151. $as_echo "$ac_res" >&6; }
  10152. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  10153. enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option"
  10154. fi
  10155. done
  10156. CFLAGS="$save_CFLAGS"
  10157. ac_ext=c
  10158. ac_cpp='$CPP $CPPFLAGS'
  10159. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10160. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10161. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10162. ;;
  10163. esac
  10164. # Get target configury.
  10165. . ${srcdir}/configure.tgt
  10166. if test -n "$UNSUPPORTED"; then
  10167. as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
  10168. fi
  10169. # Write out the ifunc resolver arg type.
  10170. cat >>confdefs.h <<_ACEOF
  10171. #define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS
  10172. _ACEOF
  10173. # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
  10174. # make silly decisions about what the cpu can do.
  10175. CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
  10176. # Check header files.
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10178. $as_echo_n "checking for ANSI C header files... " >&6; }
  10179. if ${ac_cv_header_stdc+:} false; then :
  10180. $as_echo_n "(cached) " >&6
  10181. else
  10182. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h. */
  10184. #include <stdlib.h>
  10185. #include <stdarg.h>
  10186. #include <string.h>
  10187. #include <float.h>
  10188. int
  10189. main ()
  10190. {
  10191. ;
  10192. return 0;
  10193. }
  10194. _ACEOF
  10195. if ac_fn_c_try_compile "$LINENO"; then :
  10196. ac_cv_header_stdc=yes
  10197. else
  10198. ac_cv_header_stdc=no
  10199. fi
  10200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10201. if test $ac_cv_header_stdc = yes; then
  10202. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10204. /* end confdefs.h. */
  10205. #include <string.h>
  10206. _ACEOF
  10207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10208. $EGREP "memchr" >/dev/null 2>&1; then :
  10209. else
  10210. ac_cv_header_stdc=no
  10211. fi
  10212. rm -f conftest*
  10213. fi
  10214. if test $ac_cv_header_stdc = yes; then
  10215. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10216. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10217. /* end confdefs.h. */
  10218. #include <stdlib.h>
  10219. _ACEOF
  10220. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10221. $EGREP "free" >/dev/null 2>&1; then :
  10222. else
  10223. ac_cv_header_stdc=no
  10224. fi
  10225. rm -f conftest*
  10226. fi
  10227. if test $ac_cv_header_stdc = yes; then
  10228. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10229. if test "$cross_compiling" = yes; then :
  10230. :
  10231. else
  10232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10233. /* end confdefs.h. */
  10234. #include <ctype.h>
  10235. #include <stdlib.h>
  10236. #if ((' ' & 0x0FF) == 0x020)
  10237. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10238. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10239. #else
  10240. # define ISLOWER(c) \
  10241. (('a' <= (c) && (c) <= 'i') \
  10242. || ('j' <= (c) && (c) <= 'r') \
  10243. || ('s' <= (c) && (c) <= 'z'))
  10244. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10245. #endif
  10246. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10247. int
  10248. main ()
  10249. {
  10250. int i;
  10251. for (i = 0; i < 256; i++)
  10252. if (XOR (islower (i), ISLOWER (i))
  10253. || toupper (i) != TOUPPER (i))
  10254. return 2;
  10255. return 0;
  10256. }
  10257. _ACEOF
  10258. if ac_fn_c_try_run "$LINENO"; then :
  10259. else
  10260. ac_cv_header_stdc=no
  10261. fi
  10262. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10263. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10264. fi
  10265. fi
  10266. fi
  10267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10268. $as_echo "$ac_cv_header_stdc" >&6; }
  10269. if test $ac_cv_header_stdc = yes; then
  10270. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10271. fi
  10272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
  10273. $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
  10274. if ${gcc_cv_header_string+:} false; then :
  10275. $as_echo_n "(cached) " >&6
  10276. else
  10277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10278. /* end confdefs.h. */
  10279. #include <string.h>
  10280. #include <strings.h>
  10281. int
  10282. main ()
  10283. {
  10284. ;
  10285. return 0;
  10286. }
  10287. _ACEOF
  10288. if ac_fn_c_try_compile "$LINENO"; then :
  10289. gcc_cv_header_string=yes
  10290. else
  10291. gcc_cv_header_string=no
  10292. fi
  10293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10294. fi
  10295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
  10296. $as_echo "$gcc_cv_header_string" >&6; }
  10297. if test $gcc_cv_header_string = yes; then
  10298. $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
  10299. fi
  10300. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  10301. acx_cv_header_stdint=stddef.h
  10302. acx_cv_header_stdint_kind="(already complete)"
  10303. for i in stdint.h $inttype_headers; do
  10304. unset ac_cv_type_uintptr_t
  10305. unset ac_cv_type_uintmax_t
  10306. unset ac_cv_type_int_least32_t
  10307. unset ac_cv_type_int_fast32_t
  10308. unset ac_cv_type_uint64_t
  10309. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  10310. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  10311. #include <$i>
  10312. "
  10313. if test "x$ac_cv_type_uintmax_t" = xyes; then :
  10314. acx_cv_header_stdint=$i
  10315. else
  10316. continue
  10317. fi
  10318. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  10319. #include <$i>
  10320. "
  10321. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  10322. else
  10323. acx_cv_header_stdint_kind="(mostly complete)"
  10324. fi
  10325. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  10326. #include <$i>
  10327. "
  10328. if test "x$ac_cv_type_int_least32_t" = xyes; then :
  10329. else
  10330. acx_cv_header_stdint_kind="(mostly complete)"
  10331. fi
  10332. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  10333. #include <$i>
  10334. "
  10335. if test "x$ac_cv_type_int_fast32_t" = xyes; then :
  10336. else
  10337. acx_cv_header_stdint_kind="(mostly complete)"
  10338. fi
  10339. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  10340. #include <$i>
  10341. "
  10342. if test "x$ac_cv_type_uint64_t" = xyes; then :
  10343. else
  10344. acx_cv_header_stdint_kind="(lacks uint64_t)"
  10345. fi
  10346. break
  10347. done
  10348. if test "$acx_cv_header_stdint" = stddef.h; then
  10349. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  10350. for i in stdint.h $inttype_headers; do
  10351. unset ac_cv_type_uintptr_t
  10352. unset ac_cv_type_uint32_t
  10353. unset ac_cv_type_uint64_t
  10354. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  10355. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  10356. #include <$i>
  10357. "
  10358. if test "x$ac_cv_type_uint32_t" = xyes; then :
  10359. acx_cv_header_stdint=$i
  10360. else
  10361. continue
  10362. fi
  10363. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  10364. #include <$i>
  10365. "
  10366. if test "x$ac_cv_type_uint64_t" = xyes; then :
  10367. fi
  10368. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  10369. #include <$i>
  10370. "
  10371. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  10372. fi
  10373. break
  10374. done
  10375. fi
  10376. if test "$acx_cv_header_stdint" = stddef.h; then
  10377. acx_cv_header_stdint_kind="(u_intXX_t style)"
  10378. for i in sys/types.h $inttype_headers; do
  10379. unset ac_cv_type_u_int32_t
  10380. unset ac_cv_type_u_int64_t
  10381. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  10382. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  10383. #include <$i>
  10384. "
  10385. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  10386. acx_cv_header_stdint=$i
  10387. else
  10388. continue
  10389. fi
  10390. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  10391. #include <$i>
  10392. "
  10393. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  10394. fi
  10395. break
  10396. done
  10397. fi
  10398. if test "$acx_cv_header_stdint" = stddef.h; then
  10399. acx_cv_header_stdint_kind="(using manual detection)"
  10400. fi
  10401. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  10402. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  10403. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  10404. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  10405. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  10406. # ----------------- Summarize what we found so far
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  10408. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  10409. case `$as_basename -- gstdint.h ||
  10410. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  10411. Xgstdint.h : 'X\(//\)$' \| \
  10412. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  10413. $as_echo X/gstdint.h |
  10414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10415. s//\1/
  10416. q
  10417. }
  10418. /^X\/\(\/\/\)$/{
  10419. s//\1/
  10420. q
  10421. }
  10422. /^X\/\(\/\).*/{
  10423. s//\1/
  10424. q
  10425. }
  10426. s/.*/./; q'` in
  10427. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  10428. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  10429. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  10430. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  10431. *) ;;
  10432. esac
  10433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  10434. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  10435. # ----------------- done included file, check C basic types --------
  10436. # Lacking an uintptr_t? Test size of void *
  10437. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  10438. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  10439. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10440. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10441. # This bug is HP SR number 8606223364.
  10442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  10443. $as_echo_n "checking size of void *... " >&6; }
  10444. if ${ac_cv_sizeof_void_p+:} false; then :
  10445. $as_echo_n "(cached) " >&6
  10446. else
  10447. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  10448. else
  10449. if test "$ac_cv_type_void_p" = yes; then
  10450. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10451. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10452. as_fn_error 77 "cannot compute sizeof (void *)
  10453. See \`config.log' for more details" "$LINENO" 5; }
  10454. else
  10455. ac_cv_sizeof_void_p=0
  10456. fi
  10457. fi
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  10460. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  10461. cat >>confdefs.h <<_ACEOF
  10462. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10463. _ACEOF
  10464. ;;
  10465. esac
  10466. # Lacking an uint64_t? Test size of long
  10467. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  10468. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  10469. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10470. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10471. # This bug is HP SR number 8606223364.
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  10473. $as_echo_n "checking size of long... " >&6; }
  10474. if ${ac_cv_sizeof_long+:} false; then :
  10475. $as_echo_n "(cached) " >&6
  10476. else
  10477. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  10478. else
  10479. if test "$ac_cv_type_long" = yes; then
  10480. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10482. as_fn_error 77 "cannot compute sizeof (long)
  10483. See \`config.log' for more details" "$LINENO" 5; }
  10484. else
  10485. ac_cv_sizeof_long=0
  10486. fi
  10487. fi
  10488. fi
  10489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  10490. $as_echo "$ac_cv_sizeof_long" >&6; }
  10491. cat >>confdefs.h <<_ACEOF
  10492. #define SIZEOF_LONG $ac_cv_sizeof_long
  10493. _ACEOF
  10494. ;;
  10495. esac
  10496. if test $acx_cv_header_stdint = stddef.h; then
  10497. # Lacking a good header? Test size of everything and deduce all types.
  10498. # The cast to long int works around a bug in the HP C Compiler
  10499. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10500. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10501. # This bug is HP SR number 8606223364.
  10502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  10503. $as_echo_n "checking size of int... " >&6; }
  10504. if ${ac_cv_sizeof_int+:} false; then :
  10505. $as_echo_n "(cached) " >&6
  10506. else
  10507. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  10508. else
  10509. if test "$ac_cv_type_int" = yes; then
  10510. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10511. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10512. as_fn_error 77 "cannot compute sizeof (int)
  10513. See \`config.log' for more details" "$LINENO" 5; }
  10514. else
  10515. ac_cv_sizeof_int=0
  10516. fi
  10517. fi
  10518. fi
  10519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  10520. $as_echo "$ac_cv_sizeof_int" >&6; }
  10521. cat >>confdefs.h <<_ACEOF
  10522. #define SIZEOF_INT $ac_cv_sizeof_int
  10523. _ACEOF
  10524. # The cast to long int works around a bug in the HP C Compiler
  10525. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10526. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10527. # This bug is HP SR number 8606223364.
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  10529. $as_echo_n "checking size of short... " >&6; }
  10530. if ${ac_cv_sizeof_short+:} false; then :
  10531. $as_echo_n "(cached) " >&6
  10532. else
  10533. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  10534. else
  10535. if test "$ac_cv_type_short" = yes; then
  10536. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10537. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10538. as_fn_error 77 "cannot compute sizeof (short)
  10539. See \`config.log' for more details" "$LINENO" 5; }
  10540. else
  10541. ac_cv_sizeof_short=0
  10542. fi
  10543. fi
  10544. fi
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  10546. $as_echo "$ac_cv_sizeof_short" >&6; }
  10547. cat >>confdefs.h <<_ACEOF
  10548. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10549. _ACEOF
  10550. # The cast to long int works around a bug in the HP C Compiler
  10551. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  10552. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  10553. # This bug is HP SR number 8606223364.
  10554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  10555. $as_echo_n "checking size of char... " >&6; }
  10556. if ${ac_cv_sizeof_char+:} false; then :
  10557. $as_echo_n "(cached) " >&6
  10558. else
  10559. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  10560. else
  10561. if test "$ac_cv_type_char" = yes; then
  10562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10564. as_fn_error 77 "cannot compute sizeof (char)
  10565. See \`config.log' for more details" "$LINENO" 5; }
  10566. else
  10567. ac_cv_sizeof_char=0
  10568. fi
  10569. fi
  10570. fi
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  10572. $as_echo "$ac_cv_sizeof_char" >&6; }
  10573. cat >>confdefs.h <<_ACEOF
  10574. #define SIZEOF_CHAR $ac_cv_sizeof_char
  10575. _ACEOF
  10576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  10577. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  10578. case "$ac_cv_sizeof_char" in
  10579. 1) acx_cv_type_int8_t=char ;;
  10580. *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
  10581. esac
  10582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  10583. $as_echo "$acx_cv_type_int8_t" >&6; }
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  10585. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  10586. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  10587. 2:*) acx_cv_type_int16_t=int ;;
  10588. *:2) acx_cv_type_int16_t=short ;;
  10589. *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
  10590. esac
  10591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  10592. $as_echo "$acx_cv_type_int16_t" >&6; }
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  10594. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  10595. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  10596. 4:*) acx_cv_type_int32_t=int ;;
  10597. *:4) acx_cv_type_int32_t=long ;;
  10598. *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
  10599. esac
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  10601. $as_echo "$acx_cv_type_int32_t" >&6; }
  10602. fi
  10603. # These tests are here to make the output prettier
  10604. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  10605. case "$ac_cv_sizeof_long" in
  10606. 8) acx_cv_type_int64_t=long ;;
  10607. esac
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  10609. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  10611. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  10612. fi
  10613. # Now we can use the above types
  10614. if test "$ac_cv_type_uintptr_t" != yes; then
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  10616. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  10617. case $ac_cv_sizeof_void_p in
  10618. 2) acx_cv_type_intptr_t=int16_t ;;
  10619. 4) acx_cv_type_intptr_t=int32_t ;;
  10620. 8) acx_cv_type_intptr_t=int64_t ;;
  10621. *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  10622. esac
  10623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  10624. $as_echo "$acx_cv_type_intptr_t" >&6; }
  10625. fi
  10626. # ----------------- done all checks, emit header -------------
  10627. ac_config_commands="$ac_config_commands gstdint.h"
  10628. for ac_header in fenv.h
  10629. do :
  10630. ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
  10631. if test "x$ac_cv_header_fenv_h" = xyes; then :
  10632. cat >>confdefs.h <<_ACEOF
  10633. #define HAVE_FENV_H 1
  10634. _ACEOF
  10635. fi
  10636. done
  10637. # Check for common type sizes
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
  10639. $as_echo_n "checking for 1 byte integer... " >&6; }
  10640. if ${libat_cv_have_mode_QI+:} false; then :
  10641. $as_echo_n "(cached) " >&6
  10642. else
  10643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10644. /* end confdefs.h. */
  10645. int x __attribute__((mode(QI)));
  10646. _ACEOF
  10647. if ac_fn_c_try_compile "$LINENO"; then :
  10648. libat_cv_have_mode_QI=yes
  10649. else
  10650. libat_cv_have_mode_QI=no
  10651. fi
  10652. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10653. fi
  10654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
  10655. $as_echo "$libat_cv_have_mode_QI" >&6; }
  10656. yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
  10657. cat >>confdefs.h <<_ACEOF
  10658. #define HAVE_INT1 $yesno
  10659. _ACEOF
  10660. if test x$libat_cv_have_mode_QI = xyes; then
  10661. SIZES="$SIZES 1"
  10662. fi
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
  10664. $as_echo_n "checking for 2 byte integer... " >&6; }
  10665. if ${libat_cv_have_mode_HI+:} false; then :
  10666. $as_echo_n "(cached) " >&6
  10667. else
  10668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10669. /* end confdefs.h. */
  10670. int x __attribute__((mode(HI)));
  10671. _ACEOF
  10672. if ac_fn_c_try_compile "$LINENO"; then :
  10673. libat_cv_have_mode_HI=yes
  10674. else
  10675. libat_cv_have_mode_HI=no
  10676. fi
  10677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10678. fi
  10679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
  10680. $as_echo "$libat_cv_have_mode_HI" >&6; }
  10681. yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
  10682. cat >>confdefs.h <<_ACEOF
  10683. #define HAVE_INT2 $yesno
  10684. _ACEOF
  10685. if test x$libat_cv_have_mode_HI = xyes; then
  10686. SIZES="$SIZES 2"
  10687. fi
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
  10689. $as_echo_n "checking for 4 byte integer... " >&6; }
  10690. if ${libat_cv_have_mode_SI+:} false; then :
  10691. $as_echo_n "(cached) " >&6
  10692. else
  10693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10694. /* end confdefs.h. */
  10695. int x __attribute__((mode(SI)));
  10696. _ACEOF
  10697. if ac_fn_c_try_compile "$LINENO"; then :
  10698. libat_cv_have_mode_SI=yes
  10699. else
  10700. libat_cv_have_mode_SI=no
  10701. fi
  10702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10703. fi
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
  10705. $as_echo "$libat_cv_have_mode_SI" >&6; }
  10706. yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
  10707. cat >>confdefs.h <<_ACEOF
  10708. #define HAVE_INT4 $yesno
  10709. _ACEOF
  10710. if test x$libat_cv_have_mode_SI = xyes; then
  10711. SIZES="$SIZES 4"
  10712. fi
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
  10714. $as_echo_n "checking for 8 byte integer... " >&6; }
  10715. if ${libat_cv_have_mode_DI+:} false; then :
  10716. $as_echo_n "(cached) " >&6
  10717. else
  10718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10719. /* end confdefs.h. */
  10720. int x __attribute__((mode(DI)));
  10721. _ACEOF
  10722. if ac_fn_c_try_compile "$LINENO"; then :
  10723. libat_cv_have_mode_DI=yes
  10724. else
  10725. libat_cv_have_mode_DI=no
  10726. fi
  10727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
  10730. $as_echo "$libat_cv_have_mode_DI" >&6; }
  10731. yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
  10732. cat >>confdefs.h <<_ACEOF
  10733. #define HAVE_INT8 $yesno
  10734. _ACEOF
  10735. if test x$libat_cv_have_mode_DI = xyes; then
  10736. SIZES="$SIZES 8"
  10737. fi
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
  10739. $as_echo_n "checking for 16 byte integer... " >&6; }
  10740. if ${libat_cv_have_mode_TI+:} false; then :
  10741. $as_echo_n "(cached) " >&6
  10742. else
  10743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10744. /* end confdefs.h. */
  10745. int x __attribute__((mode(TI)));
  10746. _ACEOF
  10747. if ac_fn_c_try_compile "$LINENO"; then :
  10748. libat_cv_have_mode_TI=yes
  10749. else
  10750. libat_cv_have_mode_TI=no
  10751. fi
  10752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10753. fi
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
  10755. $as_echo "$libat_cv_have_mode_TI" >&6; }
  10756. yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
  10757. cat >>confdefs.h <<_ACEOF
  10758. #define HAVE_INT16 $yesno
  10759. _ACEOF
  10760. if test x$libat_cv_have_mode_TI = xyes; then
  10761. SIZES="$SIZES 16"
  10762. fi
  10763. # Check for compiler builtins of atomic operations.
  10764. # Do link tests if possible, instead asm tests, limited to some platforms
  10765. # see discussion in PR target/40134, PR libstdc++/40133 and the thread
  10766. # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
  10767. atomic_builtins_link_tests=no
  10768. if test x$gcc_no_link != xyes; then
  10769. # Can do link tests. Limit to some tested platforms
  10770. case "$host" in
  10771. *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
  10772. atomic_builtins_link_tests=yes
  10773. ;;
  10774. esac
  10775. fi
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
  10777. $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
  10778. if ${libat_cv_have_at_ldst_1+:} false; then :
  10779. $as_echo_n "(cached) " >&6
  10780. else
  10781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10782. /* end confdefs.h. */
  10783. int
  10784. main ()
  10785. {
  10786. typedef int T __attribute__((mode(QI)));
  10787. T *x; volatile T sink; asm("" : "=g"(x));
  10788. sink = __atomic_load_n(x, 0);
  10789. __atomic_store_n(x, sink, 0);
  10790. ;
  10791. return 0;
  10792. }
  10793. _ACEOF
  10794. if test x$atomic_builtins_link_tests = xyes; then
  10795. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10796. (eval $ac_link) 2>&5
  10797. ac_status=$?
  10798. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10799. test $ac_status = 0; }; then
  10800. eval libat_cv_have_at_ldst_1=yes
  10801. else
  10802. eval libat_cv_have_at_ldst_1=no
  10803. fi
  10804. else
  10805. old_CFLAGS="$CFLAGS"
  10806. # Compile unoptimized.
  10807. CFLAGS="$CFLAGS -O0 -S"
  10808. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10809. (eval $ac_compile) 2>&5
  10810. ac_status=$?
  10811. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10812. test $ac_status = 0; }; then
  10813. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10814. eval libat_cv_have_at_ldst_1=no
  10815. else
  10816. eval libat_cv_have_at_ldst_1=yes
  10817. fi
  10818. else
  10819. eval libat_cv_have_at_ldst_1=no
  10820. fi
  10821. CFLAGS="$old_CFLAGS"
  10822. fi
  10823. rm -f conftest*
  10824. fi
  10825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
  10826. $as_echo "$libat_cv_have_at_ldst_1" >&6; }
  10827. yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
  10828. cat >>confdefs.h <<_ACEOF
  10829. #define HAVE_ATOMIC_LDST_1 $yesno
  10830. _ACEOF
  10831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
  10832. $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
  10833. if ${libat_cv_have_at_ldst_2+:} false; then :
  10834. $as_echo_n "(cached) " >&6
  10835. else
  10836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10837. /* end confdefs.h. */
  10838. int
  10839. main ()
  10840. {
  10841. typedef int T __attribute__((mode(HI)));
  10842. T *x; volatile T sink; asm("" : "=g"(x));
  10843. sink = __atomic_load_n(x, 0);
  10844. __atomic_store_n(x, sink, 0);
  10845. ;
  10846. return 0;
  10847. }
  10848. _ACEOF
  10849. if test x$atomic_builtins_link_tests = xyes; then
  10850. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10851. (eval $ac_link) 2>&5
  10852. ac_status=$?
  10853. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10854. test $ac_status = 0; }; then
  10855. eval libat_cv_have_at_ldst_2=yes
  10856. else
  10857. eval libat_cv_have_at_ldst_2=no
  10858. fi
  10859. else
  10860. old_CFLAGS="$CFLAGS"
  10861. # Compile unoptimized.
  10862. CFLAGS="$CFLAGS -O0 -S"
  10863. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10864. (eval $ac_compile) 2>&5
  10865. ac_status=$?
  10866. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10867. test $ac_status = 0; }; then
  10868. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10869. eval libat_cv_have_at_ldst_2=no
  10870. else
  10871. eval libat_cv_have_at_ldst_2=yes
  10872. fi
  10873. else
  10874. eval libat_cv_have_at_ldst_2=no
  10875. fi
  10876. CFLAGS="$old_CFLAGS"
  10877. fi
  10878. rm -f conftest*
  10879. fi
  10880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
  10881. $as_echo "$libat_cv_have_at_ldst_2" >&6; }
  10882. yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
  10883. cat >>confdefs.h <<_ACEOF
  10884. #define HAVE_ATOMIC_LDST_2 $yesno
  10885. _ACEOF
  10886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
  10887. $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
  10888. if ${libat_cv_have_at_ldst_4+:} false; then :
  10889. $as_echo_n "(cached) " >&6
  10890. else
  10891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10892. /* end confdefs.h. */
  10893. int
  10894. main ()
  10895. {
  10896. typedef int T __attribute__((mode(SI)));
  10897. T *x; volatile T sink; asm("" : "=g"(x));
  10898. sink = __atomic_load_n(x, 0);
  10899. __atomic_store_n(x, sink, 0);
  10900. ;
  10901. return 0;
  10902. }
  10903. _ACEOF
  10904. if test x$atomic_builtins_link_tests = xyes; then
  10905. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10906. (eval $ac_link) 2>&5
  10907. ac_status=$?
  10908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10909. test $ac_status = 0; }; then
  10910. eval libat_cv_have_at_ldst_4=yes
  10911. else
  10912. eval libat_cv_have_at_ldst_4=no
  10913. fi
  10914. else
  10915. old_CFLAGS="$CFLAGS"
  10916. # Compile unoptimized.
  10917. CFLAGS="$CFLAGS -O0 -S"
  10918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10919. (eval $ac_compile) 2>&5
  10920. ac_status=$?
  10921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10922. test $ac_status = 0; }; then
  10923. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10924. eval libat_cv_have_at_ldst_4=no
  10925. else
  10926. eval libat_cv_have_at_ldst_4=yes
  10927. fi
  10928. else
  10929. eval libat_cv_have_at_ldst_4=no
  10930. fi
  10931. CFLAGS="$old_CFLAGS"
  10932. fi
  10933. rm -f conftest*
  10934. fi
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
  10936. $as_echo "$libat_cv_have_at_ldst_4" >&6; }
  10937. yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
  10938. cat >>confdefs.h <<_ACEOF
  10939. #define HAVE_ATOMIC_LDST_4 $yesno
  10940. _ACEOF
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
  10942. $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
  10943. if ${libat_cv_have_at_ldst_8+:} false; then :
  10944. $as_echo_n "(cached) " >&6
  10945. else
  10946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10947. /* end confdefs.h. */
  10948. int
  10949. main ()
  10950. {
  10951. typedef int T __attribute__((mode(DI)));
  10952. T *x; volatile T sink; asm("" : "=g"(x));
  10953. sink = __atomic_load_n(x, 0);
  10954. __atomic_store_n(x, sink, 0);
  10955. ;
  10956. return 0;
  10957. }
  10958. _ACEOF
  10959. if test x$atomic_builtins_link_tests = xyes; then
  10960. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10961. (eval $ac_link) 2>&5
  10962. ac_status=$?
  10963. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10964. test $ac_status = 0; }; then
  10965. eval libat_cv_have_at_ldst_8=yes
  10966. else
  10967. eval libat_cv_have_at_ldst_8=no
  10968. fi
  10969. else
  10970. old_CFLAGS="$CFLAGS"
  10971. # Compile unoptimized.
  10972. CFLAGS="$CFLAGS -O0 -S"
  10973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10974. (eval $ac_compile) 2>&5
  10975. ac_status=$?
  10976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10977. test $ac_status = 0; }; then
  10978. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  10979. eval libat_cv_have_at_ldst_8=no
  10980. else
  10981. eval libat_cv_have_at_ldst_8=yes
  10982. fi
  10983. else
  10984. eval libat_cv_have_at_ldst_8=no
  10985. fi
  10986. CFLAGS="$old_CFLAGS"
  10987. fi
  10988. rm -f conftest*
  10989. fi
  10990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
  10991. $as_echo "$libat_cv_have_at_ldst_8" >&6; }
  10992. yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
  10993. cat >>confdefs.h <<_ACEOF
  10994. #define HAVE_ATOMIC_LDST_8 $yesno
  10995. _ACEOF
  10996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
  10997. $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
  10998. if ${libat_cv_have_at_ldst_16+:} false; then :
  10999. $as_echo_n "(cached) " >&6
  11000. else
  11001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11002. /* end confdefs.h. */
  11003. int
  11004. main ()
  11005. {
  11006. typedef int T __attribute__((mode(TI)));
  11007. T *x; volatile T sink; asm("" : "=g"(x));
  11008. sink = __atomic_load_n(x, 0);
  11009. __atomic_store_n(x, sink, 0);
  11010. ;
  11011. return 0;
  11012. }
  11013. _ACEOF
  11014. if test x$atomic_builtins_link_tests = xyes; then
  11015. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11016. (eval $ac_link) 2>&5
  11017. ac_status=$?
  11018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11019. test $ac_status = 0; }; then
  11020. eval libat_cv_have_at_ldst_16=yes
  11021. else
  11022. eval libat_cv_have_at_ldst_16=no
  11023. fi
  11024. else
  11025. old_CFLAGS="$CFLAGS"
  11026. # Compile unoptimized.
  11027. CFLAGS="$CFLAGS -O0 -S"
  11028. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11029. (eval $ac_compile) 2>&5
  11030. ac_status=$?
  11031. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11032. test $ac_status = 0; }; then
  11033. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11034. eval libat_cv_have_at_ldst_16=no
  11035. else
  11036. eval libat_cv_have_at_ldst_16=yes
  11037. fi
  11038. else
  11039. eval libat_cv_have_at_ldst_16=no
  11040. fi
  11041. CFLAGS="$old_CFLAGS"
  11042. fi
  11043. rm -f conftest*
  11044. fi
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
  11046. $as_echo "$libat_cv_have_at_ldst_16" >&6; }
  11047. yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
  11048. cat >>confdefs.h <<_ACEOF
  11049. #define HAVE_ATOMIC_LDST_16 $yesno
  11050. _ACEOF
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
  11052. $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
  11053. if ${libat_cv_have_at_tas_1+:} false; then :
  11054. $as_echo_n "(cached) " >&6
  11055. else
  11056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11057. /* end confdefs.h. */
  11058. int
  11059. main ()
  11060. {
  11061. typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
  11062. __atomic_test_and_set(x, 0);
  11063. ;
  11064. return 0;
  11065. }
  11066. _ACEOF
  11067. if test x$atomic_builtins_link_tests = xyes; then
  11068. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11069. (eval $ac_link) 2>&5
  11070. ac_status=$?
  11071. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11072. test $ac_status = 0; }; then
  11073. eval libat_cv_have_at_tas_1=yes
  11074. else
  11075. eval libat_cv_have_at_tas_1=no
  11076. fi
  11077. else
  11078. old_CFLAGS="$CFLAGS"
  11079. # Compile unoptimized.
  11080. CFLAGS="$CFLAGS -O0 -S"
  11081. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11082. (eval $ac_compile) 2>&5
  11083. ac_status=$?
  11084. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11085. test $ac_status = 0; }; then
  11086. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11087. eval libat_cv_have_at_tas_1=no
  11088. else
  11089. eval libat_cv_have_at_tas_1=yes
  11090. fi
  11091. else
  11092. eval libat_cv_have_at_tas_1=no
  11093. fi
  11094. CFLAGS="$old_CFLAGS"
  11095. fi
  11096. rm -f conftest*
  11097. fi
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
  11099. $as_echo "$libat_cv_have_at_tas_1" >&6; }
  11100. yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
  11101. cat >>confdefs.h <<_ACEOF
  11102. #define HAVE_ATOMIC_TAS_1 $yesno
  11103. _ACEOF
  11104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
  11105. $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
  11106. if ${libat_cv_have_at_tas_2+:} false; then :
  11107. $as_echo_n "(cached) " >&6
  11108. else
  11109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11110. /* end confdefs.h. */
  11111. int
  11112. main ()
  11113. {
  11114. typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
  11115. __atomic_test_and_set(x, 0);
  11116. ;
  11117. return 0;
  11118. }
  11119. _ACEOF
  11120. if test x$atomic_builtins_link_tests = xyes; then
  11121. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11122. (eval $ac_link) 2>&5
  11123. ac_status=$?
  11124. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11125. test $ac_status = 0; }; then
  11126. eval libat_cv_have_at_tas_2=yes
  11127. else
  11128. eval libat_cv_have_at_tas_2=no
  11129. fi
  11130. else
  11131. old_CFLAGS="$CFLAGS"
  11132. # Compile unoptimized.
  11133. CFLAGS="$CFLAGS -O0 -S"
  11134. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11135. (eval $ac_compile) 2>&5
  11136. ac_status=$?
  11137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11138. test $ac_status = 0; }; then
  11139. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11140. eval libat_cv_have_at_tas_2=no
  11141. else
  11142. eval libat_cv_have_at_tas_2=yes
  11143. fi
  11144. else
  11145. eval libat_cv_have_at_tas_2=no
  11146. fi
  11147. CFLAGS="$old_CFLAGS"
  11148. fi
  11149. rm -f conftest*
  11150. fi
  11151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
  11152. $as_echo "$libat_cv_have_at_tas_2" >&6; }
  11153. yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
  11154. cat >>confdefs.h <<_ACEOF
  11155. #define HAVE_ATOMIC_TAS_2 $yesno
  11156. _ACEOF
  11157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
  11158. $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
  11159. if ${libat_cv_have_at_tas_4+:} false; then :
  11160. $as_echo_n "(cached) " >&6
  11161. else
  11162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11163. /* end confdefs.h. */
  11164. int
  11165. main ()
  11166. {
  11167. typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
  11168. __atomic_test_and_set(x, 0);
  11169. ;
  11170. return 0;
  11171. }
  11172. _ACEOF
  11173. if test x$atomic_builtins_link_tests = xyes; then
  11174. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11175. (eval $ac_link) 2>&5
  11176. ac_status=$?
  11177. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11178. test $ac_status = 0; }; then
  11179. eval libat_cv_have_at_tas_4=yes
  11180. else
  11181. eval libat_cv_have_at_tas_4=no
  11182. fi
  11183. else
  11184. old_CFLAGS="$CFLAGS"
  11185. # Compile unoptimized.
  11186. CFLAGS="$CFLAGS -O0 -S"
  11187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11188. (eval $ac_compile) 2>&5
  11189. ac_status=$?
  11190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11191. test $ac_status = 0; }; then
  11192. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11193. eval libat_cv_have_at_tas_4=no
  11194. else
  11195. eval libat_cv_have_at_tas_4=yes
  11196. fi
  11197. else
  11198. eval libat_cv_have_at_tas_4=no
  11199. fi
  11200. CFLAGS="$old_CFLAGS"
  11201. fi
  11202. rm -f conftest*
  11203. fi
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
  11205. $as_echo "$libat_cv_have_at_tas_4" >&6; }
  11206. yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
  11207. cat >>confdefs.h <<_ACEOF
  11208. #define HAVE_ATOMIC_TAS_4 $yesno
  11209. _ACEOF
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
  11211. $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
  11212. if ${libat_cv_have_at_tas_8+:} false; then :
  11213. $as_echo_n "(cached) " >&6
  11214. else
  11215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11216. /* end confdefs.h. */
  11217. int
  11218. main ()
  11219. {
  11220. typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
  11221. __atomic_test_and_set(x, 0);
  11222. ;
  11223. return 0;
  11224. }
  11225. _ACEOF
  11226. if test x$atomic_builtins_link_tests = xyes; then
  11227. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11228. (eval $ac_link) 2>&5
  11229. ac_status=$?
  11230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11231. test $ac_status = 0; }; then
  11232. eval libat_cv_have_at_tas_8=yes
  11233. else
  11234. eval libat_cv_have_at_tas_8=no
  11235. fi
  11236. else
  11237. old_CFLAGS="$CFLAGS"
  11238. # Compile unoptimized.
  11239. CFLAGS="$CFLAGS -O0 -S"
  11240. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11241. (eval $ac_compile) 2>&5
  11242. ac_status=$?
  11243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11244. test $ac_status = 0; }; then
  11245. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11246. eval libat_cv_have_at_tas_8=no
  11247. else
  11248. eval libat_cv_have_at_tas_8=yes
  11249. fi
  11250. else
  11251. eval libat_cv_have_at_tas_8=no
  11252. fi
  11253. CFLAGS="$old_CFLAGS"
  11254. fi
  11255. rm -f conftest*
  11256. fi
  11257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
  11258. $as_echo "$libat_cv_have_at_tas_8" >&6; }
  11259. yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
  11260. cat >>confdefs.h <<_ACEOF
  11261. #define HAVE_ATOMIC_TAS_8 $yesno
  11262. _ACEOF
  11263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
  11264. $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
  11265. if ${libat_cv_have_at_tas_16+:} false; then :
  11266. $as_echo_n "(cached) " >&6
  11267. else
  11268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11269. /* end confdefs.h. */
  11270. int
  11271. main ()
  11272. {
  11273. typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
  11274. __atomic_test_and_set(x, 0);
  11275. ;
  11276. return 0;
  11277. }
  11278. _ACEOF
  11279. if test x$atomic_builtins_link_tests = xyes; then
  11280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11281. (eval $ac_link) 2>&5
  11282. ac_status=$?
  11283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11284. test $ac_status = 0; }; then
  11285. eval libat_cv_have_at_tas_16=yes
  11286. else
  11287. eval libat_cv_have_at_tas_16=no
  11288. fi
  11289. else
  11290. old_CFLAGS="$CFLAGS"
  11291. # Compile unoptimized.
  11292. CFLAGS="$CFLAGS -O0 -S"
  11293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11294. (eval $ac_compile) 2>&5
  11295. ac_status=$?
  11296. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11297. test $ac_status = 0; }; then
  11298. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11299. eval libat_cv_have_at_tas_16=no
  11300. else
  11301. eval libat_cv_have_at_tas_16=yes
  11302. fi
  11303. else
  11304. eval libat_cv_have_at_tas_16=no
  11305. fi
  11306. CFLAGS="$old_CFLAGS"
  11307. fi
  11308. rm -f conftest*
  11309. fi
  11310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
  11311. $as_echo "$libat_cv_have_at_tas_16" >&6; }
  11312. yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
  11313. cat >>confdefs.h <<_ACEOF
  11314. #define HAVE_ATOMIC_TAS_16 $yesno
  11315. _ACEOF
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
  11317. $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
  11318. if ${libat_cv_have_at_exch_1+:} false; then :
  11319. $as_echo_n "(cached) " >&6
  11320. else
  11321. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11322. /* end confdefs.h. */
  11323. int
  11324. main ()
  11325. {
  11326. typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
  11327. __atomic_exchange_n(x, 0, 0);
  11328. ;
  11329. return 0;
  11330. }
  11331. _ACEOF
  11332. if test x$atomic_builtins_link_tests = xyes; then
  11333. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11334. (eval $ac_link) 2>&5
  11335. ac_status=$?
  11336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11337. test $ac_status = 0; }; then
  11338. eval libat_cv_have_at_exch_1=yes
  11339. else
  11340. eval libat_cv_have_at_exch_1=no
  11341. fi
  11342. else
  11343. old_CFLAGS="$CFLAGS"
  11344. # Compile unoptimized.
  11345. CFLAGS="$CFLAGS -O0 -S"
  11346. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11347. (eval $ac_compile) 2>&5
  11348. ac_status=$?
  11349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11350. test $ac_status = 0; }; then
  11351. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11352. eval libat_cv_have_at_exch_1=no
  11353. else
  11354. eval libat_cv_have_at_exch_1=yes
  11355. fi
  11356. else
  11357. eval libat_cv_have_at_exch_1=no
  11358. fi
  11359. CFLAGS="$old_CFLAGS"
  11360. fi
  11361. rm -f conftest*
  11362. fi
  11363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
  11364. $as_echo "$libat_cv_have_at_exch_1" >&6; }
  11365. yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
  11366. cat >>confdefs.h <<_ACEOF
  11367. #define HAVE_ATOMIC_EXCHANGE_1 $yesno
  11368. _ACEOF
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
  11370. $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
  11371. if ${libat_cv_have_at_exch_2+:} false; then :
  11372. $as_echo_n "(cached) " >&6
  11373. else
  11374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11375. /* end confdefs.h. */
  11376. int
  11377. main ()
  11378. {
  11379. typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
  11380. __atomic_exchange_n(x, 0, 0);
  11381. ;
  11382. return 0;
  11383. }
  11384. _ACEOF
  11385. if test x$atomic_builtins_link_tests = xyes; then
  11386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11387. (eval $ac_link) 2>&5
  11388. ac_status=$?
  11389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11390. test $ac_status = 0; }; then
  11391. eval libat_cv_have_at_exch_2=yes
  11392. else
  11393. eval libat_cv_have_at_exch_2=no
  11394. fi
  11395. else
  11396. old_CFLAGS="$CFLAGS"
  11397. # Compile unoptimized.
  11398. CFLAGS="$CFLAGS -O0 -S"
  11399. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11400. (eval $ac_compile) 2>&5
  11401. ac_status=$?
  11402. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11403. test $ac_status = 0; }; then
  11404. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11405. eval libat_cv_have_at_exch_2=no
  11406. else
  11407. eval libat_cv_have_at_exch_2=yes
  11408. fi
  11409. else
  11410. eval libat_cv_have_at_exch_2=no
  11411. fi
  11412. CFLAGS="$old_CFLAGS"
  11413. fi
  11414. rm -f conftest*
  11415. fi
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
  11417. $as_echo "$libat_cv_have_at_exch_2" >&6; }
  11418. yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
  11419. cat >>confdefs.h <<_ACEOF
  11420. #define HAVE_ATOMIC_EXCHANGE_2 $yesno
  11421. _ACEOF
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
  11423. $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
  11424. if ${libat_cv_have_at_exch_4+:} false; then :
  11425. $as_echo_n "(cached) " >&6
  11426. else
  11427. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11428. /* end confdefs.h. */
  11429. int
  11430. main ()
  11431. {
  11432. typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
  11433. __atomic_exchange_n(x, 0, 0);
  11434. ;
  11435. return 0;
  11436. }
  11437. _ACEOF
  11438. if test x$atomic_builtins_link_tests = xyes; then
  11439. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11440. (eval $ac_link) 2>&5
  11441. ac_status=$?
  11442. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11443. test $ac_status = 0; }; then
  11444. eval libat_cv_have_at_exch_4=yes
  11445. else
  11446. eval libat_cv_have_at_exch_4=no
  11447. fi
  11448. else
  11449. old_CFLAGS="$CFLAGS"
  11450. # Compile unoptimized.
  11451. CFLAGS="$CFLAGS -O0 -S"
  11452. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11453. (eval $ac_compile) 2>&5
  11454. ac_status=$?
  11455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11456. test $ac_status = 0; }; then
  11457. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11458. eval libat_cv_have_at_exch_4=no
  11459. else
  11460. eval libat_cv_have_at_exch_4=yes
  11461. fi
  11462. else
  11463. eval libat_cv_have_at_exch_4=no
  11464. fi
  11465. CFLAGS="$old_CFLAGS"
  11466. fi
  11467. rm -f conftest*
  11468. fi
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
  11470. $as_echo "$libat_cv_have_at_exch_4" >&6; }
  11471. yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
  11472. cat >>confdefs.h <<_ACEOF
  11473. #define HAVE_ATOMIC_EXCHANGE_4 $yesno
  11474. _ACEOF
  11475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
  11476. $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
  11477. if ${libat_cv_have_at_exch_8+:} false; then :
  11478. $as_echo_n "(cached) " >&6
  11479. else
  11480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11481. /* end confdefs.h. */
  11482. int
  11483. main ()
  11484. {
  11485. typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
  11486. __atomic_exchange_n(x, 0, 0);
  11487. ;
  11488. return 0;
  11489. }
  11490. _ACEOF
  11491. if test x$atomic_builtins_link_tests = xyes; then
  11492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11493. (eval $ac_link) 2>&5
  11494. ac_status=$?
  11495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11496. test $ac_status = 0; }; then
  11497. eval libat_cv_have_at_exch_8=yes
  11498. else
  11499. eval libat_cv_have_at_exch_8=no
  11500. fi
  11501. else
  11502. old_CFLAGS="$CFLAGS"
  11503. # Compile unoptimized.
  11504. CFLAGS="$CFLAGS -O0 -S"
  11505. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11506. (eval $ac_compile) 2>&5
  11507. ac_status=$?
  11508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11509. test $ac_status = 0; }; then
  11510. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11511. eval libat_cv_have_at_exch_8=no
  11512. else
  11513. eval libat_cv_have_at_exch_8=yes
  11514. fi
  11515. else
  11516. eval libat_cv_have_at_exch_8=no
  11517. fi
  11518. CFLAGS="$old_CFLAGS"
  11519. fi
  11520. rm -f conftest*
  11521. fi
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
  11523. $as_echo "$libat_cv_have_at_exch_8" >&6; }
  11524. yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
  11525. cat >>confdefs.h <<_ACEOF
  11526. #define HAVE_ATOMIC_EXCHANGE_8 $yesno
  11527. _ACEOF
  11528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
  11529. $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
  11530. if ${libat_cv_have_at_exch_16+:} false; then :
  11531. $as_echo_n "(cached) " >&6
  11532. else
  11533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11534. /* end confdefs.h. */
  11535. int
  11536. main ()
  11537. {
  11538. typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
  11539. __atomic_exchange_n(x, 0, 0);
  11540. ;
  11541. return 0;
  11542. }
  11543. _ACEOF
  11544. if test x$atomic_builtins_link_tests = xyes; then
  11545. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11546. (eval $ac_link) 2>&5
  11547. ac_status=$?
  11548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11549. test $ac_status = 0; }; then
  11550. eval libat_cv_have_at_exch_16=yes
  11551. else
  11552. eval libat_cv_have_at_exch_16=no
  11553. fi
  11554. else
  11555. old_CFLAGS="$CFLAGS"
  11556. # Compile unoptimized.
  11557. CFLAGS="$CFLAGS -O0 -S"
  11558. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11559. (eval $ac_compile) 2>&5
  11560. ac_status=$?
  11561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11562. test $ac_status = 0; }; then
  11563. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11564. eval libat_cv_have_at_exch_16=no
  11565. else
  11566. eval libat_cv_have_at_exch_16=yes
  11567. fi
  11568. else
  11569. eval libat_cv_have_at_exch_16=no
  11570. fi
  11571. CFLAGS="$old_CFLAGS"
  11572. fi
  11573. rm -f conftest*
  11574. fi
  11575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
  11576. $as_echo "$libat_cv_have_at_exch_16" >&6; }
  11577. yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
  11578. cat >>confdefs.h <<_ACEOF
  11579. #define HAVE_ATOMIC_EXCHANGE_16 $yesno
  11580. _ACEOF
  11581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
  11582. $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
  11583. if ${libat_cv_have_at_cas_1+:} false; then :
  11584. $as_echo_n "(cached) " >&6
  11585. else
  11586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11587. /* end confdefs.h. */
  11588. int
  11589. main ()
  11590. {
  11591. typedef int T __attribute__((mode(QI))); T *x, *y;
  11592. asm("" : "=g"(x), "=g"(y));
  11593. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11594. ;
  11595. return 0;
  11596. }
  11597. _ACEOF
  11598. if test x$atomic_builtins_link_tests = xyes; then
  11599. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11600. (eval $ac_link) 2>&5
  11601. ac_status=$?
  11602. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11603. test $ac_status = 0; }; then
  11604. eval libat_cv_have_at_cas_1=yes
  11605. else
  11606. eval libat_cv_have_at_cas_1=no
  11607. fi
  11608. else
  11609. old_CFLAGS="$CFLAGS"
  11610. # Compile unoptimized.
  11611. CFLAGS="$CFLAGS -O0 -S"
  11612. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11613. (eval $ac_compile) 2>&5
  11614. ac_status=$?
  11615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11616. test $ac_status = 0; }; then
  11617. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11618. eval libat_cv_have_at_cas_1=no
  11619. else
  11620. eval libat_cv_have_at_cas_1=yes
  11621. fi
  11622. else
  11623. eval libat_cv_have_at_cas_1=no
  11624. fi
  11625. CFLAGS="$old_CFLAGS"
  11626. fi
  11627. rm -f conftest*
  11628. fi
  11629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
  11630. $as_echo "$libat_cv_have_at_cas_1" >&6; }
  11631. yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
  11632. cat >>confdefs.h <<_ACEOF
  11633. #define HAVE_ATOMIC_CAS_1 $yesno
  11634. _ACEOF
  11635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
  11636. $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
  11637. if ${libat_cv_have_at_cas_2+:} false; then :
  11638. $as_echo_n "(cached) " >&6
  11639. else
  11640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11641. /* end confdefs.h. */
  11642. int
  11643. main ()
  11644. {
  11645. typedef int T __attribute__((mode(HI))); T *x, *y;
  11646. asm("" : "=g"(x), "=g"(y));
  11647. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11648. ;
  11649. return 0;
  11650. }
  11651. _ACEOF
  11652. if test x$atomic_builtins_link_tests = xyes; then
  11653. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11654. (eval $ac_link) 2>&5
  11655. ac_status=$?
  11656. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11657. test $ac_status = 0; }; then
  11658. eval libat_cv_have_at_cas_2=yes
  11659. else
  11660. eval libat_cv_have_at_cas_2=no
  11661. fi
  11662. else
  11663. old_CFLAGS="$CFLAGS"
  11664. # Compile unoptimized.
  11665. CFLAGS="$CFLAGS -O0 -S"
  11666. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11667. (eval $ac_compile) 2>&5
  11668. ac_status=$?
  11669. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11670. test $ac_status = 0; }; then
  11671. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11672. eval libat_cv_have_at_cas_2=no
  11673. else
  11674. eval libat_cv_have_at_cas_2=yes
  11675. fi
  11676. else
  11677. eval libat_cv_have_at_cas_2=no
  11678. fi
  11679. CFLAGS="$old_CFLAGS"
  11680. fi
  11681. rm -f conftest*
  11682. fi
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
  11684. $as_echo "$libat_cv_have_at_cas_2" >&6; }
  11685. yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
  11686. cat >>confdefs.h <<_ACEOF
  11687. #define HAVE_ATOMIC_CAS_2 $yesno
  11688. _ACEOF
  11689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
  11690. $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
  11691. if ${libat_cv_have_at_cas_4+:} false; then :
  11692. $as_echo_n "(cached) " >&6
  11693. else
  11694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11695. /* end confdefs.h. */
  11696. int
  11697. main ()
  11698. {
  11699. typedef int T __attribute__((mode(SI))); T *x, *y;
  11700. asm("" : "=g"(x), "=g"(y));
  11701. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11702. ;
  11703. return 0;
  11704. }
  11705. _ACEOF
  11706. if test x$atomic_builtins_link_tests = xyes; then
  11707. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11708. (eval $ac_link) 2>&5
  11709. ac_status=$?
  11710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11711. test $ac_status = 0; }; then
  11712. eval libat_cv_have_at_cas_4=yes
  11713. else
  11714. eval libat_cv_have_at_cas_4=no
  11715. fi
  11716. else
  11717. old_CFLAGS="$CFLAGS"
  11718. # Compile unoptimized.
  11719. CFLAGS="$CFLAGS -O0 -S"
  11720. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11721. (eval $ac_compile) 2>&5
  11722. ac_status=$?
  11723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11724. test $ac_status = 0; }; then
  11725. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11726. eval libat_cv_have_at_cas_4=no
  11727. else
  11728. eval libat_cv_have_at_cas_4=yes
  11729. fi
  11730. else
  11731. eval libat_cv_have_at_cas_4=no
  11732. fi
  11733. CFLAGS="$old_CFLAGS"
  11734. fi
  11735. rm -f conftest*
  11736. fi
  11737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
  11738. $as_echo "$libat_cv_have_at_cas_4" >&6; }
  11739. yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
  11740. cat >>confdefs.h <<_ACEOF
  11741. #define HAVE_ATOMIC_CAS_4 $yesno
  11742. _ACEOF
  11743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
  11744. $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
  11745. if ${libat_cv_have_at_cas_8+:} false; then :
  11746. $as_echo_n "(cached) " >&6
  11747. else
  11748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11749. /* end confdefs.h. */
  11750. int
  11751. main ()
  11752. {
  11753. typedef int T __attribute__((mode(DI))); T *x, *y;
  11754. asm("" : "=g"(x), "=g"(y));
  11755. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11756. ;
  11757. return 0;
  11758. }
  11759. _ACEOF
  11760. if test x$atomic_builtins_link_tests = xyes; then
  11761. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11762. (eval $ac_link) 2>&5
  11763. ac_status=$?
  11764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11765. test $ac_status = 0; }; then
  11766. eval libat_cv_have_at_cas_8=yes
  11767. else
  11768. eval libat_cv_have_at_cas_8=no
  11769. fi
  11770. else
  11771. old_CFLAGS="$CFLAGS"
  11772. # Compile unoptimized.
  11773. CFLAGS="$CFLAGS -O0 -S"
  11774. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11775. (eval $ac_compile) 2>&5
  11776. ac_status=$?
  11777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11778. test $ac_status = 0; }; then
  11779. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11780. eval libat_cv_have_at_cas_8=no
  11781. else
  11782. eval libat_cv_have_at_cas_8=yes
  11783. fi
  11784. else
  11785. eval libat_cv_have_at_cas_8=no
  11786. fi
  11787. CFLAGS="$old_CFLAGS"
  11788. fi
  11789. rm -f conftest*
  11790. fi
  11791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
  11792. $as_echo "$libat_cv_have_at_cas_8" >&6; }
  11793. yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
  11794. cat >>confdefs.h <<_ACEOF
  11795. #define HAVE_ATOMIC_CAS_8 $yesno
  11796. _ACEOF
  11797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
  11798. $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
  11799. if ${libat_cv_have_at_cas_16+:} false; then :
  11800. $as_echo_n "(cached) " >&6
  11801. else
  11802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11803. /* end confdefs.h. */
  11804. int
  11805. main ()
  11806. {
  11807. typedef int T __attribute__((mode(TI))); T *x, *y;
  11808. asm("" : "=g"(x), "=g"(y));
  11809. __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
  11810. ;
  11811. return 0;
  11812. }
  11813. _ACEOF
  11814. if test x$atomic_builtins_link_tests = xyes; then
  11815. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11816. (eval $ac_link) 2>&5
  11817. ac_status=$?
  11818. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11819. test $ac_status = 0; }; then
  11820. eval libat_cv_have_at_cas_16=yes
  11821. else
  11822. eval libat_cv_have_at_cas_16=no
  11823. fi
  11824. else
  11825. old_CFLAGS="$CFLAGS"
  11826. # Compile unoptimized.
  11827. CFLAGS="$CFLAGS -O0 -S"
  11828. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11829. (eval $ac_compile) 2>&5
  11830. ac_status=$?
  11831. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11832. test $ac_status = 0; }; then
  11833. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11834. eval libat_cv_have_at_cas_16=no
  11835. else
  11836. eval libat_cv_have_at_cas_16=yes
  11837. fi
  11838. else
  11839. eval libat_cv_have_at_cas_16=no
  11840. fi
  11841. CFLAGS="$old_CFLAGS"
  11842. fi
  11843. rm -f conftest*
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
  11846. $as_echo "$libat_cv_have_at_cas_16" >&6; }
  11847. yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
  11848. cat >>confdefs.h <<_ACEOF
  11849. #define HAVE_ATOMIC_CAS_16 $yesno
  11850. _ACEOF
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
  11852. $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
  11853. if ${libat_cv_have_at_fadd_1+:} false; then :
  11854. $as_echo_n "(cached) " >&6
  11855. else
  11856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11857. /* end confdefs.h. */
  11858. int
  11859. main ()
  11860. {
  11861. typedef int T __attribute__((mode(QI))); T *x, y;
  11862. asm("" : "=g"(x), "=g"(y));
  11863. __atomic_fetch_add (x, y, 0);
  11864. __atomic_add_fetch (x, y, 0);
  11865. ;
  11866. return 0;
  11867. }
  11868. _ACEOF
  11869. if test x$atomic_builtins_link_tests = xyes; then
  11870. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11871. (eval $ac_link) 2>&5
  11872. ac_status=$?
  11873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11874. test $ac_status = 0; }; then
  11875. eval libat_cv_have_at_fadd_1=yes
  11876. else
  11877. eval libat_cv_have_at_fadd_1=no
  11878. fi
  11879. else
  11880. old_CFLAGS="$CFLAGS"
  11881. # Compile unoptimized.
  11882. CFLAGS="$CFLAGS -O0 -S"
  11883. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11884. (eval $ac_compile) 2>&5
  11885. ac_status=$?
  11886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11887. test $ac_status = 0; }; then
  11888. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11889. eval libat_cv_have_at_fadd_1=no
  11890. else
  11891. eval libat_cv_have_at_fadd_1=yes
  11892. fi
  11893. else
  11894. eval libat_cv_have_at_fadd_1=no
  11895. fi
  11896. CFLAGS="$old_CFLAGS"
  11897. fi
  11898. rm -f conftest*
  11899. fi
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
  11901. $as_echo "$libat_cv_have_at_fadd_1" >&6; }
  11902. yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
  11903. cat >>confdefs.h <<_ACEOF
  11904. #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
  11905. _ACEOF
  11906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
  11907. $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
  11908. if ${libat_cv_have_at_fadd_2+:} false; then :
  11909. $as_echo_n "(cached) " >&6
  11910. else
  11911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11912. /* end confdefs.h. */
  11913. int
  11914. main ()
  11915. {
  11916. typedef int T __attribute__((mode(HI))); T *x, y;
  11917. asm("" : "=g"(x), "=g"(y));
  11918. __atomic_fetch_add (x, y, 0);
  11919. __atomic_add_fetch (x, y, 0);
  11920. ;
  11921. return 0;
  11922. }
  11923. _ACEOF
  11924. if test x$atomic_builtins_link_tests = xyes; then
  11925. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11926. (eval $ac_link) 2>&5
  11927. ac_status=$?
  11928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11929. test $ac_status = 0; }; then
  11930. eval libat_cv_have_at_fadd_2=yes
  11931. else
  11932. eval libat_cv_have_at_fadd_2=no
  11933. fi
  11934. else
  11935. old_CFLAGS="$CFLAGS"
  11936. # Compile unoptimized.
  11937. CFLAGS="$CFLAGS -O0 -S"
  11938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11939. (eval $ac_compile) 2>&5
  11940. ac_status=$?
  11941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11942. test $ac_status = 0; }; then
  11943. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11944. eval libat_cv_have_at_fadd_2=no
  11945. else
  11946. eval libat_cv_have_at_fadd_2=yes
  11947. fi
  11948. else
  11949. eval libat_cv_have_at_fadd_2=no
  11950. fi
  11951. CFLAGS="$old_CFLAGS"
  11952. fi
  11953. rm -f conftest*
  11954. fi
  11955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
  11956. $as_echo "$libat_cv_have_at_fadd_2" >&6; }
  11957. yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
  11958. cat >>confdefs.h <<_ACEOF
  11959. #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
  11960. _ACEOF
  11961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
  11962. $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
  11963. if ${libat_cv_have_at_fadd_4+:} false; then :
  11964. $as_echo_n "(cached) " >&6
  11965. else
  11966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11967. /* end confdefs.h. */
  11968. int
  11969. main ()
  11970. {
  11971. typedef int T __attribute__((mode(SI))); T *x, y;
  11972. asm("" : "=g"(x), "=g"(y));
  11973. __atomic_fetch_add (x, y, 0);
  11974. __atomic_add_fetch (x, y, 0);
  11975. ;
  11976. return 0;
  11977. }
  11978. _ACEOF
  11979. if test x$atomic_builtins_link_tests = xyes; then
  11980. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11981. (eval $ac_link) 2>&5
  11982. ac_status=$?
  11983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11984. test $ac_status = 0; }; then
  11985. eval libat_cv_have_at_fadd_4=yes
  11986. else
  11987. eval libat_cv_have_at_fadd_4=no
  11988. fi
  11989. else
  11990. old_CFLAGS="$CFLAGS"
  11991. # Compile unoptimized.
  11992. CFLAGS="$CFLAGS -O0 -S"
  11993. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11994. (eval $ac_compile) 2>&5
  11995. ac_status=$?
  11996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11997. test $ac_status = 0; }; then
  11998. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  11999. eval libat_cv_have_at_fadd_4=no
  12000. else
  12001. eval libat_cv_have_at_fadd_4=yes
  12002. fi
  12003. else
  12004. eval libat_cv_have_at_fadd_4=no
  12005. fi
  12006. CFLAGS="$old_CFLAGS"
  12007. fi
  12008. rm -f conftest*
  12009. fi
  12010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
  12011. $as_echo "$libat_cv_have_at_fadd_4" >&6; }
  12012. yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
  12013. cat >>confdefs.h <<_ACEOF
  12014. #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
  12015. _ACEOF
  12016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
  12017. $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
  12018. if ${libat_cv_have_at_fadd_8+:} false; then :
  12019. $as_echo_n "(cached) " >&6
  12020. else
  12021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12022. /* end confdefs.h. */
  12023. int
  12024. main ()
  12025. {
  12026. typedef int T __attribute__((mode(DI))); T *x, y;
  12027. asm("" : "=g"(x), "=g"(y));
  12028. __atomic_fetch_add (x, y, 0);
  12029. __atomic_add_fetch (x, y, 0);
  12030. ;
  12031. return 0;
  12032. }
  12033. _ACEOF
  12034. if test x$atomic_builtins_link_tests = xyes; then
  12035. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12036. (eval $ac_link) 2>&5
  12037. ac_status=$?
  12038. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12039. test $ac_status = 0; }; then
  12040. eval libat_cv_have_at_fadd_8=yes
  12041. else
  12042. eval libat_cv_have_at_fadd_8=no
  12043. fi
  12044. else
  12045. old_CFLAGS="$CFLAGS"
  12046. # Compile unoptimized.
  12047. CFLAGS="$CFLAGS -O0 -S"
  12048. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12049. (eval $ac_compile) 2>&5
  12050. ac_status=$?
  12051. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12052. test $ac_status = 0; }; then
  12053. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12054. eval libat_cv_have_at_fadd_8=no
  12055. else
  12056. eval libat_cv_have_at_fadd_8=yes
  12057. fi
  12058. else
  12059. eval libat_cv_have_at_fadd_8=no
  12060. fi
  12061. CFLAGS="$old_CFLAGS"
  12062. fi
  12063. rm -f conftest*
  12064. fi
  12065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
  12066. $as_echo "$libat_cv_have_at_fadd_8" >&6; }
  12067. yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
  12068. cat >>confdefs.h <<_ACEOF
  12069. #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
  12070. _ACEOF
  12071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
  12072. $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
  12073. if ${libat_cv_have_at_fadd_16+:} false; then :
  12074. $as_echo_n "(cached) " >&6
  12075. else
  12076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12077. /* end confdefs.h. */
  12078. int
  12079. main ()
  12080. {
  12081. typedef int T __attribute__((mode(TI))); T *x, y;
  12082. asm("" : "=g"(x), "=g"(y));
  12083. __atomic_fetch_add (x, y, 0);
  12084. __atomic_add_fetch (x, y, 0);
  12085. ;
  12086. return 0;
  12087. }
  12088. _ACEOF
  12089. if test x$atomic_builtins_link_tests = xyes; then
  12090. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12091. (eval $ac_link) 2>&5
  12092. ac_status=$?
  12093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12094. test $ac_status = 0; }; then
  12095. eval libat_cv_have_at_fadd_16=yes
  12096. else
  12097. eval libat_cv_have_at_fadd_16=no
  12098. fi
  12099. else
  12100. old_CFLAGS="$CFLAGS"
  12101. # Compile unoptimized.
  12102. CFLAGS="$CFLAGS -O0 -S"
  12103. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12104. (eval $ac_compile) 2>&5
  12105. ac_status=$?
  12106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12107. test $ac_status = 0; }; then
  12108. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12109. eval libat_cv_have_at_fadd_16=no
  12110. else
  12111. eval libat_cv_have_at_fadd_16=yes
  12112. fi
  12113. else
  12114. eval libat_cv_have_at_fadd_16=no
  12115. fi
  12116. CFLAGS="$old_CFLAGS"
  12117. fi
  12118. rm -f conftest*
  12119. fi
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
  12121. $as_echo "$libat_cv_have_at_fadd_16" >&6; }
  12122. yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
  12123. cat >>confdefs.h <<_ACEOF
  12124. #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
  12125. _ACEOF
  12126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
  12127. $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
  12128. if ${libat_cv_have_at_fop_1+:} false; then :
  12129. $as_echo_n "(cached) " >&6
  12130. else
  12131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12132. /* end confdefs.h. */
  12133. int
  12134. main ()
  12135. {
  12136. typedef int T __attribute__((mode(QI))); T *x, y;
  12137. asm("" : "=g"(x), "=g"(y));
  12138. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12139. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12140. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12141. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12142. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12143. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12144. ;
  12145. return 0;
  12146. }
  12147. _ACEOF
  12148. if test x$atomic_builtins_link_tests = xyes; then
  12149. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12150. (eval $ac_link) 2>&5
  12151. ac_status=$?
  12152. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12153. test $ac_status = 0; }; then
  12154. eval libat_cv_have_at_fop_1=yes
  12155. else
  12156. eval libat_cv_have_at_fop_1=no
  12157. fi
  12158. else
  12159. old_CFLAGS="$CFLAGS"
  12160. # Compile unoptimized.
  12161. CFLAGS="$CFLAGS -O0 -S"
  12162. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12163. (eval $ac_compile) 2>&5
  12164. ac_status=$?
  12165. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12166. test $ac_status = 0; }; then
  12167. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12168. eval libat_cv_have_at_fop_1=no
  12169. else
  12170. eval libat_cv_have_at_fop_1=yes
  12171. fi
  12172. else
  12173. eval libat_cv_have_at_fop_1=no
  12174. fi
  12175. CFLAGS="$old_CFLAGS"
  12176. fi
  12177. rm -f conftest*
  12178. fi
  12179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
  12180. $as_echo "$libat_cv_have_at_fop_1" >&6; }
  12181. yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
  12182. cat >>confdefs.h <<_ACEOF
  12183. #define HAVE_ATOMIC_FETCH_OP_1 $yesno
  12184. _ACEOF
  12185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
  12186. $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
  12187. if ${libat_cv_have_at_fop_2+:} false; then :
  12188. $as_echo_n "(cached) " >&6
  12189. else
  12190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12191. /* end confdefs.h. */
  12192. int
  12193. main ()
  12194. {
  12195. typedef int T __attribute__((mode(HI))); T *x, y;
  12196. asm("" : "=g"(x), "=g"(y));
  12197. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12198. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12199. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12200. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12201. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12202. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. if test x$atomic_builtins_link_tests = xyes; then
  12208. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12209. (eval $ac_link) 2>&5
  12210. ac_status=$?
  12211. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12212. test $ac_status = 0; }; then
  12213. eval libat_cv_have_at_fop_2=yes
  12214. else
  12215. eval libat_cv_have_at_fop_2=no
  12216. fi
  12217. else
  12218. old_CFLAGS="$CFLAGS"
  12219. # Compile unoptimized.
  12220. CFLAGS="$CFLAGS -O0 -S"
  12221. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12222. (eval $ac_compile) 2>&5
  12223. ac_status=$?
  12224. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12225. test $ac_status = 0; }; then
  12226. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12227. eval libat_cv_have_at_fop_2=no
  12228. else
  12229. eval libat_cv_have_at_fop_2=yes
  12230. fi
  12231. else
  12232. eval libat_cv_have_at_fop_2=no
  12233. fi
  12234. CFLAGS="$old_CFLAGS"
  12235. fi
  12236. rm -f conftest*
  12237. fi
  12238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
  12239. $as_echo "$libat_cv_have_at_fop_2" >&6; }
  12240. yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
  12241. cat >>confdefs.h <<_ACEOF
  12242. #define HAVE_ATOMIC_FETCH_OP_2 $yesno
  12243. _ACEOF
  12244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
  12245. $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
  12246. if ${libat_cv_have_at_fop_4+:} false; then :
  12247. $as_echo_n "(cached) " >&6
  12248. else
  12249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12250. /* end confdefs.h. */
  12251. int
  12252. main ()
  12253. {
  12254. typedef int T __attribute__((mode(SI))); T *x, y;
  12255. asm("" : "=g"(x), "=g"(y));
  12256. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12257. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12258. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12259. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12260. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12261. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12262. ;
  12263. return 0;
  12264. }
  12265. _ACEOF
  12266. if test x$atomic_builtins_link_tests = xyes; then
  12267. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12268. (eval $ac_link) 2>&5
  12269. ac_status=$?
  12270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12271. test $ac_status = 0; }; then
  12272. eval libat_cv_have_at_fop_4=yes
  12273. else
  12274. eval libat_cv_have_at_fop_4=no
  12275. fi
  12276. else
  12277. old_CFLAGS="$CFLAGS"
  12278. # Compile unoptimized.
  12279. CFLAGS="$CFLAGS -O0 -S"
  12280. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12281. (eval $ac_compile) 2>&5
  12282. ac_status=$?
  12283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12284. test $ac_status = 0; }; then
  12285. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12286. eval libat_cv_have_at_fop_4=no
  12287. else
  12288. eval libat_cv_have_at_fop_4=yes
  12289. fi
  12290. else
  12291. eval libat_cv_have_at_fop_4=no
  12292. fi
  12293. CFLAGS="$old_CFLAGS"
  12294. fi
  12295. rm -f conftest*
  12296. fi
  12297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
  12298. $as_echo "$libat_cv_have_at_fop_4" >&6; }
  12299. yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
  12300. cat >>confdefs.h <<_ACEOF
  12301. #define HAVE_ATOMIC_FETCH_OP_4 $yesno
  12302. _ACEOF
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
  12304. $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
  12305. if ${libat_cv_have_at_fop_8+:} false; then :
  12306. $as_echo_n "(cached) " >&6
  12307. else
  12308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12309. /* end confdefs.h. */
  12310. int
  12311. main ()
  12312. {
  12313. typedef int T __attribute__((mode(DI))); T *x, y;
  12314. asm("" : "=g"(x), "=g"(y));
  12315. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12316. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12317. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12318. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12319. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12320. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12321. ;
  12322. return 0;
  12323. }
  12324. _ACEOF
  12325. if test x$atomic_builtins_link_tests = xyes; then
  12326. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12327. (eval $ac_link) 2>&5
  12328. ac_status=$?
  12329. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12330. test $ac_status = 0; }; then
  12331. eval libat_cv_have_at_fop_8=yes
  12332. else
  12333. eval libat_cv_have_at_fop_8=no
  12334. fi
  12335. else
  12336. old_CFLAGS="$CFLAGS"
  12337. # Compile unoptimized.
  12338. CFLAGS="$CFLAGS -O0 -S"
  12339. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12340. (eval $ac_compile) 2>&5
  12341. ac_status=$?
  12342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12343. test $ac_status = 0; }; then
  12344. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12345. eval libat_cv_have_at_fop_8=no
  12346. else
  12347. eval libat_cv_have_at_fop_8=yes
  12348. fi
  12349. else
  12350. eval libat_cv_have_at_fop_8=no
  12351. fi
  12352. CFLAGS="$old_CFLAGS"
  12353. fi
  12354. rm -f conftest*
  12355. fi
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
  12357. $as_echo "$libat_cv_have_at_fop_8" >&6; }
  12358. yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
  12359. cat >>confdefs.h <<_ACEOF
  12360. #define HAVE_ATOMIC_FETCH_OP_8 $yesno
  12361. _ACEOF
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
  12363. $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
  12364. if ${libat_cv_have_at_fop_16+:} false; then :
  12365. $as_echo_n "(cached) " >&6
  12366. else
  12367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12368. /* end confdefs.h. */
  12369. int
  12370. main ()
  12371. {
  12372. typedef int T __attribute__((mode(TI))); T *x, y;
  12373. asm("" : "=g"(x), "=g"(y));
  12374. __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
  12375. __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
  12376. __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
  12377. __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
  12378. __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
  12379. __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
  12380. ;
  12381. return 0;
  12382. }
  12383. _ACEOF
  12384. if test x$atomic_builtins_link_tests = xyes; then
  12385. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  12386. (eval $ac_link) 2>&5
  12387. ac_status=$?
  12388. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12389. test $ac_status = 0; }; then
  12390. eval libat_cv_have_at_fop_16=yes
  12391. else
  12392. eval libat_cv_have_at_fop_16=no
  12393. fi
  12394. else
  12395. old_CFLAGS="$CFLAGS"
  12396. # Compile unoptimized.
  12397. CFLAGS="$CFLAGS -O0 -S"
  12398. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12399. (eval $ac_compile) 2>&5
  12400. ac_status=$?
  12401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12402. test $ac_status = 0; }; then
  12403. if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
  12404. eval libat_cv_have_at_fop_16=no
  12405. else
  12406. eval libat_cv_have_at_fop_16=yes
  12407. fi
  12408. else
  12409. eval libat_cv_have_at_fop_16=no
  12410. fi
  12411. CFLAGS="$old_CFLAGS"
  12412. fi
  12413. rm -f conftest*
  12414. fi
  12415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
  12416. $as_echo "$libat_cv_have_at_fop_16" >&6; }
  12417. yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
  12418. cat >>confdefs.h <<_ACEOF
  12419. #define HAVE_ATOMIC_FETCH_OP_16 $yesno
  12420. _ACEOF
  12421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  12422. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  12423. if ${ac_cv_c_bigendian+:} false; then :
  12424. $as_echo_n "(cached) " >&6
  12425. else
  12426. ac_cv_c_bigendian=unknown
  12427. # See if we're dealing with a universal compiler.
  12428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12429. /* end confdefs.h. */
  12430. #ifndef __APPLE_CC__
  12431. not a universal capable compiler
  12432. #endif
  12433. typedef int dummy;
  12434. _ACEOF
  12435. if ac_fn_c_try_compile "$LINENO"; then :
  12436. # Check for potential -arch flags. It is not universal unless
  12437. # there are at least two -arch flags with different values.
  12438. ac_arch=
  12439. ac_prev=
  12440. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  12441. if test -n "$ac_prev"; then
  12442. case $ac_word in
  12443. i?86 | x86_64 | ppc | ppc64)
  12444. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  12445. ac_arch=$ac_word
  12446. else
  12447. ac_cv_c_bigendian=universal
  12448. break
  12449. fi
  12450. ;;
  12451. esac
  12452. ac_prev=
  12453. elif test "x$ac_word" = "x-arch"; then
  12454. ac_prev=arch
  12455. fi
  12456. done
  12457. fi
  12458. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12459. if test $ac_cv_c_bigendian = unknown; then
  12460. # See if sys/param.h defines the BYTE_ORDER macro.
  12461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12462. /* end confdefs.h. */
  12463. #include <sys/types.h>
  12464. #include <sys/param.h>
  12465. int
  12466. main ()
  12467. {
  12468. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  12469. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  12470. && LITTLE_ENDIAN)
  12471. bogus endian macros
  12472. #endif
  12473. ;
  12474. return 0;
  12475. }
  12476. _ACEOF
  12477. if ac_fn_c_try_compile "$LINENO"; then :
  12478. # It does; now see whether it defined to BIG_ENDIAN or not.
  12479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12480. /* end confdefs.h. */
  12481. #include <sys/types.h>
  12482. #include <sys/param.h>
  12483. int
  12484. main ()
  12485. {
  12486. #if BYTE_ORDER != BIG_ENDIAN
  12487. not big endian
  12488. #endif
  12489. ;
  12490. return 0;
  12491. }
  12492. _ACEOF
  12493. if ac_fn_c_try_compile "$LINENO"; then :
  12494. ac_cv_c_bigendian=yes
  12495. else
  12496. ac_cv_c_bigendian=no
  12497. fi
  12498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12499. fi
  12500. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12501. fi
  12502. if test $ac_cv_c_bigendian = unknown; then
  12503. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  12504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12505. /* end confdefs.h. */
  12506. #include <limits.h>
  12507. int
  12508. main ()
  12509. {
  12510. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  12511. bogus endian macros
  12512. #endif
  12513. ;
  12514. return 0;
  12515. }
  12516. _ACEOF
  12517. if ac_fn_c_try_compile "$LINENO"; then :
  12518. # It does; now see whether it defined to _BIG_ENDIAN or not.
  12519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12520. /* end confdefs.h. */
  12521. #include <limits.h>
  12522. int
  12523. main ()
  12524. {
  12525. #ifndef _BIG_ENDIAN
  12526. not big endian
  12527. #endif
  12528. ;
  12529. return 0;
  12530. }
  12531. _ACEOF
  12532. if ac_fn_c_try_compile "$LINENO"; then :
  12533. ac_cv_c_bigendian=yes
  12534. else
  12535. ac_cv_c_bigendian=no
  12536. fi
  12537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12538. fi
  12539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12540. fi
  12541. if test $ac_cv_c_bigendian = unknown; then
  12542. # Compile a test program.
  12543. if test "$cross_compiling" = yes; then :
  12544. # Try to guess by grepping values from an object file.
  12545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12546. /* end confdefs.h. */
  12547. short int ascii_mm[] =
  12548. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  12549. short int ascii_ii[] =
  12550. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  12551. int use_ascii (int i) {
  12552. return ascii_mm[i] + ascii_ii[i];
  12553. }
  12554. short int ebcdic_ii[] =
  12555. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  12556. short int ebcdic_mm[] =
  12557. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  12558. int use_ebcdic (int i) {
  12559. return ebcdic_mm[i] + ebcdic_ii[i];
  12560. }
  12561. extern int foo;
  12562. int
  12563. main ()
  12564. {
  12565. return use_ascii (foo) == use_ebcdic (foo);
  12566. ;
  12567. return 0;
  12568. }
  12569. _ACEOF
  12570. if ac_fn_c_try_compile "$LINENO"; then :
  12571. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  12572. ac_cv_c_bigendian=yes
  12573. fi
  12574. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  12575. if test "$ac_cv_c_bigendian" = unknown; then
  12576. ac_cv_c_bigendian=no
  12577. else
  12578. # finding both strings is unlikely to happen, but who knows?
  12579. ac_cv_c_bigendian=unknown
  12580. fi
  12581. fi
  12582. fi
  12583. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12584. else
  12585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12586. /* end confdefs.h. */
  12587. $ac_includes_default
  12588. int
  12589. main ()
  12590. {
  12591. /* Are we little or big endian? From Harbison&Steele. */
  12592. union
  12593. {
  12594. long int l;
  12595. char c[sizeof (long int)];
  12596. } u;
  12597. u.l = 1;
  12598. return u.c[sizeof (long int) - 1] == 1;
  12599. ;
  12600. return 0;
  12601. }
  12602. _ACEOF
  12603. if ac_fn_c_try_run "$LINENO"; then :
  12604. ac_cv_c_bigendian=no
  12605. else
  12606. ac_cv_c_bigendian=yes
  12607. fi
  12608. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12609. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12610. fi
  12611. fi
  12612. fi
  12613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  12614. $as_echo "$ac_cv_c_bigendian" >&6; }
  12615. case $ac_cv_c_bigendian in #(
  12616. yes)
  12617. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  12618. ;; #(
  12619. no)
  12620. ;; #(
  12621. universal)
  12622. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  12623. ;; #(
  12624. *)
  12625. as_fn_error $? "unknown endianness
  12626. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  12627. esac
  12628. # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
  12629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
  12630. $as_echo_n "checking for the word size... " >&6; }
  12631. if ${libat_cv_wordsize+:} false; then :
  12632. $as_echo_n "(cached) " >&6
  12633. else
  12634. if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
  12635. else
  12636. as_fn_error $? "Could not determine word size." "$LINENO" 5
  12637. fi
  12638. fi
  12639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
  12640. $as_echo "$libat_cv_wordsize" >&6; }
  12641. cat >>confdefs.h <<_ACEOF
  12642. #define WORDSIZE $libat_cv_wordsize
  12643. _ACEOF
  12644. # Check to see if -pthread or -lpthread is needed. Prefer the former.
  12645. # In case the pthread.h system header is not found, this test will fail.
  12646. case " $config_path " in
  12647. *" posix "*)
  12648. XPCFLAGS=""
  12649. CFLAGS="$CFLAGS -pthread"
  12650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12651. /* end confdefs.h. */
  12652. #include <pthread.h>
  12653. void *g(void *d) { return NULL; }
  12654. int
  12655. main ()
  12656. {
  12657. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12658. ;
  12659. return 0;
  12660. }
  12661. _ACEOF
  12662. if ac_fn_c_try_link "$LINENO"; then :
  12663. XPCFLAGS=" -pthread"
  12664. else
  12665. CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
  12666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12667. /* end confdefs.h. */
  12668. #include <pthread.h>
  12669. void *g(void *d) { return NULL; }
  12670. int
  12671. main ()
  12672. {
  12673. pthread_t t; pthread_create(&t,NULL,g,NULL);
  12674. ;
  12675. return 0;
  12676. }
  12677. _ACEOF
  12678. if ac_fn_c_try_link "$LINENO"; then :
  12679. else
  12680. as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
  12681. fi
  12682. rm -f core conftest.err conftest.$ac_objext \
  12683. conftest$ac_exeext conftest.$ac_ext
  12684. fi
  12685. rm -f core conftest.err conftest.$ac_objext \
  12686. conftest$ac_exeext conftest.$ac_ext
  12687. CFLAGS="$save_CFLAGS $XPCFLAGS"
  12688. ;;
  12689. esac
  12690. # See what sort of export controls are available.
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
  12692. $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
  12693. if ${libat_cv_have_attribute_visibility+:} false; then :
  12694. $as_echo_n "(cached) " >&6
  12695. else
  12696. save_CFLAGS="$CFLAGS"
  12697. CFLAGS="$CFLAGS -Werror"
  12698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12699. /* end confdefs.h. */
  12700. void __attribute__((visibility("hidden"))) foo(void) { }
  12701. int
  12702. main ()
  12703. {
  12704. ;
  12705. return 0;
  12706. }
  12707. _ACEOF
  12708. if ac_fn_c_try_compile "$LINENO"; then :
  12709. libat_cv_have_attribute_visibility=yes
  12710. else
  12711. libat_cv_have_attribute_visibility=no
  12712. fi
  12713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12714. CFLAGS="$save_CFLAGS"
  12715. fi
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
  12717. $as_echo "$libat_cv_have_attribute_visibility" >&6; }
  12718. if test $libat_cv_have_attribute_visibility = yes; then
  12719. $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
  12720. fi
  12721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
  12722. $as_echo_n "checking whether the target supports dllexport... " >&6; }
  12723. if ${libat_cv_have_attribute_dllexport+:} false; then :
  12724. $as_echo_n "(cached) " >&6
  12725. else
  12726. save_CFLAGS="$CFLAGS"
  12727. CFLAGS="$CFLAGS -Werror"
  12728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12729. /* end confdefs.h. */
  12730. void __attribute__((dllexport)) foo(void) { }
  12731. int
  12732. main ()
  12733. {
  12734. ;
  12735. return 0;
  12736. }
  12737. _ACEOF
  12738. if ac_fn_c_try_compile "$LINENO"; then :
  12739. libat_cv_have_attribute_dllexport=yes
  12740. else
  12741. libat_cv_have_attribute_dllexport=no
  12742. fi
  12743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12744. CFLAGS="$save_CFLAGS"
  12745. fi
  12746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
  12747. $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
  12748. if test $libat_cv_have_attribute_dllexport = yes; then
  12749. $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
  12750. fi
  12751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
  12752. $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
  12753. if ${libat_cv_have_attribute_alias+:} false; then :
  12754. $as_echo_n "(cached) " >&6
  12755. else
  12756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12757. /* end confdefs.h. */
  12758. void foo(void) { }
  12759. extern void bar(void) __attribute__((alias("foo")));
  12760. int
  12761. main ()
  12762. {
  12763. bar();
  12764. ;
  12765. return 0;
  12766. }
  12767. _ACEOF
  12768. if ac_fn_c_try_link "$LINENO"; then :
  12769. libat_cv_have_attribute_alias=yes
  12770. else
  12771. libat_cv_have_attribute_alias=no
  12772. fi
  12773. rm -f core conftest.err conftest.$ac_objext \
  12774. conftest$ac_exeext conftest.$ac_ext
  12775. fi
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
  12777. $as_echo "$libat_cv_have_attribute_alias" >&6; }
  12778. if test $libat_cv_have_attribute_alias = yes; then
  12779. $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
  12780. fi
  12781. if test x$try_ifunc = xyes; then
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
  12783. $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
  12784. if ${libat_cv_have_ifunc+:} false; then :
  12785. $as_echo_n "(cached) " >&6
  12786. else
  12787. save_CFLAGS="$CFLAGS"
  12788. CFLAGS="$CFLAGS -Werror"
  12789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12790. /* end confdefs.h. */
  12791. int foo_alt(void) { return 0; }
  12792. typedef int F (void);
  12793. F *foo_sel(void) { return foo_alt; }
  12794. int foo(void) __attribute__((ifunc("foo_sel")));
  12795. int
  12796. main ()
  12797. {
  12798. return foo();
  12799. ;
  12800. return 0;
  12801. }
  12802. _ACEOF
  12803. if ac_fn_c_try_link "$LINENO"; then :
  12804. libat_cv_have_ifunc=yes
  12805. else
  12806. libat_cv_have_ifunc=no
  12807. fi
  12808. rm -f core conftest.err conftest.$ac_objext \
  12809. conftest$ac_exeext conftest.$ac_ext
  12810. fi
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
  12812. $as_echo "$libat_cv_have_ifunc" >&6; }
  12813. yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
  12814. cat >>confdefs.h <<_ACEOF
  12815. #define HAVE_IFUNC $yesno
  12816. _ACEOF
  12817. fi
  12818. # Check linker support.
  12819. # Check whether --with-gnu-ld was given.
  12820. if test "${with_gnu_ld+set}" = set; then :
  12821. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  12822. else
  12823. with_gnu_ld=no
  12824. fi
  12825. ac_prog=ld
  12826. if test "$GCC" = yes; then
  12827. # Check if gcc -print-prog-name=ld gives a path.
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  12829. $as_echo_n "checking for ld used by $CC... " >&6; }
  12830. case $host in
  12831. *-*-mingw*)
  12832. # gcc leaves a trailing carriage return which upsets mingw
  12833. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12834. *)
  12835. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12836. esac
  12837. case $ac_prog in
  12838. # Accept absolute paths.
  12839. [\\/]* | ?:[\\/]*)
  12840. re_direlt='/[^/][^/]*/\.\./'
  12841. # Canonicalize the pathname of ld
  12842. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  12843. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  12844. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  12845. done
  12846. test -z "$LD" && LD="$ac_prog"
  12847. ;;
  12848. "")
  12849. # If it fails, then pretend we aren't using GCC.
  12850. ac_prog=ld
  12851. ;;
  12852. *)
  12853. # If it is relative, then search for the first ld in PATH.
  12854. with_gnu_ld=unknown
  12855. ;;
  12856. esac
  12857. elif test "$with_gnu_ld" = yes; then
  12858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  12859. $as_echo_n "checking for GNU ld... " >&6; }
  12860. else
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  12862. $as_echo_n "checking for non-GNU ld... " >&6; }
  12863. fi
  12864. if ${lt_cv_path_LD+:} false; then :
  12865. $as_echo_n "(cached) " >&6
  12866. else
  12867. if test -z "$LD"; then
  12868. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12869. for ac_dir in $PATH; do
  12870. IFS="$lt_save_ifs"
  12871. test -z "$ac_dir" && ac_dir=.
  12872. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12873. lt_cv_path_LD="$ac_dir/$ac_prog"
  12874. # Check to see if the program is GNU ld. I'd rather use --version,
  12875. # but apparently some variants of GNU ld only accept -v.
  12876. # Break only if it was the GNU/non-GNU ld that we prefer.
  12877. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  12878. *GNU* | *'with BFD'*)
  12879. test "$with_gnu_ld" != no && break
  12880. ;;
  12881. *)
  12882. test "$with_gnu_ld" != yes && break
  12883. ;;
  12884. esac
  12885. fi
  12886. done
  12887. IFS="$lt_save_ifs"
  12888. else
  12889. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12890. fi
  12891. fi
  12892. LD="$lt_cv_path_LD"
  12893. if test -n "$LD"; then
  12894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  12895. $as_echo "$LD" >&6; }
  12896. else
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12898. $as_echo "no" >&6; }
  12899. fi
  12900. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  12901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  12902. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  12903. if ${lt_cv_prog_gnu_ld+:} false; then :
  12904. $as_echo_n "(cached) " >&6
  12905. else
  12906. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  12907. case `$LD -v 2>&1 </dev/null` in
  12908. *GNU* | *'with BFD'*)
  12909. lt_cv_prog_gnu_ld=yes
  12910. ;;
  12911. *)
  12912. lt_cv_prog_gnu_ld=no
  12913. ;;
  12914. esac
  12915. fi
  12916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  12917. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  12918. with_gnu_ld=$lt_cv_prog_gnu_ld
  12919. # If we're not using GNU ld, then there's no point in even trying these
  12920. # tests. Check for that first. We should have already tested for gld
  12921. # by now (in libtool), but require it now just to be safe...
  12922. test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
  12923. test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
  12924. # The name set by libtool depends on the version of libtool. Shame on us
  12925. # for depending on an impl detail, but c'est la vie. Older versions used
  12926. # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
  12927. # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
  12928. # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
  12929. # set (hence we're using an older libtool), then set it.
  12930. if test x${with_gnu_ld+set} != xset; then
  12931. if test x${ac_cv_prog_gnu_ld+set} != xset; then
  12932. # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
  12933. with_gnu_ld=no
  12934. else
  12935. with_gnu_ld=$ac_cv_prog_gnu_ld
  12936. fi
  12937. fi
  12938. # Start by getting the version number. I think the libtool test already
  12939. # does some of this, but throws away the result.
  12940. libat_ld_is_gold=no
  12941. libat_ld_is_mold=no
  12942. if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
  12943. libat_ld_is_gold=yes
  12944. elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
  12945. libat_ld_is_mold=yes
  12946. fi
  12947. ldver=`$LD --version 2>/dev/null |
  12948. sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
  12949. libat_gnu_ld_version=`echo $ldver | \
  12950. $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
  12951. # Set --gc-sections.
  12952. if test "$with_gnu_ld" = "notbroken"; then
  12953. # GNU ld it is! Joy and bunny rabbits!
  12954. # All these tests are for C++; save the language and the compiler flags.
  12955. # Need to do this so that g++ won't try to link in libstdc++
  12956. ac_test_CFLAGS="${CFLAGS+set}"
  12957. ac_save_CFLAGS="$CFLAGS"
  12958. CFLAGS='-x c++ -Wl,--gc-sections'
  12959. # Check for -Wl,--gc-sections
  12960. # XXX This test is broken at the moment, as symbols required for linking
  12961. # are now in libsupc++ (not built yet). In addition, this test has
  12962. # cored on solaris in the past. In addition, --gc-sections doesn't
  12963. # really work at the moment (keeps on discarding used sections, first
  12964. # .eh_frame and now some of the glibc sections for iconv).
  12965. # Bzzzzt. Thanks for playing, maybe next time.
  12966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
  12967. $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
  12968. if test "$cross_compiling" = yes; then :
  12969. ac_sectionLDflags=yes
  12970. else
  12971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12972. /* end confdefs.h. */
  12973. int main(void)
  12974. {
  12975. try { throw 1; }
  12976. catch (...) { };
  12977. return 0;
  12978. }
  12979. _ACEOF
  12980. if ac_fn_c_try_run "$LINENO"; then :
  12981. ac_sectionLDflags=yes
  12982. else
  12983. ac_sectionLDflags=no
  12984. fi
  12985. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12986. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12987. fi
  12988. if test "$ac_test_CFLAGS" = set; then
  12989. CFLAGS="$ac_save_CFLAGS"
  12990. else
  12991. # this is the suspicious part
  12992. CFLAGS=''
  12993. fi
  12994. if test "$ac_sectionLDflags" = "yes"; then
  12995. SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
  12996. fi
  12997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
  12998. $as_echo "$ac_sectionLDflags" >&6; }
  12999. fi
  13000. # Set linker optimization flags.
  13001. if test x"$with_gnu_ld" = x"yes"; then
  13002. OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
  13003. fi
  13004. # Check whether --enable-symvers was given.
  13005. if test "${enable_symvers+set}" = set; then :
  13006. enableval=$enable_symvers;
  13007. case "$enableval" in
  13008. yes|no|gnu*|sun) ;;
  13009. *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
  13010. esac
  13011. else
  13012. enable_symvers=yes
  13013. fi
  13014. # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
  13015. # don't know enough about $LD to do tricks...
  13016. # Turn a 'yes' into a suitable default.
  13017. if test x$enable_symvers = xyes ; then
  13018. # FIXME The following test is too strict, in theory.
  13019. if test $enable_shared = no || test "x$LD" = x; then
  13020. enable_symvers=no
  13021. else
  13022. if test $with_gnu_ld = yes ; then
  13023. enable_symvers=gnu
  13024. else
  13025. case ${target_os} in
  13026. # Sun symbol versioning exists since Solaris 2.5.
  13027. solaris2.[5-9]* | solaris2.1[0-9]*)
  13028. enable_symvers=sun ;;
  13029. *)
  13030. enable_symvers=no ;;
  13031. esac
  13032. fi
  13033. fi
  13034. fi
  13035. # Check if 'sun' was requested on non-Solaris 2 platforms.
  13036. if test x$enable_symvers = xsun ; then
  13037. case ${target_os} in
  13038. solaris2*)
  13039. # All fine.
  13040. ;;
  13041. *)
  13042. # Unlikely to work.
  13043. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
  13044. $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
  13045. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
  13046. $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
  13047. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13048. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13049. enable_symvers=no
  13050. ;;
  13051. esac
  13052. fi
  13053. # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
  13054. if test $enable_symvers != no; then
  13055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
  13056. $as_echo_n "checking for shared libgcc... " >&6; }
  13057. ac_save_CFLAGS="$CFLAGS"
  13058. CFLAGS=' -lgcc_s'
  13059. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13060. /* end confdefs.h. */
  13061. int
  13062. main ()
  13063. {
  13064. return 0;
  13065. ;
  13066. return 0;
  13067. }
  13068. _ACEOF
  13069. if ac_fn_c_try_link "$LINENO"; then :
  13070. libat_shared_libgcc=yes
  13071. else
  13072. libat_shared_libgcc=no
  13073. fi
  13074. rm -f core conftest.err conftest.$ac_objext \
  13075. conftest$ac_exeext conftest.$ac_ext
  13076. CFLAGS="$ac_save_CFLAGS"
  13077. if test $libat_shared_libgcc = no; then
  13078. cat > conftest.c <<EOF
  13079. int main (void) { return 0; }
  13080. EOF
  13081. libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
  13082. -shared -shared-libgcc -o conftest.so \
  13083. conftest.c -v 2>&1 >/dev/null \
  13084. | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
  13085. rm -f conftest.c conftest.so
  13086. if test x${libat_libgcc_s_suffix+set} = xset; then
  13087. CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
  13088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13089. /* end confdefs.h. */
  13090. int
  13091. main ()
  13092. {
  13093. return 0;
  13094. ;
  13095. return 0;
  13096. }
  13097. _ACEOF
  13098. if ac_fn_c_try_link "$LINENO"; then :
  13099. libat_shared_libgcc=yes
  13100. fi
  13101. rm -f core conftest.err conftest.$ac_objext \
  13102. conftest$ac_exeext conftest.$ac_ext
  13103. CFLAGS="$ac_save_CFLAGS"
  13104. fi
  13105. fi
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
  13107. $as_echo "$libat_shared_libgcc" >&6; }
  13108. fi
  13109. # For GNU ld, we need at least this version. The format is described in
  13110. # LIBAT_CHECK_LINKER_FEATURES above.
  13111. libat_min_gnu_ld_version=21400
  13112. # XXXXXXXXXXX libat_gnu_ld_version=21390
  13113. # Check to see if unspecified "yes" value can win, given results above.
  13114. # Change "yes" into either "no" or a style name.
  13115. if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
  13116. if test $with_gnu_ld = yes; then
  13117. if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
  13118. enable_symvers=gnu
  13119. elif test $libat_ld_is_gold = yes ; then
  13120. enable_symvers=gnu
  13121. elif test $libat_ld_is_mold = yes ; then
  13122. enable_symvers=gnu
  13123. else
  13124. # The right tools, the right setup, but too old. Fallbacks?
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
  13126. $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
  13127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
  13128. $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
  13130. $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
  13131. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
  13132. $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
  13133. if test $libat_gnu_ld_version -ge 21200 ; then
  13134. # Globbing fix is present, proper block support is not.
  13135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13136. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13137. enable_symvers=no
  13138. else
  13139. # 2.11 or older.
  13140. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13141. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13142. enable_symvers=no
  13143. fi
  13144. fi
  13145. elif test $enable_symvers = sun; then
  13146. : All interesting versions of Sun ld support sun style symbol versioning.
  13147. else
  13148. # just fail for now
  13149. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
  13150. $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
  13151. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
  13152. $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
  13154. $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
  13155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
  13156. $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
  13157. enable_symvers=no
  13158. fi
  13159. fi
  13160. if test $enable_symvers = gnu; then
  13161. $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
  13162. fi
  13163. if test $enable_symvers != no; then
  13164. LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
  13165. LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
  13166. else
  13167. LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
  13168. LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
  13169. fi
  13170. if test $enable_symvers = gnu; then
  13171. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
  13172. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
  13173. else
  13174. LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
  13175. LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
  13176. fi
  13177. if test $enable_symvers = sun; then
  13178. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
  13179. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
  13180. else
  13181. LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
  13182. LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
  13183. fi
  13184. { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
  13185. $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
  13186. # Cleanup and exit.
  13187. CFLAGS="$save_CFLAGS"
  13188. cat >confcache <<\_ACEOF
  13189. # This file is a shell script that caches the results of configure
  13190. # tests run on this system so they can be shared between configure
  13191. # scripts and configure runs, see configure's option --config-cache.
  13192. # It is not useful on other systems. If it contains results you don't
  13193. # want to keep, you may remove or edit it.
  13194. #
  13195. # config.status only pays attention to the cache file if you give it
  13196. # the --recheck option to rerun configure.
  13197. #
  13198. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13199. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13200. # following values.
  13201. _ACEOF
  13202. # The following way of writing the cache mishandles newlines in values,
  13203. # but we know of no workaround that is simple, portable, and efficient.
  13204. # So, we kill variables containing newlines.
  13205. # Ultrix sh set writes to stderr and can't be redirected directly,
  13206. # and sets the high bit in the cache file unless we assign to the vars.
  13207. (
  13208. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13209. eval ac_val=\$$ac_var
  13210. case $ac_val in #(
  13211. *${as_nl}*)
  13212. case $ac_var in #(
  13213. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13214. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13215. esac
  13216. case $ac_var in #(
  13217. _ | IFS | as_nl) ;; #(
  13218. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13219. *) { eval $ac_var=; unset $ac_var;} ;;
  13220. esac ;;
  13221. esac
  13222. done
  13223. (set) 2>&1 |
  13224. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13225. *${as_nl}ac_space=\ *)
  13226. # `set' does not quote correctly, so add quotes: double-quote
  13227. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13228. sed -n \
  13229. "s/'/'\\\\''/g;
  13230. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13231. ;; #(
  13232. *)
  13233. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13234. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13235. ;;
  13236. esac |
  13237. sort
  13238. ) |
  13239. sed '
  13240. /^ac_cv_env_/b end
  13241. t clear
  13242. :clear
  13243. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13244. t end
  13245. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13246. :end' >>confcache
  13247. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13248. if test -w "$cache_file"; then
  13249. if test "x$cache_file" != "x/dev/null"; then
  13250. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13251. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13252. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13253. cat confcache >"$cache_file"
  13254. else
  13255. case $cache_file in #(
  13256. */* | ?:*)
  13257. mv -f confcache "$cache_file"$$ &&
  13258. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13259. *)
  13260. mv -f confcache "$cache_file" ;;
  13261. esac
  13262. fi
  13263. fi
  13264. else
  13265. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13266. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13267. fi
  13268. fi
  13269. rm -f confcache
  13270. # Check whether --enable-werror was given.
  13271. if test "${enable_werror+set}" = set; then :
  13272. enableval=$enable_werror;
  13273. fi
  13274. # Add -Wall -Werror if we are using GCC.
  13275. if test "x$GCC" = "xyes"; then :
  13276. XCFLAGS="$XCFLAGS -Wall"
  13277. fi
  13278. if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
  13279. XCFLAGS="$XCFLAGS -Werror"
  13280. fi
  13281. # Add CET specific flags if CET is enabled
  13282. # Check whether --enable-cet was given.
  13283. if test "${enable_cet+set}" = set; then :
  13284. enableval=$enable_cet;
  13285. case "$enableval" in
  13286. yes|no|auto) ;;
  13287. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  13288. esac
  13289. else
  13290. enable_cet=auto
  13291. fi
  13292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  13293. $as_echo_n "checking for CET support... " >&6; }
  13294. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  13295. case "$host" in
  13296. i[34567]86-*-linux* | x86_64-*-linux*)
  13297. case "$enable_cet" in
  13298. auto)
  13299. # Check if target supports multi-byte NOPs
  13300. # and if compiler and assembler support CET insn.
  13301. cet_save_CFLAGS="$CFLAGS"
  13302. CFLAGS="$CFLAGS -fcf-protection"
  13303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13304. /* end confdefs.h. */
  13305. int
  13306. main ()
  13307. {
  13308. #if !defined(__SSE2__)
  13309. #error target does not support multi-byte NOPs
  13310. #else
  13311. asm ("setssbsy");
  13312. #endif
  13313. ;
  13314. return 0;
  13315. }
  13316. _ACEOF
  13317. if ac_fn_c_try_compile "$LINENO"; then :
  13318. enable_cet=yes
  13319. else
  13320. enable_cet=no
  13321. fi
  13322. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13323. CFLAGS="$cet_save_CFLAGS"
  13324. ;;
  13325. yes)
  13326. # Check if assembler supports CET.
  13327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13328. /* end confdefs.h. */
  13329. int
  13330. main ()
  13331. {
  13332. asm ("setssbsy");
  13333. ;
  13334. return 0;
  13335. }
  13336. _ACEOF
  13337. if ac_fn_c_try_compile "$LINENO"; then :
  13338. else
  13339. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  13340. fi
  13341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13342. ;;
  13343. esac
  13344. ;;
  13345. *)
  13346. enable_cet=no
  13347. ;;
  13348. esac
  13349. if test x$enable_cet = xyes; then
  13350. CET_FLAGS="-fcf-protection -mshstk"
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13352. $as_echo "yes" >&6; }
  13353. else
  13354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13355. $as_echo "no" >&6; }
  13356. fi
  13357. XCFLAGS="$XCFLAGS $CET_FLAGS"
  13358. XCFLAGS="$XCFLAGS $XPCFLAGS"
  13359. # Conditionalize the makefile for this target machine.
  13360. tmake_file_=
  13361. for f in ${tmake_file}
  13362. do
  13363. if test -f ${srcdir}/config/$f
  13364. then
  13365. tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
  13366. fi
  13367. done
  13368. tmake_file="${tmake_file_}"
  13369. if test x$libat_cv_have_ifunc = xyes; then
  13370. HAVE_IFUNC_TRUE=
  13371. HAVE_IFUNC_FALSE='#'
  13372. else
  13373. HAVE_IFUNC_TRUE='#'
  13374. HAVE_IFUNC_FALSE=
  13375. fi
  13376. if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then
  13377. ARCH_AARCH64_LINUX_TRUE=
  13378. ARCH_AARCH64_LINUX_FALSE='#'
  13379. else
  13380. ARCH_AARCH64_LINUX_TRUE='#'
  13381. ARCH_AARCH64_LINUX_FALSE=
  13382. fi
  13383. if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
  13384. ARCH_ARM_LINUX_TRUE=
  13385. ARCH_ARM_LINUX_FALSE='#'
  13386. else
  13387. ARCH_ARM_LINUX_TRUE='#'
  13388. ARCH_ARM_LINUX_FALSE=
  13389. fi
  13390. if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
  13391. ARCH_I386_TRUE=
  13392. ARCH_I386_FALSE='#'
  13393. else
  13394. ARCH_I386_TRUE='#'
  13395. ARCH_I386_FALSE=
  13396. fi
  13397. if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
  13398. ARCH_X86_64_TRUE=
  13399. ARCH_X86_64_FALSE='#'
  13400. else
  13401. ARCH_X86_64_TRUE='#'
  13402. ARCH_X86_64_FALSE=
  13403. fi
  13404. # Determine what GCC version number to use in filesystem paths.
  13405. get_gcc_base_ver="cat"
  13406. # Check whether --with-gcc-major-version-only was given.
  13407. if test "${with_gcc_major_version_only+set}" = set; then :
  13408. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  13409. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  13410. fi
  13411. fi
  13412. if test ${multilib} = yes; then
  13413. multilib_arg="--enable-multilib"
  13414. else
  13415. multilib_arg=
  13416. fi
  13417. ac_config_files="$ac_config_files Makefile testsuite/Makefile"
  13418. ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp"
  13419. cat >confcache <<\_ACEOF
  13420. # This file is a shell script that caches the results of configure
  13421. # tests run on this system so they can be shared between configure
  13422. # scripts and configure runs, see configure's option --config-cache.
  13423. # It is not useful on other systems. If it contains results you don't
  13424. # want to keep, you may remove or edit it.
  13425. #
  13426. # config.status only pays attention to the cache file if you give it
  13427. # the --recheck option to rerun configure.
  13428. #
  13429. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13430. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13431. # following values.
  13432. _ACEOF
  13433. # The following way of writing the cache mishandles newlines in values,
  13434. # but we know of no workaround that is simple, portable, and efficient.
  13435. # So, we kill variables containing newlines.
  13436. # Ultrix sh set writes to stderr and can't be redirected directly,
  13437. # and sets the high bit in the cache file unless we assign to the vars.
  13438. (
  13439. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13440. eval ac_val=\$$ac_var
  13441. case $ac_val in #(
  13442. *${as_nl}*)
  13443. case $ac_var in #(
  13444. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13445. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13446. esac
  13447. case $ac_var in #(
  13448. _ | IFS | as_nl) ;; #(
  13449. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13450. *) { eval $ac_var=; unset $ac_var;} ;;
  13451. esac ;;
  13452. esac
  13453. done
  13454. (set) 2>&1 |
  13455. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13456. *${as_nl}ac_space=\ *)
  13457. # `set' does not quote correctly, so add quotes: double-quote
  13458. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13459. sed -n \
  13460. "s/'/'\\\\''/g;
  13461. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13462. ;; #(
  13463. *)
  13464. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13465. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13466. ;;
  13467. esac |
  13468. sort
  13469. ) |
  13470. sed '
  13471. /^ac_cv_env_/b end
  13472. t clear
  13473. :clear
  13474. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13475. t end
  13476. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13477. :end' >>confcache
  13478. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13479. if test -w "$cache_file"; then
  13480. if test "x$cache_file" != "x/dev/null"; then
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13482. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13483. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13484. cat confcache >"$cache_file"
  13485. else
  13486. case $cache_file in #(
  13487. */* | ?:*)
  13488. mv -f confcache "$cache_file"$$ &&
  13489. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13490. *)
  13491. mv -f confcache "$cache_file" ;;
  13492. esac
  13493. fi
  13494. fi
  13495. else
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13497. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13498. fi
  13499. fi
  13500. rm -f confcache
  13501. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13502. # Let make expand exec_prefix.
  13503. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13504. DEFS=-DHAVE_CONFIG_H
  13505. ac_libobjs=
  13506. ac_ltlibobjs=
  13507. U=
  13508. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13509. # 1. Remove the extension, and $U if already installed.
  13510. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13511. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13512. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13513. # will be set to the directory where LIBOBJS objects are built.
  13514. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13515. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13516. done
  13517. LIBOBJS=$ac_libobjs
  13518. LTLIBOBJS=$ac_ltlibobjs
  13519. if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
  13520. as_fn_error $? "conditional \"GENINSRC\" was never defined.
  13521. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13522. fi
  13523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13524. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13525. if test -n "$am_sleep_pid"; then
  13526. # Hide warnings about reused PIDs.
  13527. wait $am_sleep_pid 2>/dev/null
  13528. fi
  13529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13530. $as_echo "done" >&6; }
  13531. if test -n "$EXEEXT"; then
  13532. am__EXEEXT_TRUE=
  13533. am__EXEEXT_FALSE='#'
  13534. else
  13535. am__EXEEXT_TRUE='#'
  13536. am__EXEEXT_FALSE=
  13537. fi
  13538. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13539. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13540. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13541. fi
  13542. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13543. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13544. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13545. fi
  13546. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  13547. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  13548. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13549. fi
  13550. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13551. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  13552. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13553. fi
  13554. if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
  13555. as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
  13556. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13557. fi
  13558. if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
  13559. as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
  13560. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13561. fi
  13562. if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
  13563. as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
  13564. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13565. fi
  13566. if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
  13567. as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined.
  13568. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13569. fi
  13570. if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then
  13571. as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined.
  13572. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13573. fi
  13574. if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
  13575. as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined.
  13576. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13577. fi
  13578. if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
  13579. as_fn_error $? "conditional \"ARCH_I386\" was never defined.
  13580. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13581. fi
  13582. if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
  13583. as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
  13584. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13585. fi
  13586. : "${CONFIG_STATUS=./config.status}"
  13587. ac_write_fail=0
  13588. ac_clean_files_save=$ac_clean_files
  13589. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13590. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13591. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13592. as_write_fail=0
  13593. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13594. #! $SHELL
  13595. # Generated by $as_me.
  13596. # Run this file to recreate the current configuration.
  13597. # Compiler output produced by configure, useful for debugging
  13598. # configure, is in config.log if it exists.
  13599. debug=false
  13600. ac_cs_recheck=false
  13601. ac_cs_silent=false
  13602. SHELL=\${CONFIG_SHELL-$SHELL}
  13603. export SHELL
  13604. _ASEOF
  13605. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13606. ## -------------------- ##
  13607. ## M4sh Initialization. ##
  13608. ## -------------------- ##
  13609. # Be more Bourne compatible
  13610. DUALCASE=1; export DUALCASE # for MKS sh
  13611. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13612. emulate sh
  13613. NULLCMD=:
  13614. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13615. # is contrary to our usage. Disable this feature.
  13616. alias -g '${1+"$@"}'='"$@"'
  13617. setopt NO_GLOB_SUBST
  13618. else
  13619. case `(set -o) 2>/dev/null` in #(
  13620. *posix*) :
  13621. set -o posix ;; #(
  13622. *) :
  13623. ;;
  13624. esac
  13625. fi
  13626. as_nl='
  13627. '
  13628. export as_nl
  13629. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13630. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13631. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13632. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13633. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13634. # but without wasting forks for bash or zsh.
  13635. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13636. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13637. as_echo='print -r --'
  13638. as_echo_n='print -rn --'
  13639. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13640. as_echo='printf %s\n'
  13641. as_echo_n='printf %s'
  13642. else
  13643. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13644. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13645. as_echo_n='/usr/ucb/echo -n'
  13646. else
  13647. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13648. as_echo_n_body='eval
  13649. arg=$1;
  13650. case $arg in #(
  13651. *"$as_nl"*)
  13652. expr "X$arg" : "X\\(.*\\)$as_nl";
  13653. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13654. esac;
  13655. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13656. '
  13657. export as_echo_n_body
  13658. as_echo_n='sh -c $as_echo_n_body as_echo'
  13659. fi
  13660. export as_echo_body
  13661. as_echo='sh -c $as_echo_body as_echo'
  13662. fi
  13663. # The user is always right.
  13664. if test "${PATH_SEPARATOR+set}" != set; then
  13665. PATH_SEPARATOR=:
  13666. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13667. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13668. PATH_SEPARATOR=';'
  13669. }
  13670. fi
  13671. # IFS
  13672. # We need space, tab and new line, in precisely that order. Quoting is
  13673. # there to prevent editors from complaining about space-tab.
  13674. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13675. # splitting by setting IFS to empty value.)
  13676. IFS=" "" $as_nl"
  13677. # Find who we are. Look in the path if we contain no directory separator.
  13678. as_myself=
  13679. case $0 in #((
  13680. *[\\/]* ) as_myself=$0 ;;
  13681. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13682. for as_dir in $PATH
  13683. do
  13684. IFS=$as_save_IFS
  13685. test -z "$as_dir" && as_dir=.
  13686. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13687. done
  13688. IFS=$as_save_IFS
  13689. ;;
  13690. esac
  13691. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13692. # in which case we are not to be found in the path.
  13693. if test "x$as_myself" = x; then
  13694. as_myself=$0
  13695. fi
  13696. if test ! -f "$as_myself"; then
  13697. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13698. exit 1
  13699. fi
  13700. # Unset variables that we do not need and which cause bugs (e.g. in
  13701. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13702. # suppresses any "Segmentation fault" message there. '((' could
  13703. # trigger a bug in pdksh 5.2.14.
  13704. for as_var in BASH_ENV ENV MAIL MAILPATH
  13705. do eval test x\${$as_var+set} = xset \
  13706. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13707. done
  13708. PS1='$ '
  13709. PS2='> '
  13710. PS4='+ '
  13711. # NLS nuisances.
  13712. LC_ALL=C
  13713. export LC_ALL
  13714. LANGUAGE=C
  13715. export LANGUAGE
  13716. # CDPATH.
  13717. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13718. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13719. # ----------------------------------------
  13720. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13721. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13722. # script with STATUS, using 1 if that was 0.
  13723. as_fn_error ()
  13724. {
  13725. as_status=$1; test $as_status -eq 0 && as_status=1
  13726. if test "$4"; then
  13727. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13728. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13729. fi
  13730. $as_echo "$as_me: error: $2" >&2
  13731. as_fn_exit $as_status
  13732. } # as_fn_error
  13733. # as_fn_set_status STATUS
  13734. # -----------------------
  13735. # Set $? to STATUS, without forking.
  13736. as_fn_set_status ()
  13737. {
  13738. return $1
  13739. } # as_fn_set_status
  13740. # as_fn_exit STATUS
  13741. # -----------------
  13742. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13743. as_fn_exit ()
  13744. {
  13745. set +e
  13746. as_fn_set_status $1
  13747. exit $1
  13748. } # as_fn_exit
  13749. # as_fn_unset VAR
  13750. # ---------------
  13751. # Portably unset VAR.
  13752. as_fn_unset ()
  13753. {
  13754. { eval $1=; unset $1;}
  13755. }
  13756. as_unset=as_fn_unset
  13757. # as_fn_append VAR VALUE
  13758. # ----------------------
  13759. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13760. # advantage of any shell optimizations that allow amortized linear growth over
  13761. # repeated appends, instead of the typical quadratic growth present in naive
  13762. # implementations.
  13763. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13764. eval 'as_fn_append ()
  13765. {
  13766. eval $1+=\$2
  13767. }'
  13768. else
  13769. as_fn_append ()
  13770. {
  13771. eval $1=\$$1\$2
  13772. }
  13773. fi # as_fn_append
  13774. # as_fn_arith ARG...
  13775. # ------------------
  13776. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13777. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13778. # must be portable across $(()) and expr.
  13779. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13780. eval 'as_fn_arith ()
  13781. {
  13782. as_val=$(( $* ))
  13783. }'
  13784. else
  13785. as_fn_arith ()
  13786. {
  13787. as_val=`expr "$@" || test $? -eq 1`
  13788. }
  13789. fi # as_fn_arith
  13790. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13791. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13792. as_expr=expr
  13793. else
  13794. as_expr=false
  13795. fi
  13796. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13797. as_basename=basename
  13798. else
  13799. as_basename=false
  13800. fi
  13801. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13802. as_dirname=dirname
  13803. else
  13804. as_dirname=false
  13805. fi
  13806. as_me=`$as_basename -- "$0" ||
  13807. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13808. X"$0" : 'X\(//\)$' \| \
  13809. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13810. $as_echo X/"$0" |
  13811. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13812. s//\1/
  13813. q
  13814. }
  13815. /^X\/\(\/\/\)$/{
  13816. s//\1/
  13817. q
  13818. }
  13819. /^X\/\(\/\).*/{
  13820. s//\1/
  13821. q
  13822. }
  13823. s/.*/./; q'`
  13824. # Avoid depending upon Character Ranges.
  13825. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13826. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13827. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13828. as_cr_digits='0123456789'
  13829. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13830. ECHO_C= ECHO_N= ECHO_T=
  13831. case `echo -n x` in #(((((
  13832. -n*)
  13833. case `echo 'xy\c'` in
  13834. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13835. xy) ECHO_C='\c';;
  13836. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13837. ECHO_T=' ';;
  13838. esac;;
  13839. *)
  13840. ECHO_N='-n';;
  13841. esac
  13842. rm -f conf$$ conf$$.exe conf$$.file
  13843. if test -d conf$$.dir; then
  13844. rm -f conf$$.dir/conf$$.file
  13845. else
  13846. rm -f conf$$.dir
  13847. mkdir conf$$.dir 2>/dev/null
  13848. fi
  13849. if (echo >conf$$.file) 2>/dev/null; then
  13850. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13851. as_ln_s='ln -s'
  13852. # ... but there are two gotchas:
  13853. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13854. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13855. # In both cases, we have to default to `cp -pR'.
  13856. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13857. as_ln_s='cp -pR'
  13858. elif ln conf$$.file conf$$ 2>/dev/null; then
  13859. as_ln_s=ln
  13860. else
  13861. as_ln_s='cp -pR'
  13862. fi
  13863. else
  13864. as_ln_s='cp -pR'
  13865. fi
  13866. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13867. rmdir conf$$.dir 2>/dev/null
  13868. # as_fn_mkdir_p
  13869. # -------------
  13870. # Create "$as_dir" as a directory, including parents if necessary.
  13871. as_fn_mkdir_p ()
  13872. {
  13873. case $as_dir in #(
  13874. -*) as_dir=./$as_dir;;
  13875. esac
  13876. test -d "$as_dir" || eval $as_mkdir_p || {
  13877. as_dirs=
  13878. while :; do
  13879. case $as_dir in #(
  13880. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13881. *) as_qdir=$as_dir;;
  13882. esac
  13883. as_dirs="'$as_qdir' $as_dirs"
  13884. as_dir=`$as_dirname -- "$as_dir" ||
  13885. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13886. X"$as_dir" : 'X\(//\)[^/]' \| \
  13887. X"$as_dir" : 'X\(//\)$' \| \
  13888. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13889. $as_echo X"$as_dir" |
  13890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13891. s//\1/
  13892. q
  13893. }
  13894. /^X\(\/\/\)[^/].*/{
  13895. s//\1/
  13896. q
  13897. }
  13898. /^X\(\/\/\)$/{
  13899. s//\1/
  13900. q
  13901. }
  13902. /^X\(\/\).*/{
  13903. s//\1/
  13904. q
  13905. }
  13906. s/.*/./; q'`
  13907. test -d "$as_dir" && break
  13908. done
  13909. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13910. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13911. } # as_fn_mkdir_p
  13912. if mkdir -p . 2>/dev/null; then
  13913. as_mkdir_p='mkdir -p "$as_dir"'
  13914. else
  13915. test -d ./-p && rmdir ./-p
  13916. as_mkdir_p=false
  13917. fi
  13918. # as_fn_executable_p FILE
  13919. # -----------------------
  13920. # Test if FILE is an executable regular file.
  13921. as_fn_executable_p ()
  13922. {
  13923. test -f "$1" && test -x "$1"
  13924. } # as_fn_executable_p
  13925. as_test_x='test -x'
  13926. as_executable_p=as_fn_executable_p
  13927. # Sed expression to map a string onto a valid CPP name.
  13928. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13929. # Sed expression to map a string onto a valid variable name.
  13930. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13931. exec 6>&1
  13932. ## ----------------------------------- ##
  13933. ## Main body of $CONFIG_STATUS script. ##
  13934. ## ----------------------------------- ##
  13935. _ASEOF
  13936. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13937. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13938. # Save the log message, to keep $0 and so on meaningful, and to
  13939. # report actual input values of CONFIG_FILES etc. instead of their
  13940. # values after options handling.
  13941. ac_log="
  13942. This file was extended by GNU Atomic Library $as_me 1.0, which was
  13943. generated by GNU Autoconf 2.69. Invocation command line was
  13944. CONFIG_FILES = $CONFIG_FILES
  13945. CONFIG_HEADERS = $CONFIG_HEADERS
  13946. CONFIG_LINKS = $CONFIG_LINKS
  13947. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13948. $ $0 $@
  13949. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13950. "
  13951. _ACEOF
  13952. case $ac_config_files in *"
  13953. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13954. esac
  13955. case $ac_config_headers in *"
  13956. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13957. esac
  13958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13959. # Files that config.status was made for.
  13960. config_files="$ac_config_files"
  13961. config_headers="$ac_config_headers"
  13962. config_commands="$ac_config_commands"
  13963. _ACEOF
  13964. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13965. ac_cs_usage="\
  13966. \`$as_me' instantiates files and other configuration actions
  13967. from templates according to the current configuration. Unless the files
  13968. and actions are specified as TAGs, all are instantiated by default.
  13969. Usage: $0 [OPTION]... [TAG]...
  13970. -h, --help print this help, then exit
  13971. -V, --version print version number and configuration settings, then exit
  13972. --config print configuration, then exit
  13973. -q, --quiet, --silent
  13974. do not print progress messages
  13975. -d, --debug don't remove temporary files
  13976. --recheck update $as_me by reconfiguring in the same conditions
  13977. --file=FILE[:TEMPLATE]
  13978. instantiate the configuration file FILE
  13979. --header=FILE[:TEMPLATE]
  13980. instantiate the configuration header FILE
  13981. Configuration files:
  13982. $config_files
  13983. Configuration headers:
  13984. $config_headers
  13985. Configuration commands:
  13986. $config_commands
  13987. Report bugs to the package provider.
  13988. GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
  13989. General help using GNU software: <http://www.gnu.org/gethelp/>."
  13990. _ACEOF
  13991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13992. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13993. ac_cs_version="\\
  13994. GNU Atomic Library config.status 1.0
  13995. configured by $0, generated by GNU Autoconf 2.69,
  13996. with options \\"\$ac_cs_config\\"
  13997. Copyright (C) 2012 Free Software Foundation, Inc.
  13998. This config.status script is free software; the Free Software Foundation
  13999. gives unlimited permission to copy, distribute and modify it."
  14000. ac_pwd='$ac_pwd'
  14001. srcdir='$srcdir'
  14002. INSTALL='$INSTALL'
  14003. MKDIR_P='$MKDIR_P'
  14004. AWK='$AWK'
  14005. test -n "\$AWK" || AWK=awk
  14006. _ACEOF
  14007. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14008. # The default lists apply if the user does not specify any file.
  14009. ac_need_defaults=:
  14010. while test $# != 0
  14011. do
  14012. case $1 in
  14013. --*=?*)
  14014. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14015. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14016. ac_shift=:
  14017. ;;
  14018. --*=)
  14019. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14020. ac_optarg=
  14021. ac_shift=:
  14022. ;;
  14023. *)
  14024. ac_option=$1
  14025. ac_optarg=$2
  14026. ac_shift=shift
  14027. ;;
  14028. esac
  14029. case $ac_option in
  14030. # Handling of the options.
  14031. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14032. ac_cs_recheck=: ;;
  14033. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14034. $as_echo "$ac_cs_version"; exit ;;
  14035. --config | --confi | --conf | --con | --co | --c )
  14036. $as_echo "$ac_cs_config"; exit ;;
  14037. --debug | --debu | --deb | --de | --d | -d )
  14038. debug=: ;;
  14039. --file | --fil | --fi | --f )
  14040. $ac_shift
  14041. case $ac_optarg in
  14042. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14043. '') as_fn_error $? "missing file argument" ;;
  14044. esac
  14045. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14046. ac_need_defaults=false;;
  14047. --header | --heade | --head | --hea )
  14048. $ac_shift
  14049. case $ac_optarg in
  14050. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14051. esac
  14052. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14053. ac_need_defaults=false;;
  14054. --he | --h)
  14055. # Conflict between --help and --header
  14056. as_fn_error $? "ambiguous option: \`$1'
  14057. Try \`$0 --help' for more information.";;
  14058. --help | --hel | -h )
  14059. $as_echo "$ac_cs_usage"; exit ;;
  14060. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14061. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14062. ac_cs_silent=: ;;
  14063. # This is an error.
  14064. -*) as_fn_error $? "unrecognized option: \`$1'
  14065. Try \`$0 --help' for more information." ;;
  14066. *) as_fn_append ac_config_targets " $1"
  14067. ac_need_defaults=false ;;
  14068. esac
  14069. shift
  14070. done
  14071. ac_configure_extra_args=
  14072. if $ac_cs_silent; then
  14073. exec 6>/dev/null
  14074. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14075. fi
  14076. _ACEOF
  14077. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14078. if \$ac_cs_recheck; then
  14079. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14080. shift
  14081. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14082. CONFIG_SHELL='$SHELL'
  14083. export CONFIG_SHELL
  14084. exec "\$@"
  14085. fi
  14086. _ACEOF
  14087. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14088. exec 5>>config.log
  14089. {
  14090. echo
  14091. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14092. ## Running $as_me. ##
  14093. _ASBOX
  14094. $as_echo "$ac_log"
  14095. } >&5
  14096. _ACEOF
  14097. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14098. #
  14099. # INIT-COMMANDS
  14100. #
  14101. srcdir="$srcdir"
  14102. host="$host"
  14103. target="$target"
  14104. with_multisubdir="$with_multisubdir"
  14105. with_multisrctop="$with_multisrctop"
  14106. with_target_subdir="$with_target_subdir"
  14107. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  14108. multi_basedir="$multi_basedir"
  14109. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14110. CC="$CC"
  14111. CXX="$CXX"
  14112. GFORTRAN="$GFORTRAN"
  14113. GDC="$GDC"
  14114. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14115. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14116. # if CDPATH is set.
  14117. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14118. sed_quote_subst='$sed_quote_subst'
  14119. double_quote_subst='$double_quote_subst'
  14120. delay_variable_subst='$delay_variable_subst'
  14121. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14122. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14123. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14124. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14125. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14126. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14127. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14128. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14129. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14130. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14131. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14132. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14133. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14134. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14135. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14136. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14137. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14138. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14139. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14140. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14141. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14142. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14143. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14144. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14145. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  14146. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  14147. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  14148. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  14149. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  14150. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  14151. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14152. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  14153. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  14154. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  14155. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  14156. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14157. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14158. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14159. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14160. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14161. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14162. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14163. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14164. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14165. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14166. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14167. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14168. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14169. 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"`'
  14170. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14171. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14172. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14173. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14174. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14175. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14176. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14177. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14178. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14179. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14180. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14181. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14182. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14183. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14184. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14185. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14186. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14187. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14188. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14189. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14190. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14191. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14192. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14193. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  14194. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14195. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  14196. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  14197. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  14198. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14199. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  14200. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  14201. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  14202. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  14203. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  14204. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  14205. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  14206. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14207. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  14208. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  14209. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  14210. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  14211. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  14212. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  14213. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  14214. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  14215. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  14216. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  14217. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  14218. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  14219. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  14220. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  14221. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  14222. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  14223. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  14224. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  14225. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  14226. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  14227. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  14228. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14229. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14230. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  14231. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  14232. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  14233. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  14234. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  14235. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  14236. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  14237. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  14238. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  14239. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  14240. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  14241. LTCC='$LTCC'
  14242. LTCFLAGS='$LTCFLAGS'
  14243. compiler='$compiler_DEFAULT'
  14244. # A function that is used when there is no print builtin or printf.
  14245. func_fallback_echo ()
  14246. {
  14247. eval 'cat <<_LTECHO_EOF
  14248. \$1
  14249. _LTECHO_EOF'
  14250. }
  14251. # Quote evaled strings.
  14252. for var in SHELL \
  14253. ECHO \
  14254. SED \
  14255. GREP \
  14256. EGREP \
  14257. FGREP \
  14258. LD \
  14259. NM \
  14260. LN_S \
  14261. lt_SP2NL \
  14262. lt_NL2SP \
  14263. reload_flag \
  14264. OBJDUMP \
  14265. deplibs_check_method \
  14266. file_magic_cmd \
  14267. AR \
  14268. AR_FLAGS \
  14269. STRIP \
  14270. RANLIB \
  14271. CC \
  14272. CFLAGS \
  14273. compiler \
  14274. lt_cv_sys_global_symbol_pipe \
  14275. lt_cv_sys_global_symbol_to_cdecl \
  14276. lt_cv_sys_global_symbol_to_c_name_address \
  14277. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14278. lt_prog_compiler_no_builtin_flag \
  14279. lt_prog_compiler_wl \
  14280. lt_prog_compiler_pic \
  14281. lt_prog_compiler_static \
  14282. lt_cv_prog_compiler_c_o \
  14283. need_locks \
  14284. DSYMUTIL \
  14285. NMEDIT \
  14286. LIPO \
  14287. OTOOL \
  14288. OTOOL64 \
  14289. shrext_cmds \
  14290. export_dynamic_flag_spec \
  14291. whole_archive_flag_spec \
  14292. compiler_needs_object \
  14293. with_gnu_ld \
  14294. allow_undefined_flag \
  14295. no_undefined_flag \
  14296. hardcode_libdir_flag_spec \
  14297. hardcode_libdir_flag_spec_ld \
  14298. hardcode_libdir_separator \
  14299. fix_srcfile_path \
  14300. exclude_expsyms \
  14301. include_expsyms \
  14302. file_list_spec \
  14303. variables_saved_for_relink \
  14304. libname_spec \
  14305. library_names_spec \
  14306. soname_spec \
  14307. install_override_mode \
  14308. finish_eval \
  14309. old_striplib \
  14310. striplib; do
  14311. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14312. *[\\\\\\\`\\"\\\$]*)
  14313. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14314. ;;
  14315. *)
  14316. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14317. ;;
  14318. esac
  14319. done
  14320. # Double-quote double-evaled strings.
  14321. for var in reload_cmds \
  14322. old_postinstall_cmds \
  14323. old_postuninstall_cmds \
  14324. old_archive_cmds \
  14325. extract_expsyms_cmds \
  14326. old_archive_from_new_cmds \
  14327. old_archive_from_expsyms_cmds \
  14328. archive_cmds \
  14329. archive_expsym_cmds \
  14330. module_cmds \
  14331. module_expsym_cmds \
  14332. export_symbols_cmds \
  14333. prelink_cmds \
  14334. postinstall_cmds \
  14335. postuninstall_cmds \
  14336. finish_cmds \
  14337. sys_lib_search_path_spec \
  14338. sys_lib_dlsearch_path_spec; do
  14339. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  14340. *[\\\\\\\`\\"\\\$]*)
  14341. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14342. ;;
  14343. *)
  14344. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14345. ;;
  14346. esac
  14347. done
  14348. ac_aux_dir='$ac_aux_dir'
  14349. xsi_shell='$xsi_shell'
  14350. lt_shell_append='$lt_shell_append'
  14351. # See if we are running on zsh, and set the options which allow our
  14352. # commands through without removal of \ escapes INIT.
  14353. if test -n "\${ZSH_VERSION+set}" ; then
  14354. setopt NO_GLOB_SUBST
  14355. fi
  14356. PACKAGE='$PACKAGE'
  14357. VERSION='$VERSION'
  14358. TIMESTAMP='$TIMESTAMP'
  14359. RM='$RM'
  14360. ofile='$ofile'
  14361. GCC="$GCC"
  14362. CC="$CC"
  14363. acx_cv_header_stdint="$acx_cv_header_stdint"
  14364. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  14365. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  14366. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  14367. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  14368. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  14369. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  14370. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  14371. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  14372. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  14373. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  14374. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  14375. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  14376. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  14377. _ACEOF
  14378. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14379. # Handling of arguments.
  14380. for ac_config_target in $ac_config_targets
  14381. do
  14382. case $ac_config_target in
  14383. "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
  14384. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  14385. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14386. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14387. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  14388. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14389. "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
  14390. "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;;
  14391. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14392. esac
  14393. done
  14394. # If the user did not use the arguments to specify the items to instantiate,
  14395. # then the envvar interface is used. Set only those that are not.
  14396. # We use the long form for the default assignment because of an extremely
  14397. # bizarre bug on SunOS 4.1.3.
  14398. if $ac_need_defaults; then
  14399. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14400. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14401. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14402. fi
  14403. # Have a temporary directory for convenience. Make it in the build tree
  14404. # simply because there is no reason against having it here, and in addition,
  14405. # creating and moving files from /tmp can sometimes cause problems.
  14406. # Hook for its removal unless debugging.
  14407. # Note that there is a small window in which the directory will not be cleaned:
  14408. # after its creation but before its name has been assigned to `$tmp'.
  14409. $debug ||
  14410. {
  14411. tmp= ac_tmp=
  14412. trap 'exit_status=$?
  14413. : "${ac_tmp:=$tmp}"
  14414. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  14415. ' 0
  14416. trap 'as_fn_exit 1' 1 2 13 15
  14417. }
  14418. # Create a (secure) tmp directory for tmp files.
  14419. {
  14420. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14421. test -d "$tmp"
  14422. } ||
  14423. {
  14424. tmp=./conf$$-$RANDOM
  14425. (umask 077 && mkdir "$tmp")
  14426. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14427. ac_tmp=$tmp
  14428. # Set up the scripts for CONFIG_FILES section.
  14429. # No need to generate them if there are no CONFIG_FILES.
  14430. # This happens for instance with `./config.status config.h'.
  14431. if test -n "$CONFIG_FILES"; then
  14432. ac_cr=`echo X | tr X '\015'`
  14433. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14434. # But we know of no other shell where ac_cr would be empty at this
  14435. # point, so we can use a bashism as a fallback.
  14436. if test "x$ac_cr" = x; then
  14437. eval ac_cr=\$\'\\r\'
  14438. fi
  14439. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14440. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14441. ac_cs_awk_cr='\\r'
  14442. else
  14443. ac_cs_awk_cr=$ac_cr
  14444. fi
  14445. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  14446. _ACEOF
  14447. {
  14448. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14449. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14450. echo "_ACEOF"
  14451. } >conf$$subs.sh ||
  14452. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14453. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14454. ac_delim='%!_!# '
  14455. for ac_last_try in false false false false false :; do
  14456. . ./conf$$subs.sh ||
  14457. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14458. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14459. if test $ac_delim_n = $ac_delim_num; then
  14460. break
  14461. elif $ac_last_try; then
  14462. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14463. else
  14464. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14465. fi
  14466. done
  14467. rm -f conf$$subs.sh
  14468. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14469. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14470. _ACEOF
  14471. sed -n '
  14472. h
  14473. s/^/S["/; s/!.*/"]=/
  14474. p
  14475. g
  14476. s/^[^!]*!//
  14477. :repl
  14478. t repl
  14479. s/'"$ac_delim"'$//
  14480. t delim
  14481. :nl
  14482. h
  14483. s/\(.\{148\}\)..*/\1/
  14484. t more1
  14485. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14486. p
  14487. n
  14488. b repl
  14489. :more1
  14490. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14491. p
  14492. g
  14493. s/.\{148\}//
  14494. t nl
  14495. :delim
  14496. h
  14497. s/\(.\{148\}\)..*/\1/
  14498. t more2
  14499. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14500. p
  14501. b
  14502. :more2
  14503. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14504. p
  14505. g
  14506. s/.\{148\}//
  14507. t delim
  14508. ' <conf$$subs.awk | sed '
  14509. /^[^""]/{
  14510. N
  14511. s/\n//
  14512. }
  14513. ' >>$CONFIG_STATUS || ac_write_fail=1
  14514. rm -f conf$$subs.awk
  14515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14516. _ACAWK
  14517. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14518. for (key in S) S_is_set[key] = 1
  14519. FS = ""
  14520. }
  14521. {
  14522. line = $ 0
  14523. nfields = split(line, field, "@")
  14524. substed = 0
  14525. len = length(field[1])
  14526. for (i = 2; i < nfields; i++) {
  14527. key = field[i]
  14528. keylen = length(key)
  14529. if (S_is_set[key]) {
  14530. value = S[key]
  14531. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14532. len += length(value) + length(field[++i])
  14533. substed = 1
  14534. } else
  14535. len += 1 + keylen
  14536. }
  14537. print line
  14538. }
  14539. _ACAWK
  14540. _ACEOF
  14541. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14542. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14543. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14544. else
  14545. cat
  14546. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14547. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14548. _ACEOF
  14549. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14550. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14551. # trailing colons and then remove the whole line if VPATH becomes empty
  14552. # (actually we leave an empty line to preserve line numbers).
  14553. if test "x$srcdir" = x.; then
  14554. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14555. h
  14556. s///
  14557. s/^/:/
  14558. s/[ ]*$/:/
  14559. s/:\$(srcdir):/:/g
  14560. s/:\${srcdir}:/:/g
  14561. s/:@srcdir@:/:/g
  14562. s/^:*//
  14563. s/:*$//
  14564. x
  14565. s/\(=[ ]*\).*/\1/
  14566. G
  14567. s/\n//
  14568. s/^[^=]*=[ ]*$//
  14569. }'
  14570. fi
  14571. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14572. fi # test -n "$CONFIG_FILES"
  14573. # Set up the scripts for CONFIG_HEADERS section.
  14574. # No need to generate them if there are no CONFIG_HEADERS.
  14575. # This happens for instance with `./config.status Makefile'.
  14576. if test -n "$CONFIG_HEADERS"; then
  14577. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14578. BEGIN {
  14579. _ACEOF
  14580. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14581. # here-document in config.status, that substitutes the proper values into
  14582. # config.h.in to produce config.h.
  14583. # Create a delimiter string that does not exist in confdefs.h, to ease
  14584. # handling of long lines.
  14585. ac_delim='%!_!# '
  14586. for ac_last_try in false false :; do
  14587. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14588. if test -z "$ac_tt"; then
  14589. break
  14590. elif $ac_last_try; then
  14591. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14592. else
  14593. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14594. fi
  14595. done
  14596. # For the awk script, D is an array of macro values keyed by name,
  14597. # likewise P contains macro parameters if any. Preserve backslash
  14598. # newline sequences.
  14599. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14600. sed -n '
  14601. s/.\{148\}/&'"$ac_delim"'/g
  14602. t rset
  14603. :rset
  14604. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14605. t def
  14606. d
  14607. :def
  14608. s/\\$//
  14609. t bsnl
  14610. s/["\\]/\\&/g
  14611. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14612. D["\1"]=" \3"/p
  14613. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14614. d
  14615. :bsnl
  14616. s/["\\]/\\&/g
  14617. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14618. D["\1"]=" \3\\\\\\n"\\/p
  14619. t cont
  14620. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14621. t cont
  14622. d
  14623. :cont
  14624. n
  14625. s/.\{148\}/&'"$ac_delim"'/g
  14626. t clear
  14627. :clear
  14628. s/\\$//
  14629. t bsnlc
  14630. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14631. d
  14632. :bsnlc
  14633. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14634. b cont
  14635. ' <confdefs.h | sed '
  14636. s/'"$ac_delim"'/"\\\
  14637. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14638. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14639. for (key in D) D_is_set[key] = 1
  14640. FS = ""
  14641. }
  14642. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14643. line = \$ 0
  14644. split(line, arg, " ")
  14645. if (arg[1] == "#") {
  14646. defundef = arg[2]
  14647. mac1 = arg[3]
  14648. } else {
  14649. defundef = substr(arg[1], 2)
  14650. mac1 = arg[2]
  14651. }
  14652. split(mac1, mac2, "(") #)
  14653. macro = mac2[1]
  14654. prefix = substr(line, 1, index(line, defundef) - 1)
  14655. if (D_is_set[macro]) {
  14656. # Preserve the white space surrounding the "#".
  14657. print prefix "define", macro P[macro] D[macro]
  14658. next
  14659. } else {
  14660. # Replace #undef with comments. This is necessary, for example,
  14661. # in the case of _POSIX_SOURCE, which is predefined and required
  14662. # on some systems where configure will not decide to define it.
  14663. if (defundef == "undef") {
  14664. print "/*", prefix defundef, macro, "*/"
  14665. next
  14666. }
  14667. }
  14668. }
  14669. { print }
  14670. _ACAWK
  14671. _ACEOF
  14672. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14673. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14674. fi # test -n "$CONFIG_HEADERS"
  14675. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14676. shift
  14677. for ac_tag
  14678. do
  14679. case $ac_tag in
  14680. :[FHLC]) ac_mode=$ac_tag; continue;;
  14681. esac
  14682. case $ac_mode$ac_tag in
  14683. :[FHL]*:*);;
  14684. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14685. :[FH]-) ac_tag=-:-;;
  14686. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14687. esac
  14688. ac_save_IFS=$IFS
  14689. IFS=:
  14690. set x $ac_tag
  14691. IFS=$ac_save_IFS
  14692. shift
  14693. ac_file=$1
  14694. shift
  14695. case $ac_mode in
  14696. :L) ac_source=$1;;
  14697. :[FH])
  14698. ac_file_inputs=
  14699. for ac_f
  14700. do
  14701. case $ac_f in
  14702. -) ac_f="$ac_tmp/stdin";;
  14703. *) # Look for the file first in the build tree, then in the source tree
  14704. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14705. # because $ac_f cannot contain `:'.
  14706. test -f "$ac_f" ||
  14707. case $ac_f in
  14708. [\\/$]*) false;;
  14709. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14710. esac ||
  14711. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14712. esac
  14713. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14714. as_fn_append ac_file_inputs " '$ac_f'"
  14715. done
  14716. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14717. # use $as_me), people would be surprised to read:
  14718. # /* config.h. Generated by config.status. */
  14719. configure_input='Generated from '`
  14720. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14721. `' by configure.'
  14722. if test x"$ac_file" != x-; then
  14723. configure_input="$ac_file. $configure_input"
  14724. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14725. $as_echo "$as_me: creating $ac_file" >&6;}
  14726. fi
  14727. # Neutralize special characters interpreted by sed in replacement strings.
  14728. case $configure_input in #(
  14729. *\&* | *\|* | *\\* )
  14730. ac_sed_conf_input=`$as_echo "$configure_input" |
  14731. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14732. *) ac_sed_conf_input=$configure_input;;
  14733. esac
  14734. case $ac_tag in
  14735. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14736. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14737. esac
  14738. ;;
  14739. esac
  14740. ac_dir=`$as_dirname -- "$ac_file" ||
  14741. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14742. X"$ac_file" : 'X\(//\)[^/]' \| \
  14743. X"$ac_file" : 'X\(//\)$' \| \
  14744. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14745. $as_echo X"$ac_file" |
  14746. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14747. s//\1/
  14748. q
  14749. }
  14750. /^X\(\/\/\)[^/].*/{
  14751. s//\1/
  14752. q
  14753. }
  14754. /^X\(\/\/\)$/{
  14755. s//\1/
  14756. q
  14757. }
  14758. /^X\(\/\).*/{
  14759. s//\1/
  14760. q
  14761. }
  14762. s/.*/./; q'`
  14763. as_dir="$ac_dir"; as_fn_mkdir_p
  14764. ac_builddir=.
  14765. case "$ac_dir" in
  14766. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14767. *)
  14768. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14769. # A ".." for each directory in $ac_dir_suffix.
  14770. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14771. case $ac_top_builddir_sub in
  14772. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14773. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14774. esac ;;
  14775. esac
  14776. ac_abs_top_builddir=$ac_pwd
  14777. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14778. # for backward compatibility:
  14779. ac_top_builddir=$ac_top_build_prefix
  14780. case $srcdir in
  14781. .) # We are building in place.
  14782. ac_srcdir=.
  14783. ac_top_srcdir=$ac_top_builddir_sub
  14784. ac_abs_top_srcdir=$ac_pwd ;;
  14785. [\\/]* | ?:[\\/]* ) # Absolute name.
  14786. ac_srcdir=$srcdir$ac_dir_suffix;
  14787. ac_top_srcdir=$srcdir
  14788. ac_abs_top_srcdir=$srcdir ;;
  14789. *) # Relative name.
  14790. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14791. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14792. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14793. esac
  14794. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14795. case $ac_mode in
  14796. :F)
  14797. #
  14798. # CONFIG_FILE
  14799. #
  14800. case $INSTALL in
  14801. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14802. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14803. esac
  14804. ac_MKDIR_P=$MKDIR_P
  14805. case $MKDIR_P in
  14806. [\\/$]* | ?:[\\/]* ) ;;
  14807. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14808. esac
  14809. _ACEOF
  14810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14811. # If the template does not know about datarootdir, expand it.
  14812. # FIXME: This hack should be removed a few years after 2.60.
  14813. ac_datarootdir_hack=; ac_datarootdir_seen=
  14814. ac_sed_dataroot='
  14815. /datarootdir/ {
  14816. p
  14817. q
  14818. }
  14819. /@datadir@/p
  14820. /@docdir@/p
  14821. /@infodir@/p
  14822. /@localedir@/p
  14823. /@mandir@/p'
  14824. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14825. *datarootdir*) ac_datarootdir_seen=yes;;
  14826. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14828. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14829. _ACEOF
  14830. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14831. ac_datarootdir_hack='
  14832. s&@datadir@&$datadir&g
  14833. s&@docdir@&$docdir&g
  14834. s&@infodir@&$infodir&g
  14835. s&@localedir@&$localedir&g
  14836. s&@mandir@&$mandir&g
  14837. s&\\\${datarootdir}&$datarootdir&g' ;;
  14838. esac
  14839. _ACEOF
  14840. # Neutralize VPATH when `$srcdir' = `.'.
  14841. # Shell code in configure.ac might set extrasub.
  14842. # FIXME: do we really want to maintain this feature?
  14843. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14844. ac_sed_extra="$ac_vpsub
  14845. $extrasub
  14846. _ACEOF
  14847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14848. :t
  14849. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14850. s|@configure_input@|$ac_sed_conf_input|;t t
  14851. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14852. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14853. s&@srcdir@&$ac_srcdir&;t t
  14854. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14855. s&@top_srcdir@&$ac_top_srcdir&;t t
  14856. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14857. s&@builddir@&$ac_builddir&;t t
  14858. s&@abs_builddir@&$ac_abs_builddir&;t t
  14859. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14860. s&@INSTALL@&$ac_INSTALL&;t t
  14861. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14862. $ac_datarootdir_hack
  14863. "
  14864. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14865. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14866. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14867. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14868. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14869. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14871. which seems to be undefined. Please make sure it is defined" >&5
  14872. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14873. which seems to be undefined. Please make sure it is defined" >&2;}
  14874. rm -f "$ac_tmp/stdin"
  14875. case $ac_file in
  14876. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14877. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14878. esac \
  14879. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14880. ;;
  14881. :H)
  14882. #
  14883. # CONFIG_HEADER
  14884. #
  14885. if test x"$ac_file" != x-; then
  14886. {
  14887. $as_echo "/* $configure_input */" \
  14888. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14889. } >"$ac_tmp/config.h" \
  14890. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14891. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14892. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14893. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14894. else
  14895. rm -f "$ac_file"
  14896. mv "$ac_tmp/config.h" "$ac_file" \
  14897. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14898. fi
  14899. else
  14900. $as_echo "/* $configure_input */" \
  14901. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14902. || as_fn_error $? "could not create -" "$LINENO" 5
  14903. fi
  14904. # Compute "$ac_file"'s index in $config_headers.
  14905. _am_arg="$ac_file"
  14906. _am_stamp_count=1
  14907. for _am_header in $config_headers :; do
  14908. case $_am_header in
  14909. $_am_arg | $_am_arg:* )
  14910. break ;;
  14911. * )
  14912. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14913. esac
  14914. done
  14915. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14916. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14917. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14918. X"$_am_arg" : 'X\(//\)$' \| \
  14919. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14920. $as_echo X"$_am_arg" |
  14921. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14922. s//\1/
  14923. q
  14924. }
  14925. /^X\(\/\/\)[^/].*/{
  14926. s//\1/
  14927. q
  14928. }
  14929. /^X\(\/\/\)$/{
  14930. s//\1/
  14931. q
  14932. }
  14933. /^X\(\/\).*/{
  14934. s//\1/
  14935. q
  14936. }
  14937. s/.*/./; q'`/stamp-h$_am_stamp_count
  14938. ;;
  14939. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14940. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14941. ;;
  14942. esac
  14943. case $ac_file$ac_mode in
  14944. "default-1":C)
  14945. # Only add multilib support code if we just rebuilt the top-level
  14946. # Makefile.
  14947. case " $CONFIG_FILES " in
  14948. *" Makefile "*)
  14949. ac_file=Makefile . ${multi_basedir}/config-ml.in
  14950. ;;
  14951. esac ;;
  14952. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14953. # Older Autoconf quotes --file arguments for eval, but not when files
  14954. # are listed without --file. Let's play safe and only enable the eval
  14955. # if we detect the quoting.
  14956. case $CONFIG_FILES in
  14957. *\'*) eval set x "$CONFIG_FILES" ;;
  14958. *) set x $CONFIG_FILES ;;
  14959. esac
  14960. shift
  14961. for mf
  14962. do
  14963. # Strip MF so we end up with the name of the file.
  14964. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14965. # Check whether this is an Automake generated Makefile or not.
  14966. # We used to match only the files named 'Makefile.in', but
  14967. # some people rename them; so instead we look at the file content.
  14968. # Grep'ing the first line is not enough: some people post-process
  14969. # each Makefile.in and add a new line on top of each file to say so.
  14970. # Grep'ing the whole file is not good either: AIX grep has a line
  14971. # limit of 2048, but all sed's we know have understand at least 4000.
  14972. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14973. dirpart=`$as_dirname -- "$mf" ||
  14974. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14975. X"$mf" : 'X\(//\)[^/]' \| \
  14976. X"$mf" : 'X\(//\)$' \| \
  14977. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14978. $as_echo X"$mf" |
  14979. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14980. s//\1/
  14981. q
  14982. }
  14983. /^X\(\/\/\)[^/].*/{
  14984. s//\1/
  14985. q
  14986. }
  14987. /^X\(\/\/\)$/{
  14988. s//\1/
  14989. q
  14990. }
  14991. /^X\(\/\).*/{
  14992. s//\1/
  14993. q
  14994. }
  14995. s/.*/./; q'`
  14996. else
  14997. continue
  14998. fi
  14999. # Extract the definition of DEPDIR, am__include, and am__quote
  15000. # from the Makefile without running 'make'.
  15001. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15002. test -z "$DEPDIR" && continue
  15003. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15004. test -z "$am__include" && continue
  15005. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15006. # Find all dependency output files, they are included files with
  15007. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15008. # simplest approach to changing $(DEPDIR) to its actual value in the
  15009. # expansion.
  15010. for file in `sed -n "
  15011. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15012. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  15013. # Make sure the directory exists.
  15014. test -f "$dirpart/$file" && continue
  15015. fdir=`$as_dirname -- "$file" ||
  15016. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15017. X"$file" : 'X\(//\)[^/]' \| \
  15018. X"$file" : 'X\(//\)$' \| \
  15019. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15020. $as_echo X"$file" |
  15021. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15022. s//\1/
  15023. q
  15024. }
  15025. /^X\(\/\/\)[^/].*/{
  15026. s//\1/
  15027. q
  15028. }
  15029. /^X\(\/\/\)$/{
  15030. s//\1/
  15031. q
  15032. }
  15033. /^X\(\/\).*/{
  15034. s//\1/
  15035. q
  15036. }
  15037. s/.*/./; q'`
  15038. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15039. # echo "creating $dirpart/$file"
  15040. echo '# dummy' > "$dirpart/$file"
  15041. done
  15042. done
  15043. }
  15044. ;;
  15045. "libtool":C)
  15046. # See if we are running on zsh, and set the options which allow our
  15047. # commands through without removal of \ escapes.
  15048. if test -n "${ZSH_VERSION+set}" ; then
  15049. setopt NO_GLOB_SUBST
  15050. fi
  15051. cfgfile="${ofile}T"
  15052. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15053. $RM "$cfgfile"
  15054. cat <<_LT_EOF >> "$cfgfile"
  15055. #! $SHELL
  15056. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15057. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15058. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15059. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15060. #
  15061. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15062. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15063. # Written by Gordon Matzigkeit, 1996
  15064. #
  15065. # This file is part of GNU Libtool.
  15066. #
  15067. # GNU Libtool is free software; you can redistribute it and/or
  15068. # modify it under the terms of the GNU General Public License as
  15069. # published by the Free Software Foundation; either version 2 of
  15070. # the License, or (at your option) any later version.
  15071. #
  15072. # As a special exception to the GNU General Public License,
  15073. # if you distribute this file as part of a program or library that
  15074. # is built using GNU Libtool, you may include this file under the
  15075. # same distribution terms that you use for the rest of that program.
  15076. #
  15077. # GNU Libtool is distributed in the hope that it will be useful,
  15078. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15079. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15080. # GNU General Public License for more details.
  15081. #
  15082. # You should have received a copy of the GNU General Public License
  15083. # along with GNU Libtool; see the file COPYING. If not, a copy
  15084. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15085. # obtained by writing to the Free Software Foundation, Inc.,
  15086. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15087. # The names of the tagged configurations supported by this script.
  15088. available_tags=""
  15089. # ### BEGIN LIBTOOL CONFIG
  15090. # Which release of libtool.m4 was used?
  15091. macro_version=$macro_version
  15092. macro_revision=$macro_revision
  15093. # Whether or not to build shared libraries.
  15094. build_libtool_libs=$enable_shared
  15095. # Whether or not to build static libraries.
  15096. build_old_libs=$enable_static
  15097. # What type of objects to build.
  15098. pic_mode=$pic_mode
  15099. # Whether or not to optimize for fast installation.
  15100. fast_install=$enable_fast_install
  15101. # Shell to use when invoking shell scripts.
  15102. SHELL=$lt_SHELL
  15103. # An echo program that protects backslashes.
  15104. ECHO=$lt_ECHO
  15105. # The host system.
  15106. host_alias=$host_alias
  15107. host=$host
  15108. host_os=$host_os
  15109. # The build system.
  15110. build_alias=$build_alias
  15111. build=$build
  15112. build_os=$build_os
  15113. # A sed program that does not truncate output.
  15114. SED=$lt_SED
  15115. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15116. Xsed="\$SED -e 1s/^X//"
  15117. # A grep program that handles long lines.
  15118. GREP=$lt_GREP
  15119. # An ERE matcher.
  15120. EGREP=$lt_EGREP
  15121. # A literal string matcher.
  15122. FGREP=$lt_FGREP
  15123. # A BSD- or MS-compatible name lister.
  15124. NM=$lt_NM
  15125. # Whether we need soft or hard links.
  15126. LN_S=$lt_LN_S
  15127. # What is the maximum length of a command?
  15128. max_cmd_len=$max_cmd_len
  15129. # Object file suffix (normally "o").
  15130. objext=$ac_objext
  15131. # Executable file suffix (normally "").
  15132. exeext=$exeext
  15133. # whether the shell understands "unset".
  15134. lt_unset=$lt_unset
  15135. # turn spaces into newlines.
  15136. SP2NL=$lt_lt_SP2NL
  15137. # turn newlines into spaces.
  15138. NL2SP=$lt_lt_NL2SP
  15139. # An object symbol dumper.
  15140. OBJDUMP=$lt_OBJDUMP
  15141. # Method to check whether dependent libraries are shared objects.
  15142. deplibs_check_method=$lt_deplibs_check_method
  15143. # Command to use when deplibs_check_method == "file_magic".
  15144. file_magic_cmd=$lt_file_magic_cmd
  15145. # The archiver.
  15146. AR=$lt_AR
  15147. AR_FLAGS=$lt_AR_FLAGS
  15148. # A symbol stripping program.
  15149. STRIP=$lt_STRIP
  15150. # Commands used to install an old-style archive.
  15151. RANLIB=$lt_RANLIB
  15152. old_postinstall_cmds=$lt_old_postinstall_cmds
  15153. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15154. # Whether to use a lock for old archive extraction.
  15155. lock_old_archive_extraction=$lock_old_archive_extraction
  15156. # A C compiler.
  15157. LTCC=$lt_CC
  15158. # LTCC compiler flags.
  15159. LTCFLAGS=$lt_CFLAGS
  15160. # Take the output of nm and produce a listing of raw symbols and C names.
  15161. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15162. # Transform the output of nm in a proper C declaration.
  15163. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15164. # Transform the output of nm in a C name address pair.
  15165. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15166. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15167. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15168. # The name of the directory that contains temporary libtool files.
  15169. objdir=$objdir
  15170. # Used to examine libraries when file_magic_cmd begins with "file".
  15171. MAGIC_CMD=$MAGIC_CMD
  15172. # Must we lock files when doing compilation?
  15173. need_locks=$lt_need_locks
  15174. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15175. DSYMUTIL=$lt_DSYMUTIL
  15176. # Tool to change global to local symbols on Mac OS X.
  15177. NMEDIT=$lt_NMEDIT
  15178. # Tool to manipulate fat objects and archives on Mac OS X.
  15179. LIPO=$lt_LIPO
  15180. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15181. OTOOL=$lt_OTOOL
  15182. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15183. OTOOL64=$lt_OTOOL64
  15184. # Old archive suffix (normally "a").
  15185. libext=$libext
  15186. # Shared library suffix (normally ".so").
  15187. shrext_cmds=$lt_shrext_cmds
  15188. # The commands to extract the exported symbol list from a shared archive.
  15189. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15190. # Variables whose values should be saved in libtool wrapper scripts and
  15191. # restored at link time.
  15192. variables_saved_for_relink=$lt_variables_saved_for_relink
  15193. # Do we need the "lib" prefix for modules?
  15194. need_lib_prefix=$need_lib_prefix
  15195. # Do we need a version for libraries?
  15196. need_version=$need_version
  15197. # Library versioning type.
  15198. version_type=$version_type
  15199. # Shared library runtime path variable.
  15200. runpath_var=$runpath_var
  15201. # Shared library path variable.
  15202. shlibpath_var=$shlibpath_var
  15203. # Is shlibpath searched before the hard-coded library search path?
  15204. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15205. # Format of library name prefix.
  15206. libname_spec=$lt_libname_spec
  15207. # List of archive names. First name is the real one, the rest are links.
  15208. # The last name is the one that the linker finds with -lNAME
  15209. library_names_spec=$lt_library_names_spec
  15210. # The coded name of the library, if different from the real name.
  15211. soname_spec=$lt_soname_spec
  15212. # Permission mode override for installation of shared libraries.
  15213. install_override_mode=$lt_install_override_mode
  15214. # Command to use after installation of a shared archive.
  15215. postinstall_cmds=$lt_postinstall_cmds
  15216. # Command to use after uninstallation of a shared archive.
  15217. postuninstall_cmds=$lt_postuninstall_cmds
  15218. # Commands used to finish a libtool library installation in a directory.
  15219. finish_cmds=$lt_finish_cmds
  15220. # As "finish_cmds", except a single script fragment to be evaled but
  15221. # not shown.
  15222. finish_eval=$lt_finish_eval
  15223. # Whether we should hardcode library paths into libraries.
  15224. hardcode_into_libs=$hardcode_into_libs
  15225. # Compile-time system search path for libraries.
  15226. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15227. # Run-time system search path for libraries.
  15228. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15229. # Whether dlopen is supported.
  15230. dlopen_support=$enable_dlopen
  15231. # Whether dlopen of programs is supported.
  15232. dlopen_self=$enable_dlopen_self
  15233. # Whether dlopen of statically linked programs is supported.
  15234. dlopen_self_static=$enable_dlopen_self_static
  15235. # Commands to strip libraries.
  15236. old_striplib=$lt_old_striplib
  15237. striplib=$lt_striplib
  15238. # The linker used to build libraries.
  15239. LD=$lt_LD
  15240. # How to create reloadable object files.
  15241. reload_flag=$lt_reload_flag
  15242. reload_cmds=$lt_reload_cmds
  15243. # Commands used to build an old-style archive.
  15244. old_archive_cmds=$lt_old_archive_cmds
  15245. # A language specific compiler.
  15246. CC=$lt_compiler
  15247. # Is the compiler the GNU compiler?
  15248. with_gcc=$GCC
  15249. # Compiler flag to turn off builtin functions.
  15250. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15251. # How to pass a linker flag through the compiler.
  15252. wl=$lt_lt_prog_compiler_wl
  15253. # Additional compiler flags for building library objects.
  15254. pic_flag=$lt_lt_prog_compiler_pic
  15255. # Compiler flag to prevent dynamic linking.
  15256. link_static_flag=$lt_lt_prog_compiler_static
  15257. # Does compiler simultaneously support -c and -o options?
  15258. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15259. # Whether or not to add -lc for building shared libraries.
  15260. build_libtool_need_lc=$archive_cmds_need_lc
  15261. # Whether or not to disallow shared libs when runtime libs are static.
  15262. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15263. # Compiler flag to allow reflexive dlopens.
  15264. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15265. # Compiler flag to generate shared objects directly from archives.
  15266. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15267. # Whether the compiler copes with passing no objects directly.
  15268. compiler_needs_object=$lt_compiler_needs_object
  15269. # Create an old-style archive from a shared archive.
  15270. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15271. # Create a temporary old-style archive to link instead of a shared archive.
  15272. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15273. # Commands used to build a shared archive.
  15274. archive_cmds=$lt_archive_cmds
  15275. archive_expsym_cmds=$lt_archive_expsym_cmds
  15276. # Commands used to build a loadable module if different from building
  15277. # a shared archive.
  15278. module_cmds=$lt_module_cmds
  15279. module_expsym_cmds=$lt_module_expsym_cmds
  15280. # Whether we are building with GNU ld or not.
  15281. with_gnu_ld=$lt_with_gnu_ld
  15282. # Flag that allows shared libraries with undefined symbols to be built.
  15283. allow_undefined_flag=$lt_allow_undefined_flag
  15284. # Flag that enforces no undefined symbols.
  15285. no_undefined_flag=$lt_no_undefined_flag
  15286. # Flag to hardcode \$libdir into a binary during linking.
  15287. # This must work even if \$libdir does not exist
  15288. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15289. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15290. # during linking. This must work even if \$libdir does not exist.
  15291. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15292. # Whether we need a single "-rpath" flag with a separated argument.
  15293. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15294. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15295. # DIR into the resulting binary.
  15296. hardcode_direct=$hardcode_direct
  15297. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15298. # DIR into the resulting binary and the resulting library dependency is
  15299. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15300. # library is relocated.
  15301. hardcode_direct_absolute=$hardcode_direct_absolute
  15302. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15303. # into the resulting binary.
  15304. hardcode_minus_L=$hardcode_minus_L
  15305. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15306. # into the resulting binary.
  15307. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15308. # Set to "yes" if building a shared library automatically hardcodes DIR
  15309. # into the library and all subsequent libraries and executables linked
  15310. # against it.
  15311. hardcode_automatic=$hardcode_automatic
  15312. # Set to yes if linker adds runtime paths of dependent libraries
  15313. # to runtime path list.
  15314. inherit_rpath=$inherit_rpath
  15315. # Whether libtool must link a program against all its dependency libraries.
  15316. link_all_deplibs=$link_all_deplibs
  15317. # Fix the shell variable \$srcfile for the compiler.
  15318. fix_srcfile_path=$lt_fix_srcfile_path
  15319. # Set to "yes" if exported symbols are required.
  15320. always_export_symbols=$always_export_symbols
  15321. # The commands to list exported symbols.
  15322. export_symbols_cmds=$lt_export_symbols_cmds
  15323. # Symbols that should not be listed in the preloaded symbols.
  15324. exclude_expsyms=$lt_exclude_expsyms
  15325. # Symbols that must always be exported.
  15326. include_expsyms=$lt_include_expsyms
  15327. # Commands necessary for linking programs (against libraries) with templates.
  15328. prelink_cmds=$lt_prelink_cmds
  15329. # Specify filename containing input files.
  15330. file_list_spec=$lt_file_list_spec
  15331. # How to hardcode a shared library path into an executable.
  15332. hardcode_action=$hardcode_action
  15333. # ### END LIBTOOL CONFIG
  15334. _LT_EOF
  15335. case $host_os in
  15336. aix3*)
  15337. cat <<\_LT_EOF >> "$cfgfile"
  15338. # AIX sometimes has problems with the GCC collect2 program. For some
  15339. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15340. # vanish in a puff of smoke.
  15341. if test "X${COLLECT_NAMES+set}" != Xset; then
  15342. COLLECT_NAMES=
  15343. export COLLECT_NAMES
  15344. fi
  15345. _LT_EOF
  15346. ;;
  15347. esac
  15348. ltmain="$ac_aux_dir/ltmain.sh"
  15349. # We use sed instead of cat because bash on DJGPP gets confused if
  15350. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15351. # text mode, it properly converts lines to CR/LF. This bash problem
  15352. # is reportedly fixed, but why not run on old versions too?
  15353. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15354. || (rm -f "$cfgfile"; exit 1)
  15355. case $xsi_shell in
  15356. yes)
  15357. cat << \_LT_EOF >> "$cfgfile"
  15358. # func_dirname file append nondir_replacement
  15359. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15360. # otherwise set result to NONDIR_REPLACEMENT.
  15361. func_dirname ()
  15362. {
  15363. case ${1} in
  15364. */*) func_dirname_result="${1%/*}${2}" ;;
  15365. * ) func_dirname_result="${3}" ;;
  15366. esac
  15367. }
  15368. # func_basename file
  15369. func_basename ()
  15370. {
  15371. func_basename_result="${1##*/}"
  15372. }
  15373. # func_dirname_and_basename file append nondir_replacement
  15374. # perform func_basename and func_dirname in a single function
  15375. # call:
  15376. # dirname: Compute the dirname of FILE. If nonempty,
  15377. # add APPEND to the result, otherwise set result
  15378. # to NONDIR_REPLACEMENT.
  15379. # value returned in "$func_dirname_result"
  15380. # basename: Compute filename of FILE.
  15381. # value retuned in "$func_basename_result"
  15382. # Implementation must be kept synchronized with func_dirname
  15383. # and func_basename. For efficiency, we do not delegate to
  15384. # those functions but instead duplicate the functionality here.
  15385. func_dirname_and_basename ()
  15386. {
  15387. case ${1} in
  15388. */*) func_dirname_result="${1%/*}${2}" ;;
  15389. * ) func_dirname_result="${3}" ;;
  15390. esac
  15391. func_basename_result="${1##*/}"
  15392. }
  15393. # func_stripname prefix suffix name
  15394. # strip PREFIX and SUFFIX off of NAME.
  15395. # PREFIX and SUFFIX must not contain globbing or regex special
  15396. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15397. # dot (in which case that matches only a dot).
  15398. func_stripname ()
  15399. {
  15400. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15401. # positional parameters, so assign one to ordinary parameter first.
  15402. func_stripname_result=${3}
  15403. func_stripname_result=${func_stripname_result#"${1}"}
  15404. func_stripname_result=${func_stripname_result%"${2}"}
  15405. }
  15406. # func_opt_split
  15407. func_opt_split ()
  15408. {
  15409. func_opt_split_opt=${1%%=*}
  15410. func_opt_split_arg=${1#*=}
  15411. }
  15412. # func_lo2o object
  15413. func_lo2o ()
  15414. {
  15415. case ${1} in
  15416. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15417. *) func_lo2o_result=${1} ;;
  15418. esac
  15419. }
  15420. # func_xform libobj-or-source
  15421. func_xform ()
  15422. {
  15423. func_xform_result=${1%.*}.lo
  15424. }
  15425. # func_arith arithmetic-term...
  15426. func_arith ()
  15427. {
  15428. func_arith_result=$(( $* ))
  15429. }
  15430. # func_len string
  15431. # STRING may not start with a hyphen.
  15432. func_len ()
  15433. {
  15434. func_len_result=${#1}
  15435. }
  15436. _LT_EOF
  15437. ;;
  15438. *) # Bourne compatible functions.
  15439. cat << \_LT_EOF >> "$cfgfile"
  15440. # func_dirname file append nondir_replacement
  15441. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15442. # otherwise set result to NONDIR_REPLACEMENT.
  15443. func_dirname ()
  15444. {
  15445. # Extract subdirectory from the argument.
  15446. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  15447. if test "X$func_dirname_result" = "X${1}"; then
  15448. func_dirname_result="${3}"
  15449. else
  15450. func_dirname_result="$func_dirname_result${2}"
  15451. fi
  15452. }
  15453. # func_basename file
  15454. func_basename ()
  15455. {
  15456. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  15457. }
  15458. # func_stripname prefix suffix name
  15459. # strip PREFIX and SUFFIX off of NAME.
  15460. # PREFIX and SUFFIX must not contain globbing or regex special
  15461. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15462. # dot (in which case that matches only a dot).
  15463. # func_strip_suffix prefix name
  15464. func_stripname ()
  15465. {
  15466. case ${2} in
  15467. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  15468. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  15469. esac
  15470. }
  15471. # sed scripts:
  15472. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15473. my_sed_long_arg='1s/^-[^=]*=//'
  15474. # func_opt_split
  15475. func_opt_split ()
  15476. {
  15477. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  15478. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  15479. }
  15480. # func_lo2o object
  15481. func_lo2o ()
  15482. {
  15483. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  15484. }
  15485. # func_xform libobj-or-source
  15486. func_xform ()
  15487. {
  15488. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  15489. }
  15490. # func_arith arithmetic-term...
  15491. func_arith ()
  15492. {
  15493. func_arith_result=`expr "$@"`
  15494. }
  15495. # func_len string
  15496. # STRING may not start with a hyphen.
  15497. func_len ()
  15498. {
  15499. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15500. }
  15501. _LT_EOF
  15502. esac
  15503. case $lt_shell_append in
  15504. yes)
  15505. cat << \_LT_EOF >> "$cfgfile"
  15506. # func_append var value
  15507. # Append VALUE to the end of shell variable VAR.
  15508. func_append ()
  15509. {
  15510. eval "$1+=\$2"
  15511. }
  15512. _LT_EOF
  15513. ;;
  15514. *)
  15515. cat << \_LT_EOF >> "$cfgfile"
  15516. # func_append var value
  15517. # Append VALUE to the end of shell variable VAR.
  15518. func_append ()
  15519. {
  15520. eval "$1=\$$1\$2"
  15521. }
  15522. _LT_EOF
  15523. ;;
  15524. esac
  15525. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15526. || (rm -f "$cfgfile"; exit 1)
  15527. mv -f "$cfgfile" "$ofile" ||
  15528. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15529. chmod +x "$ofile"
  15530. ;;
  15531. "gstdint.h":C)
  15532. if test "$GCC" = yes; then
  15533. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  15534. else
  15535. echo "/* generated for $CC */" > tmp-stdint.h
  15536. fi
  15537. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15538. #ifndef GCC_GENERATED_STDINT_H
  15539. #define GCC_GENERATED_STDINT_H 1
  15540. #include <sys/types.h>
  15541. EOF
  15542. if test "$acx_cv_header_stdint" != stdint.h; then
  15543. echo "#include <stddef.h>" >> tmp-stdint.h
  15544. fi
  15545. if test "$acx_cv_header_stdint" != stddef.h; then
  15546. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  15547. fi
  15548. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15549. /* glibc uses these symbols as guards to prevent redefinitions. */
  15550. #ifdef __int8_t_defined
  15551. #define _INT8_T
  15552. #define _INT16_T
  15553. #define _INT32_T
  15554. #endif
  15555. #ifdef __uint32_t_defined
  15556. #define _UINT32_T
  15557. #endif
  15558. EOF
  15559. # ----------------- done header, emit basic int types -------------
  15560. if test "$acx_cv_header_stdint" = stddef.h; then
  15561. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15562. #ifndef _UINT8_T
  15563. #define _UINT8_T
  15564. #ifndef __uint8_t_defined
  15565. #define __uint8_t_defined
  15566. #ifndef uint8_t
  15567. typedef unsigned $acx_cv_type_int8_t uint8_t;
  15568. #endif
  15569. #endif
  15570. #endif
  15571. #ifndef _UINT16_T
  15572. #define _UINT16_T
  15573. #ifndef __uint16_t_defined
  15574. #define __uint16_t_defined
  15575. #ifndef uint16_t
  15576. typedef unsigned $acx_cv_type_int16_t uint16_t;
  15577. #endif
  15578. #endif
  15579. #endif
  15580. #ifndef _UINT32_T
  15581. #define _UINT32_T
  15582. #ifndef __uint32_t_defined
  15583. #define __uint32_t_defined
  15584. #ifndef uint32_t
  15585. typedef unsigned $acx_cv_type_int32_t uint32_t;
  15586. #endif
  15587. #endif
  15588. #endif
  15589. #ifndef _INT8_T
  15590. #define _INT8_T
  15591. #ifndef __int8_t_defined
  15592. #define __int8_t_defined
  15593. #ifndef int8_t
  15594. typedef $acx_cv_type_int8_t int8_t;
  15595. #endif
  15596. #endif
  15597. #endif
  15598. #ifndef _INT16_T
  15599. #define _INT16_T
  15600. #ifndef __int16_t_defined
  15601. #define __int16_t_defined
  15602. #ifndef int16_t
  15603. typedef $acx_cv_type_int16_t int16_t;
  15604. #endif
  15605. #endif
  15606. #endif
  15607. #ifndef _INT32_T
  15608. #define _INT32_T
  15609. #ifndef __int32_t_defined
  15610. #define __int32_t_defined
  15611. #ifndef int32_t
  15612. typedef $acx_cv_type_int32_t int32_t;
  15613. #endif
  15614. #endif
  15615. #endif
  15616. EOF
  15617. elif test "$ac_cv_type_u_int32_t" = yes; then
  15618. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15619. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  15620. #ifndef _INT8_T
  15621. #define _INT8_T
  15622. #endif
  15623. #ifndef _INT16_T
  15624. #define _INT16_T
  15625. #endif
  15626. #ifndef _INT32_T
  15627. #define _INT32_T
  15628. #endif
  15629. #ifndef _UINT8_T
  15630. #define _UINT8_T
  15631. #ifndef __uint8_t_defined
  15632. #define __uint8_t_defined
  15633. #ifndef uint8_t
  15634. typedef u_int8_t uint8_t;
  15635. #endif
  15636. #endif
  15637. #endif
  15638. #ifndef _UINT16_T
  15639. #define _UINT16_T
  15640. #ifndef __uint16_t_defined
  15641. #define __uint16_t_defined
  15642. #ifndef uint16_t
  15643. typedef u_int16_t uint16_t;
  15644. #endif
  15645. #endif
  15646. #endif
  15647. #ifndef _UINT32_T
  15648. #define _UINT32_T
  15649. #ifndef __uint32_t_defined
  15650. #define __uint32_t_defined
  15651. #ifndef uint32_t
  15652. typedef u_int32_t uint32_t;
  15653. #endif
  15654. #endif
  15655. #endif
  15656. EOF
  15657. else
  15658. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15659. /* Some systems have guard macros to prevent redefinitions, define them. */
  15660. #ifndef _INT8_T
  15661. #define _INT8_T
  15662. #endif
  15663. #ifndef _INT16_T
  15664. #define _INT16_T
  15665. #endif
  15666. #ifndef _INT32_T
  15667. #define _INT32_T
  15668. #endif
  15669. #ifndef _UINT8_T
  15670. #define _UINT8_T
  15671. #endif
  15672. #ifndef _UINT16_T
  15673. #define _UINT16_T
  15674. #endif
  15675. #ifndef _UINT32_T
  15676. #define _UINT32_T
  15677. #endif
  15678. EOF
  15679. fi
  15680. # ------------- done basic int types, emit int64_t types ------------
  15681. if test "$ac_cv_type_uint64_t" = yes; then
  15682. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15683. /* system headers have good uint64_t and int64_t */
  15684. #ifndef _INT64_T
  15685. #define _INT64_T
  15686. #endif
  15687. #ifndef _UINT64_T
  15688. #define _UINT64_T
  15689. #endif
  15690. EOF
  15691. elif test "$ac_cv_type_u_int64_t" = yes; then
  15692. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15693. /* system headers have an u_int64_t (and int64_t) */
  15694. #ifndef _INT64_T
  15695. #define _INT64_T
  15696. #endif
  15697. #ifndef _UINT64_T
  15698. #define _UINT64_T
  15699. #ifndef __uint64_t_defined
  15700. #define __uint64_t_defined
  15701. #ifndef uint64_t
  15702. typedef u_int64_t uint64_t;
  15703. #endif
  15704. #endif
  15705. #endif
  15706. EOF
  15707. elif test -n "$acx_cv_type_int64_t"; then
  15708. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15709. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  15710. #ifndef _INT64_T
  15711. #define _INT64_T
  15712. #ifndef int64_t
  15713. typedef $acx_cv_type_int64_t int64_t;
  15714. #endif
  15715. #endif
  15716. #ifndef _UINT64_T
  15717. #define _UINT64_T
  15718. #ifndef __uint64_t_defined
  15719. #define __uint64_t_defined
  15720. #ifndef uint64_t
  15721. typedef unsigned $acx_cv_type_int64_t uint64_t;
  15722. #endif
  15723. #endif
  15724. #endif
  15725. EOF
  15726. else
  15727. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15728. /* some common heuristics for int64_t, using compiler-specific tests */
  15729. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  15730. #ifndef _INT64_T
  15731. #define _INT64_T
  15732. #ifndef __int64_t_defined
  15733. #ifndef int64_t
  15734. typedef long long int64_t;
  15735. #endif
  15736. #endif
  15737. #endif
  15738. #ifndef _UINT64_T
  15739. #define _UINT64_T
  15740. #ifndef uint64_t
  15741. typedef unsigned long long uint64_t;
  15742. #endif
  15743. #endif
  15744. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  15745. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  15746. does not implement __extension__. But that compiler doesn't define
  15747. __GNUC_MINOR__. */
  15748. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  15749. # define __extension__
  15750. # endif
  15751. # ifndef _INT64_T
  15752. # define _INT64_T
  15753. # ifndef int64_t
  15754. __extension__ typedef long long int64_t;
  15755. # endif
  15756. # endif
  15757. # ifndef _UINT64_T
  15758. # define _UINT64_T
  15759. # ifndef uint64_t
  15760. __extension__ typedef unsigned long long uint64_t;
  15761. # endif
  15762. # endif
  15763. #elif !defined __STRICT_ANSI__
  15764. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  15765. # ifndef _INT64_T
  15766. # define _INT64_T
  15767. # ifndef int64_t
  15768. typedef __int64 int64_t;
  15769. # endif
  15770. # endif
  15771. # ifndef _UINT64_T
  15772. # define _UINT64_T
  15773. # ifndef uint64_t
  15774. typedef unsigned __int64 uint64_t;
  15775. # endif
  15776. # endif
  15777. # endif /* compiler */
  15778. #endif /* ANSI version */
  15779. EOF
  15780. fi
  15781. # ------------- done int64_t types, emit intptr types ------------
  15782. if test "$ac_cv_type_uintptr_t" != yes; then
  15783. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15784. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  15785. #ifndef __uintptr_t_defined
  15786. #ifndef uintptr_t
  15787. typedef u$acx_cv_type_intptr_t uintptr_t;
  15788. #endif
  15789. #endif
  15790. #ifndef __intptr_t_defined
  15791. #ifndef intptr_t
  15792. typedef $acx_cv_type_intptr_t intptr_t;
  15793. #endif
  15794. #endif
  15795. EOF
  15796. fi
  15797. # ------------- done intptr types, emit int_least types ------------
  15798. if test "$ac_cv_type_int_least32_t" != yes; then
  15799. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15800. /* Define int_least types */
  15801. typedef int8_t int_least8_t;
  15802. typedef int16_t int_least16_t;
  15803. typedef int32_t int_least32_t;
  15804. #ifdef _INT64_T
  15805. typedef int64_t int_least64_t;
  15806. #endif
  15807. typedef uint8_t uint_least8_t;
  15808. typedef uint16_t uint_least16_t;
  15809. typedef uint32_t uint_least32_t;
  15810. #ifdef _UINT64_T
  15811. typedef uint64_t uint_least64_t;
  15812. #endif
  15813. EOF
  15814. fi
  15815. # ------------- done intptr types, emit int_fast types ------------
  15816. if test "$ac_cv_type_int_fast32_t" != yes; then
  15817. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15818. /* Define int_fast types. short is often slow */
  15819. typedef int8_t int_fast8_t;
  15820. typedef int int_fast16_t;
  15821. typedef int32_t int_fast32_t;
  15822. #ifdef _INT64_T
  15823. typedef int64_t int_fast64_t;
  15824. #endif
  15825. typedef uint8_t uint_fast8_t;
  15826. typedef unsigned int uint_fast16_t;
  15827. typedef uint32_t uint_fast32_t;
  15828. #ifdef _UINT64_T
  15829. typedef uint64_t uint_fast64_t;
  15830. #endif
  15831. EOF
  15832. fi
  15833. if test "$ac_cv_type_uintmax_t" != yes; then
  15834. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15835. /* Define intmax based on what we found */
  15836. #ifndef intmax_t
  15837. #ifdef _INT64_T
  15838. typedef int64_t intmax_t;
  15839. #else
  15840. typedef long intmax_t;
  15841. #endif
  15842. #endif
  15843. #ifndef uintmax_t
  15844. #ifdef _UINT64_T
  15845. typedef uint64_t uintmax_t;
  15846. #else
  15847. typedef unsigned long uintmax_t;
  15848. #endif
  15849. #endif
  15850. EOF
  15851. fi
  15852. sed 's/^ *//' >> tmp-stdint.h <<EOF
  15853. #endif /* GCC_GENERATED_STDINT_H */
  15854. EOF
  15855. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  15856. rm -f tmp-stdint.h
  15857. else
  15858. mv -f tmp-stdint.h gstdint.h
  15859. fi
  15860. ;;
  15861. esac
  15862. done # for ac_tag
  15863. as_fn_exit 0
  15864. _ACEOF
  15865. ac_clean_files=$ac_clean_files_save
  15866. test $ac_write_fail = 0 ||
  15867. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15868. # configure is writing to config.log, and then calls config.status.
  15869. # config.status does its own redirection, appending to config.log.
  15870. # Unfortunately, on DOS this fails, as config.log is still kept open
  15871. # by configure, so config.status won't be able to write to it; its
  15872. # output is simply discarded. So we exec the FD to /dev/null,
  15873. # effectively closing config.log, so it can be properly (re)opened and
  15874. # appended to by config.status. When coming back to configure, we
  15875. # need to make the FD available again.
  15876. if test "$no_create" != yes; then
  15877. ac_cs_success=:
  15878. ac_config_status_args=
  15879. test "$silent" = yes &&
  15880. ac_config_status_args="$ac_config_status_args --quiet"
  15881. exec 5>/dev/null
  15882. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15883. exec 5>>config.log
  15884. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15885. # would make configure fail if this is the last instruction.
  15886. $ac_cs_success || as_fn_exit 1
  15887. fi
  15888. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15890. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15891. fi