configure 474 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for package-unused version-unused.
  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 \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='package-unused'
  539. PACKAGE_TARNAME='libbacktrace'
  540. PACKAGE_VERSION='version-unused'
  541. PACKAGE_STRING='package-unused version-unused'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="backtrace.h"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. NATIVE_FALSE
  585. NATIVE_TRUE
  586. HAVE_LIBLZMA_FALSE
  587. HAVE_LIBLZMA_TRUE
  588. HAVE_MINIDEBUG_FALSE
  589. HAVE_MINIDEBUG_TRUE
  590. HAVE_COMM_FALSE
  591. HAVE_COMM_TRUE
  592. COMM
  593. HAVE_XZ_FALSE
  594. HAVE_XZ_TRUE
  595. XZ
  596. USE_DSYMUTIL_FALSE
  597. USE_DSYMUTIL_TRUE
  598. HAVE_OBJCOPY_DEBUGLINK_FALSE
  599. HAVE_OBJCOPY_DEBUGLINK_TRUE
  600. READELF
  601. OBJCOPY
  602. HAVE_COMPRESSED_DEBUG_FALSE
  603. HAVE_COMPRESSED_DEBUG_TRUE
  604. HAVE_ZLIB_FALSE
  605. HAVE_ZLIB_TRUE
  606. HAVE_DWARF5_FALSE
  607. HAVE_DWARF5_TRUE
  608. HAVE_PTHREAD_FALSE
  609. HAVE_PTHREAD_TRUE
  610. PTHREAD_CFLAGS
  611. CLOCK_GETTIME_LINK
  612. BACKTRACE_USES_MALLOC
  613. ALLOC_FILE
  614. VIEW_FILE
  615. BACKTRACE_SUPPORTS_DATA
  616. BACKTRACE_SUPPORTED
  617. HAVE_ELF_FALSE
  618. HAVE_ELF_TRUE
  619. FORMAT_FILE
  620. BACKTRACE_SUPPORTS_THREADS
  621. CET_HOST_FLAGS
  622. PIC_FLAG
  623. WARN_FLAGS
  624. EXTRA_FLAGS
  625. BACKTRACE_FILE
  626. OTOOL64
  627. OTOOL
  628. LIPO
  629. NMEDIT
  630. DSYMUTIL
  631. AR
  632. OBJDUMP
  633. LN_S
  634. NM
  635. ac_ct_DUMPBIN
  636. DUMPBIN
  637. LD
  638. FGREP
  639. SED
  640. LIBTOOL
  641. HAVE_DWZ_FALSE
  642. HAVE_DWZ_TRUE
  643. DWZ
  644. RANLIB
  645. MAINT
  646. MAINTAINER_MODE_FALSE
  647. MAINTAINER_MODE_TRUE
  648. AM_BACKSLASH
  649. AM_DEFAULT_VERBOSITY
  650. AM_DEFAULT_V
  651. AM_V
  652. am__untar
  653. am__tar
  654. AMTAR
  655. am__leading_dot
  656. SET_MAKE
  657. AWK
  658. mkdir_p
  659. MKDIR_P
  660. INSTALL_STRIP_PROGRAM
  661. STRIP
  662. install_sh
  663. MAKEINFO
  664. AUTOHEADER
  665. AUTOMAKE
  666. AUTOCONF
  667. ACLOCAL
  668. VERSION
  669. PACKAGE
  670. CYGPATH_W
  671. am__isrc
  672. INSTALL_DATA
  673. INSTALL_SCRIPT
  674. INSTALL_PROGRAM
  675. libtool_VERSION
  676. EGREP
  677. GREP
  678. CPP
  679. OBJEXT
  680. EXEEXT
  681. ac_ct_CC
  682. CPPFLAGS
  683. LDFLAGS
  684. CFLAGS
  685. CC
  686. target_os
  687. target_vendor
  688. target_cpu
  689. target
  690. host_os
  691. host_vendor
  692. host_cpu
  693. host
  694. build_os
  695. build_vendor
  696. build_cpu
  697. build
  698. multi_basedir
  699. target_alias
  700. host_alias
  701. build_alias
  702. LIBS
  703. ECHO_T
  704. ECHO_N
  705. ECHO_C
  706. DEFS
  707. mandir
  708. localedir
  709. libdir
  710. psdir
  711. pdfdir
  712. dvidir
  713. htmldir
  714. infodir
  715. docdir
  716. oldincludedir
  717. includedir
  718. localstatedir
  719. sharedstatedir
  720. sysconfdir
  721. datadir
  722. datarootdir
  723. libexecdir
  724. sbindir
  725. bindir
  726. program_transform_name
  727. prefix
  728. exec_prefix
  729. PACKAGE_URL
  730. PACKAGE_BUGREPORT
  731. PACKAGE_STRING
  732. PACKAGE_VERSION
  733. PACKAGE_TARNAME
  734. PACKAGE_NAME
  735. PATH_SEPARATOR
  736. SHELL'
  737. ac_subst_files=''
  738. ac_user_opts='
  739. enable_option_checking
  740. enable_multilib
  741. enable_silent_rules
  742. enable_maintainer_mode
  743. with_target_subdir
  744. enable_shared
  745. enable_static
  746. with_pic
  747. enable_fast_install
  748. with_gnu_ld
  749. enable_libtool_lock
  750. enable_largefile
  751. enable_cet
  752. enable_werror
  753. with_system_libunwind
  754. enable_host_shared
  755. '
  756. ac_precious_vars='build_alias
  757. host_alias
  758. target_alias
  759. CC
  760. CFLAGS
  761. LDFLAGS
  762. LIBS
  763. CPPFLAGS
  764. CPP
  765. OBJCOPY
  766. DSYMUTIL
  767. NM'
  768. # Initialize some variables set by options.
  769. ac_init_help=
  770. ac_init_version=false
  771. ac_unrecognized_opts=
  772. ac_unrecognized_sep=
  773. # The variables have the same names as the options, with
  774. # dashes changed to underlines.
  775. cache_file=/dev/null
  776. exec_prefix=NONE
  777. no_create=
  778. no_recursion=
  779. prefix=NONE
  780. program_prefix=NONE
  781. program_suffix=NONE
  782. program_transform_name=s,x,x,
  783. silent=
  784. site=
  785. srcdir=
  786. verbose=
  787. x_includes=NONE
  788. x_libraries=NONE
  789. # Installation directory options.
  790. # These are left unexpanded so users can "make install exec_prefix=/foo"
  791. # and all the variables that are supposed to be based on exec_prefix
  792. # by default will actually change.
  793. # Use braces instead of parens because sh, perl, etc. also accept them.
  794. # (The list follows the same order as the GNU Coding Standards.)
  795. bindir='${exec_prefix}/bin'
  796. sbindir='${exec_prefix}/sbin'
  797. libexecdir='${exec_prefix}/libexec'
  798. datarootdir='${prefix}/share'
  799. datadir='${datarootdir}'
  800. sysconfdir='${prefix}/etc'
  801. sharedstatedir='${prefix}/com'
  802. localstatedir='${prefix}/var'
  803. includedir='${prefix}/include'
  804. oldincludedir='/usr/include'
  805. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  806. infodir='${datarootdir}/info'
  807. htmldir='${docdir}'
  808. dvidir='${docdir}'
  809. pdfdir='${docdir}'
  810. psdir='${docdir}'
  811. libdir='${exec_prefix}/lib'
  812. localedir='${datarootdir}/locale'
  813. mandir='${datarootdir}/man'
  814. ac_prev=
  815. ac_dashdash=
  816. for ac_option
  817. do
  818. # If the previous option needs an argument, assign it.
  819. if test -n "$ac_prev"; then
  820. eval $ac_prev=\$ac_option
  821. ac_prev=
  822. continue
  823. fi
  824. case $ac_option in
  825. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  826. *=) ac_optarg= ;;
  827. *) ac_optarg=yes ;;
  828. esac
  829. # Accept the important Cygnus configure options, so we can diagnose typos.
  830. case $ac_dashdash$ac_option in
  831. --)
  832. ac_dashdash=yes ;;
  833. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  834. ac_prev=bindir ;;
  835. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  836. bindir=$ac_optarg ;;
  837. -build | --build | --buil | --bui | --bu)
  838. ac_prev=build_alias ;;
  839. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  840. build_alias=$ac_optarg ;;
  841. -cache-file | --cache-file | --cache-fil | --cache-fi \
  842. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  843. ac_prev=cache_file ;;
  844. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  845. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  846. cache_file=$ac_optarg ;;
  847. --config-cache | -C)
  848. cache_file=config.cache ;;
  849. -datadir | --datadir | --datadi | --datad)
  850. ac_prev=datadir ;;
  851. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  852. datadir=$ac_optarg ;;
  853. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  854. | --dataroo | --dataro | --datar)
  855. ac_prev=datarootdir ;;
  856. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  857. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  858. datarootdir=$ac_optarg ;;
  859. -disable-* | --disable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error $? "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=no ;;
  874. -docdir | --docdir | --docdi | --doc | --do)
  875. ac_prev=docdir ;;
  876. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  877. docdir=$ac_optarg ;;
  878. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  879. ac_prev=dvidir ;;
  880. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  881. dvidir=$ac_optarg ;;
  882. -enable-* | --enable-*)
  883. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  884. # Reject names that are not valid shell variable names.
  885. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  886. as_fn_error $? "invalid feature name: $ac_useropt"
  887. ac_useropt_orig=$ac_useropt
  888. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  889. case $ac_user_opts in
  890. *"
  891. "enable_$ac_useropt"
  892. "*) ;;
  893. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  894. ac_unrecognized_sep=', ';;
  895. esac
  896. eval enable_$ac_useropt=\$ac_optarg ;;
  897. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  898. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  899. | --exec | --exe | --ex)
  900. ac_prev=exec_prefix ;;
  901. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  902. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  903. | --exec=* | --exe=* | --ex=*)
  904. exec_prefix=$ac_optarg ;;
  905. -gas | --gas | --ga | --g)
  906. # Obsolete; use --with-gas.
  907. with_gas=yes ;;
  908. -help | --help | --hel | --he | -h)
  909. ac_init_help=long ;;
  910. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  911. ac_init_help=recursive ;;
  912. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  913. ac_init_help=short ;;
  914. -host | --host | --hos | --ho)
  915. ac_prev=host_alias ;;
  916. -host=* | --host=* | --hos=* | --ho=*)
  917. host_alias=$ac_optarg ;;
  918. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  919. ac_prev=htmldir ;;
  920. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  921. | --ht=*)
  922. htmldir=$ac_optarg ;;
  923. -includedir | --includedir | --includedi | --included | --include \
  924. | --includ | --inclu | --incl | --inc)
  925. ac_prev=includedir ;;
  926. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  927. | --includ=* | --inclu=* | --incl=* | --inc=*)
  928. includedir=$ac_optarg ;;
  929. -infodir | --infodir | --infodi | --infod | --info | --inf)
  930. ac_prev=infodir ;;
  931. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  932. infodir=$ac_optarg ;;
  933. -libdir | --libdir | --libdi | --libd)
  934. ac_prev=libdir ;;
  935. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  936. libdir=$ac_optarg ;;
  937. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  938. | --libexe | --libex | --libe)
  939. ac_prev=libexecdir ;;
  940. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  941. | --libexe=* | --libex=* | --libe=*)
  942. libexecdir=$ac_optarg ;;
  943. -localedir | --localedir | --localedi | --localed | --locale)
  944. ac_prev=localedir ;;
  945. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  946. localedir=$ac_optarg ;;
  947. -localstatedir | --localstatedir | --localstatedi | --localstated \
  948. | --localstate | --localstat | --localsta | --localst | --locals)
  949. ac_prev=localstatedir ;;
  950. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  951. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  952. localstatedir=$ac_optarg ;;
  953. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  954. ac_prev=mandir ;;
  955. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  956. mandir=$ac_optarg ;;
  957. -nfp | --nfp | --nf)
  958. # Obsolete; use --without-fp.
  959. with_fp=no ;;
  960. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  961. | --no-cr | --no-c | -n)
  962. no_create=yes ;;
  963. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  964. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  965. no_recursion=yes ;;
  966. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  967. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  968. | --oldin | --oldi | --old | --ol | --o)
  969. ac_prev=oldincludedir ;;
  970. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  971. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  972. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  973. oldincludedir=$ac_optarg ;;
  974. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  975. ac_prev=prefix ;;
  976. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  977. prefix=$ac_optarg ;;
  978. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  979. | --program-pre | --program-pr | --program-p)
  980. ac_prev=program_prefix ;;
  981. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  982. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  983. program_prefix=$ac_optarg ;;
  984. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  985. | --program-suf | --program-su | --program-s)
  986. ac_prev=program_suffix ;;
  987. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  988. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  989. program_suffix=$ac_optarg ;;
  990. -program-transform-name | --program-transform-name \
  991. | --program-transform-nam | --program-transform-na \
  992. | --program-transform-n | --program-transform- \
  993. | --program-transform | --program-transfor \
  994. | --program-transfo | --program-transf \
  995. | --program-trans | --program-tran \
  996. | --progr-tra | --program-tr | --program-t)
  997. ac_prev=program_transform_name ;;
  998. -program-transform-name=* | --program-transform-name=* \
  999. | --program-transform-nam=* | --program-transform-na=* \
  1000. | --program-transform-n=* | --program-transform-=* \
  1001. | --program-transform=* | --program-transfor=* \
  1002. | --program-transfo=* | --program-transf=* \
  1003. | --program-trans=* | --program-tran=* \
  1004. | --progr-tra=* | --program-tr=* | --program-t=*)
  1005. program_transform_name=$ac_optarg ;;
  1006. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1007. ac_prev=pdfdir ;;
  1008. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1009. pdfdir=$ac_optarg ;;
  1010. -psdir | --psdir | --psdi | --psd | --ps)
  1011. ac_prev=psdir ;;
  1012. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1013. psdir=$ac_optarg ;;
  1014. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1015. | -silent | --silent | --silen | --sile | --sil)
  1016. silent=yes ;;
  1017. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1018. ac_prev=sbindir ;;
  1019. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1020. | --sbi=* | --sb=*)
  1021. sbindir=$ac_optarg ;;
  1022. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1023. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1024. | --sharedst | --shareds | --shared | --share | --shar \
  1025. | --sha | --sh)
  1026. ac_prev=sharedstatedir ;;
  1027. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1028. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1029. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1030. | --sha=* | --sh=*)
  1031. sharedstatedir=$ac_optarg ;;
  1032. -site | --site | --sit)
  1033. ac_prev=site ;;
  1034. -site=* | --site=* | --sit=*)
  1035. site=$ac_optarg ;;
  1036. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1037. ac_prev=srcdir ;;
  1038. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1039. srcdir=$ac_optarg ;;
  1040. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1041. | --syscon | --sysco | --sysc | --sys | --sy)
  1042. ac_prev=sysconfdir ;;
  1043. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1044. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1045. sysconfdir=$ac_optarg ;;
  1046. -target | --target | --targe | --targ | --tar | --ta | --t)
  1047. ac_prev=target_alias ;;
  1048. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1049. target_alias=$ac_optarg ;;
  1050. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1051. verbose=yes ;;
  1052. -version | --version | --versio | --versi | --vers | -V)
  1053. ac_init_version=: ;;
  1054. -with-* | --with-*)
  1055. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1056. # Reject names that are not valid shell variable names.
  1057. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1058. as_fn_error $? "invalid package name: $ac_useropt"
  1059. ac_useropt_orig=$ac_useropt
  1060. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1061. case $ac_user_opts in
  1062. *"
  1063. "with_$ac_useropt"
  1064. "*) ;;
  1065. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1066. ac_unrecognized_sep=', ';;
  1067. esac
  1068. eval with_$ac_useropt=\$ac_optarg ;;
  1069. -without-* | --without-*)
  1070. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1071. # Reject names that are not valid shell variable names.
  1072. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1073. as_fn_error $? "invalid package name: $ac_useropt"
  1074. ac_useropt_orig=$ac_useropt
  1075. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1076. case $ac_user_opts in
  1077. *"
  1078. "with_$ac_useropt"
  1079. "*) ;;
  1080. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1081. ac_unrecognized_sep=', ';;
  1082. esac
  1083. eval with_$ac_useropt=no ;;
  1084. --x)
  1085. # Obsolete; use --with-x.
  1086. with_x=yes ;;
  1087. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1088. | --x-incl | --x-inc | --x-in | --x-i)
  1089. ac_prev=x_includes ;;
  1090. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1091. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1092. x_includes=$ac_optarg ;;
  1093. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1094. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1095. ac_prev=x_libraries ;;
  1096. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1097. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1098. x_libraries=$ac_optarg ;;
  1099. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1100. Try \`$0 --help' for more information"
  1101. ;;
  1102. *=*)
  1103. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1104. # Reject names that are not valid shell variable names.
  1105. case $ac_envvar in #(
  1106. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1107. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1108. esac
  1109. eval $ac_envvar=\$ac_optarg
  1110. export $ac_envvar ;;
  1111. *)
  1112. # FIXME: should be removed in autoconf 3.0.
  1113. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1114. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1115. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1116. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1117. ;;
  1118. esac
  1119. done
  1120. if test -n "$ac_prev"; then
  1121. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1122. as_fn_error $? "missing argument to $ac_option"
  1123. fi
  1124. if test -n "$ac_unrecognized_opts"; then
  1125. case $enable_option_checking in
  1126. no) ;;
  1127. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1128. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1129. esac
  1130. fi
  1131. # Check all directory arguments for consistency.
  1132. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1133. datadir sysconfdir sharedstatedir localstatedir includedir \
  1134. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1135. libdir localedir mandir
  1136. do
  1137. eval ac_val=\$$ac_var
  1138. # Remove trailing slashes.
  1139. case $ac_val in
  1140. */ )
  1141. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1142. eval $ac_var=\$ac_val;;
  1143. esac
  1144. # Be sure to have absolute directory names.
  1145. case $ac_val in
  1146. [\\/$]* | ?:[\\/]* ) continue;;
  1147. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1148. esac
  1149. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1150. done
  1151. # There might be people who depend on the old broken behavior: `$host'
  1152. # used to hold the argument of --host etc.
  1153. # FIXME: To remove some day.
  1154. build=$build_alias
  1155. host=$host_alias
  1156. target=$target_alias
  1157. # FIXME: To remove some day.
  1158. if test "x$host_alias" != x; then
  1159. if test "x$build_alias" = x; then
  1160. cross_compiling=maybe
  1161. elif test "x$build_alias" != "x$host_alias"; then
  1162. cross_compiling=yes
  1163. fi
  1164. fi
  1165. ac_tool_prefix=
  1166. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1167. test "$silent" = yes && exec 6>/dev/null
  1168. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1169. ac_ls_di=`ls -di .` &&
  1170. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1171. as_fn_error $? "working directory cannot be determined"
  1172. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1173. as_fn_error $? "pwd does not report name of working directory"
  1174. # Find the source files, if location was not specified.
  1175. if test -z "$srcdir"; then
  1176. ac_srcdir_defaulted=yes
  1177. # Try the directory containing this script, then the parent directory.
  1178. ac_confdir=`$as_dirname -- "$as_myself" ||
  1179. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1180. X"$as_myself" : 'X\(//\)[^/]' \| \
  1181. X"$as_myself" : 'X\(//\)$' \| \
  1182. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1183. $as_echo X"$as_myself" |
  1184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1185. s//\1/
  1186. q
  1187. }
  1188. /^X\(\/\/\)[^/].*/{
  1189. s//\1/
  1190. q
  1191. }
  1192. /^X\(\/\/\)$/{
  1193. s//\1/
  1194. q
  1195. }
  1196. /^X\(\/\).*/{
  1197. s//\1/
  1198. q
  1199. }
  1200. s/.*/./; q'`
  1201. srcdir=$ac_confdir
  1202. if test ! -r "$srcdir/$ac_unique_file"; then
  1203. srcdir=..
  1204. fi
  1205. else
  1206. ac_srcdir_defaulted=no
  1207. fi
  1208. if test ! -r "$srcdir/$ac_unique_file"; then
  1209. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1210. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1211. fi
  1212. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1213. ac_abs_confdir=`(
  1214. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1215. pwd)`
  1216. # When building in place, set srcdir=.
  1217. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1218. srcdir=.
  1219. fi
  1220. # Remove unnecessary trailing slashes from srcdir.
  1221. # Double slashes in file names in object file debugging info
  1222. # mess up M-x gdb in Emacs.
  1223. case $srcdir in
  1224. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1225. esac
  1226. for ac_var in $ac_precious_vars; do
  1227. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1228. eval ac_env_${ac_var}_value=\$${ac_var}
  1229. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1230. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1231. done
  1232. #
  1233. # Report the --help message.
  1234. #
  1235. if test "$ac_init_help" = "long"; then
  1236. # Omit some internal or obsolete options to make the list less imposing.
  1237. # This message is too long to be a string in the A/UX 3.1 sh.
  1238. cat <<_ACEOF
  1239. \`configure' configures package-unused version-unused to adapt to many kinds of systems.
  1240. Usage: $0 [OPTION]... [VAR=VALUE]...
  1241. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1242. VAR=VALUE. See below for descriptions of some of the useful variables.
  1243. Defaults for the options are specified in brackets.
  1244. Configuration:
  1245. -h, --help display this help and exit
  1246. --help=short display options specific to this package
  1247. --help=recursive display the short help of all the included packages
  1248. -V, --version display version information and exit
  1249. -q, --quiet, --silent do not print \`checking ...' messages
  1250. --cache-file=FILE cache test results in FILE [disabled]
  1251. -C, --config-cache alias for \`--cache-file=config.cache'
  1252. -n, --no-create do not create output files
  1253. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1254. Installation directories:
  1255. --prefix=PREFIX install architecture-independent files in PREFIX
  1256. [$ac_default_prefix]
  1257. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1258. [PREFIX]
  1259. By default, \`make install' will install all the files in
  1260. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1261. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1262. for instance \`--prefix=\$HOME'.
  1263. For better control, use the options below.
  1264. Fine tuning of the installation directories:
  1265. --bindir=DIR user executables [EPREFIX/bin]
  1266. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1267. --libexecdir=DIR program executables [EPREFIX/libexec]
  1268. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1269. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1270. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1271. --libdir=DIR object code libraries [EPREFIX/lib]
  1272. --includedir=DIR C header files [PREFIX/include]
  1273. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1274. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1275. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1276. --infodir=DIR info documentation [DATAROOTDIR/info]
  1277. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1278. --mandir=DIR man documentation [DATAROOTDIR/man]
  1279. --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
  1280. --htmldir=DIR html documentation [DOCDIR]
  1281. --dvidir=DIR dvi documentation [DOCDIR]
  1282. --pdfdir=DIR pdf documentation [DOCDIR]
  1283. --psdir=DIR ps documentation [DOCDIR]
  1284. _ACEOF
  1285. cat <<\_ACEOF
  1286. Program names:
  1287. --program-prefix=PREFIX prepend PREFIX to installed program names
  1288. --program-suffix=SUFFIX append SUFFIX to installed program names
  1289. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1290. System types:
  1291. --build=BUILD configure for building on BUILD [guessed]
  1292. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1293. --target=TARGET configure for building compilers for TARGET [HOST]
  1294. _ACEOF
  1295. fi
  1296. if test -n "$ac_init_help"; then
  1297. case $ac_init_help in
  1298. short | recursive ) echo "Configuration of package-unused version-unused:";;
  1299. esac
  1300. cat <<\_ACEOF
  1301. Optional Features:
  1302. --disable-option-checking ignore unrecognized --enable/--with options
  1303. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1304. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1305. --enable-multilib build many library versions (default)
  1306. --enable-silent-rules less verbose build output (undo: "make V=1")
  1307. --disable-silent-rules verbose build output (undo: "make V=0")
  1308. --enable-maintainer-mode
  1309. enable make rules and dependencies not useful (and
  1310. sometimes confusing) to the casual installer
  1311. --enable-shared[=PKGS] build shared libraries [default=yes]
  1312. --enable-static[=PKGS] build static libraries [default=yes]
  1313. --enable-fast-install[=PKGS]
  1314. optimize for fast installation [default=yes]
  1315. --disable-libtool-lock avoid locking (might break parallel builds)
  1316. --disable-largefile omit support for large files
  1317. --enable-cet enable Intel CET in target libraries [default=auto]
  1318. --disable-werror disable building with -Werror
  1319. --enable-host-shared build host code as shared libraries
  1320. --enable-cet enable Intel CET in host libraries [default=auto]
  1321. Optional Packages:
  1322. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1323. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1324. --with-target-subdir=SUBDIR Configuring in a subdirectory for target
  1325. --with-pic try to use only PIC/non-PIC objects [default=use
  1326. both]
  1327. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1328. --with-system-libunwind use installed libunwind
  1329. Some influential environment variables:
  1330. CC C compiler command
  1331. CFLAGS C compiler flags
  1332. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1333. nonstandard directory <lib dir>
  1334. LIBS libraries to pass to the linker, e.g. -l<library>
  1335. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1336. you have headers in a nonstandard directory <include dir>
  1337. CPP C preprocessor
  1338. OBJCOPY location of objcopy
  1339. DSYMUTIL location of dsymutil
  1340. NM location of nm
  1341. Use these variables to override the choices made by `configure' or to help
  1342. it to find libraries and programs with nonstandard names/locations.
  1343. Report bugs to the package provider.
  1344. _ACEOF
  1345. ac_status=$?
  1346. fi
  1347. if test "$ac_init_help" = "recursive"; then
  1348. # If there are subdirs, report their specific --help.
  1349. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1350. test -d "$ac_dir" ||
  1351. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1352. continue
  1353. ac_builddir=.
  1354. case "$ac_dir" in
  1355. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1356. *)
  1357. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1358. # A ".." for each directory in $ac_dir_suffix.
  1359. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1360. case $ac_top_builddir_sub in
  1361. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1363. esac ;;
  1364. esac
  1365. ac_abs_top_builddir=$ac_pwd
  1366. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1367. # for backward compatibility:
  1368. ac_top_builddir=$ac_top_build_prefix
  1369. case $srcdir in
  1370. .) # We are building in place.
  1371. ac_srcdir=.
  1372. ac_top_srcdir=$ac_top_builddir_sub
  1373. ac_abs_top_srcdir=$ac_pwd ;;
  1374. [\\/]* | ?:[\\/]* ) # Absolute name.
  1375. ac_srcdir=$srcdir$ac_dir_suffix;
  1376. ac_top_srcdir=$srcdir
  1377. ac_abs_top_srcdir=$srcdir ;;
  1378. *) # Relative name.
  1379. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1380. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1381. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1382. esac
  1383. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1384. cd "$ac_dir" || { ac_status=$?; continue; }
  1385. # Check for guested configure.
  1386. if test -f "$ac_srcdir/configure.gnu"; then
  1387. echo &&
  1388. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1389. elif test -f "$ac_srcdir/configure"; then
  1390. echo &&
  1391. $SHELL "$ac_srcdir/configure" --help=recursive
  1392. else
  1393. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1394. fi || ac_status=$?
  1395. cd "$ac_pwd" || { ac_status=$?; break; }
  1396. done
  1397. fi
  1398. test -n "$ac_init_help" && exit $ac_status
  1399. if $ac_init_version; then
  1400. cat <<\_ACEOF
  1401. package-unused configure version-unused
  1402. generated by GNU Autoconf 2.69
  1403. Copyright (C) 2012 Free Software Foundation, Inc.
  1404. This configure script is free software; the Free Software Foundation
  1405. gives unlimited permission to copy, distribute and modify it.
  1406. _ACEOF
  1407. exit
  1408. fi
  1409. ## ------------------------ ##
  1410. ## Autoconf initialization. ##
  1411. ## ------------------------ ##
  1412. # ac_fn_c_try_compile LINENO
  1413. # --------------------------
  1414. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_compile ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. rm -f conftest.$ac_objext
  1419. if { { ac_try="$ac_compile"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_compile") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && {
  1435. test -z "$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. } && test -s conftest.$ac_objext; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } # ac_fn_c_try_compile
  1447. # ac_fn_c_try_cpp LINENO
  1448. # ----------------------
  1449. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_cpp ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1454. case "(($ac_try" in
  1455. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1456. *) ac_try_echo=$ac_try;;
  1457. esac
  1458. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1459. $as_echo "$ac_try_echo"; } >&5
  1460. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1461. ac_status=$?
  1462. if test -s conftest.err; then
  1463. grep -v '^ *+' conftest.err >conftest.er1
  1464. cat conftest.er1 >&5
  1465. mv -f conftest.er1 conftest.err
  1466. fi
  1467. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1468. test $ac_status = 0; } > conftest.i && {
  1469. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1470. test ! -s conftest.err
  1471. }; then :
  1472. ac_retval=0
  1473. else
  1474. $as_echo "$as_me: failed program was:" >&5
  1475. sed 's/^/| /' conftest.$ac_ext >&5
  1476. ac_retval=1
  1477. fi
  1478. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1479. as_fn_set_status $ac_retval
  1480. } # ac_fn_c_try_cpp
  1481. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1482. # -------------------------------------------------------
  1483. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1484. # the include files in INCLUDES and setting the cache variable VAR
  1485. # accordingly.
  1486. ac_fn_c_check_header_mongrel ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if eval \${$3+:} false; then :
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1491. $as_echo_n "checking for $2... " >&6; }
  1492. if eval \${$3+:} false; then :
  1493. $as_echo_n "(cached) " >&6
  1494. fi
  1495. eval ac_res=\$$3
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1497. $as_echo "$ac_res" >&6; }
  1498. else
  1499. # Is the header compilable?
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1501. $as_echo_n "checking $2 usability... " >&6; }
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. $4
  1505. #include <$2>
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. ac_header_compiler=yes
  1509. else
  1510. ac_header_compiler=no
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1514. $as_echo "$ac_header_compiler" >&6; }
  1515. # Is the header present?
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1517. $as_echo_n "checking $2 presence... " >&6; }
  1518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1519. /* end confdefs.h. */
  1520. #include <$2>
  1521. _ACEOF
  1522. if ac_fn_c_try_cpp "$LINENO"; then :
  1523. ac_header_preproc=yes
  1524. else
  1525. ac_header_preproc=no
  1526. fi
  1527. rm -f conftest.err conftest.i conftest.$ac_ext
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1529. $as_echo "$ac_header_preproc" >&6; }
  1530. # So? What about this header?
  1531. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1532. yes:no: )
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1534. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1536. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1537. ;;
  1538. no:yes:* )
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1540. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1541. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1542. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1544. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1546. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1547. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1548. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1549. ;;
  1550. esac
  1551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1552. $as_echo_n "checking for $2... " >&6; }
  1553. if eval \${$3+:} false; then :
  1554. $as_echo_n "(cached) " >&6
  1555. else
  1556. eval "$3=\$ac_header_compiler"
  1557. fi
  1558. eval ac_res=\$$3
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1560. $as_echo "$ac_res" >&6; }
  1561. fi
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_c_check_header_mongrel
  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_header_compile LINENO HEADER VAR INCLUDES
  1604. # -------------------------------------------------------
  1605. # Tests whether HEADER exists and can be compiled using the include files in
  1606. # INCLUDES, setting the cache variable VAR accordingly.
  1607. ac_fn_c_check_header_compile ()
  1608. {
  1609. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1611. $as_echo_n "checking for $2... " >&6; }
  1612. if eval \${$3+:} false; then :
  1613. $as_echo_n "(cached) " >&6
  1614. else
  1615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1616. /* end confdefs.h. */
  1617. $4
  1618. #include <$2>
  1619. _ACEOF
  1620. if ac_fn_c_try_compile "$LINENO"; then :
  1621. eval "$3=yes"
  1622. else
  1623. eval "$3=no"
  1624. fi
  1625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1626. fi
  1627. eval ac_res=\$$3
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1629. $as_echo "$ac_res" >&6; }
  1630. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1631. } # ac_fn_c_check_header_compile
  1632. # ac_fn_c_try_link LINENO
  1633. # -----------------------
  1634. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1635. ac_fn_c_try_link ()
  1636. {
  1637. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1638. rm -f conftest.$ac_objext conftest$ac_exeext
  1639. if { { ac_try="$ac_link"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_link") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && {
  1655. test -z "$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. } && test -s conftest$ac_exeext && {
  1658. test "$cross_compiling" = yes ||
  1659. test -x conftest$ac_exeext
  1660. }; then :
  1661. ac_retval=0
  1662. else
  1663. $as_echo "$as_me: failed program was:" >&5
  1664. sed 's/^/| /' conftest.$ac_ext >&5
  1665. ac_retval=1
  1666. fi
  1667. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1668. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1669. # interfere with the next link command; also delete a directory that is
  1670. # left behind by Apple's compiler. We do this before executing the actions.
  1671. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1672. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1673. as_fn_set_status $ac_retval
  1674. } # ac_fn_c_try_link
  1675. # ac_fn_c_check_func LINENO FUNC VAR
  1676. # ----------------------------------
  1677. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1678. ac_fn_c_check_func ()
  1679. {
  1680. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1682. $as_echo_n "checking for $2... " >&6; }
  1683. if eval \${$3+:} false; then :
  1684. $as_echo_n "(cached) " >&6
  1685. else
  1686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1687. /* end confdefs.h. */
  1688. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1690. #define $2 innocuous_$2
  1691. /* System header to define __stub macros and hopefully few prototypes,
  1692. which can conflict with char $2 (); below.
  1693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1694. <limits.h> exists even on freestanding compilers. */
  1695. #ifdef __STDC__
  1696. # include <limits.h>
  1697. #else
  1698. # include <assert.h>
  1699. #endif
  1700. #undef $2
  1701. /* Override any GCC internal prototype to avoid an error.
  1702. Use char because int might match the return type of a GCC
  1703. builtin and then its argument prototype would still apply. */
  1704. #ifdef __cplusplus
  1705. extern "C"
  1706. #endif
  1707. char $2 ();
  1708. /* The GNU C library defines this for functions which it implements
  1709. to always fail with ENOSYS. Some functions are actually named
  1710. something starting with __ and the normal name is an alias. */
  1711. #if defined __stub_$2 || defined __stub___$2
  1712. choke me
  1713. #endif
  1714. int
  1715. main ()
  1716. {
  1717. return $2 ();
  1718. ;
  1719. return 0;
  1720. }
  1721. _ACEOF
  1722. if ac_fn_c_try_link "$LINENO"; then :
  1723. eval "$3=yes"
  1724. else
  1725. eval "$3=no"
  1726. fi
  1727. rm -f core conftest.err conftest.$ac_objext \
  1728. conftest$ac_exeext conftest.$ac_ext
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_check_func
  1735. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1736. # -------------------------------------------
  1737. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1738. # variable VAR accordingly.
  1739. ac_fn_c_check_type ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1743. $as_echo_n "checking for $2... " >&6; }
  1744. if eval \${$3+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. eval "$3=no"
  1748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1749. /* end confdefs.h. */
  1750. $4
  1751. int
  1752. main ()
  1753. {
  1754. if (sizeof ($2))
  1755. return 0;
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1762. /* end confdefs.h. */
  1763. $4
  1764. int
  1765. main ()
  1766. {
  1767. if (sizeof (($2)))
  1768. return 0;
  1769. ;
  1770. return 0;
  1771. }
  1772. _ACEOF
  1773. if ac_fn_c_try_compile "$LINENO"; then :
  1774. else
  1775. eval "$3=yes"
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1780. fi
  1781. eval ac_res=\$$3
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1783. $as_echo "$ac_res" >&6; }
  1784. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1785. } # ac_fn_c_check_type
  1786. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1787. # --------------------------------------------
  1788. # Tries to find the compile-time value of EXPR in a program that includes
  1789. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1790. # computed
  1791. ac_fn_c_compute_int ()
  1792. {
  1793. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1794. if test "$cross_compiling" = yes; then
  1795. # Depending upon the size, compute the lo and hi bounds.
  1796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1797. /* end confdefs.h. */
  1798. $4
  1799. int
  1800. main ()
  1801. {
  1802. static int test_array [1 - 2 * !(($2) >= 0)];
  1803. test_array [0] = 0;
  1804. return test_array [0];
  1805. ;
  1806. return 0;
  1807. }
  1808. _ACEOF
  1809. if ac_fn_c_try_compile "$LINENO"; then :
  1810. ac_lo=0 ac_mid=0
  1811. while :; do
  1812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1813. /* end confdefs.h. */
  1814. $4
  1815. int
  1816. main ()
  1817. {
  1818. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1819. test_array [0] = 0;
  1820. return test_array [0];
  1821. ;
  1822. return 0;
  1823. }
  1824. _ACEOF
  1825. if ac_fn_c_try_compile "$LINENO"; then :
  1826. ac_hi=$ac_mid; break
  1827. else
  1828. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1829. if test $ac_lo -le $ac_mid; then
  1830. ac_lo= ac_hi=
  1831. break
  1832. fi
  1833. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1834. fi
  1835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1836. done
  1837. else
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. int
  1842. main ()
  1843. {
  1844. static int test_array [1 - 2 * !(($2) < 0)];
  1845. test_array [0] = 0;
  1846. return test_array [0];
  1847. ;
  1848. return 0;
  1849. }
  1850. _ACEOF
  1851. if ac_fn_c_try_compile "$LINENO"; then :
  1852. ac_hi=-1 ac_mid=-1
  1853. while :; do
  1854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1855. /* end confdefs.h. */
  1856. $4
  1857. int
  1858. main ()
  1859. {
  1860. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1861. test_array [0] = 0;
  1862. return test_array [0];
  1863. ;
  1864. return 0;
  1865. }
  1866. _ACEOF
  1867. if ac_fn_c_try_compile "$LINENO"; then :
  1868. ac_lo=$ac_mid; break
  1869. else
  1870. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1871. if test $ac_mid -le $ac_hi; then
  1872. ac_lo= ac_hi=
  1873. break
  1874. fi
  1875. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1876. fi
  1877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1878. done
  1879. else
  1880. ac_lo= ac_hi=
  1881. fi
  1882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1883. fi
  1884. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1885. # Binary search between lo and hi bounds.
  1886. while test "x$ac_lo" != "x$ac_hi"; do
  1887. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $4
  1891. int
  1892. main ()
  1893. {
  1894. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1895. test_array [0] = 0;
  1896. return test_array [0];
  1897. ;
  1898. return 0;
  1899. }
  1900. _ACEOF
  1901. if ac_fn_c_try_compile "$LINENO"; then :
  1902. ac_hi=$ac_mid
  1903. else
  1904. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1905. fi
  1906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1907. done
  1908. case $ac_lo in #((
  1909. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1910. '') ac_retval=1 ;;
  1911. esac
  1912. else
  1913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1914. /* end confdefs.h. */
  1915. $4
  1916. static long int longval () { return $2; }
  1917. static unsigned long int ulongval () { return $2; }
  1918. #include <stdio.h>
  1919. #include <stdlib.h>
  1920. int
  1921. main ()
  1922. {
  1923. FILE *f = fopen ("conftest.val", "w");
  1924. if (! f)
  1925. return 1;
  1926. if (($2) < 0)
  1927. {
  1928. long int i = longval ();
  1929. if (i != ($2))
  1930. return 1;
  1931. fprintf (f, "%ld", i);
  1932. }
  1933. else
  1934. {
  1935. unsigned long int i = ulongval ();
  1936. if (i != ($2))
  1937. return 1;
  1938. fprintf (f, "%lu", i);
  1939. }
  1940. /* Do not output a trailing newline, as this causes \r\n confusion
  1941. on some platforms. */
  1942. return ferror (f) || fclose (f) != 0;
  1943. ;
  1944. return 0;
  1945. }
  1946. _ACEOF
  1947. if ac_fn_c_try_run "$LINENO"; then :
  1948. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1949. else
  1950. ac_retval=1
  1951. fi
  1952. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1953. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1954. rm -f conftest.val
  1955. fi
  1956. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1957. as_fn_set_status $ac_retval
  1958. } # ac_fn_c_compute_int
  1959. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1960. # ---------------------------------------------
  1961. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1962. # accordingly.
  1963. ac_fn_c_check_decl ()
  1964. {
  1965. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1966. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1967. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1969. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1970. if eval \${$3+:} false; then :
  1971. $as_echo_n "(cached) " >&6
  1972. else
  1973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1974. /* end confdefs.h. */
  1975. $4
  1976. int
  1977. main ()
  1978. {
  1979. #ifndef $as_decl_name
  1980. #ifdef __cplusplus
  1981. (void) $as_decl_use;
  1982. #else
  1983. (void) $as_decl_name;
  1984. #endif
  1985. #endif
  1986. ;
  1987. return 0;
  1988. }
  1989. _ACEOF
  1990. if ac_fn_c_try_compile "$LINENO"; then :
  1991. eval "$3=yes"
  1992. else
  1993. eval "$3=no"
  1994. fi
  1995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1996. fi
  1997. eval ac_res=\$$3
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1999. $as_echo "$ac_res" >&6; }
  2000. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2001. } # ac_fn_c_check_decl
  2002. cat >config.log <<_ACEOF
  2003. This file contains any messages produced by compilers while
  2004. running configure, to aid debugging if configure makes a mistake.
  2005. It was created by package-unused $as_me version-unused, which was
  2006. generated by GNU Autoconf 2.69. Invocation command line was
  2007. $ $0 $@
  2008. _ACEOF
  2009. exec 5>>config.log
  2010. {
  2011. cat <<_ASUNAME
  2012. ## --------- ##
  2013. ## Platform. ##
  2014. ## --------- ##
  2015. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2016. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2017. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2018. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2019. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2020. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2021. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2022. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2023. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2024. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2025. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2026. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2027. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2028. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2029. _ASUNAME
  2030. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2031. for as_dir in $PATH
  2032. do
  2033. IFS=$as_save_IFS
  2034. test -z "$as_dir" && as_dir=.
  2035. $as_echo "PATH: $as_dir"
  2036. done
  2037. IFS=$as_save_IFS
  2038. } >&5
  2039. cat >&5 <<_ACEOF
  2040. ## ----------- ##
  2041. ## Core tests. ##
  2042. ## ----------- ##
  2043. _ACEOF
  2044. # Keep a trace of the command line.
  2045. # Strip out --no-create and --no-recursion so they do not pile up.
  2046. # Strip out --silent because we don't want to record it for future runs.
  2047. # Also quote any args containing shell meta-characters.
  2048. # Make two passes to allow for proper duplicate-argument suppression.
  2049. ac_configure_args=
  2050. ac_configure_args0=
  2051. ac_configure_args1=
  2052. ac_must_keep_next=false
  2053. for ac_pass in 1 2
  2054. do
  2055. for ac_arg
  2056. do
  2057. case $ac_arg in
  2058. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2060. | -silent | --silent | --silen | --sile | --sil)
  2061. continue ;;
  2062. *\'*)
  2063. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2064. esac
  2065. case $ac_pass in
  2066. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2067. 2)
  2068. as_fn_append ac_configure_args1 " '$ac_arg'"
  2069. if test $ac_must_keep_next = true; then
  2070. ac_must_keep_next=false # Got value, back to normal.
  2071. else
  2072. case $ac_arg in
  2073. *=* | --config-cache | -C | -disable-* | --disable-* \
  2074. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2075. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2076. | -with-* | --with-* | -without-* | --without-* | --x)
  2077. case "$ac_configure_args0 " in
  2078. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2079. esac
  2080. ;;
  2081. -* ) ac_must_keep_next=true ;;
  2082. esac
  2083. fi
  2084. as_fn_append ac_configure_args " '$ac_arg'"
  2085. ;;
  2086. esac
  2087. done
  2088. done
  2089. { ac_configure_args0=; unset ac_configure_args0;}
  2090. { ac_configure_args1=; unset ac_configure_args1;}
  2091. # When interrupted or exit'd, cleanup temporary files, and complete
  2092. # config.log. We remove comments because anyway the quotes in there
  2093. # would cause problems or look ugly.
  2094. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2095. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2096. trap 'exit_status=$?
  2097. # Save into config.log some information that might help in debugging.
  2098. {
  2099. echo
  2100. $as_echo "## ---------------- ##
  2101. ## Cache variables. ##
  2102. ## ---------------- ##"
  2103. echo
  2104. # The following way of writing the cache mishandles newlines in values,
  2105. (
  2106. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2107. eval ac_val=\$$ac_var
  2108. case $ac_val in #(
  2109. *${as_nl}*)
  2110. case $ac_var in #(
  2111. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2112. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2113. esac
  2114. case $ac_var in #(
  2115. _ | IFS | as_nl) ;; #(
  2116. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2117. *) { eval $ac_var=; unset $ac_var;} ;;
  2118. esac ;;
  2119. esac
  2120. done
  2121. (set) 2>&1 |
  2122. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2123. *${as_nl}ac_space=\ *)
  2124. sed -n \
  2125. "s/'\''/'\''\\\\'\'''\''/g;
  2126. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2127. ;; #(
  2128. *)
  2129. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2130. ;;
  2131. esac |
  2132. sort
  2133. )
  2134. echo
  2135. $as_echo "## ----------------- ##
  2136. ## Output variables. ##
  2137. ## ----------------- ##"
  2138. echo
  2139. for ac_var in $ac_subst_vars
  2140. do
  2141. eval ac_val=\$$ac_var
  2142. case $ac_val in
  2143. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2144. esac
  2145. $as_echo "$ac_var='\''$ac_val'\''"
  2146. done | sort
  2147. echo
  2148. if test -n "$ac_subst_files"; then
  2149. $as_echo "## ------------------- ##
  2150. ## File substitutions. ##
  2151. ## ------------------- ##"
  2152. echo
  2153. for ac_var in $ac_subst_files
  2154. do
  2155. eval ac_val=\$$ac_var
  2156. case $ac_val in
  2157. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2158. esac
  2159. $as_echo "$ac_var='\''$ac_val'\''"
  2160. done | sort
  2161. echo
  2162. fi
  2163. if test -s confdefs.h; then
  2164. $as_echo "## ----------- ##
  2165. ## confdefs.h. ##
  2166. ## ----------- ##"
  2167. echo
  2168. cat confdefs.h
  2169. echo
  2170. fi
  2171. test "$ac_signal" != 0 &&
  2172. $as_echo "$as_me: caught signal $ac_signal"
  2173. $as_echo "$as_me: exit $exit_status"
  2174. } >&5
  2175. rm -f core *.core core.conftest.* &&
  2176. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2177. exit $exit_status
  2178. ' 0
  2179. for ac_signal in 1 2 13 15; do
  2180. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2181. done
  2182. ac_signal=0
  2183. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2184. rm -f -r conftest* confdefs.h
  2185. $as_echo "/* confdefs.h */" > confdefs.h
  2186. # Predefined preprocessor variables.
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_NAME "$PACKAGE_NAME"
  2189. _ACEOF
  2190. cat >>confdefs.h <<_ACEOF
  2191. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2192. _ACEOF
  2193. cat >>confdefs.h <<_ACEOF
  2194. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2195. _ACEOF
  2196. cat >>confdefs.h <<_ACEOF
  2197. #define PACKAGE_STRING "$PACKAGE_STRING"
  2198. _ACEOF
  2199. cat >>confdefs.h <<_ACEOF
  2200. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2201. _ACEOF
  2202. cat >>confdefs.h <<_ACEOF
  2203. #define PACKAGE_URL "$PACKAGE_URL"
  2204. _ACEOF
  2205. # Let the site file select an alternate cache file if it wants to.
  2206. # Prefer an explicitly selected file to automatically selected ones.
  2207. ac_site_file1=NONE
  2208. ac_site_file2=NONE
  2209. if test -n "$CONFIG_SITE"; then
  2210. # We do not want a PATH search for config.site.
  2211. case $CONFIG_SITE in #((
  2212. -*) ac_site_file1=./$CONFIG_SITE;;
  2213. */*) ac_site_file1=$CONFIG_SITE;;
  2214. *) ac_site_file1=./$CONFIG_SITE;;
  2215. esac
  2216. elif test "x$prefix" != xNONE; then
  2217. ac_site_file1=$prefix/share/config.site
  2218. ac_site_file2=$prefix/etc/config.site
  2219. else
  2220. ac_site_file1=$ac_default_prefix/share/config.site
  2221. ac_site_file2=$ac_default_prefix/etc/config.site
  2222. fi
  2223. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2224. do
  2225. test "x$ac_site_file" = xNONE && continue
  2226. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2227. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2228. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2229. sed 's/^/| /' "$ac_site_file" >&5
  2230. . "$ac_site_file" \
  2231. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2232. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2233. as_fn_error $? "failed to load site script $ac_site_file
  2234. See \`config.log' for more details" "$LINENO" 5; }
  2235. fi
  2236. done
  2237. if test -r "$cache_file"; then
  2238. # Some versions of bash will fail to source /dev/null (special files
  2239. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2240. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2241. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2242. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2243. case $cache_file in
  2244. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2245. *) . "./$cache_file";;
  2246. esac
  2247. fi
  2248. else
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2250. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2251. >$cache_file
  2252. fi
  2253. # Check that the precious variables saved in the cache have kept the same
  2254. # value.
  2255. ac_cache_corrupted=false
  2256. for ac_var in $ac_precious_vars; do
  2257. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2258. eval ac_new_set=\$ac_env_${ac_var}_set
  2259. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2260. eval ac_new_val=\$ac_env_${ac_var}_value
  2261. case $ac_old_set,$ac_new_set in
  2262. set,)
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2264. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2265. ac_cache_corrupted=: ;;
  2266. ,set)
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2268. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2269. ac_cache_corrupted=: ;;
  2270. ,);;
  2271. *)
  2272. if test "x$ac_old_val" != "x$ac_new_val"; then
  2273. # differences in whitespace do not lead to failure.
  2274. ac_old_val_w=`echo x $ac_old_val`
  2275. ac_new_val_w=`echo x $ac_new_val`
  2276. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2278. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2279. ac_cache_corrupted=:
  2280. else
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2282. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2283. eval $ac_var=\$ac_old_val
  2284. fi
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2286. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2287. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2288. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2289. fi;;
  2290. esac
  2291. # Pass precious variables to config.status.
  2292. if test "$ac_new_set" = set; then
  2293. case $ac_new_val in
  2294. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2295. *) ac_arg=$ac_var=$ac_new_val ;;
  2296. esac
  2297. case " $ac_configure_args " in
  2298. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2299. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2300. esac
  2301. fi
  2302. done
  2303. if $ac_cache_corrupted; then
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2305. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2306. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2307. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2308. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2309. fi
  2310. ## -------------------- ##
  2311. ## Main body of script. ##
  2312. ## -------------------- ##
  2313. ac_ext=c
  2314. ac_cpp='$CPP $CPPFLAGS'
  2315. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2316. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2317. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2318. ac_config_headers="$ac_config_headers config.h"
  2319. if test -n "${with_target_subdir}"; then
  2320. # Default to --enable-multilib
  2321. # Check whether --enable-multilib was given.
  2322. if test "${enable_multilib+set}" = set; then :
  2323. enableval=$enable_multilib; case "$enableval" in
  2324. yes) multilib=yes ;;
  2325. no) multilib=no ;;
  2326. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2327. esac
  2328. else
  2329. multilib=yes
  2330. fi
  2331. # We may get other options which we leave undocumented:
  2332. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2333. # See config-ml.in if you want the gory details.
  2334. if test "$srcdir" = "."; then
  2335. if test "$with_target_subdir" != "."; then
  2336. multi_basedir="$srcdir/$with_multisrctop../.."
  2337. else
  2338. multi_basedir="$srcdir/$with_multisrctop.."
  2339. fi
  2340. else
  2341. multi_basedir="$srcdir/.."
  2342. fi
  2343. # Even if the default multilib is not a cross compilation,
  2344. # it may be that some of the other multilibs are.
  2345. if test $cross_compiling = no && test $multilib = yes \
  2346. && test "x${with_multisubdir}" != x ; then
  2347. cross_compiling=maybe
  2348. fi
  2349. ac_config_commands="$ac_config_commands default-1"
  2350. fi
  2351. ac_aux_dir=
  2352. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2353. if test -f "$ac_dir/install-sh"; then
  2354. ac_aux_dir=$ac_dir
  2355. ac_install_sh="$ac_aux_dir/install-sh -c"
  2356. break
  2357. elif test -f "$ac_dir/install.sh"; then
  2358. ac_aux_dir=$ac_dir
  2359. ac_install_sh="$ac_aux_dir/install.sh -c"
  2360. break
  2361. elif test -f "$ac_dir/shtool"; then
  2362. ac_aux_dir=$ac_dir
  2363. ac_install_sh="$ac_aux_dir/shtool install -c"
  2364. break
  2365. fi
  2366. done
  2367. if test -z "$ac_aux_dir"; then
  2368. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2369. fi
  2370. # These three variables are undocumented and unsupported,
  2371. # and are intended to be withdrawn in a future Autoconf release.
  2372. # They can cause serious problems if a builder's source tree is in a directory
  2373. # whose full name contains unusual characters.
  2374. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2375. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2376. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2377. # Make sure we can run config.sub.
  2378. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2379. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2381. $as_echo_n "checking build system type... " >&6; }
  2382. if ${ac_cv_build+:} false; then :
  2383. $as_echo_n "(cached) " >&6
  2384. else
  2385. ac_build_alias=$build_alias
  2386. test "x$ac_build_alias" = x &&
  2387. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2388. test "x$ac_build_alias" = x &&
  2389. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2390. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2391. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2392. fi
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2394. $as_echo "$ac_cv_build" >&6; }
  2395. case $ac_cv_build in
  2396. *-*-*) ;;
  2397. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2398. esac
  2399. build=$ac_cv_build
  2400. ac_save_IFS=$IFS; IFS='-'
  2401. set x $ac_cv_build
  2402. shift
  2403. build_cpu=$1
  2404. build_vendor=$2
  2405. shift; shift
  2406. # Remember, the first character of IFS is used to create $*,
  2407. # except with old shells:
  2408. build_os=$*
  2409. IFS=$ac_save_IFS
  2410. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2412. $as_echo_n "checking host system type... " >&6; }
  2413. if ${ac_cv_host+:} false; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test "x$host_alias" = x; then
  2417. ac_cv_host=$ac_cv_build
  2418. else
  2419. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2420. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2421. fi
  2422. fi
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2424. $as_echo "$ac_cv_host" >&6; }
  2425. case $ac_cv_host in
  2426. *-*-*) ;;
  2427. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2428. esac
  2429. host=$ac_cv_host
  2430. ac_save_IFS=$IFS; IFS='-'
  2431. set x $ac_cv_host
  2432. shift
  2433. host_cpu=$1
  2434. host_vendor=$2
  2435. shift; shift
  2436. # Remember, the first character of IFS is used to create $*,
  2437. # except with old shells:
  2438. host_os=$*
  2439. IFS=$ac_save_IFS
  2440. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2442. $as_echo_n "checking target system type... " >&6; }
  2443. if ${ac_cv_target+:} false; then :
  2444. $as_echo_n "(cached) " >&6
  2445. else
  2446. if test "x$target_alias" = x; then
  2447. ac_cv_target=$ac_cv_host
  2448. else
  2449. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2450. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2451. fi
  2452. fi
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2454. $as_echo "$ac_cv_target" >&6; }
  2455. case $ac_cv_target in
  2456. *-*-*) ;;
  2457. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2458. esac
  2459. target=$ac_cv_target
  2460. ac_save_IFS=$IFS; IFS='-'
  2461. set x $ac_cv_target
  2462. shift
  2463. target_cpu=$1
  2464. target_vendor=$2
  2465. shift; shift
  2466. # Remember, the first character of IFS is used to create $*,
  2467. # except with old shells:
  2468. target_os=$*
  2469. IFS=$ac_save_IFS
  2470. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2471. # The aliases save the names the user supplied, while $host etc.
  2472. # will get canonicalized.
  2473. test -n "$target_alias" &&
  2474. test "$program_prefix$program_suffix$program_transform_name" = \
  2475. NONENONEs,x,x, &&
  2476. program_prefix=${target_alias}-
  2477. target_alias=${target_alias-$host_alias}
  2478. # Expand $ac_aux_dir to an absolute path.
  2479. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2480. ac_ext=c
  2481. ac_cpp='$CPP $CPPFLAGS'
  2482. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2483. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2484. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2485. if test -n "$ac_tool_prefix"; then
  2486. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2487. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2489. $as_echo_n "checking for $ac_word... " >&6; }
  2490. if ${ac_cv_prog_CC+:} false; then :
  2491. $as_echo_n "(cached) " >&6
  2492. else
  2493. if test -n "$CC"; then
  2494. ac_cv_prog_CC="$CC" # Let the user override the test.
  2495. else
  2496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2497. for as_dir in $PATH
  2498. do
  2499. IFS=$as_save_IFS
  2500. test -z "$as_dir" && as_dir=.
  2501. for ac_exec_ext in '' $ac_executable_extensions; do
  2502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2503. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2505. break 2
  2506. fi
  2507. done
  2508. done
  2509. IFS=$as_save_IFS
  2510. fi
  2511. fi
  2512. CC=$ac_cv_prog_CC
  2513. if test -n "$CC"; then
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2515. $as_echo "$CC" >&6; }
  2516. else
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2518. $as_echo "no" >&6; }
  2519. fi
  2520. fi
  2521. if test -z "$ac_cv_prog_CC"; then
  2522. ac_ct_CC=$CC
  2523. # Extract the first word of "gcc", so it can be a program name with args.
  2524. set dummy gcc; ac_word=$2
  2525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2526. $as_echo_n "checking for $ac_word... " >&6; }
  2527. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2528. $as_echo_n "(cached) " >&6
  2529. else
  2530. if test -n "$ac_ct_CC"; then
  2531. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2532. else
  2533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2534. for as_dir in $PATH
  2535. do
  2536. IFS=$as_save_IFS
  2537. test -z "$as_dir" && as_dir=.
  2538. for ac_exec_ext in '' $ac_executable_extensions; do
  2539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2540. ac_cv_prog_ac_ct_CC="gcc"
  2541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2542. break 2
  2543. fi
  2544. done
  2545. done
  2546. IFS=$as_save_IFS
  2547. fi
  2548. fi
  2549. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2550. if test -n "$ac_ct_CC"; then
  2551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2552. $as_echo "$ac_ct_CC" >&6; }
  2553. else
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2555. $as_echo "no" >&6; }
  2556. fi
  2557. if test "x$ac_ct_CC" = x; then
  2558. CC=""
  2559. else
  2560. case $cross_compiling:$ac_tool_warned in
  2561. yes:)
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2563. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2564. ac_tool_warned=yes ;;
  2565. esac
  2566. CC=$ac_ct_CC
  2567. fi
  2568. else
  2569. CC="$ac_cv_prog_CC"
  2570. fi
  2571. if test -z "$CC"; then
  2572. if test -n "$ac_tool_prefix"; then
  2573. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2574. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2576. $as_echo_n "checking for $ac_word... " >&6; }
  2577. if ${ac_cv_prog_CC+:} false; then :
  2578. $as_echo_n "(cached) " >&6
  2579. else
  2580. if test -n "$CC"; then
  2581. ac_cv_prog_CC="$CC" # Let the user override the test.
  2582. else
  2583. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2584. for as_dir in $PATH
  2585. do
  2586. IFS=$as_save_IFS
  2587. test -z "$as_dir" && as_dir=.
  2588. for ac_exec_ext in '' $ac_executable_extensions; do
  2589. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2590. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2591. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2592. break 2
  2593. fi
  2594. done
  2595. done
  2596. IFS=$as_save_IFS
  2597. fi
  2598. fi
  2599. CC=$ac_cv_prog_CC
  2600. if test -n "$CC"; then
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2602. $as_echo "$CC" >&6; }
  2603. else
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2605. $as_echo "no" >&6; }
  2606. fi
  2607. fi
  2608. fi
  2609. if test -z "$CC"; then
  2610. # Extract the first word of "cc", so it can be a program name with args.
  2611. set dummy cc; ac_word=$2
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2613. $as_echo_n "checking for $ac_word... " >&6; }
  2614. if ${ac_cv_prog_CC+:} false; then :
  2615. $as_echo_n "(cached) " >&6
  2616. else
  2617. if test -n "$CC"; then
  2618. ac_cv_prog_CC="$CC" # Let the user override the test.
  2619. else
  2620. ac_prog_rejected=no
  2621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2622. for as_dir in $PATH
  2623. do
  2624. IFS=$as_save_IFS
  2625. test -z "$as_dir" && as_dir=.
  2626. for ac_exec_ext in '' $ac_executable_extensions; do
  2627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2628. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2629. ac_prog_rejected=yes
  2630. continue
  2631. fi
  2632. ac_cv_prog_CC="cc"
  2633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2634. break 2
  2635. fi
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. if test $ac_prog_rejected = yes; then
  2640. # We found a bogon in the path, so make sure we never use it.
  2641. set dummy $ac_cv_prog_CC
  2642. shift
  2643. if test $# != 0; then
  2644. # We chose a different compiler from the bogus one.
  2645. # However, it has the same basename, so the bogon will be chosen
  2646. # first if we set CC to just the basename; use the full file name.
  2647. shift
  2648. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2649. fi
  2650. fi
  2651. fi
  2652. fi
  2653. CC=$ac_cv_prog_CC
  2654. if test -n "$CC"; then
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2656. $as_echo "$CC" >&6; }
  2657. else
  2658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2659. $as_echo "no" >&6; }
  2660. fi
  2661. fi
  2662. if test -z "$CC"; then
  2663. if test -n "$ac_tool_prefix"; then
  2664. for ac_prog in cl.exe
  2665. do
  2666. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2667. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if ${ac_cv_prog_CC+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$CC"; then
  2674. ac_cv_prog_CC="$CC" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2683. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. CC=$ac_cv_prog_CC
  2693. if test -n "$CC"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2695. $as_echo "$CC" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. test -n "$CC" && break
  2701. done
  2702. fi
  2703. if test -z "$CC"; then
  2704. ac_ct_CC=$CC
  2705. for ac_prog in cl.exe
  2706. do
  2707. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2708. set dummy $ac_prog; ac_word=$2
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2710. $as_echo_n "checking for $ac_word... " >&6; }
  2711. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2712. $as_echo_n "(cached) " >&6
  2713. else
  2714. if test -n "$ac_ct_CC"; then
  2715. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2716. else
  2717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2718. for as_dir in $PATH
  2719. do
  2720. IFS=$as_save_IFS
  2721. test -z "$as_dir" && as_dir=.
  2722. for ac_exec_ext in '' $ac_executable_extensions; do
  2723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2724. ac_cv_prog_ac_ct_CC="$ac_prog"
  2725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2726. break 2
  2727. fi
  2728. done
  2729. done
  2730. IFS=$as_save_IFS
  2731. fi
  2732. fi
  2733. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2734. if test -n "$ac_ct_CC"; then
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2736. $as_echo "$ac_ct_CC" >&6; }
  2737. else
  2738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2739. $as_echo "no" >&6; }
  2740. fi
  2741. test -n "$ac_ct_CC" && break
  2742. done
  2743. if test "x$ac_ct_CC" = x; then
  2744. CC=""
  2745. else
  2746. case $cross_compiling:$ac_tool_warned in
  2747. yes:)
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2749. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2750. ac_tool_warned=yes ;;
  2751. esac
  2752. CC=$ac_ct_CC
  2753. fi
  2754. fi
  2755. fi
  2756. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2757. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2758. as_fn_error $? "no acceptable C compiler found in \$PATH
  2759. See \`config.log' for more details" "$LINENO" 5; }
  2760. # Provide some information about the compiler.
  2761. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2762. set X $ac_compile
  2763. ac_compiler=$2
  2764. for ac_option in --version -v -V -qversion; do
  2765. { { ac_try="$ac_compiler $ac_option >&5"
  2766. case "(($ac_try" in
  2767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2768. *) ac_try_echo=$ac_try;;
  2769. esac
  2770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2771. $as_echo "$ac_try_echo"; } >&5
  2772. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2773. ac_status=$?
  2774. if test -s conftest.err; then
  2775. sed '10a\
  2776. ... rest of stderr output deleted ...
  2777. 10q' conftest.err >conftest.er1
  2778. cat conftest.er1 >&5
  2779. fi
  2780. rm -f conftest.er1 conftest.err
  2781. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2782. test $ac_status = 0; }
  2783. done
  2784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2785. /* end confdefs.h. */
  2786. int
  2787. main ()
  2788. {
  2789. ;
  2790. return 0;
  2791. }
  2792. _ACEOF
  2793. ac_clean_files_save=$ac_clean_files
  2794. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2795. # Try to create an executable without -o first, disregard a.out.
  2796. # It will help us diagnose broken compilers, and finding out an intuition
  2797. # of exeext.
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2799. $as_echo_n "checking whether the C compiler works... " >&6; }
  2800. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2801. # The possible output files:
  2802. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2803. ac_rmfiles=
  2804. for ac_file in $ac_files
  2805. do
  2806. case $ac_file in
  2807. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2808. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2809. esac
  2810. done
  2811. rm -f $ac_rmfiles
  2812. if { { ac_try="$ac_link_default"
  2813. case "(($ac_try" in
  2814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2815. *) ac_try_echo=$ac_try;;
  2816. esac
  2817. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2818. $as_echo "$ac_try_echo"; } >&5
  2819. (eval "$ac_link_default") 2>&5
  2820. ac_status=$?
  2821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2822. test $ac_status = 0; }; then :
  2823. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2824. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2825. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2826. # so that the user can short-circuit this test for compilers unknown to
  2827. # Autoconf.
  2828. for ac_file in $ac_files ''
  2829. do
  2830. test -f "$ac_file" || continue
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2833. ;;
  2834. [ab].out )
  2835. # We found the default executable, but exeext='' is most
  2836. # certainly right.
  2837. break;;
  2838. *.* )
  2839. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2840. then :; else
  2841. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2842. fi
  2843. # We set ac_cv_exeext here because the later test for it is not
  2844. # safe: cross compilers may not add the suffix if given an `-o'
  2845. # argument, so we may need to know it at that point already.
  2846. # Even if this section looks crufty: it has the advantage of
  2847. # actually working.
  2848. break;;
  2849. * )
  2850. break;;
  2851. esac
  2852. done
  2853. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2854. else
  2855. ac_file=''
  2856. fi
  2857. if test -z "$ac_file"; then :
  2858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2859. $as_echo "no" >&6; }
  2860. $as_echo "$as_me: failed program was:" >&5
  2861. sed 's/^/| /' conftest.$ac_ext >&5
  2862. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2863. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2864. as_fn_error 77 "C compiler cannot create executables
  2865. See \`config.log' for more details" "$LINENO" 5; }
  2866. else
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2868. $as_echo "yes" >&6; }
  2869. fi
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2871. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2873. $as_echo "$ac_file" >&6; }
  2874. ac_exeext=$ac_cv_exeext
  2875. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2876. ac_clean_files=$ac_clean_files_save
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2878. $as_echo_n "checking for suffix of executables... " >&6; }
  2879. if { { ac_try="$ac_link"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2885. $as_echo "$ac_try_echo"; } >&5
  2886. (eval "$ac_link") 2>&5
  2887. ac_status=$?
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2889. test $ac_status = 0; }; then :
  2890. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2891. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2892. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2893. # `rm'.
  2894. for ac_file in conftest.exe conftest conftest.*; do
  2895. test -f "$ac_file" || continue
  2896. case $ac_file in
  2897. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2898. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2899. break;;
  2900. * ) break;;
  2901. esac
  2902. done
  2903. else
  2904. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2905. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2906. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2907. See \`config.log' for more details" "$LINENO" 5; }
  2908. fi
  2909. rm -f conftest conftest$ac_cv_exeext
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2911. $as_echo "$ac_cv_exeext" >&6; }
  2912. rm -f conftest.$ac_ext
  2913. EXEEXT=$ac_cv_exeext
  2914. ac_exeext=$EXEEXT
  2915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2916. /* end confdefs.h. */
  2917. #include <stdio.h>
  2918. int
  2919. main ()
  2920. {
  2921. FILE *f = fopen ("conftest.out", "w");
  2922. return ferror (f) || fclose (f) != 0;
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. ac_clean_files="$ac_clean_files conftest.out"
  2928. # Check that the compiler produces executables we can run. If not, either
  2929. # the compiler is broken, or we cross compile.
  2930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2931. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2932. if test "$cross_compiling" != yes; then
  2933. { { ac_try="$ac_link"
  2934. case "(($ac_try" in
  2935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2936. *) ac_try_echo=$ac_try;;
  2937. esac
  2938. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2939. $as_echo "$ac_try_echo"; } >&5
  2940. (eval "$ac_link") 2>&5
  2941. ac_status=$?
  2942. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2943. test $ac_status = 0; }
  2944. if { ac_try='./conftest$ac_cv_exeext'
  2945. { { case "(($ac_try" in
  2946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2947. *) ac_try_echo=$ac_try;;
  2948. esac
  2949. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2950. $as_echo "$ac_try_echo"; } >&5
  2951. (eval "$ac_try") 2>&5
  2952. ac_status=$?
  2953. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2954. test $ac_status = 0; }; }; then
  2955. cross_compiling=no
  2956. else
  2957. if test "$cross_compiling" = maybe; then
  2958. cross_compiling=yes
  2959. else
  2960. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2961. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2962. as_fn_error $? "cannot run C compiled programs.
  2963. If you meant to cross compile, use \`--host'.
  2964. See \`config.log' for more details" "$LINENO" 5; }
  2965. fi
  2966. fi
  2967. fi
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2969. $as_echo "$cross_compiling" >&6; }
  2970. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2971. ac_clean_files=$ac_clean_files_save
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2973. $as_echo_n "checking for suffix of object files... " >&6; }
  2974. if ${ac_cv_objext+:} false; then :
  2975. $as_echo_n "(cached) " >&6
  2976. else
  2977. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2978. /* end confdefs.h. */
  2979. int
  2980. main ()
  2981. {
  2982. ;
  2983. return 0;
  2984. }
  2985. _ACEOF
  2986. rm -f conftest.o conftest.obj
  2987. if { { ac_try="$ac_compile"
  2988. case "(($ac_try" in
  2989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2990. *) ac_try_echo=$ac_try;;
  2991. esac
  2992. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2993. $as_echo "$ac_try_echo"; } >&5
  2994. (eval "$ac_compile") 2>&5
  2995. ac_status=$?
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2997. test $ac_status = 0; }; then :
  2998. for ac_file in conftest.o conftest.obj conftest.*; do
  2999. test -f "$ac_file" || continue;
  3000. case $ac_file in
  3001. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3002. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3003. break;;
  3004. esac
  3005. done
  3006. else
  3007. $as_echo "$as_me: failed program was:" >&5
  3008. sed 's/^/| /' conftest.$ac_ext >&5
  3009. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3011. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3012. See \`config.log' for more details" "$LINENO" 5; }
  3013. fi
  3014. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3015. fi
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3017. $as_echo "$ac_cv_objext" >&6; }
  3018. OBJEXT=$ac_cv_objext
  3019. ac_objext=$OBJEXT
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3021. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3022. if ${ac_cv_c_compiler_gnu+:} false; then :
  3023. $as_echo_n "(cached) " >&6
  3024. else
  3025. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3026. /* end confdefs.h. */
  3027. int
  3028. main ()
  3029. {
  3030. #ifndef __GNUC__
  3031. choke me
  3032. #endif
  3033. ;
  3034. return 0;
  3035. }
  3036. _ACEOF
  3037. if ac_fn_c_try_compile "$LINENO"; then :
  3038. ac_compiler_gnu=yes
  3039. else
  3040. ac_compiler_gnu=no
  3041. fi
  3042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3043. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3044. fi
  3045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3046. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3047. if test $ac_compiler_gnu = yes; then
  3048. GCC=yes
  3049. else
  3050. GCC=
  3051. fi
  3052. ac_test_CFLAGS=${CFLAGS+set}
  3053. ac_save_CFLAGS=$CFLAGS
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3055. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3056. if ${ac_cv_prog_cc_g+:} false; then :
  3057. $as_echo_n "(cached) " >&6
  3058. else
  3059. ac_save_c_werror_flag=$ac_c_werror_flag
  3060. ac_c_werror_flag=yes
  3061. ac_cv_prog_cc_g=no
  3062. CFLAGS="-g"
  3063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. if ac_fn_c_try_compile "$LINENO"; then :
  3073. ac_cv_prog_cc_g=yes
  3074. else
  3075. CFLAGS=""
  3076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3077. /* end confdefs.h. */
  3078. int
  3079. main ()
  3080. {
  3081. ;
  3082. return 0;
  3083. }
  3084. _ACEOF
  3085. if ac_fn_c_try_compile "$LINENO"; then :
  3086. else
  3087. ac_c_werror_flag=$ac_save_c_werror_flag
  3088. CFLAGS="-g"
  3089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3090. /* end confdefs.h. */
  3091. int
  3092. main ()
  3093. {
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. if ac_fn_c_try_compile "$LINENO"; then :
  3099. ac_cv_prog_cc_g=yes
  3100. fi
  3101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3102. fi
  3103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3104. fi
  3105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3106. ac_c_werror_flag=$ac_save_c_werror_flag
  3107. fi
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3109. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3110. if test "$ac_test_CFLAGS" = set; then
  3111. CFLAGS=$ac_save_CFLAGS
  3112. elif test $ac_cv_prog_cc_g = yes; then
  3113. if test "$GCC" = yes; then
  3114. CFLAGS="-g -O2"
  3115. else
  3116. CFLAGS="-g"
  3117. fi
  3118. else
  3119. if test "$GCC" = yes; then
  3120. CFLAGS="-O2"
  3121. else
  3122. CFLAGS=
  3123. fi
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3126. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3127. if ${ac_cv_prog_cc_c89+:} false; then :
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. ac_cv_prog_cc_c89=no
  3131. ac_save_CC=$CC
  3132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3133. /* end confdefs.h. */
  3134. #include <stdarg.h>
  3135. #include <stdio.h>
  3136. struct stat;
  3137. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3138. struct buf { int x; };
  3139. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3140. static char *e (p, i)
  3141. char **p;
  3142. int i;
  3143. {
  3144. return p[i];
  3145. }
  3146. static char *f (char * (*g) (char **, int), char **p, ...)
  3147. {
  3148. char *s;
  3149. va_list v;
  3150. va_start (v,p);
  3151. s = g (p, va_arg (v,int));
  3152. va_end (v);
  3153. return s;
  3154. }
  3155. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3156. function prototypes and stuff, but not '\xHH' hex character constants.
  3157. These don't provoke an error unfortunately, instead are silently treated
  3158. as 'x'. The following induces an error, until -std is added to get
  3159. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3160. array size at least. It's necessary to write '\x00'==0 to get something
  3161. that's true only with -std. */
  3162. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3163. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3164. inside strings and character constants. */
  3165. #define FOO(x) 'x'
  3166. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3167. int test (int i, double x);
  3168. struct s1 {int (*f) (int a);};
  3169. struct s2 {int (*f) (double a);};
  3170. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3171. int argc;
  3172. char **argv;
  3173. int
  3174. main ()
  3175. {
  3176. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3182. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3183. do
  3184. CC="$ac_save_CC $ac_arg"
  3185. if ac_fn_c_try_compile "$LINENO"; then :
  3186. ac_cv_prog_cc_c89=$ac_arg
  3187. fi
  3188. rm -f core conftest.err conftest.$ac_objext
  3189. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3190. done
  3191. rm -f conftest.$ac_ext
  3192. CC=$ac_save_CC
  3193. fi
  3194. # AC_CACHE_VAL
  3195. case "x$ac_cv_prog_cc_c89" in
  3196. x)
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3198. $as_echo "none needed" >&6; } ;;
  3199. xno)
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3201. $as_echo "unsupported" >&6; } ;;
  3202. *)
  3203. CC="$CC $ac_cv_prog_cc_c89"
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3205. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3206. esac
  3207. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3208. fi
  3209. ac_ext=c
  3210. ac_cpp='$CPP $CPPFLAGS'
  3211. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3212. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3213. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3214. ac_ext=c
  3215. ac_cpp='$CPP $CPPFLAGS'
  3216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3220. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3221. if ${am_cv_prog_cc_c_o+:} false; then :
  3222. $as_echo_n "(cached) " >&6
  3223. else
  3224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3225. /* end confdefs.h. */
  3226. int
  3227. main ()
  3228. {
  3229. ;
  3230. return 0;
  3231. }
  3232. _ACEOF
  3233. # Make sure it works both with $CC and with simple cc.
  3234. # Following AC_PROG_CC_C_O, we do the test twice because some
  3235. # compilers refuse to overwrite an existing .o file with -o,
  3236. # though they will create one.
  3237. am_cv_prog_cc_c_o=yes
  3238. for am_i in 1 2; do
  3239. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3240. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3241. ac_status=$?
  3242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3243. (exit $ac_status); } \
  3244. && test -f conftest2.$ac_objext; then
  3245. : OK
  3246. else
  3247. am_cv_prog_cc_c_o=no
  3248. break
  3249. fi
  3250. done
  3251. rm -f core conftest*
  3252. unset am_i
  3253. fi
  3254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3255. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3256. if test "$am_cv_prog_cc_c_o" != yes; then
  3257. # Losing compiler, so override with the script.
  3258. # FIXME: It is wrong to rewrite CC.
  3259. # But if we don't then we get into trouble of one sort or another.
  3260. # A longer-term fix would be to have automake use am__CC in this case,
  3261. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3262. CC="$am_aux_dir/compile $CC"
  3263. fi
  3264. ac_ext=c
  3265. ac_cpp='$CPP $CPPFLAGS'
  3266. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3267. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3268. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3269. ac_ext=c
  3270. ac_cpp='$CPP $CPPFLAGS'
  3271. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3272. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3273. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3275. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3276. # On Suns, sometimes $CPP names a directory.
  3277. if test -n "$CPP" && test -d "$CPP"; then
  3278. CPP=
  3279. fi
  3280. if test -z "$CPP"; then
  3281. if ${ac_cv_prog_CPP+:} false; then :
  3282. $as_echo_n "(cached) " >&6
  3283. else
  3284. # Double quotes because CPP needs to be expanded
  3285. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3286. do
  3287. ac_preproc_ok=false
  3288. for ac_c_preproc_warn_flag in '' yes
  3289. do
  3290. # Use a header file that comes with gcc, so configuring glibc
  3291. # with a fresh cross-compiler works.
  3292. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3293. # <limits.h> exists even on freestanding compilers.
  3294. # On the NeXT, cc -E runs the code through the compiler's parser,
  3295. # not just through cpp. "Syntax error" is here to catch this case.
  3296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3297. /* end confdefs.h. */
  3298. #ifdef __STDC__
  3299. # include <limits.h>
  3300. #else
  3301. # include <assert.h>
  3302. #endif
  3303. Syntax error
  3304. _ACEOF
  3305. if ac_fn_c_try_cpp "$LINENO"; then :
  3306. else
  3307. # Broken: fails on valid input.
  3308. continue
  3309. fi
  3310. rm -f conftest.err conftest.i conftest.$ac_ext
  3311. # OK, works on sane cases. Now check whether nonexistent headers
  3312. # can be detected and how.
  3313. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3314. /* end confdefs.h. */
  3315. #include <ac_nonexistent.h>
  3316. _ACEOF
  3317. if ac_fn_c_try_cpp "$LINENO"; then :
  3318. # Broken: success on invalid input.
  3319. continue
  3320. else
  3321. # Passes both tests.
  3322. ac_preproc_ok=:
  3323. break
  3324. fi
  3325. rm -f conftest.err conftest.i conftest.$ac_ext
  3326. done
  3327. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3328. rm -f conftest.i conftest.err conftest.$ac_ext
  3329. if $ac_preproc_ok; then :
  3330. break
  3331. fi
  3332. done
  3333. ac_cv_prog_CPP=$CPP
  3334. fi
  3335. CPP=$ac_cv_prog_CPP
  3336. else
  3337. ac_cv_prog_CPP=$CPP
  3338. fi
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3340. $as_echo "$CPP" >&6; }
  3341. ac_preproc_ok=false
  3342. for ac_c_preproc_warn_flag in '' yes
  3343. do
  3344. # Use a header file that comes with gcc, so configuring glibc
  3345. # with a fresh cross-compiler works.
  3346. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3347. # <limits.h> exists even on freestanding compilers.
  3348. # On the NeXT, cc -E runs the code through the compiler's parser,
  3349. # not just through cpp. "Syntax error" is here to catch this case.
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352. #ifdef __STDC__
  3353. # include <limits.h>
  3354. #else
  3355. # include <assert.h>
  3356. #endif
  3357. Syntax error
  3358. _ACEOF
  3359. if ac_fn_c_try_cpp "$LINENO"; then :
  3360. else
  3361. # Broken: fails on valid input.
  3362. continue
  3363. fi
  3364. rm -f conftest.err conftest.i conftest.$ac_ext
  3365. # OK, works on sane cases. Now check whether nonexistent headers
  3366. # can be detected and how.
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <ac_nonexistent.h>
  3370. _ACEOF
  3371. if ac_fn_c_try_cpp "$LINENO"; then :
  3372. # Broken: success on invalid input.
  3373. continue
  3374. else
  3375. # Passes both tests.
  3376. ac_preproc_ok=:
  3377. break
  3378. fi
  3379. rm -f conftest.err conftest.i conftest.$ac_ext
  3380. done
  3381. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3382. rm -f conftest.i conftest.err conftest.$ac_ext
  3383. if $ac_preproc_ok; then :
  3384. else
  3385. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3387. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3388. See \`config.log' for more details" "$LINENO" 5; }
  3389. fi
  3390. ac_ext=c
  3391. ac_cpp='$CPP $CPPFLAGS'
  3392. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3393. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3394. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3396. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3397. if ${ac_cv_path_GREP+:} false; then :
  3398. $as_echo_n "(cached) " >&6
  3399. else
  3400. if test -z "$GREP"; then
  3401. ac_path_GREP_found=false
  3402. # Loop through the user's path and test for each of PROGNAME-LIST
  3403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3404. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3405. do
  3406. IFS=$as_save_IFS
  3407. test -z "$as_dir" && as_dir=.
  3408. for ac_prog in grep ggrep; do
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3411. as_fn_executable_p "$ac_path_GREP" || continue
  3412. # Check for GNU ac_path_GREP and select it if it is found.
  3413. # Check for GNU $ac_path_GREP
  3414. case `"$ac_path_GREP" --version 2>&1` in
  3415. *GNU*)
  3416. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3417. *)
  3418. ac_count=0
  3419. $as_echo_n 0123456789 >"conftest.in"
  3420. while :
  3421. do
  3422. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3423. mv "conftest.tmp" "conftest.in"
  3424. cp "conftest.in" "conftest.nl"
  3425. $as_echo 'GREP' >> "conftest.nl"
  3426. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3427. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3428. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3429. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3430. # Best one so far, save it but keep looking for a better one
  3431. ac_cv_path_GREP="$ac_path_GREP"
  3432. ac_path_GREP_max=$ac_count
  3433. fi
  3434. # 10*(2^10) chars as input seems more than enough
  3435. test $ac_count -gt 10 && break
  3436. done
  3437. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3438. esac
  3439. $ac_path_GREP_found && break 3
  3440. done
  3441. done
  3442. done
  3443. IFS=$as_save_IFS
  3444. if test -z "$ac_cv_path_GREP"; then
  3445. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3446. fi
  3447. else
  3448. ac_cv_path_GREP=$GREP
  3449. fi
  3450. fi
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3452. $as_echo "$ac_cv_path_GREP" >&6; }
  3453. GREP="$ac_cv_path_GREP"
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3455. $as_echo_n "checking for egrep... " >&6; }
  3456. if ${ac_cv_path_EGREP+:} false; then :
  3457. $as_echo_n "(cached) " >&6
  3458. else
  3459. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3460. then ac_cv_path_EGREP="$GREP -E"
  3461. else
  3462. if test -z "$EGREP"; then
  3463. ac_path_EGREP_found=false
  3464. # Loop through the user's path and test for each of PROGNAME-LIST
  3465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3466. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3467. do
  3468. IFS=$as_save_IFS
  3469. test -z "$as_dir" && as_dir=.
  3470. for ac_prog in egrep; do
  3471. for ac_exec_ext in '' $ac_executable_extensions; do
  3472. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3473. as_fn_executable_p "$ac_path_EGREP" || continue
  3474. # Check for GNU ac_path_EGREP and select it if it is found.
  3475. # Check for GNU $ac_path_EGREP
  3476. case `"$ac_path_EGREP" --version 2>&1` in
  3477. *GNU*)
  3478. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3479. *)
  3480. ac_count=0
  3481. $as_echo_n 0123456789 >"conftest.in"
  3482. while :
  3483. do
  3484. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3485. mv "conftest.tmp" "conftest.in"
  3486. cp "conftest.in" "conftest.nl"
  3487. $as_echo 'EGREP' >> "conftest.nl"
  3488. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3489. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3490. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3491. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3492. # Best one so far, save it but keep looking for a better one
  3493. ac_cv_path_EGREP="$ac_path_EGREP"
  3494. ac_path_EGREP_max=$ac_count
  3495. fi
  3496. # 10*(2^10) chars as input seems more than enough
  3497. test $ac_count -gt 10 && break
  3498. done
  3499. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3500. esac
  3501. $ac_path_EGREP_found && break 3
  3502. done
  3503. done
  3504. done
  3505. IFS=$as_save_IFS
  3506. if test -z "$ac_cv_path_EGREP"; then
  3507. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3508. fi
  3509. else
  3510. ac_cv_path_EGREP=$EGREP
  3511. fi
  3512. fi
  3513. fi
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3515. $as_echo "$ac_cv_path_EGREP" >&6; }
  3516. EGREP="$ac_cv_path_EGREP"
  3517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3518. $as_echo_n "checking for ANSI C header files... " >&6; }
  3519. if ${ac_cv_header_stdc+:} false; then :
  3520. $as_echo_n "(cached) " >&6
  3521. else
  3522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3523. /* end confdefs.h. */
  3524. #include <stdlib.h>
  3525. #include <stdarg.h>
  3526. #include <string.h>
  3527. #include <float.h>
  3528. int
  3529. main ()
  3530. {
  3531. ;
  3532. return 0;
  3533. }
  3534. _ACEOF
  3535. if ac_fn_c_try_compile "$LINENO"; then :
  3536. ac_cv_header_stdc=yes
  3537. else
  3538. ac_cv_header_stdc=no
  3539. fi
  3540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3541. if test $ac_cv_header_stdc = yes; then
  3542. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3544. /* end confdefs.h. */
  3545. #include <string.h>
  3546. _ACEOF
  3547. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3548. $EGREP "memchr" >/dev/null 2>&1; then :
  3549. else
  3550. ac_cv_header_stdc=no
  3551. fi
  3552. rm -f conftest*
  3553. fi
  3554. if test $ac_cv_header_stdc = yes; then
  3555. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3557. /* end confdefs.h. */
  3558. #include <stdlib.h>
  3559. _ACEOF
  3560. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3561. $EGREP "free" >/dev/null 2>&1; then :
  3562. else
  3563. ac_cv_header_stdc=no
  3564. fi
  3565. rm -f conftest*
  3566. fi
  3567. if test $ac_cv_header_stdc = yes; then
  3568. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3569. if test "$cross_compiling" = yes; then :
  3570. :
  3571. else
  3572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3573. /* end confdefs.h. */
  3574. #include <ctype.h>
  3575. #include <stdlib.h>
  3576. #if ((' ' & 0x0FF) == 0x020)
  3577. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3578. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3579. #else
  3580. # define ISLOWER(c) \
  3581. (('a' <= (c) && (c) <= 'i') \
  3582. || ('j' <= (c) && (c) <= 'r') \
  3583. || ('s' <= (c) && (c) <= 'z'))
  3584. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3585. #endif
  3586. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3587. int
  3588. main ()
  3589. {
  3590. int i;
  3591. for (i = 0; i < 256; i++)
  3592. if (XOR (islower (i), ISLOWER (i))
  3593. || toupper (i) != TOUPPER (i))
  3594. return 2;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. if ac_fn_c_try_run "$LINENO"; then :
  3599. else
  3600. ac_cv_header_stdc=no
  3601. fi
  3602. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3603. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3604. fi
  3605. fi
  3606. fi
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3608. $as_echo "$ac_cv_header_stdc" >&6; }
  3609. if test $ac_cv_header_stdc = yes; then
  3610. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3611. fi
  3612. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3613. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3614. inttypes.h stdint.h unistd.h
  3615. do :
  3616. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3617. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3618. "
  3619. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3620. cat >>confdefs.h <<_ACEOF
  3621. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3622. _ACEOF
  3623. fi
  3624. done
  3625. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3626. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3627. MINIX=yes
  3628. else
  3629. MINIX=
  3630. fi
  3631. if test "$MINIX" = yes; then
  3632. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3633. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3634. $as_echo "#define _MINIX 1" >>confdefs.h
  3635. fi
  3636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3637. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3638. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3639. $as_echo_n "(cached) " >&6
  3640. else
  3641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3642. /* end confdefs.h. */
  3643. # define __EXTENSIONS__ 1
  3644. $ac_includes_default
  3645. int
  3646. main ()
  3647. {
  3648. ;
  3649. return 0;
  3650. }
  3651. _ACEOF
  3652. if ac_fn_c_try_compile "$LINENO"; then :
  3653. ac_cv_safe_to_define___extensions__=yes
  3654. else
  3655. ac_cv_safe_to_define___extensions__=no
  3656. fi
  3657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3658. fi
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3660. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3661. test $ac_cv_safe_to_define___extensions__ = yes &&
  3662. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3663. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3664. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3665. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3666. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3667. libtool_VERSION=1:0:0
  3668. # 1.11.1: Require that version of automake.
  3669. # foreign: Don't require README, INSTALL, NEWS, etc.
  3670. # no-define: Don't define PACKAGE and VERSION.
  3671. # no-dependencies: Don't generate automatic dependencies.
  3672. # (because it breaks when using bootstrap-lean, since some of the
  3673. # headers are gone at "make install" time).
  3674. # -Wall: Issue all automake warnings.
  3675. # -Wno-portability: Don't warn about constructs supported by GNU make.
  3676. # (because GCC requires GNU make anyhow).
  3677. am__api_version='1.15'
  3678. # Find a good install program. We prefer a C program (faster),
  3679. # so one script is as good as another. But avoid the broken or
  3680. # incompatible versions:
  3681. # SysV /etc/install, /usr/sbin/install
  3682. # SunOS /usr/etc/install
  3683. # IRIX /sbin/install
  3684. # AIX /bin/install
  3685. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3686. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3687. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3688. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3689. # OS/2's system install, which has a completely different semantic
  3690. # ./install, which can be erroneously created by make from ./install.sh.
  3691. # Reject install programs that cannot install multiple files.
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3693. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3694. if test -z "$INSTALL"; then
  3695. if ${ac_cv_path_install+:} false; then :
  3696. $as_echo_n "(cached) " >&6
  3697. else
  3698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3699. for as_dir in $PATH
  3700. do
  3701. IFS=$as_save_IFS
  3702. test -z "$as_dir" && as_dir=.
  3703. # Account for people who put trailing slashes in PATH elements.
  3704. case $as_dir/ in #((
  3705. ./ | .// | /[cC]/* | \
  3706. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3707. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3708. /usr/ucb/* ) ;;
  3709. *)
  3710. # OSF1 and SCO ODT 3.0 have their own names for install.
  3711. # Don't use installbsd from OSF since it installs stuff as root
  3712. # by default.
  3713. for ac_prog in ginstall scoinst install; do
  3714. for ac_exec_ext in '' $ac_executable_extensions; do
  3715. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3716. if test $ac_prog = install &&
  3717. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3718. # AIX install. It has an incompatible calling convention.
  3719. :
  3720. elif test $ac_prog = install &&
  3721. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3722. # program-specific install script used by HP pwplus--don't use.
  3723. :
  3724. else
  3725. rm -rf conftest.one conftest.two conftest.dir
  3726. echo one > conftest.one
  3727. echo two > conftest.two
  3728. mkdir conftest.dir
  3729. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3730. test -s conftest.one && test -s conftest.two &&
  3731. test -s conftest.dir/conftest.one &&
  3732. test -s conftest.dir/conftest.two
  3733. then
  3734. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3735. break 3
  3736. fi
  3737. fi
  3738. fi
  3739. done
  3740. done
  3741. ;;
  3742. esac
  3743. done
  3744. IFS=$as_save_IFS
  3745. rm -rf conftest.one conftest.two conftest.dir
  3746. fi
  3747. if test "${ac_cv_path_install+set}" = set; then
  3748. INSTALL=$ac_cv_path_install
  3749. else
  3750. # As a last resort, use the slow shell script. Don't cache a
  3751. # value for INSTALL within a source directory, because that will
  3752. # break other packages using the cache if that directory is
  3753. # removed, or if the value is a relative name.
  3754. INSTALL=$ac_install_sh
  3755. fi
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3758. $as_echo "$INSTALL" >&6; }
  3759. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3760. # It thinks the first close brace ends the variable substitution.
  3761. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3762. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3763. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3765. $as_echo_n "checking whether build environment is sane... " >&6; }
  3766. # Reject unsafe characters in $srcdir or the absolute working directory
  3767. # name. Accept space and tab only in the latter.
  3768. am_lf='
  3769. '
  3770. case `pwd` in
  3771. *[\\\"\#\$\&\'\`$am_lf]*)
  3772. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3773. esac
  3774. case $srcdir in
  3775. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3776. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3777. esac
  3778. # Do 'set' in a subshell so we don't clobber the current shell's
  3779. # arguments. Must try -L first in case configure is actually a
  3780. # symlink; some systems play weird games with the mod time of symlinks
  3781. # (eg FreeBSD returns the mod time of the symlink's containing
  3782. # directory).
  3783. if (
  3784. am_has_slept=no
  3785. for am_try in 1 2; do
  3786. echo "timestamp, slept: $am_has_slept" > conftest.file
  3787. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3788. if test "$*" = "X"; then
  3789. # -L didn't work.
  3790. set X `ls -t "$srcdir/configure" conftest.file`
  3791. fi
  3792. if test "$*" != "X $srcdir/configure conftest.file" \
  3793. && test "$*" != "X conftest.file $srcdir/configure"; then
  3794. # If neither matched, then we have a broken ls. This can happen
  3795. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3796. # broken ls alias from the environment. This has actually
  3797. # happened. Such a system could not be considered "sane".
  3798. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3799. alias in your environment" "$LINENO" 5
  3800. fi
  3801. if test "$2" = conftest.file || test $am_try -eq 2; then
  3802. break
  3803. fi
  3804. # Just in case.
  3805. sleep 1
  3806. am_has_slept=yes
  3807. done
  3808. test "$2" = conftest.file
  3809. )
  3810. then
  3811. # Ok.
  3812. :
  3813. else
  3814. as_fn_error $? "newly created file is older than distributed files!
  3815. Check your system clock" "$LINENO" 5
  3816. fi
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3818. $as_echo "yes" >&6; }
  3819. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3820. # generated files are strictly newer.
  3821. am_sleep_pid=
  3822. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3823. ( sleep 1 ) &
  3824. am_sleep_pid=$!
  3825. fi
  3826. rm -f conftest.file
  3827. test "$program_prefix" != NONE &&
  3828. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3829. # Use a double $ so make ignores it.
  3830. test "$program_suffix" != NONE &&
  3831. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3832. # Double any \ or $.
  3833. # By default was `s,x,x', remove it if useless.
  3834. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3835. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3836. if test x"${MISSING+set}" != xset; then
  3837. case $am_aux_dir in
  3838. *\ * | *\ *)
  3839. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3840. *)
  3841. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3842. esac
  3843. fi
  3844. # Use eval to expand $SHELL
  3845. if eval "$MISSING --is-lightweight"; then
  3846. am_missing_run="$MISSING "
  3847. else
  3848. am_missing_run=
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3850. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3851. fi
  3852. if test x"${install_sh+set}" != xset; then
  3853. case $am_aux_dir in
  3854. *\ * | *\ *)
  3855. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3856. *)
  3857. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3858. esac
  3859. fi
  3860. # Installed binaries are usually stripped using 'strip' when the user
  3861. # run "make install-strip". However 'strip' might not be the right
  3862. # tool to use in cross-compilation environments, therefore Automake
  3863. # will honor the 'STRIP' environment variable to overrule this program.
  3864. if test "$cross_compiling" != no; then
  3865. if test -n "$ac_tool_prefix"; then
  3866. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3867. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3869. $as_echo_n "checking for $ac_word... " >&6; }
  3870. if ${ac_cv_prog_STRIP+:} false; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. if test -n "$STRIP"; then
  3874. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3875. else
  3876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3877. for as_dir in $PATH
  3878. do
  3879. IFS=$as_save_IFS
  3880. test -z "$as_dir" && as_dir=.
  3881. for ac_exec_ext in '' $ac_executable_extensions; do
  3882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3883. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3885. break 2
  3886. fi
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. fi
  3891. fi
  3892. STRIP=$ac_cv_prog_STRIP
  3893. if test -n "$STRIP"; then
  3894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3895. $as_echo "$STRIP" >&6; }
  3896. else
  3897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3898. $as_echo "no" >&6; }
  3899. fi
  3900. fi
  3901. if test -z "$ac_cv_prog_STRIP"; then
  3902. ac_ct_STRIP=$STRIP
  3903. # Extract the first word of "strip", so it can be a program name with args.
  3904. set dummy strip; ac_word=$2
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3906. $as_echo_n "checking for $ac_word... " >&6; }
  3907. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. if test -n "$ac_ct_STRIP"; then
  3911. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3912. else
  3913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3914. for as_dir in $PATH
  3915. do
  3916. IFS=$as_save_IFS
  3917. test -z "$as_dir" && as_dir=.
  3918. for ac_exec_ext in '' $ac_executable_extensions; do
  3919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3920. ac_cv_prog_ac_ct_STRIP="strip"
  3921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3922. break 2
  3923. fi
  3924. done
  3925. done
  3926. IFS=$as_save_IFS
  3927. fi
  3928. fi
  3929. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3930. if test -n "$ac_ct_STRIP"; then
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3932. $as_echo "$ac_ct_STRIP" >&6; }
  3933. else
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3935. $as_echo "no" >&6; }
  3936. fi
  3937. if test "x$ac_ct_STRIP" = x; then
  3938. STRIP=":"
  3939. else
  3940. case $cross_compiling:$ac_tool_warned in
  3941. yes:)
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3944. ac_tool_warned=yes ;;
  3945. esac
  3946. STRIP=$ac_ct_STRIP
  3947. fi
  3948. else
  3949. STRIP="$ac_cv_prog_STRIP"
  3950. fi
  3951. fi
  3952. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3954. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3955. if test -z "$MKDIR_P"; then
  3956. if ${ac_cv_path_mkdir+:} false; then :
  3957. $as_echo_n "(cached) " >&6
  3958. else
  3959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3960. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3961. do
  3962. IFS=$as_save_IFS
  3963. test -z "$as_dir" && as_dir=.
  3964. for ac_prog in mkdir gmkdir; do
  3965. for ac_exec_ext in '' $ac_executable_extensions; do
  3966. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3967. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3968. 'mkdir (GNU coreutils) '* | \
  3969. 'mkdir (coreutils) '* | \
  3970. 'mkdir (fileutils) '4.1*)
  3971. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3972. break 3;;
  3973. esac
  3974. done
  3975. done
  3976. done
  3977. IFS=$as_save_IFS
  3978. fi
  3979. test -d ./--version && rmdir ./--version
  3980. if test "${ac_cv_path_mkdir+set}" = set; then
  3981. MKDIR_P="$ac_cv_path_mkdir -p"
  3982. else
  3983. # As a last resort, use the slow shell script. Don't cache a
  3984. # value for MKDIR_P within a source directory, because that will
  3985. # break other packages using the cache if that directory is
  3986. # removed, or if the value is a relative name.
  3987. MKDIR_P="$ac_install_sh -d"
  3988. fi
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3991. $as_echo "$MKDIR_P" >&6; }
  3992. for ac_prog in gawk mawk nawk awk
  3993. do
  3994. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3995. set dummy $ac_prog; ac_word=$2
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3997. $as_echo_n "checking for $ac_word... " >&6; }
  3998. if ${ac_cv_prog_AWK+:} false; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. if test -n "$AWK"; then
  4002. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4003. else
  4004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4005. for as_dir in $PATH
  4006. do
  4007. IFS=$as_save_IFS
  4008. test -z "$as_dir" && as_dir=.
  4009. for ac_exec_ext in '' $ac_executable_extensions; do
  4010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4011. ac_cv_prog_AWK="$ac_prog"
  4012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4013. break 2
  4014. fi
  4015. done
  4016. done
  4017. IFS=$as_save_IFS
  4018. fi
  4019. fi
  4020. AWK=$ac_cv_prog_AWK
  4021. if test -n "$AWK"; then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4023. $as_echo "$AWK" >&6; }
  4024. else
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4026. $as_echo "no" >&6; }
  4027. fi
  4028. test -n "$AWK" && break
  4029. done
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4031. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4032. set x ${MAKE-make}
  4033. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4034. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4035. $as_echo_n "(cached) " >&6
  4036. else
  4037. cat >conftest.make <<\_ACEOF
  4038. SHELL = /bin/sh
  4039. all:
  4040. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4041. _ACEOF
  4042. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4043. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4044. *@@@%%%=?*=@@@%%%*)
  4045. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4046. *)
  4047. eval ac_cv_prog_make_${ac_make}_set=no;;
  4048. esac
  4049. rm -f conftest.make
  4050. fi
  4051. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4053. $as_echo "yes" >&6; }
  4054. SET_MAKE=
  4055. else
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4057. $as_echo "no" >&6; }
  4058. SET_MAKE="MAKE=${MAKE-make}"
  4059. fi
  4060. rm -rf .tst 2>/dev/null
  4061. mkdir .tst 2>/dev/null
  4062. if test -d .tst; then
  4063. am__leading_dot=.
  4064. else
  4065. am__leading_dot=_
  4066. fi
  4067. rmdir .tst 2>/dev/null
  4068. # Check whether --enable-silent-rules was given.
  4069. if test "${enable_silent_rules+set}" = set; then :
  4070. enableval=$enable_silent_rules;
  4071. fi
  4072. case $enable_silent_rules in # (((
  4073. yes) AM_DEFAULT_VERBOSITY=0;;
  4074. no) AM_DEFAULT_VERBOSITY=1;;
  4075. *) AM_DEFAULT_VERBOSITY=1;;
  4076. esac
  4077. am_make=${MAKE-make}
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  4079. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  4080. if ${am_cv_make_support_nested_variables+:} false; then :
  4081. $as_echo_n "(cached) " >&6
  4082. else
  4083. if $as_echo 'TRUE=$(BAR$(V))
  4084. BAR0=false
  4085. BAR1=true
  4086. V=1
  4087. am__doit:
  4088. @$(TRUE)
  4089. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  4090. am_cv_make_support_nested_variables=yes
  4091. else
  4092. am_cv_make_support_nested_variables=no
  4093. fi
  4094. fi
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  4096. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  4097. if test $am_cv_make_support_nested_variables = yes; then
  4098. AM_V='$(V)'
  4099. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  4100. else
  4101. AM_V=$AM_DEFAULT_VERBOSITY
  4102. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  4103. fi
  4104. AM_BACKSLASH='\'
  4105. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  4106. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  4107. # is not polluted with repeated "-I."
  4108. am__isrc=' -I$(srcdir)'
  4109. # test to see if srcdir already configured
  4110. if test -f $srcdir/config.status; then
  4111. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  4112. fi
  4113. fi
  4114. # test whether we have cygpath
  4115. if test -z "$CYGPATH_W"; then
  4116. if (cygpath --version) >/dev/null 2>/dev/null; then
  4117. CYGPATH_W='cygpath -w'
  4118. else
  4119. CYGPATH_W=echo
  4120. fi
  4121. fi
  4122. # Define the identity of the package.
  4123. PACKAGE='libbacktrace'
  4124. VERSION='version-unused'
  4125. # Some tools Automake needs.
  4126. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  4127. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  4128. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  4129. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  4130. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  4131. # For better backward compatibility. To be removed once Automake 1.9.x
  4132. # dies out for good. For more background, see:
  4133. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  4134. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  4135. mkdir_p='$(MKDIR_P)'
  4136. # We need awk for the "check" target (and possibly the TAP driver). The
  4137. # system "awk" is bad on some platforms.
  4138. # Always define AMTAR for backward compatibility. Yes, it's still used
  4139. # in the wild :-( We should find a proper way to deprecate it ...
  4140. AMTAR='$${TAR-tar}'
  4141. # We'll loop over all known methods to create a tar archive until one works.
  4142. _am_tools='gnutar pax cpio none'
  4143. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  4144. # POSIX will say in a future version that running "rm -f" with no argument
  4145. # is OK; and we want to be able to make that assumption in our Makefile
  4146. # recipes. So use an aggressive probe to check that the usage we want is
  4147. # actually supported "in the wild" to an acceptable degree.
  4148. # See automake bug#10828.
  4149. # To make any issue more visible, cause the running configure to be aborted
  4150. # by default if the 'rm' program in use doesn't match our expectations; the
  4151. # user can still override this though.
  4152. if rm -f && rm -fr && rm -rf; then : OK; else
  4153. cat >&2 <<'END'
  4154. Oops!
  4155. Your 'rm' program seems unable to run without file operands specified
  4156. on the command line, even when the '-f' option is present. This is contrary
  4157. to the behaviour of most rm programs out there, and not conforming with
  4158. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  4159. Please tell bug-automake@gnu.org about your system, including the value
  4160. of your $PATH and any error possibly output before this message. This
  4161. can help us improve future automake versions.
  4162. END
  4163. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  4164. echo 'Configuration will proceed anyway, since you have set the' >&2
  4165. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  4166. echo >&2
  4167. else
  4168. cat >&2 <<'END'
  4169. Aborting the configuration process, to ensure you take notice of the issue.
  4170. You can download and install GNU coreutils to get an 'rm' implementation
  4171. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  4172. If you want to complete the configuration process using your problematic
  4173. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  4174. to "yes", and re-run configure.
  4175. END
  4176. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  4177. fi
  4178. fi
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  4180. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  4181. # Check whether --enable-maintainer-mode was given.
  4182. if test "${enable_maintainer_mode+set}" = set; then :
  4183. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  4184. else
  4185. USE_MAINTAINER_MODE=no
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  4188. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  4189. if test $USE_MAINTAINER_MODE = yes; then
  4190. MAINTAINER_MODE_TRUE=
  4191. MAINTAINER_MODE_FALSE='#'
  4192. else
  4193. MAINTAINER_MODE_TRUE='#'
  4194. MAINTAINER_MODE_FALSE=
  4195. fi
  4196. MAINT=$MAINTAINER_MODE_TRUE
  4197. # Check whether --with-target-subdir was given.
  4198. if test "${with_target_subdir+set}" = set; then :
  4199. withval=$with_target_subdir;
  4200. fi
  4201. # We must force CC to /not/ be precious variables; otherwise
  4202. # the wrong, non-multilib-adjusted value will be used in multilibs.
  4203. # As a side effect, we have to subst CFLAGS ourselves.
  4204. ac_ext=c
  4205. ac_cpp='$CPP $CPPFLAGS'
  4206. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4207. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4208. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4209. if test -n "$ac_tool_prefix"; then
  4210. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4211. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4213. $as_echo_n "checking for $ac_word... " >&6; }
  4214. if ${ac_cv_prog_CC+:} false; then :
  4215. $as_echo_n "(cached) " >&6
  4216. else
  4217. if test -n "$CC"; then
  4218. ac_cv_prog_CC="$CC" # Let the user override the test.
  4219. else
  4220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4221. for as_dir in $PATH
  4222. do
  4223. IFS=$as_save_IFS
  4224. test -z "$as_dir" && as_dir=.
  4225. for ac_exec_ext in '' $ac_executable_extensions; do
  4226. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4227. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4229. break 2
  4230. fi
  4231. done
  4232. done
  4233. IFS=$as_save_IFS
  4234. fi
  4235. fi
  4236. CC=$ac_cv_prog_CC
  4237. if test -n "$CC"; then
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4239. $as_echo "$CC" >&6; }
  4240. else
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4242. $as_echo "no" >&6; }
  4243. fi
  4244. fi
  4245. if test -z "$ac_cv_prog_CC"; then
  4246. ac_ct_CC=$CC
  4247. # Extract the first word of "gcc", so it can be a program name with args.
  4248. set dummy gcc; ac_word=$2
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4250. $as_echo_n "checking for $ac_word... " >&6; }
  4251. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. if test -n "$ac_ct_CC"; then
  4255. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4256. else
  4257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4258. for as_dir in $PATH
  4259. do
  4260. IFS=$as_save_IFS
  4261. test -z "$as_dir" && as_dir=.
  4262. for ac_exec_ext in '' $ac_executable_extensions; do
  4263. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4264. ac_cv_prog_ac_ct_CC="gcc"
  4265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4266. break 2
  4267. fi
  4268. done
  4269. done
  4270. IFS=$as_save_IFS
  4271. fi
  4272. fi
  4273. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4274. if test -n "$ac_ct_CC"; then
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4276. $as_echo "$ac_ct_CC" >&6; }
  4277. else
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4279. $as_echo "no" >&6; }
  4280. fi
  4281. if test "x$ac_ct_CC" = x; then
  4282. CC=""
  4283. else
  4284. case $cross_compiling:$ac_tool_warned in
  4285. yes:)
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4288. ac_tool_warned=yes ;;
  4289. esac
  4290. CC=$ac_ct_CC
  4291. fi
  4292. else
  4293. CC="$ac_cv_prog_CC"
  4294. fi
  4295. if test -z "$CC"; then
  4296. if test -n "$ac_tool_prefix"; then
  4297. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4298. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4300. $as_echo_n "checking for $ac_word... " >&6; }
  4301. if ${ac_cv_prog_CC+:} false; then :
  4302. $as_echo_n "(cached) " >&6
  4303. else
  4304. if test -n "$CC"; then
  4305. ac_cv_prog_CC="$CC" # Let the user override the test.
  4306. else
  4307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4308. for as_dir in $PATH
  4309. do
  4310. IFS=$as_save_IFS
  4311. test -z "$as_dir" && as_dir=.
  4312. for ac_exec_ext in '' $ac_executable_extensions; do
  4313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4314. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4316. break 2
  4317. fi
  4318. done
  4319. done
  4320. IFS=$as_save_IFS
  4321. fi
  4322. fi
  4323. CC=$ac_cv_prog_CC
  4324. if test -n "$CC"; then
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4326. $as_echo "$CC" >&6; }
  4327. else
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4329. $as_echo "no" >&6; }
  4330. fi
  4331. fi
  4332. fi
  4333. if test -z "$CC"; then
  4334. # Extract the first word of "cc", so it can be a program name with args.
  4335. set dummy cc; ac_word=$2
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4337. $as_echo_n "checking for $ac_word... " >&6; }
  4338. if ${ac_cv_prog_CC+:} false; then :
  4339. $as_echo_n "(cached) " >&6
  4340. else
  4341. if test -n "$CC"; then
  4342. ac_cv_prog_CC="$CC" # Let the user override the test.
  4343. else
  4344. ac_prog_rejected=no
  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. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4353. ac_prog_rejected=yes
  4354. continue
  4355. fi
  4356. ac_cv_prog_CC="cc"
  4357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4358. break 2
  4359. fi
  4360. done
  4361. done
  4362. IFS=$as_save_IFS
  4363. if test $ac_prog_rejected = yes; then
  4364. # We found a bogon in the path, so make sure we never use it.
  4365. set dummy $ac_cv_prog_CC
  4366. shift
  4367. if test $# != 0; then
  4368. # We chose a different compiler from the bogus one.
  4369. # However, it has the same basename, so the bogon will be chosen
  4370. # first if we set CC to just the basename; use the full file name.
  4371. shift
  4372. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4373. fi
  4374. fi
  4375. fi
  4376. fi
  4377. CC=$ac_cv_prog_CC
  4378. if test -n "$CC"; then
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4380. $as_echo "$CC" >&6; }
  4381. else
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4383. $as_echo "no" >&6; }
  4384. fi
  4385. fi
  4386. if test -z "$CC"; then
  4387. if test -n "$ac_tool_prefix"; then
  4388. for ac_prog in cl.exe
  4389. do
  4390. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4391. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4393. $as_echo_n "checking for $ac_word... " >&6; }
  4394. if ${ac_cv_prog_CC+:} false; then :
  4395. $as_echo_n "(cached) " >&6
  4396. else
  4397. if test -n "$CC"; then
  4398. ac_cv_prog_CC="$CC" # Let the user override the test.
  4399. else
  4400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4401. for as_dir in $PATH
  4402. do
  4403. IFS=$as_save_IFS
  4404. test -z "$as_dir" && as_dir=.
  4405. for ac_exec_ext in '' $ac_executable_extensions; do
  4406. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4407. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4408. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4409. break 2
  4410. fi
  4411. done
  4412. done
  4413. IFS=$as_save_IFS
  4414. fi
  4415. fi
  4416. CC=$ac_cv_prog_CC
  4417. if test -n "$CC"; then
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4419. $as_echo "$CC" >&6; }
  4420. else
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4422. $as_echo "no" >&6; }
  4423. fi
  4424. test -n "$CC" && break
  4425. done
  4426. fi
  4427. if test -z "$CC"; then
  4428. ac_ct_CC=$CC
  4429. for ac_prog in cl.exe
  4430. do
  4431. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4432. set dummy $ac_prog; ac_word=$2
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4434. $as_echo_n "checking for $ac_word... " >&6; }
  4435. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4436. $as_echo_n "(cached) " >&6
  4437. else
  4438. if test -n "$ac_ct_CC"; then
  4439. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4440. else
  4441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4442. for as_dir in $PATH
  4443. do
  4444. IFS=$as_save_IFS
  4445. test -z "$as_dir" && as_dir=.
  4446. for ac_exec_ext in '' $ac_executable_extensions; do
  4447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4448. ac_cv_prog_ac_ct_CC="$ac_prog"
  4449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4450. break 2
  4451. fi
  4452. done
  4453. done
  4454. IFS=$as_save_IFS
  4455. fi
  4456. fi
  4457. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4458. if test -n "$ac_ct_CC"; then
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4460. $as_echo "$ac_ct_CC" >&6; }
  4461. else
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4463. $as_echo "no" >&6; }
  4464. fi
  4465. test -n "$ac_ct_CC" && break
  4466. done
  4467. if test "x$ac_ct_CC" = x; then
  4468. CC=""
  4469. else
  4470. case $cross_compiling:$ac_tool_warned in
  4471. yes:)
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4473. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4474. ac_tool_warned=yes ;;
  4475. esac
  4476. CC=$ac_ct_CC
  4477. fi
  4478. fi
  4479. fi
  4480. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4481. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4482. as_fn_error $? "no acceptable C compiler found in \$PATH
  4483. See \`config.log' for more details" "$LINENO" 5; }
  4484. # Provide some information about the compiler.
  4485. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4486. set X $ac_compile
  4487. ac_compiler=$2
  4488. for ac_option in --version -v -V -qversion; do
  4489. { { ac_try="$ac_compiler $ac_option >&5"
  4490. case "(($ac_try" in
  4491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4492. *) ac_try_echo=$ac_try;;
  4493. esac
  4494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4495. $as_echo "$ac_try_echo"; } >&5
  4496. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4497. ac_status=$?
  4498. if test -s conftest.err; then
  4499. sed '10a\
  4500. ... rest of stderr output deleted ...
  4501. 10q' conftest.err >conftest.er1
  4502. cat conftest.er1 >&5
  4503. fi
  4504. rm -f conftest.er1 conftest.err
  4505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4506. test $ac_status = 0; }
  4507. done
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4509. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4510. if ${ac_cv_c_compiler_gnu+:} false; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4514. /* end confdefs.h. */
  4515. int
  4516. main ()
  4517. {
  4518. #ifndef __GNUC__
  4519. choke me
  4520. #endif
  4521. ;
  4522. return 0;
  4523. }
  4524. _ACEOF
  4525. if ac_fn_c_try_compile "$LINENO"; then :
  4526. ac_compiler_gnu=yes
  4527. else
  4528. ac_compiler_gnu=no
  4529. fi
  4530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4531. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4534. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4535. if test $ac_compiler_gnu = yes; then
  4536. GCC=yes
  4537. else
  4538. GCC=
  4539. fi
  4540. ac_test_CFLAGS=${CFLAGS+set}
  4541. ac_save_CFLAGS=$CFLAGS
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4543. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4544. if ${ac_cv_prog_cc_g+:} false; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. ac_save_c_werror_flag=$ac_c_werror_flag
  4548. ac_c_werror_flag=yes
  4549. ac_cv_prog_cc_g=no
  4550. CFLAGS="-g"
  4551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4552. /* end confdefs.h. */
  4553. int
  4554. main ()
  4555. {
  4556. ;
  4557. return 0;
  4558. }
  4559. _ACEOF
  4560. if ac_fn_c_try_compile "$LINENO"; then :
  4561. ac_cv_prog_cc_g=yes
  4562. else
  4563. CFLAGS=""
  4564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4565. /* end confdefs.h. */
  4566. int
  4567. main ()
  4568. {
  4569. ;
  4570. return 0;
  4571. }
  4572. _ACEOF
  4573. if ac_fn_c_try_compile "$LINENO"; then :
  4574. else
  4575. ac_c_werror_flag=$ac_save_c_werror_flag
  4576. CFLAGS="-g"
  4577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4578. /* end confdefs.h. */
  4579. int
  4580. main ()
  4581. {
  4582. ;
  4583. return 0;
  4584. }
  4585. _ACEOF
  4586. if ac_fn_c_try_compile "$LINENO"; then :
  4587. ac_cv_prog_cc_g=yes
  4588. fi
  4589. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4590. fi
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592. fi
  4593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4594. ac_c_werror_flag=$ac_save_c_werror_flag
  4595. fi
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4597. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4598. if test "$ac_test_CFLAGS" = set; then
  4599. CFLAGS=$ac_save_CFLAGS
  4600. elif test $ac_cv_prog_cc_g = yes; then
  4601. if test "$GCC" = yes; then
  4602. CFLAGS="-g -O2"
  4603. else
  4604. CFLAGS="-g"
  4605. fi
  4606. else
  4607. if test "$GCC" = yes; then
  4608. CFLAGS="-O2"
  4609. else
  4610. CFLAGS=
  4611. fi
  4612. fi
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4614. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4615. if ${ac_cv_prog_cc_c89+:} false; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. ac_cv_prog_cc_c89=no
  4619. ac_save_CC=$CC
  4620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4621. /* end confdefs.h. */
  4622. #include <stdarg.h>
  4623. #include <stdio.h>
  4624. struct stat;
  4625. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4626. struct buf { int x; };
  4627. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4628. static char *e (p, i)
  4629. char **p;
  4630. int i;
  4631. {
  4632. return p[i];
  4633. }
  4634. static char *f (char * (*g) (char **, int), char **p, ...)
  4635. {
  4636. char *s;
  4637. va_list v;
  4638. va_start (v,p);
  4639. s = g (p, va_arg (v,int));
  4640. va_end (v);
  4641. return s;
  4642. }
  4643. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4644. function prototypes and stuff, but not '\xHH' hex character constants.
  4645. These don't provoke an error unfortunately, instead are silently treated
  4646. as 'x'. The following induces an error, until -std is added to get
  4647. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4648. array size at least. It's necessary to write '\x00'==0 to get something
  4649. that's true only with -std. */
  4650. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4651. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4652. inside strings and character constants. */
  4653. #define FOO(x) 'x'
  4654. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4655. int test (int i, double x);
  4656. struct s1 {int (*f) (int a);};
  4657. struct s2 {int (*f) (double a);};
  4658. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4659. int argc;
  4660. char **argv;
  4661. int
  4662. main ()
  4663. {
  4664. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4665. ;
  4666. return 0;
  4667. }
  4668. _ACEOF
  4669. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4670. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4671. do
  4672. CC="$ac_save_CC $ac_arg"
  4673. if ac_fn_c_try_compile "$LINENO"; then :
  4674. ac_cv_prog_cc_c89=$ac_arg
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext
  4677. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4678. done
  4679. rm -f conftest.$ac_ext
  4680. CC=$ac_save_CC
  4681. fi
  4682. # AC_CACHE_VAL
  4683. case "x$ac_cv_prog_cc_c89" in
  4684. x)
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4686. $as_echo "none needed" >&6; } ;;
  4687. xno)
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4689. $as_echo "unsupported" >&6; } ;;
  4690. *)
  4691. CC="$CC $ac_cv_prog_cc_c89"
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4693. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4694. esac
  4695. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4696. fi
  4697. ac_ext=c
  4698. ac_cpp='$CPP $CPPFLAGS'
  4699. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4700. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4701. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4702. ac_ext=c
  4703. ac_cpp='$CPP $CPPFLAGS'
  4704. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4705. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4706. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4708. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4709. if ${am_cv_prog_cc_c_o+:} false; then :
  4710. $as_echo_n "(cached) " >&6
  4711. else
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. int
  4715. main ()
  4716. {
  4717. ;
  4718. return 0;
  4719. }
  4720. _ACEOF
  4721. # Make sure it works both with $CC and with simple cc.
  4722. # Following AC_PROG_CC_C_O, we do the test twice because some
  4723. # compilers refuse to overwrite an existing .o file with -o,
  4724. # though they will create one.
  4725. am_cv_prog_cc_c_o=yes
  4726. for am_i in 1 2; do
  4727. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4728. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4729. ac_status=$?
  4730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4731. (exit $ac_status); } \
  4732. && test -f conftest2.$ac_objext; then
  4733. : OK
  4734. else
  4735. am_cv_prog_cc_c_o=no
  4736. break
  4737. fi
  4738. done
  4739. rm -f core conftest*
  4740. unset am_i
  4741. fi
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4743. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4744. if test "$am_cv_prog_cc_c_o" != yes; then
  4745. # Losing compiler, so override with the script.
  4746. # FIXME: It is wrong to rewrite CC.
  4747. # But if we don't then we get into trouble of one sort or another.
  4748. # A longer-term fix would be to have automake use am__CC in this case,
  4749. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4750. CC="$am_aux_dir/compile $CC"
  4751. fi
  4752. ac_ext=c
  4753. ac_cpp='$CPP $CPPFLAGS'
  4754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4757. if test -n "$ac_tool_prefix"; then
  4758. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4759. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4761. $as_echo_n "checking for $ac_word... " >&6; }
  4762. if ${ac_cv_prog_RANLIB+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. if test -n "$RANLIB"; then
  4766. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4767. else
  4768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4769. for as_dir in $PATH
  4770. do
  4771. IFS=$as_save_IFS
  4772. test -z "$as_dir" && as_dir=.
  4773. for ac_exec_ext in '' $ac_executable_extensions; do
  4774. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4775. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4777. break 2
  4778. fi
  4779. done
  4780. done
  4781. IFS=$as_save_IFS
  4782. fi
  4783. fi
  4784. RANLIB=$ac_cv_prog_RANLIB
  4785. if test -n "$RANLIB"; then
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4787. $as_echo "$RANLIB" >&6; }
  4788. else
  4789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4790. $as_echo "no" >&6; }
  4791. fi
  4792. fi
  4793. if test -z "$ac_cv_prog_RANLIB"; then
  4794. ac_ct_RANLIB=$RANLIB
  4795. # Extract the first word of "ranlib", so it can be a program name with args.
  4796. set dummy ranlib; ac_word=$2
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4798. $as_echo_n "checking for $ac_word... " >&6; }
  4799. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. if test -n "$ac_ct_RANLIB"; then
  4803. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4804. else
  4805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4806. for as_dir in $PATH
  4807. do
  4808. IFS=$as_save_IFS
  4809. test -z "$as_dir" && as_dir=.
  4810. for ac_exec_ext in '' $ac_executable_extensions; do
  4811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4812. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4814. break 2
  4815. fi
  4816. done
  4817. done
  4818. IFS=$as_save_IFS
  4819. fi
  4820. fi
  4821. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4822. if test -n "$ac_ct_RANLIB"; then
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4824. $as_echo "$ac_ct_RANLIB" >&6; }
  4825. else
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4827. $as_echo "no" >&6; }
  4828. fi
  4829. if test "x$ac_ct_RANLIB" = x; then
  4830. RANLIB=":"
  4831. else
  4832. case $cross_compiling:$ac_tool_warned in
  4833. yes:)
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4835. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4836. ac_tool_warned=yes ;;
  4837. esac
  4838. RANLIB=$ac_ct_RANLIB
  4839. fi
  4840. else
  4841. RANLIB="$ac_cv_prog_RANLIB"
  4842. fi
  4843. for ac_prog in gawk mawk nawk awk
  4844. do
  4845. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4846. set dummy $ac_prog; ac_word=$2
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4848. $as_echo_n "checking for $ac_word... " >&6; }
  4849. if ${ac_cv_prog_AWK+:} false; then :
  4850. $as_echo_n "(cached) " >&6
  4851. else
  4852. if test -n "$AWK"; then
  4853. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4854. else
  4855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4856. for as_dir in $PATH
  4857. do
  4858. IFS=$as_save_IFS
  4859. test -z "$as_dir" && as_dir=.
  4860. for ac_exec_ext in '' $ac_executable_extensions; do
  4861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4862. ac_cv_prog_AWK="$ac_prog"
  4863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4864. break 2
  4865. fi
  4866. done
  4867. done
  4868. IFS=$as_save_IFS
  4869. fi
  4870. fi
  4871. AWK=$ac_cv_prog_AWK
  4872. if test -n "$AWK"; then
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4874. $as_echo "$AWK" >&6; }
  4875. else
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4877. $as_echo "no" >&6; }
  4878. fi
  4879. test -n "$AWK" && break
  4880. done
  4881. case "$AWK" in
  4882. "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
  4883. esac
  4884. # Extract the first word of "dwz", so it can be a program name with args.
  4885. set dummy dwz; ac_word=$2
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4887. $as_echo_n "checking for $ac_word... " >&6; }
  4888. if ${ac_cv_prog_DWZ+:} false; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. if test -n "$DWZ"; then
  4892. ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
  4893. else
  4894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4895. for as_dir in $PATH
  4896. do
  4897. IFS=$as_save_IFS
  4898. test -z "$as_dir" && as_dir=.
  4899. for ac_exec_ext in '' $ac_executable_extensions; do
  4900. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4901. ac_cv_prog_DWZ="dwz"
  4902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4903. break 2
  4904. fi
  4905. done
  4906. done
  4907. IFS=$as_save_IFS
  4908. fi
  4909. fi
  4910. DWZ=$ac_cv_prog_DWZ
  4911. if test -n "$DWZ"; then
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
  4913. $as_echo "$DWZ" >&6; }
  4914. else
  4915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4916. $as_echo "no" >&6; }
  4917. fi
  4918. if test "$DWZ" != ""; then
  4919. HAVE_DWZ_TRUE=
  4920. HAVE_DWZ_FALSE='#'
  4921. else
  4922. HAVE_DWZ_TRUE='#'
  4923. HAVE_DWZ_FALSE=
  4924. fi
  4925. case `pwd` in
  4926. *\ * | *\ *)
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4928. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4929. esac
  4930. macro_version='2.2.7a'
  4931. macro_revision='1.3134'
  4932. ltmain="$ac_aux_dir/ltmain.sh"
  4933. # Backslashify metacharacters that are still active within
  4934. # double-quoted strings.
  4935. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4936. # Same as above, but do not quote variable references.
  4937. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4938. # Sed substitution to delay expansion of an escaped shell variable in a
  4939. # double_quote_subst'ed string.
  4940. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4941. # Sed substitution to delay expansion of an escaped single quote.
  4942. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4943. # Sed substitution to avoid accidental globbing in evaled expressions
  4944. no_glob_subst='s/\*/\\\*/g'
  4945. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4946. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4947. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4949. $as_echo_n "checking how to print strings... " >&6; }
  4950. # Test print first, because it will be a builtin if present.
  4951. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  4952. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4953. ECHO='print -r --'
  4954. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4955. ECHO='printf %s\n'
  4956. else
  4957. # Use this function as a fallback that always works.
  4958. func_fallback_echo ()
  4959. {
  4960. eval 'cat <<_LTECHO_EOF
  4961. $1
  4962. _LTECHO_EOF'
  4963. }
  4964. ECHO='func_fallback_echo'
  4965. fi
  4966. # func_echo_all arg...
  4967. # Invoke $ECHO with all args, space-separated.
  4968. func_echo_all ()
  4969. {
  4970. $ECHO ""
  4971. }
  4972. case "$ECHO" in
  4973. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4974. $as_echo "printf" >&6; } ;;
  4975. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4976. $as_echo "print -r" >&6; } ;;
  4977. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4978. $as_echo "cat" >&6; } ;;
  4979. esac
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4981. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4982. if ${ac_cv_path_SED+:} false; then :
  4983. $as_echo_n "(cached) " >&6
  4984. else
  4985. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4986. for ac_i in 1 2 3 4 5 6 7; do
  4987. ac_script="$ac_script$as_nl$ac_script"
  4988. done
  4989. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4990. { ac_script=; unset ac_script;}
  4991. if test -z "$SED"; then
  4992. ac_path_SED_found=false
  4993. # Loop through the user's path and test for each of PROGNAME-LIST
  4994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4995. for as_dir in $PATH
  4996. do
  4997. IFS=$as_save_IFS
  4998. test -z "$as_dir" && as_dir=.
  4999. for ac_prog in sed gsed; do
  5000. for ac_exec_ext in '' $ac_executable_extensions; do
  5001. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5002. as_fn_executable_p "$ac_path_SED" || continue
  5003. # Check for GNU ac_path_SED and select it if it is found.
  5004. # Check for GNU $ac_path_SED
  5005. case `"$ac_path_SED" --version 2>&1` in
  5006. *GNU*)
  5007. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5008. *)
  5009. ac_count=0
  5010. $as_echo_n 0123456789 >"conftest.in"
  5011. while :
  5012. do
  5013. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5014. mv "conftest.tmp" "conftest.in"
  5015. cp "conftest.in" "conftest.nl"
  5016. $as_echo '' >> "conftest.nl"
  5017. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5018. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5019. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5020. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5021. # Best one so far, save it but keep looking for a better one
  5022. ac_cv_path_SED="$ac_path_SED"
  5023. ac_path_SED_max=$ac_count
  5024. fi
  5025. # 10*(2^10) chars as input seems more than enough
  5026. test $ac_count -gt 10 && break
  5027. done
  5028. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5029. esac
  5030. $ac_path_SED_found && break 3
  5031. done
  5032. done
  5033. done
  5034. IFS=$as_save_IFS
  5035. if test -z "$ac_cv_path_SED"; then
  5036. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5037. fi
  5038. else
  5039. ac_cv_path_SED=$SED
  5040. fi
  5041. fi
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5043. $as_echo "$ac_cv_path_SED" >&6; }
  5044. SED="$ac_cv_path_SED"
  5045. rm -f conftest.sed
  5046. test -z "$SED" && SED=sed
  5047. Xsed="$SED -e 1s/^X//"
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5049. $as_echo_n "checking for fgrep... " >&6; }
  5050. if ${ac_cv_path_FGREP+:} false; then :
  5051. $as_echo_n "(cached) " >&6
  5052. else
  5053. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5054. then ac_cv_path_FGREP="$GREP -F"
  5055. else
  5056. if test -z "$FGREP"; then
  5057. ac_path_FGREP_found=false
  5058. # Loop through the user's path and test for each of PROGNAME-LIST
  5059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5060. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5061. do
  5062. IFS=$as_save_IFS
  5063. test -z "$as_dir" && as_dir=.
  5064. for ac_prog in fgrep; do
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5067. as_fn_executable_p "$ac_path_FGREP" || continue
  5068. # Check for GNU ac_path_FGREP and select it if it is found.
  5069. # Check for GNU $ac_path_FGREP
  5070. case `"$ac_path_FGREP" --version 2>&1` in
  5071. *GNU*)
  5072. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5073. *)
  5074. ac_count=0
  5075. $as_echo_n 0123456789 >"conftest.in"
  5076. while :
  5077. do
  5078. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5079. mv "conftest.tmp" "conftest.in"
  5080. cp "conftest.in" "conftest.nl"
  5081. $as_echo 'FGREP' >> "conftest.nl"
  5082. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5083. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5084. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5085. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5086. # Best one so far, save it but keep looking for a better one
  5087. ac_cv_path_FGREP="$ac_path_FGREP"
  5088. ac_path_FGREP_max=$ac_count
  5089. fi
  5090. # 10*(2^10) chars as input seems more than enough
  5091. test $ac_count -gt 10 && break
  5092. done
  5093. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5094. esac
  5095. $ac_path_FGREP_found && break 3
  5096. done
  5097. done
  5098. done
  5099. IFS=$as_save_IFS
  5100. if test -z "$ac_cv_path_FGREP"; then
  5101. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5102. fi
  5103. else
  5104. ac_cv_path_FGREP=$FGREP
  5105. fi
  5106. fi
  5107. fi
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5109. $as_echo "$ac_cv_path_FGREP" >&6; }
  5110. FGREP="$ac_cv_path_FGREP"
  5111. test -z "$GREP" && GREP=grep
  5112. # Check whether --with-gnu-ld was given.
  5113. if test "${with_gnu_ld+set}" = set; then :
  5114. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5115. else
  5116. with_gnu_ld=no
  5117. fi
  5118. ac_prog=ld
  5119. if test "$GCC" = yes; then
  5120. # Check if gcc -print-prog-name=ld gives a path.
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5122. $as_echo_n "checking for ld used by $CC... " >&6; }
  5123. case $host in
  5124. *-*-mingw*)
  5125. # gcc leaves a trailing carriage return which upsets mingw
  5126. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5127. *)
  5128. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5129. esac
  5130. case $ac_prog in
  5131. # Accept absolute paths.
  5132. [\\/]* | ?:[\\/]*)
  5133. re_direlt='/[^/][^/]*/\.\./'
  5134. # Canonicalize the pathname of ld
  5135. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5136. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5137. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5138. done
  5139. test -z "$LD" && LD="$ac_prog"
  5140. ;;
  5141. "")
  5142. # If it fails, then pretend we aren't using GCC.
  5143. ac_prog=ld
  5144. ;;
  5145. *)
  5146. # If it is relative, then search for the first ld in PATH.
  5147. with_gnu_ld=unknown
  5148. ;;
  5149. esac
  5150. elif test "$with_gnu_ld" = yes; then
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5152. $as_echo_n "checking for GNU ld... " >&6; }
  5153. else
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5155. $as_echo_n "checking for non-GNU ld... " >&6; }
  5156. fi
  5157. if ${lt_cv_path_LD+:} false; then :
  5158. $as_echo_n "(cached) " >&6
  5159. else
  5160. if test -z "$LD"; then
  5161. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5162. for ac_dir in $PATH; do
  5163. IFS="$lt_save_ifs"
  5164. test -z "$ac_dir" && ac_dir=.
  5165. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5166. lt_cv_path_LD="$ac_dir/$ac_prog"
  5167. # Check to see if the program is GNU ld. I'd rather use --version,
  5168. # but apparently some variants of GNU ld only accept -v.
  5169. # Break only if it was the GNU/non-GNU ld that we prefer.
  5170. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5171. *GNU* | *'with BFD'*)
  5172. test "$with_gnu_ld" != no && break
  5173. ;;
  5174. *)
  5175. test "$with_gnu_ld" != yes && break
  5176. ;;
  5177. esac
  5178. fi
  5179. done
  5180. IFS="$lt_save_ifs"
  5181. else
  5182. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5183. fi
  5184. fi
  5185. LD="$lt_cv_path_LD"
  5186. if test -n "$LD"; then
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5188. $as_echo "$LD" >&6; }
  5189. else
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5191. $as_echo "no" >&6; }
  5192. fi
  5193. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5195. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5196. if ${lt_cv_prog_gnu_ld+:} false; then :
  5197. $as_echo_n "(cached) " >&6
  5198. else
  5199. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5200. case `$LD -v 2>&1 </dev/null` in
  5201. *GNU* | *'with BFD'*)
  5202. lt_cv_prog_gnu_ld=yes
  5203. ;;
  5204. *)
  5205. lt_cv_prog_gnu_ld=no
  5206. ;;
  5207. esac
  5208. fi
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5210. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5211. with_gnu_ld=$lt_cv_prog_gnu_ld
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5213. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5214. if ${lt_cv_path_NM+:} false; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$NM"; then
  5218. # Let the user override the test.
  5219. lt_cv_path_NM="$NM"
  5220. else
  5221. lt_nm_to_check="${ac_tool_prefix}nm"
  5222. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5223. lt_nm_to_check="$lt_nm_to_check nm"
  5224. fi
  5225. for lt_tmp_nm in $lt_nm_to_check; do
  5226. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5227. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5228. IFS="$lt_save_ifs"
  5229. test -z "$ac_dir" && ac_dir=.
  5230. tmp_nm="$ac_dir/$lt_tmp_nm"
  5231. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5232. # Check to see if the nm accepts a BSD-compat flag.
  5233. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5234. # nm: unknown option "B" ignored
  5235. # Tru64's nm complains that /dev/null is an invalid object file
  5236. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5237. */dev/null* | *'Invalid file or object type'*)
  5238. lt_cv_path_NM="$tmp_nm -B"
  5239. break
  5240. ;;
  5241. *)
  5242. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5243. */dev/null*)
  5244. lt_cv_path_NM="$tmp_nm -p"
  5245. break
  5246. ;;
  5247. *)
  5248. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5249. continue # so that we can try to find one that supports BSD flags
  5250. ;;
  5251. esac
  5252. ;;
  5253. esac
  5254. fi
  5255. done
  5256. IFS="$lt_save_ifs"
  5257. done
  5258. : ${lt_cv_path_NM=no}
  5259. fi
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5262. $as_echo "$lt_cv_path_NM" >&6; }
  5263. if test "$lt_cv_path_NM" != "no"; then
  5264. NM="$lt_cv_path_NM"
  5265. else
  5266. # Didn't find any BSD compatible name lister, look for dumpbin.
  5267. if test -n "$DUMPBIN"; then :
  5268. # Let the user override the test.
  5269. else
  5270. if test -n "$ac_tool_prefix"; then
  5271. for ac_prog in dumpbin "link -dump"
  5272. do
  5273. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5274. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5276. $as_echo_n "checking for $ac_word... " >&6; }
  5277. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5278. $as_echo_n "(cached) " >&6
  5279. else
  5280. if test -n "$DUMPBIN"; then
  5281. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5282. else
  5283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5284. for as_dir in $PATH
  5285. do
  5286. IFS=$as_save_IFS
  5287. test -z "$as_dir" && as_dir=.
  5288. for ac_exec_ext in '' $ac_executable_extensions; do
  5289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5290. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5292. break 2
  5293. fi
  5294. done
  5295. done
  5296. IFS=$as_save_IFS
  5297. fi
  5298. fi
  5299. DUMPBIN=$ac_cv_prog_DUMPBIN
  5300. if test -n "$DUMPBIN"; then
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5302. $as_echo "$DUMPBIN" >&6; }
  5303. else
  5304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5305. $as_echo "no" >&6; }
  5306. fi
  5307. test -n "$DUMPBIN" && break
  5308. done
  5309. fi
  5310. if test -z "$DUMPBIN"; then
  5311. ac_ct_DUMPBIN=$DUMPBIN
  5312. for ac_prog in dumpbin "link -dump"
  5313. do
  5314. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5315. set dummy $ac_prog; ac_word=$2
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5317. $as_echo_n "checking for $ac_word... " >&6; }
  5318. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. if test -n "$ac_ct_DUMPBIN"; then
  5322. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5323. else
  5324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5325. for as_dir in $PATH
  5326. do
  5327. IFS=$as_save_IFS
  5328. test -z "$as_dir" && as_dir=.
  5329. for ac_exec_ext in '' $ac_executable_extensions; do
  5330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5331. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5333. break 2
  5334. fi
  5335. done
  5336. done
  5337. IFS=$as_save_IFS
  5338. fi
  5339. fi
  5340. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5341. if test -n "$ac_ct_DUMPBIN"; then
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5343. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5344. else
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5346. $as_echo "no" >&6; }
  5347. fi
  5348. test -n "$ac_ct_DUMPBIN" && break
  5349. done
  5350. if test "x$ac_ct_DUMPBIN" = x; then
  5351. DUMPBIN=":"
  5352. else
  5353. case $cross_compiling:$ac_tool_warned in
  5354. yes:)
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5356. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5357. ac_tool_warned=yes ;;
  5358. esac
  5359. DUMPBIN=$ac_ct_DUMPBIN
  5360. fi
  5361. fi
  5362. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5363. *COFF*)
  5364. DUMPBIN="$DUMPBIN -symbols"
  5365. ;;
  5366. *)
  5367. DUMPBIN=:
  5368. ;;
  5369. esac
  5370. fi
  5371. if test "$DUMPBIN" != ":"; then
  5372. NM="$DUMPBIN"
  5373. fi
  5374. fi
  5375. test -z "$NM" && NM=nm
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5377. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5378. if ${lt_cv_nm_interface+:} false; then :
  5379. $as_echo_n "(cached) " >&6
  5380. else
  5381. lt_cv_nm_interface="BSD nm"
  5382. echo "int some_variable = 0;" > conftest.$ac_ext
  5383. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5384. (eval "$ac_compile" 2>conftest.err)
  5385. cat conftest.err >&5
  5386. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5387. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5388. cat conftest.err >&5
  5389. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5390. cat conftest.out >&5
  5391. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5392. lt_cv_nm_interface="MS dumpbin"
  5393. fi
  5394. rm -f conftest*
  5395. fi
  5396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5397. $as_echo "$lt_cv_nm_interface" >&6; }
  5398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5399. $as_echo_n "checking whether ln -s works... " >&6; }
  5400. LN_S=$as_ln_s
  5401. if test "$LN_S" = "ln -s"; then
  5402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5403. $as_echo "yes" >&6; }
  5404. else
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5406. $as_echo "no, using $LN_S" >&6; }
  5407. fi
  5408. # find the maximum length of command line arguments
  5409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5410. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5411. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5412. $as_echo_n "(cached) " >&6
  5413. else
  5414. i=0
  5415. teststring="ABCD"
  5416. case $build_os in
  5417. msdosdjgpp*)
  5418. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5419. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5420. # during glob expansion). Even if it were fixed, the result of this
  5421. # check would be larger than it should be.
  5422. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5423. ;;
  5424. gnu*)
  5425. # Under GNU Hurd, this test is not required because there is
  5426. # no limit to the length of command line arguments.
  5427. # Libtool will interpret -1 as no limit whatsoever
  5428. lt_cv_sys_max_cmd_len=-1;
  5429. ;;
  5430. cygwin* | mingw* | cegcc*)
  5431. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5432. # about 5 minutes as the teststring grows exponentially.
  5433. # Worse, since 9x/ME are not pre-emptively multitasking,
  5434. # you end up with a "frozen" computer, even though with patience
  5435. # the test eventually succeeds (with a max line length of 256k).
  5436. # Instead, let's just punt: use the minimum linelength reported by
  5437. # all of the supported platforms: 8192 (on NT/2K/XP).
  5438. lt_cv_sys_max_cmd_len=8192;
  5439. ;;
  5440. mint*)
  5441. # On MiNT this can take a long time and run out of memory.
  5442. lt_cv_sys_max_cmd_len=8192;
  5443. ;;
  5444. amigaos*)
  5445. # On AmigaOS with pdksh, this test takes hours, literally.
  5446. # So we just punt and use a minimum line length of 8192.
  5447. lt_cv_sys_max_cmd_len=8192;
  5448. ;;
  5449. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5450. # This has been around since 386BSD, at least. Likely further.
  5451. if test -x /sbin/sysctl; then
  5452. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5453. elif test -x /usr/sbin/sysctl; then
  5454. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5455. else
  5456. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5457. fi
  5458. # And add a safety zone
  5459. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5460. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5461. ;;
  5462. interix*)
  5463. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5464. lt_cv_sys_max_cmd_len=196608
  5465. ;;
  5466. osf*)
  5467. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5468. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5469. # nice to cause kernel panics so lets avoid the loop below.
  5470. # First set a reasonable default.
  5471. lt_cv_sys_max_cmd_len=16384
  5472. #
  5473. if test -x /sbin/sysconfig; then
  5474. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5475. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5476. esac
  5477. fi
  5478. ;;
  5479. sco3.2v5*)
  5480. lt_cv_sys_max_cmd_len=102400
  5481. ;;
  5482. sysv5* | sco5v6* | sysv4.2uw2*)
  5483. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5484. if test -n "$kargmax"; then
  5485. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5486. else
  5487. lt_cv_sys_max_cmd_len=32768
  5488. fi
  5489. ;;
  5490. *)
  5491. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5492. if test -n "$lt_cv_sys_max_cmd_len"; then
  5493. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5494. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5495. else
  5496. # Make teststring a little bigger before we do anything with it.
  5497. # a 1K string should be a reasonable start.
  5498. for i in 1 2 3 4 5 6 7 8 ; do
  5499. teststring=$teststring$teststring
  5500. done
  5501. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5502. # If test is not a shell built-in, we'll probably end up computing a
  5503. # maximum length that is only half of the actual maximum length, but
  5504. # we can't tell.
  5505. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  5506. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5507. test $i != 17 # 1/2 MB should be enough
  5508. do
  5509. i=`expr $i + 1`
  5510. teststring=$teststring$teststring
  5511. done
  5512. # Only check the string length outside the loop.
  5513. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5514. teststring=
  5515. # Add a significant safety factor because C++ compilers can tack on
  5516. # massive amounts of additional arguments before passing them to the
  5517. # linker. It appears as though 1/2 is a usable value.
  5518. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5519. fi
  5520. ;;
  5521. esac
  5522. fi
  5523. if test -n $lt_cv_sys_max_cmd_len ; then
  5524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5525. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5526. else
  5527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5528. $as_echo "none" >&6; }
  5529. fi
  5530. max_cmd_len=$lt_cv_sys_max_cmd_len
  5531. : ${CP="cp -f"}
  5532. : ${MV="mv -f"}
  5533. : ${RM="rm -f"}
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5535. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5536. # Try some XSI features
  5537. xsi_shell=no
  5538. ( _lt_dummy="a/b/c"
  5539. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  5540. = c,a/b,, \
  5541. && eval 'test $(( 1 + 1 )) -eq 2 \
  5542. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5543. && xsi_shell=yes
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5545. $as_echo "$xsi_shell" >&6; }
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5547. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5548. lt_shell_append=no
  5549. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5550. >/dev/null 2>&1 \
  5551. && lt_shell_append=yes
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5553. $as_echo "$lt_shell_append" >&6; }
  5554. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5555. lt_unset=unset
  5556. else
  5557. lt_unset=false
  5558. fi
  5559. # test EBCDIC or ASCII
  5560. case `echo X|tr X '\101'` in
  5561. A) # ASCII based system
  5562. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5563. lt_SP2NL='tr \040 \012'
  5564. lt_NL2SP='tr \015\012 \040\040'
  5565. ;;
  5566. *) # EBCDIC based system
  5567. lt_SP2NL='tr \100 \n'
  5568. lt_NL2SP='tr \r\n \100\100'
  5569. ;;
  5570. esac
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5572. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5573. if ${lt_cv_ld_reload_flag+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. lt_cv_ld_reload_flag='-r'
  5577. fi
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5579. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5580. reload_flag=$lt_cv_ld_reload_flag
  5581. case $reload_flag in
  5582. "" | " "*) ;;
  5583. *) reload_flag=" $reload_flag" ;;
  5584. esac
  5585. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5586. case $host_os in
  5587. darwin*)
  5588. if test "$GCC" = yes; then
  5589. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5590. else
  5591. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5592. fi
  5593. ;;
  5594. esac
  5595. if test -n "$ac_tool_prefix"; then
  5596. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5597. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5599. $as_echo_n "checking for $ac_word... " >&6; }
  5600. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. if test -n "$OBJDUMP"; then
  5604. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5605. else
  5606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5607. for as_dir in $PATH
  5608. do
  5609. IFS=$as_save_IFS
  5610. test -z "$as_dir" && as_dir=.
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5613. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5615. break 2
  5616. fi
  5617. done
  5618. done
  5619. IFS=$as_save_IFS
  5620. fi
  5621. fi
  5622. OBJDUMP=$ac_cv_prog_OBJDUMP
  5623. if test -n "$OBJDUMP"; then
  5624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5625. $as_echo "$OBJDUMP" >&6; }
  5626. else
  5627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5628. $as_echo "no" >&6; }
  5629. fi
  5630. fi
  5631. if test -z "$ac_cv_prog_OBJDUMP"; then
  5632. ac_ct_OBJDUMP=$OBJDUMP
  5633. # Extract the first word of "objdump", so it can be a program name with args.
  5634. set dummy objdump; ac_word=$2
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5636. $as_echo_n "checking for $ac_word... " >&6; }
  5637. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. if test -n "$ac_ct_OBJDUMP"; then
  5641. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5642. else
  5643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5644. for as_dir in $PATH
  5645. do
  5646. IFS=$as_save_IFS
  5647. test -z "$as_dir" && as_dir=.
  5648. for ac_exec_ext in '' $ac_executable_extensions; do
  5649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5650. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5652. break 2
  5653. fi
  5654. done
  5655. done
  5656. IFS=$as_save_IFS
  5657. fi
  5658. fi
  5659. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5660. if test -n "$ac_ct_OBJDUMP"; then
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5662. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5663. else
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5665. $as_echo "no" >&6; }
  5666. fi
  5667. if test "x$ac_ct_OBJDUMP" = x; then
  5668. OBJDUMP="false"
  5669. else
  5670. case $cross_compiling:$ac_tool_warned in
  5671. yes:)
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5673. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5674. ac_tool_warned=yes ;;
  5675. esac
  5676. OBJDUMP=$ac_ct_OBJDUMP
  5677. fi
  5678. else
  5679. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5680. fi
  5681. test -z "$OBJDUMP" && OBJDUMP=objdump
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5683. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5684. if ${lt_cv_deplibs_check_method+:} false; then :
  5685. $as_echo_n "(cached) " >&6
  5686. else
  5687. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5688. lt_cv_file_magic_test_file=
  5689. lt_cv_deplibs_check_method='unknown'
  5690. # Need to set the preceding variable on all platforms that support
  5691. # interlibrary dependencies.
  5692. # 'none' -- dependencies not supported.
  5693. # `unknown' -- same as none, but documents that we really don't know.
  5694. # 'pass_all' -- all dependencies passed with no checks.
  5695. # 'test_compile' -- check by making test program.
  5696. # 'file_magic [[regex]]' -- check by looking for files in library path
  5697. # which responds to the $file_magic_cmd with a given extended regex.
  5698. # If you have `file' or equivalent on your system and you're not sure
  5699. # whether `pass_all' will *always* work, you probably want this one.
  5700. case $host_os in
  5701. aix[4-9]*)
  5702. lt_cv_deplibs_check_method=pass_all
  5703. ;;
  5704. beos*)
  5705. lt_cv_deplibs_check_method=pass_all
  5706. ;;
  5707. bsdi[45]*)
  5708. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5709. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5710. lt_cv_file_magic_test_file=/shlib/libc.so
  5711. ;;
  5712. cygwin*)
  5713. # func_win32_libid is a shell function defined in ltmain.sh
  5714. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5715. lt_cv_file_magic_cmd='func_win32_libid'
  5716. ;;
  5717. mingw* | pw32*)
  5718. # Base MSYS/MinGW do not provide the 'file' command needed by
  5719. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5720. # unless we find 'file', for example because we are cross-compiling.
  5721. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5722. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5723. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5724. lt_cv_file_magic_cmd='func_win32_libid'
  5725. else
  5726. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5727. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5728. fi
  5729. ;;
  5730. cegcc*)
  5731. # use the weaker test based on 'objdump'. See mingw*.
  5732. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5733. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5734. ;;
  5735. darwin* | rhapsody*)
  5736. lt_cv_deplibs_check_method=pass_all
  5737. ;;
  5738. freebsd* | dragonfly*)
  5739. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5740. case $host_cpu in
  5741. i*86 )
  5742. # Not sure whether the presence of OpenBSD here was a mistake.
  5743. # Let's accept both of them until this is cleared up.
  5744. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5745. lt_cv_file_magic_cmd=/usr/bin/file
  5746. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5747. ;;
  5748. esac
  5749. else
  5750. lt_cv_deplibs_check_method=pass_all
  5751. fi
  5752. ;;
  5753. gnu*)
  5754. lt_cv_deplibs_check_method=pass_all
  5755. ;;
  5756. haiku*)
  5757. lt_cv_deplibs_check_method=pass_all
  5758. ;;
  5759. hpux10.20* | hpux11*)
  5760. lt_cv_file_magic_cmd=/usr/bin/file
  5761. case $host_cpu in
  5762. ia64*)
  5763. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5764. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5765. ;;
  5766. hppa*64*)
  5767. 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]'
  5768. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5769. ;;
  5770. *)
  5771. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5772. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5773. ;;
  5774. esac
  5775. ;;
  5776. interix[3-9]*)
  5777. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5778. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5779. ;;
  5780. irix5* | irix6* | nonstopux*)
  5781. case $LD in
  5782. *-32|*"-32 ") libmagic=32-bit;;
  5783. *-n32|*"-n32 ") libmagic=N32;;
  5784. *-64|*"-64 ") libmagic=64-bit;;
  5785. *) libmagic=never-match;;
  5786. esac
  5787. lt_cv_deplibs_check_method=pass_all
  5788. ;;
  5789. # This must be Linux ELF.
  5790. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  5791. lt_cv_deplibs_check_method=pass_all
  5792. ;;
  5793. netbsd*)
  5794. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5795. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5796. else
  5797. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5798. fi
  5799. ;;
  5800. newos6*)
  5801. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5802. lt_cv_file_magic_cmd=/usr/bin/file
  5803. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5804. ;;
  5805. *nto* | *qnx*)
  5806. lt_cv_deplibs_check_method=pass_all
  5807. ;;
  5808. openbsd*)
  5809. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5810. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5811. else
  5812. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5813. fi
  5814. ;;
  5815. osf3* | osf4* | osf5*)
  5816. lt_cv_deplibs_check_method=pass_all
  5817. ;;
  5818. rdos*)
  5819. lt_cv_deplibs_check_method=pass_all
  5820. ;;
  5821. solaris*)
  5822. lt_cv_deplibs_check_method=pass_all
  5823. ;;
  5824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5825. lt_cv_deplibs_check_method=pass_all
  5826. ;;
  5827. sysv4 | sysv4.3*)
  5828. case $host_vendor in
  5829. motorola)
  5830. 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]'
  5831. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5832. ;;
  5833. ncr)
  5834. lt_cv_deplibs_check_method=pass_all
  5835. ;;
  5836. sequent)
  5837. lt_cv_file_magic_cmd='/bin/file'
  5838. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5839. ;;
  5840. sni)
  5841. lt_cv_file_magic_cmd='/bin/file'
  5842. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5843. lt_cv_file_magic_test_file=/lib/libc.so
  5844. ;;
  5845. siemens)
  5846. lt_cv_deplibs_check_method=pass_all
  5847. ;;
  5848. pc)
  5849. lt_cv_deplibs_check_method=pass_all
  5850. ;;
  5851. esac
  5852. ;;
  5853. tpf*)
  5854. lt_cv_deplibs_check_method=pass_all
  5855. ;;
  5856. esac
  5857. fi
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5859. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5860. file_magic_cmd=$lt_cv_file_magic_cmd
  5861. deplibs_check_method=$lt_cv_deplibs_check_method
  5862. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5863. if test -n "$ac_tool_prefix"; then
  5864. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5865. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5867. $as_echo_n "checking for $ac_word... " >&6; }
  5868. if ${ac_cv_prog_AR+:} false; then :
  5869. $as_echo_n "(cached) " >&6
  5870. else
  5871. if test -n "$AR"; then
  5872. ac_cv_prog_AR="$AR" # Let the user override the test.
  5873. else
  5874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5875. for as_dir in $PATH
  5876. do
  5877. IFS=$as_save_IFS
  5878. test -z "$as_dir" && as_dir=.
  5879. for ac_exec_ext in '' $ac_executable_extensions; do
  5880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5881. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5883. break 2
  5884. fi
  5885. done
  5886. done
  5887. IFS=$as_save_IFS
  5888. fi
  5889. fi
  5890. AR=$ac_cv_prog_AR
  5891. if test -n "$AR"; then
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5893. $as_echo "$AR" >&6; }
  5894. else
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5896. $as_echo "no" >&6; }
  5897. fi
  5898. fi
  5899. if test -z "$ac_cv_prog_AR"; then
  5900. ac_ct_AR=$AR
  5901. # Extract the first word of "ar", so it can be a program name with args.
  5902. set dummy ar; ac_word=$2
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5904. $as_echo_n "checking for $ac_word... " >&6; }
  5905. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5906. $as_echo_n "(cached) " >&6
  5907. else
  5908. if test -n "$ac_ct_AR"; then
  5909. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5910. else
  5911. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5912. for as_dir in $PATH
  5913. do
  5914. IFS=$as_save_IFS
  5915. test -z "$as_dir" && as_dir=.
  5916. for ac_exec_ext in '' $ac_executable_extensions; do
  5917. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5918. ac_cv_prog_ac_ct_AR="ar"
  5919. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5920. break 2
  5921. fi
  5922. done
  5923. done
  5924. IFS=$as_save_IFS
  5925. fi
  5926. fi
  5927. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5928. if test -n "$ac_ct_AR"; then
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5930. $as_echo "$ac_ct_AR" >&6; }
  5931. else
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5933. $as_echo "no" >&6; }
  5934. fi
  5935. if test "x$ac_ct_AR" = x; then
  5936. AR="false"
  5937. else
  5938. case $cross_compiling:$ac_tool_warned in
  5939. yes:)
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5941. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5942. ac_tool_warned=yes ;;
  5943. esac
  5944. AR=$ac_ct_AR
  5945. fi
  5946. else
  5947. AR="$ac_cv_prog_AR"
  5948. fi
  5949. test -z "$AR" && AR=ar
  5950. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5951. if test -n "$ac_tool_prefix"; then
  5952. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5953. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_STRIP+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$STRIP"; then
  5960. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. STRIP=$ac_cv_prog_STRIP
  5979. if test -n "$STRIP"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5981. $as_echo "$STRIP" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. fi
  5987. if test -z "$ac_cv_prog_STRIP"; then
  5988. ac_ct_STRIP=$STRIP
  5989. # Extract the first word of "strip", so it can be a program name with args.
  5990. set dummy strip; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$ac_ct_STRIP"; then
  5997. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_ac_ct_STRIP="strip"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6016. if test -n "$ac_ct_STRIP"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6018. $as_echo "$ac_ct_STRIP" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. if test "x$ac_ct_STRIP" = x; then
  6024. STRIP=":"
  6025. else
  6026. case $cross_compiling:$ac_tool_warned in
  6027. yes:)
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6030. ac_tool_warned=yes ;;
  6031. esac
  6032. STRIP=$ac_ct_STRIP
  6033. fi
  6034. else
  6035. STRIP="$ac_cv_prog_STRIP"
  6036. fi
  6037. test -z "$STRIP" && STRIP=:
  6038. if test -n "$ac_tool_prefix"; then
  6039. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6040. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6042. $as_echo_n "checking for $ac_word... " >&6; }
  6043. if ${ac_cv_prog_RANLIB+:} false; then :
  6044. $as_echo_n "(cached) " >&6
  6045. else
  6046. if test -n "$RANLIB"; then
  6047. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6048. else
  6049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6050. for as_dir in $PATH
  6051. do
  6052. IFS=$as_save_IFS
  6053. test -z "$as_dir" && as_dir=.
  6054. for ac_exec_ext in '' $ac_executable_extensions; do
  6055. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6056. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6057. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6058. break 2
  6059. fi
  6060. done
  6061. done
  6062. IFS=$as_save_IFS
  6063. fi
  6064. fi
  6065. RANLIB=$ac_cv_prog_RANLIB
  6066. if test -n "$RANLIB"; then
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6068. $as_echo "$RANLIB" >&6; }
  6069. else
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6071. $as_echo "no" >&6; }
  6072. fi
  6073. fi
  6074. if test -z "$ac_cv_prog_RANLIB"; then
  6075. ac_ct_RANLIB=$RANLIB
  6076. # Extract the first word of "ranlib", so it can be a program name with args.
  6077. set dummy ranlib; ac_word=$2
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6079. $as_echo_n "checking for $ac_word... " >&6; }
  6080. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. if test -n "$ac_ct_RANLIB"; then
  6084. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6085. else
  6086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6087. for as_dir in $PATH
  6088. do
  6089. IFS=$as_save_IFS
  6090. test -z "$as_dir" && as_dir=.
  6091. for ac_exec_ext in '' $ac_executable_extensions; do
  6092. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6093. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6094. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6095. break 2
  6096. fi
  6097. done
  6098. done
  6099. IFS=$as_save_IFS
  6100. fi
  6101. fi
  6102. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6103. if test -n "$ac_ct_RANLIB"; then
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6105. $as_echo "$ac_ct_RANLIB" >&6; }
  6106. else
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6108. $as_echo "no" >&6; }
  6109. fi
  6110. if test "x$ac_ct_RANLIB" = x; then
  6111. RANLIB=":"
  6112. else
  6113. case $cross_compiling:$ac_tool_warned in
  6114. yes:)
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6116. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6117. ac_tool_warned=yes ;;
  6118. esac
  6119. RANLIB=$ac_ct_RANLIB
  6120. fi
  6121. else
  6122. RANLIB="$ac_cv_prog_RANLIB"
  6123. fi
  6124. test -z "$RANLIB" && RANLIB=:
  6125. # Determine commands to create old-style static archives.
  6126. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6127. old_postinstall_cmds='chmod 644 $oldlib'
  6128. old_postuninstall_cmds=
  6129. if test -n "$RANLIB"; then
  6130. case $host_os in
  6131. openbsd*)
  6132. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6133. ;;
  6134. *)
  6135. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6136. ;;
  6137. esac
  6138. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6139. fi
  6140. case $host_os in
  6141. darwin*)
  6142. lock_old_archive_extraction=yes ;;
  6143. *)
  6144. lock_old_archive_extraction=no ;;
  6145. esac
  6146. # If no C compiler was specified, use CC.
  6147. LTCC=${LTCC-"$CC"}
  6148. # If no C compiler flags were specified, use CFLAGS.
  6149. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6150. # Allow CC to be a program name with arguments.
  6151. compiler=$CC
  6152. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6154. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6155. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6156. $as_echo_n "(cached) " >&6
  6157. else
  6158. # These are sane defaults that work on at least a few old systems.
  6159. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6160. # Character class describing NM global symbol codes.
  6161. symcode='[BCDEGRST]'
  6162. # Regexp to match symbols that can be accessed directly from C.
  6163. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6164. # Define system-specific variables.
  6165. case $host_os in
  6166. aix*)
  6167. symcode='[BCDT]'
  6168. ;;
  6169. cygwin* | mingw* | pw32* | cegcc*)
  6170. symcode='[ABCDGISTW]'
  6171. ;;
  6172. hpux*)
  6173. if test "$host_cpu" = ia64; then
  6174. symcode='[ABCDEGRST]'
  6175. fi
  6176. ;;
  6177. irix* | nonstopux*)
  6178. symcode='[BCDEGRST]'
  6179. ;;
  6180. osf*)
  6181. symcode='[BCDEGQRST]'
  6182. ;;
  6183. solaris*)
  6184. symcode='[BDRT]'
  6185. ;;
  6186. sco3.2v5*)
  6187. symcode='[DT]'
  6188. ;;
  6189. sysv4.2uw2*)
  6190. symcode='[DT]'
  6191. ;;
  6192. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6193. symcode='[ABDT]'
  6194. ;;
  6195. sysv4)
  6196. symcode='[DFNSTU]'
  6197. ;;
  6198. esac
  6199. # If we're using GNU nm, then use its standard symbol codes.
  6200. case `$NM -V 2>&1` in
  6201. *GNU* | *'with BFD'*)
  6202. symcode='[ABCDGIRSTW]' ;;
  6203. esac
  6204. # Transform an extracted symbol line into a proper C declaration.
  6205. # Some systems (esp. on ia64) link data and code symbols differently,
  6206. # so use this general approach.
  6207. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6208. # Transform an extracted symbol line into symbol name and symbol address
  6209. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6210. 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'"
  6211. # Handle CRLF in mingw tool chain
  6212. opt_cr=
  6213. case $build_os in
  6214. mingw*)
  6215. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6216. ;;
  6217. esac
  6218. # Try without a prefix underscore, then with it.
  6219. for ac_symprfx in "" "_"; do
  6220. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6221. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6222. # Write the raw and C identifiers.
  6223. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6224. # Fake it for dumpbin and say T for any non-static function
  6225. # and D for any global variable.
  6226. # Also find C++ and __fastcall symbols from MSVC++,
  6227. # which start with @ or ?.
  6228. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6229. " {last_section=section; section=\$ 3};"\
  6230. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6231. " \$ 0!~/External *\|/{next};"\
  6232. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6233. " {if(hide[section]) next};"\
  6234. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6235. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6236. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6237. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6238. " ' prfx=^$ac_symprfx"
  6239. else
  6240. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6241. fi
  6242. # Check to see that the pipe works correctly.
  6243. pipe_works=no
  6244. rm -f conftest*
  6245. cat > conftest.$ac_ext <<_LT_EOF
  6246. #ifdef __cplusplus
  6247. extern "C" {
  6248. #endif
  6249. char nm_test_var;
  6250. void nm_test_func(void);
  6251. void nm_test_func(void){}
  6252. #ifdef __cplusplus
  6253. }
  6254. #endif
  6255. int main(){nm_test_var='a';nm_test_func();return(0);}
  6256. _LT_EOF
  6257. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6258. (eval $ac_compile) 2>&5
  6259. ac_status=$?
  6260. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6261. test $ac_status = 0; }; then
  6262. # Now try to grab the symbols.
  6263. nlist=conftest.nm
  6264. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6265. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6266. ac_status=$?
  6267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6268. test $ac_status = 0; } && test -s "$nlist"; then
  6269. # Try sorting and uniquifying the output.
  6270. if sort "$nlist" | uniq > "$nlist"T; then
  6271. mv -f "$nlist"T "$nlist"
  6272. else
  6273. rm -f "$nlist"T
  6274. fi
  6275. # Make sure that we snagged all the symbols we need.
  6276. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6277. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6278. cat <<_LT_EOF > conftest.$ac_ext
  6279. #ifdef __cplusplus
  6280. extern "C" {
  6281. #endif
  6282. _LT_EOF
  6283. # Now generate the symbol file.
  6284. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6285. cat <<_LT_EOF >> conftest.$ac_ext
  6286. /* The mapping between symbol names and symbols. */
  6287. const struct {
  6288. const char *name;
  6289. void *address;
  6290. }
  6291. lt__PROGRAM__LTX_preloaded_symbols[] =
  6292. {
  6293. { "@PROGRAM@", (void *) 0 },
  6294. _LT_EOF
  6295. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6296. cat <<\_LT_EOF >> conftest.$ac_ext
  6297. {0, (void *) 0}
  6298. };
  6299. /* This works around a problem in FreeBSD linker */
  6300. #ifdef FREEBSD_WORKAROUND
  6301. static const void *lt_preloaded_setup() {
  6302. return lt__PROGRAM__LTX_preloaded_symbols;
  6303. }
  6304. #endif
  6305. #ifdef __cplusplus
  6306. }
  6307. #endif
  6308. _LT_EOF
  6309. # Now try linking the two files.
  6310. mv conftest.$ac_objext conftstm.$ac_objext
  6311. lt_save_LIBS="$LIBS"
  6312. lt_save_CFLAGS="$CFLAGS"
  6313. LIBS="conftstm.$ac_objext"
  6314. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6315. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6316. (eval $ac_link) 2>&5
  6317. ac_status=$?
  6318. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6319. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6320. pipe_works=yes
  6321. fi
  6322. LIBS="$lt_save_LIBS"
  6323. CFLAGS="$lt_save_CFLAGS"
  6324. else
  6325. echo "cannot find nm_test_func in $nlist" >&5
  6326. fi
  6327. else
  6328. echo "cannot find nm_test_var in $nlist" >&5
  6329. fi
  6330. else
  6331. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6332. fi
  6333. else
  6334. echo "$progname: failed program was:" >&5
  6335. cat conftest.$ac_ext >&5
  6336. fi
  6337. rm -rf conftest* conftst*
  6338. # Do not use the global_symbol_pipe unless it works.
  6339. if test "$pipe_works" = yes; then
  6340. break
  6341. else
  6342. lt_cv_sys_global_symbol_pipe=
  6343. fi
  6344. done
  6345. fi
  6346. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6347. lt_cv_sys_global_symbol_to_cdecl=
  6348. fi
  6349. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6351. $as_echo "failed" >&6; }
  6352. else
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6354. $as_echo "ok" >&6; }
  6355. fi
  6356. # Check whether --enable-libtool-lock was given.
  6357. if test "${enable_libtool_lock+set}" = set; then :
  6358. enableval=$enable_libtool_lock;
  6359. fi
  6360. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6361. # Some flags need to be propagated to the compiler or linker for good
  6362. # libtool support.
  6363. case $host in
  6364. ia64-*-hpux*)
  6365. # Find out which ABI we are using.
  6366. echo 'int i;' > conftest.$ac_ext
  6367. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6368. (eval $ac_compile) 2>&5
  6369. ac_status=$?
  6370. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6371. test $ac_status = 0; }; then
  6372. case `/usr/bin/file conftest.$ac_objext` in
  6373. *ELF-32*)
  6374. HPUX_IA64_MODE="32"
  6375. ;;
  6376. *ELF-64*)
  6377. HPUX_IA64_MODE="64"
  6378. ;;
  6379. esac
  6380. fi
  6381. rm -rf conftest*
  6382. ;;
  6383. *-*-irix6*)
  6384. # Find out which ABI we are using.
  6385. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6387. (eval $ac_compile) 2>&5
  6388. ac_status=$?
  6389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6390. test $ac_status = 0; }; then
  6391. if test "$lt_cv_prog_gnu_ld" = yes; then
  6392. case `/usr/bin/file conftest.$ac_objext` in
  6393. *32-bit*)
  6394. LD="${LD-ld} -melf32bsmip"
  6395. ;;
  6396. *N32*)
  6397. LD="${LD-ld} -melf32bmipn32"
  6398. ;;
  6399. *64-bit*)
  6400. LD="${LD-ld} -melf64bmip"
  6401. ;;
  6402. esac
  6403. else
  6404. case `/usr/bin/file conftest.$ac_objext` in
  6405. *32-bit*)
  6406. LD="${LD-ld} -32"
  6407. ;;
  6408. *N32*)
  6409. LD="${LD-ld} -n32"
  6410. ;;
  6411. *64-bit*)
  6412. LD="${LD-ld} -64"
  6413. ;;
  6414. esac
  6415. fi
  6416. fi
  6417. rm -rf conftest*
  6418. ;;
  6419. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6420. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6421. # Find out which ABI we are using.
  6422. echo 'int i;' > conftest.$ac_ext
  6423. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6424. (eval $ac_compile) 2>&5
  6425. ac_status=$?
  6426. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6427. test $ac_status = 0; }; then
  6428. case `/usr/bin/file conftest.o` in
  6429. *32-bit*)
  6430. case $host in
  6431. x86_64-*kfreebsd*-gnu)
  6432. LD="${LD-ld} -m elf_i386_fbsd"
  6433. ;;
  6434. x86_64-*linux*)
  6435. case `/usr/bin/file conftest.o` in
  6436. *x86-64*)
  6437. LD="${LD-ld} -m elf32_x86_64"
  6438. ;;
  6439. *)
  6440. LD="${LD-ld} -m elf_i386"
  6441. ;;
  6442. esac
  6443. ;;
  6444. powerpc64le-*linux*)
  6445. LD="${LD-ld} -m elf32lppclinux"
  6446. ;;
  6447. powerpc64-*linux*)
  6448. LD="${LD-ld} -m elf32ppclinux"
  6449. ;;
  6450. s390x-*linux*)
  6451. LD="${LD-ld} -m elf_s390"
  6452. ;;
  6453. sparc64-*linux*)
  6454. LD="${LD-ld} -m elf32_sparc"
  6455. ;;
  6456. esac
  6457. ;;
  6458. *64-bit*)
  6459. case $host in
  6460. x86_64-*kfreebsd*-gnu)
  6461. LD="${LD-ld} -m elf_x86_64_fbsd"
  6462. ;;
  6463. x86_64-*linux*)
  6464. LD="${LD-ld} -m elf_x86_64"
  6465. ;;
  6466. powerpcle-*linux*)
  6467. LD="${LD-ld} -m elf64lppc"
  6468. ;;
  6469. powerpc-*linux*)
  6470. LD="${LD-ld} -m elf64ppc"
  6471. ;;
  6472. s390*-*linux*|s390*-*tpf*)
  6473. LD="${LD-ld} -m elf64_s390"
  6474. ;;
  6475. sparc*-*linux*)
  6476. LD="${LD-ld} -m elf64_sparc"
  6477. ;;
  6478. esac
  6479. ;;
  6480. esac
  6481. fi
  6482. rm -rf conftest*
  6483. ;;
  6484. *-*-sco3.2v5*)
  6485. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6486. SAVE_CFLAGS="$CFLAGS"
  6487. CFLAGS="$CFLAGS -belf"
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6489. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6490. if ${lt_cv_cc_needs_belf+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. ac_ext=c
  6494. ac_cpp='$CPP $CPPFLAGS'
  6495. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6496. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6497. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6499. /* end confdefs.h. */
  6500. int
  6501. main ()
  6502. {
  6503. ;
  6504. return 0;
  6505. }
  6506. _ACEOF
  6507. if ac_fn_c_try_link "$LINENO"; then :
  6508. lt_cv_cc_needs_belf=yes
  6509. else
  6510. lt_cv_cc_needs_belf=no
  6511. fi
  6512. rm -f core conftest.err conftest.$ac_objext \
  6513. conftest$ac_exeext conftest.$ac_ext
  6514. ac_ext=c
  6515. ac_cpp='$CPP $CPPFLAGS'
  6516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6519. fi
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6521. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6522. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6523. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6524. CFLAGS="$SAVE_CFLAGS"
  6525. fi
  6526. ;;
  6527. sparc*-*solaris*)
  6528. # Find out which ABI we are using.
  6529. echo 'int i;' > conftest.$ac_ext
  6530. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6531. (eval $ac_compile) 2>&5
  6532. ac_status=$?
  6533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6534. test $ac_status = 0; }; then
  6535. case `/usr/bin/file conftest.o` in
  6536. *64-bit*)
  6537. case $lt_cv_prog_gnu_ld in
  6538. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6539. *)
  6540. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6541. LD="${LD-ld} -64"
  6542. fi
  6543. ;;
  6544. esac
  6545. ;;
  6546. esac
  6547. fi
  6548. rm -rf conftest*
  6549. ;;
  6550. esac
  6551. need_locks="$enable_libtool_lock"
  6552. case $host_os in
  6553. rhapsody* | darwin*)
  6554. if test -n "$ac_tool_prefix"; then
  6555. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6556. set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then :
  6560. $as_echo_n "(cached) " >&6
  6561. else
  6562. if test -n "$DSYMUTIL"; then
  6563. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil"
  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. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6582. if test -n "$DSYMUTIL"; then
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6584. $as_echo "$DSYMUTIL" >&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_DSYMUTIL"; then
  6591. ac_ct_DSYMUTIL=$DSYMUTIL
  6592. # Extract the first word of "dsymutil", so it can be a program name with args.
  6593. set dummy dsymutil; 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_DSYMUTIL+:} false; then :
  6597. $as_echo_n "(cached) " >&6
  6598. else
  6599. if test -n "$ac_ct_DSYMUTIL"; then
  6600. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil"
  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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6619. if test -n "$ac_ct_DSYMUTIL"; then
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6621. $as_echo "$ac_ct_DSYMUTIL" >&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_DSYMUTIL" = x; then
  6627. DSYMUTIL=":"
  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. DSYMUTIL=$ac_ct_DSYMUTIL
  6636. fi
  6637. else
  6638. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6639. fi
  6640. if test -n "$ac_tool_prefix"; then
  6641. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6642. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6644. $as_echo_n "checking for $ac_word... " >&6; }
  6645. if ${ac_cv_prog_NMEDIT+:} false; then :
  6646. $as_echo_n "(cached) " >&6
  6647. else
  6648. if test -n "$NMEDIT"; then
  6649. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6650. else
  6651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6652. for as_dir in $PATH
  6653. do
  6654. IFS=$as_save_IFS
  6655. test -z "$as_dir" && as_dir=.
  6656. for ac_exec_ext in '' $ac_executable_extensions; do
  6657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6658. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6660. break 2
  6661. fi
  6662. done
  6663. done
  6664. IFS=$as_save_IFS
  6665. fi
  6666. fi
  6667. NMEDIT=$ac_cv_prog_NMEDIT
  6668. if test -n "$NMEDIT"; then
  6669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6670. $as_echo "$NMEDIT" >&6; }
  6671. else
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6673. $as_echo "no" >&6; }
  6674. fi
  6675. fi
  6676. if test -z "$ac_cv_prog_NMEDIT"; then
  6677. ac_ct_NMEDIT=$NMEDIT
  6678. # Extract the first word of "nmedit", so it can be a program name with args.
  6679. set dummy nmedit; ac_word=$2
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6681. $as_echo_n "checking for $ac_word... " >&6; }
  6682. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6683. $as_echo_n "(cached) " >&6
  6684. else
  6685. if test -n "$ac_ct_NMEDIT"; then
  6686. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6687. else
  6688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6689. for as_dir in $PATH
  6690. do
  6691. IFS=$as_save_IFS
  6692. test -z "$as_dir" && as_dir=.
  6693. for ac_exec_ext in '' $ac_executable_extensions; do
  6694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6695. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6697. break 2
  6698. fi
  6699. done
  6700. done
  6701. IFS=$as_save_IFS
  6702. fi
  6703. fi
  6704. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6705. if test -n "$ac_ct_NMEDIT"; then
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6707. $as_echo "$ac_ct_NMEDIT" >&6; }
  6708. else
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6710. $as_echo "no" >&6; }
  6711. fi
  6712. if test "x$ac_ct_NMEDIT" = x; then
  6713. NMEDIT=":"
  6714. else
  6715. case $cross_compiling:$ac_tool_warned in
  6716. yes:)
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6718. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6719. ac_tool_warned=yes ;;
  6720. esac
  6721. NMEDIT=$ac_ct_NMEDIT
  6722. fi
  6723. else
  6724. NMEDIT="$ac_cv_prog_NMEDIT"
  6725. fi
  6726. if test -n "$ac_tool_prefix"; then
  6727. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6728. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6730. $as_echo_n "checking for $ac_word... " >&6; }
  6731. if ${ac_cv_prog_LIPO+:} false; then :
  6732. $as_echo_n "(cached) " >&6
  6733. else
  6734. if test -n "$LIPO"; then
  6735. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6736. else
  6737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6738. for as_dir in $PATH
  6739. do
  6740. IFS=$as_save_IFS
  6741. test -z "$as_dir" && as_dir=.
  6742. for ac_exec_ext in '' $ac_executable_extensions; do
  6743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6744. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6746. break 2
  6747. fi
  6748. done
  6749. done
  6750. IFS=$as_save_IFS
  6751. fi
  6752. fi
  6753. LIPO=$ac_cv_prog_LIPO
  6754. if test -n "$LIPO"; then
  6755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6756. $as_echo "$LIPO" >&6; }
  6757. else
  6758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6759. $as_echo "no" >&6; }
  6760. fi
  6761. fi
  6762. if test -z "$ac_cv_prog_LIPO"; then
  6763. ac_ct_LIPO=$LIPO
  6764. # Extract the first word of "lipo", so it can be a program name with args.
  6765. set dummy lipo; ac_word=$2
  6766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6767. $as_echo_n "checking for $ac_word... " >&6; }
  6768. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6769. $as_echo_n "(cached) " >&6
  6770. else
  6771. if test -n "$ac_ct_LIPO"; then
  6772. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6773. else
  6774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6775. for as_dir in $PATH
  6776. do
  6777. IFS=$as_save_IFS
  6778. test -z "$as_dir" && as_dir=.
  6779. for ac_exec_ext in '' $ac_executable_extensions; do
  6780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6781. ac_cv_prog_ac_ct_LIPO="lipo"
  6782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6783. break 2
  6784. fi
  6785. done
  6786. done
  6787. IFS=$as_save_IFS
  6788. fi
  6789. fi
  6790. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6791. if test -n "$ac_ct_LIPO"; then
  6792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6793. $as_echo "$ac_ct_LIPO" >&6; }
  6794. else
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6796. $as_echo "no" >&6; }
  6797. fi
  6798. if test "x$ac_ct_LIPO" = x; then
  6799. LIPO=":"
  6800. else
  6801. case $cross_compiling:$ac_tool_warned in
  6802. yes:)
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6805. ac_tool_warned=yes ;;
  6806. esac
  6807. LIPO=$ac_ct_LIPO
  6808. fi
  6809. else
  6810. LIPO="$ac_cv_prog_LIPO"
  6811. fi
  6812. if test -n "$ac_tool_prefix"; then
  6813. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6814. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6816. $as_echo_n "checking for $ac_word... " >&6; }
  6817. if ${ac_cv_prog_OTOOL+:} false; then :
  6818. $as_echo_n "(cached) " >&6
  6819. else
  6820. if test -n "$OTOOL"; then
  6821. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6822. else
  6823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6824. for as_dir in $PATH
  6825. do
  6826. IFS=$as_save_IFS
  6827. test -z "$as_dir" && as_dir=.
  6828. for ac_exec_ext in '' $ac_executable_extensions; do
  6829. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6830. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6831. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6832. break 2
  6833. fi
  6834. done
  6835. done
  6836. IFS=$as_save_IFS
  6837. fi
  6838. fi
  6839. OTOOL=$ac_cv_prog_OTOOL
  6840. if test -n "$OTOOL"; then
  6841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6842. $as_echo "$OTOOL" >&6; }
  6843. else
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6845. $as_echo "no" >&6; }
  6846. fi
  6847. fi
  6848. if test -z "$ac_cv_prog_OTOOL"; then
  6849. ac_ct_OTOOL=$OTOOL
  6850. # Extract the first word of "otool", so it can be a program name with args.
  6851. set dummy otool; ac_word=$2
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6853. $as_echo_n "checking for $ac_word... " >&6; }
  6854. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6855. $as_echo_n "(cached) " >&6
  6856. else
  6857. if test -n "$ac_ct_OTOOL"; then
  6858. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6859. else
  6860. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6861. for as_dir in $PATH
  6862. do
  6863. IFS=$as_save_IFS
  6864. test -z "$as_dir" && as_dir=.
  6865. for ac_exec_ext in '' $ac_executable_extensions; do
  6866. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6867. ac_cv_prog_ac_ct_OTOOL="otool"
  6868. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6869. break 2
  6870. fi
  6871. done
  6872. done
  6873. IFS=$as_save_IFS
  6874. fi
  6875. fi
  6876. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6877. if test -n "$ac_ct_OTOOL"; then
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6879. $as_echo "$ac_ct_OTOOL" >&6; }
  6880. else
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6882. $as_echo "no" >&6; }
  6883. fi
  6884. if test "x$ac_ct_OTOOL" = x; then
  6885. OTOOL=":"
  6886. else
  6887. case $cross_compiling:$ac_tool_warned in
  6888. yes:)
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6890. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6891. ac_tool_warned=yes ;;
  6892. esac
  6893. OTOOL=$ac_ct_OTOOL
  6894. fi
  6895. else
  6896. OTOOL="$ac_cv_prog_OTOOL"
  6897. fi
  6898. if test -n "$ac_tool_prefix"; then
  6899. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6900. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6902. $as_echo_n "checking for $ac_word... " >&6; }
  6903. if ${ac_cv_prog_OTOOL64+:} false; then :
  6904. $as_echo_n "(cached) " >&6
  6905. else
  6906. if test -n "$OTOOL64"; then
  6907. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6908. else
  6909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6910. for as_dir in $PATH
  6911. do
  6912. IFS=$as_save_IFS
  6913. test -z "$as_dir" && as_dir=.
  6914. for ac_exec_ext in '' $ac_executable_extensions; do
  6915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6916. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6918. break 2
  6919. fi
  6920. done
  6921. done
  6922. IFS=$as_save_IFS
  6923. fi
  6924. fi
  6925. OTOOL64=$ac_cv_prog_OTOOL64
  6926. if test -n "$OTOOL64"; then
  6927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6928. $as_echo "$OTOOL64" >&6; }
  6929. else
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6931. $as_echo "no" >&6; }
  6932. fi
  6933. fi
  6934. if test -z "$ac_cv_prog_OTOOL64"; then
  6935. ac_ct_OTOOL64=$OTOOL64
  6936. # Extract the first word of "otool64", so it can be a program name with args.
  6937. set dummy otool64; ac_word=$2
  6938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6939. $as_echo_n "checking for $ac_word... " >&6; }
  6940. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6941. $as_echo_n "(cached) " >&6
  6942. else
  6943. if test -n "$ac_ct_OTOOL64"; then
  6944. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6945. else
  6946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6947. for as_dir in $PATH
  6948. do
  6949. IFS=$as_save_IFS
  6950. test -z "$as_dir" && as_dir=.
  6951. for ac_exec_ext in '' $ac_executable_extensions; do
  6952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6953. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6955. break 2
  6956. fi
  6957. done
  6958. done
  6959. IFS=$as_save_IFS
  6960. fi
  6961. fi
  6962. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6963. if test -n "$ac_ct_OTOOL64"; then
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6965. $as_echo "$ac_ct_OTOOL64" >&6; }
  6966. else
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6968. $as_echo "no" >&6; }
  6969. fi
  6970. if test "x$ac_ct_OTOOL64" = x; then
  6971. OTOOL64=":"
  6972. else
  6973. case $cross_compiling:$ac_tool_warned in
  6974. yes:)
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6976. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6977. ac_tool_warned=yes ;;
  6978. esac
  6979. OTOOL64=$ac_ct_OTOOL64
  6980. fi
  6981. else
  6982. OTOOL64="$ac_cv_prog_OTOOL64"
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6985. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6986. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6987. $as_echo_n "(cached) " >&6
  6988. else
  6989. lt_cv_apple_cc_single_mod=no
  6990. if test -z "${LT_MULTI_MODULE}"; then
  6991. # By default we will add the -single_module flag. You can override
  6992. # by either setting the environment variable LT_MULTI_MODULE
  6993. # non-empty at configure time, or by adding -multi_module to the
  6994. # link flags.
  6995. rm -rf libconftest.dylib*
  6996. echo "int foo(void){return 1;}" > conftest.c
  6997. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6998. -dynamiclib -Wl,-single_module conftest.c" >&5
  6999. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7000. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7001. _lt_result=$?
  7002. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7003. lt_cv_apple_cc_single_mod=yes
  7004. else
  7005. cat conftest.err >&5
  7006. fi
  7007. rm -rf libconftest.dylib*
  7008. rm -f conftest.*
  7009. fi
  7010. fi
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7012. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7014. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7015. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7016. $as_echo_n "(cached) " >&6
  7017. else
  7018. lt_cv_ld_exported_symbols_list=no
  7019. save_LDFLAGS=$LDFLAGS
  7020. echo "_main" > conftest.sym
  7021. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7023. /* end confdefs.h. */
  7024. int
  7025. main ()
  7026. {
  7027. ;
  7028. return 0;
  7029. }
  7030. _ACEOF
  7031. if ac_fn_c_try_link "$LINENO"; then :
  7032. lt_cv_ld_exported_symbols_list=yes
  7033. else
  7034. lt_cv_ld_exported_symbols_list=no
  7035. fi
  7036. rm -f core conftest.err conftest.$ac_objext \
  7037. conftest$ac_exeext conftest.$ac_ext
  7038. LDFLAGS="$save_LDFLAGS"
  7039. fi
  7040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7041. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7043. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7044. if ${lt_cv_ld_force_load+:} false; then :
  7045. $as_echo_n "(cached) " >&6
  7046. else
  7047. lt_cv_ld_force_load=no
  7048. cat > conftest.c << _LT_EOF
  7049. int forced_loaded() { return 2;}
  7050. _LT_EOF
  7051. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7052. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7053. echo "$AR cru libconftest.a conftest.o" >&5
  7054. $AR cru libconftest.a conftest.o 2>&5
  7055. cat > conftest.c << _LT_EOF
  7056. int main() { return 0;}
  7057. _LT_EOF
  7058. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7059. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7060. _lt_result=$?
  7061. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7062. lt_cv_ld_force_load=yes
  7063. else
  7064. cat conftest.err >&5
  7065. fi
  7066. rm -f conftest.err libconftest.a conftest conftest.c
  7067. rm -rf conftest.dSYM
  7068. fi
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7070. $as_echo "$lt_cv_ld_force_load" >&6; }
  7071. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7072. # build without first building modern cctools / linker.
  7073. case $host_cpu-$host_os in
  7074. *-rhapsody* | *-darwin1.[012])
  7075. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7076. *-darwin1.*)
  7077. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7078. *-darwin*)
  7079. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7080. # deployment target is forced to an earlier version.
  7081. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7082. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7083. ;;
  7084. 10.[012][,.]*)
  7085. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7086. ;;
  7087. *)
  7088. ;;
  7089. esac
  7090. ;;
  7091. esac
  7092. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7093. _lt_dar_single_mod='$single_module'
  7094. fi
  7095. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7096. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7097. else
  7098. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7099. fi
  7100. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7101. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7102. else
  7103. _lt_dsymutil=
  7104. fi
  7105. ;;
  7106. esac
  7107. for ac_header in dlfcn.h
  7108. do :
  7109. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7110. "
  7111. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7112. cat >>confdefs.h <<_ACEOF
  7113. #define HAVE_DLFCN_H 1
  7114. _ACEOF
  7115. fi
  7116. done
  7117. # Set options
  7118. enable_dlopen=no
  7119. enable_win32_dll=no
  7120. # Check whether --enable-shared was given.
  7121. if test "${enable_shared+set}" = set; then :
  7122. enableval=$enable_shared; p=${PACKAGE-default}
  7123. case $enableval in
  7124. yes) enable_shared=yes ;;
  7125. no) enable_shared=no ;;
  7126. *)
  7127. enable_shared=no
  7128. # Look at the argument we got. We use all the common list separators.
  7129. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7130. for pkg in $enableval; do
  7131. IFS="$lt_save_ifs"
  7132. if test "X$pkg" = "X$p"; then
  7133. enable_shared=yes
  7134. fi
  7135. done
  7136. IFS="$lt_save_ifs"
  7137. ;;
  7138. esac
  7139. else
  7140. enable_shared=yes
  7141. fi
  7142. # Check whether --enable-static was given.
  7143. if test "${enable_static+set}" = set; then :
  7144. enableval=$enable_static; p=${PACKAGE-default}
  7145. case $enableval in
  7146. yes) enable_static=yes ;;
  7147. no) enable_static=no ;;
  7148. *)
  7149. enable_static=no
  7150. # Look at the argument we got. We use all the common list separators.
  7151. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7152. for pkg in $enableval; do
  7153. IFS="$lt_save_ifs"
  7154. if test "X$pkg" = "X$p"; then
  7155. enable_static=yes
  7156. fi
  7157. done
  7158. IFS="$lt_save_ifs"
  7159. ;;
  7160. esac
  7161. else
  7162. enable_static=yes
  7163. fi
  7164. # Check whether --with-pic was given.
  7165. if test "${with_pic+set}" = set; then :
  7166. withval=$with_pic; pic_mode="$withval"
  7167. else
  7168. pic_mode=default
  7169. fi
  7170. test -z "$pic_mode" && pic_mode=default
  7171. # Check whether --enable-fast-install was given.
  7172. if test "${enable_fast_install+set}" = set; then :
  7173. enableval=$enable_fast_install; p=${PACKAGE-default}
  7174. case $enableval in
  7175. yes) enable_fast_install=yes ;;
  7176. no) enable_fast_install=no ;;
  7177. *)
  7178. enable_fast_install=no
  7179. # Look at the argument we got. We use all the common list separators.
  7180. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7181. for pkg in $enableval; do
  7182. IFS="$lt_save_ifs"
  7183. if test "X$pkg" = "X$p"; then
  7184. enable_fast_install=yes
  7185. fi
  7186. done
  7187. IFS="$lt_save_ifs"
  7188. ;;
  7189. esac
  7190. else
  7191. enable_fast_install=yes
  7192. fi
  7193. # This can be used to rebuild libtool when needed
  7194. LIBTOOL_DEPS="$ltmain"
  7195. # Always use our own libtool.
  7196. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7197. test -z "$LN_S" && LN_S="ln -s"
  7198. if test -n "${ZSH_VERSION+set}" ; then
  7199. setopt NO_GLOB_SUBST
  7200. fi
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7202. $as_echo_n "checking for objdir... " >&6; }
  7203. if ${lt_cv_objdir+:} false; then :
  7204. $as_echo_n "(cached) " >&6
  7205. else
  7206. rm -f .libs 2>/dev/null
  7207. mkdir .libs 2>/dev/null
  7208. if test -d .libs; then
  7209. lt_cv_objdir=.libs
  7210. else
  7211. # MS-DOS does not allow filenames that begin with a dot.
  7212. lt_cv_objdir=_libs
  7213. fi
  7214. rmdir .libs 2>/dev/null
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7217. $as_echo "$lt_cv_objdir" >&6; }
  7218. objdir=$lt_cv_objdir
  7219. cat >>confdefs.h <<_ACEOF
  7220. #define LT_OBJDIR "$lt_cv_objdir/"
  7221. _ACEOF
  7222. case $host_os in
  7223. aix3*)
  7224. # AIX sometimes has problems with the GCC collect2 program. For some
  7225. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7226. # vanish in a puff of smoke.
  7227. if test "X${COLLECT_NAMES+set}" != Xset; then
  7228. COLLECT_NAMES=
  7229. export COLLECT_NAMES
  7230. fi
  7231. ;;
  7232. esac
  7233. # Global variables:
  7234. ofile=libtool
  7235. can_build_shared=yes
  7236. # All known linkers require a `.a' archive for static linking (except MSVC,
  7237. # which needs '.lib').
  7238. libext=a
  7239. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7240. old_CC="$CC"
  7241. old_CFLAGS="$CFLAGS"
  7242. # Set sane defaults for various variables
  7243. test -z "$CC" && CC=cc
  7244. test -z "$LTCC" && LTCC=$CC
  7245. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7246. test -z "$LD" && LD=ld
  7247. test -z "$ac_objext" && ac_objext=o
  7248. for cc_temp in $compiler""; do
  7249. case $cc_temp in
  7250. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7251. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7252. \-*) ;;
  7253. *) break;;
  7254. esac
  7255. done
  7256. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7257. # Only perform the check for file, if the check method requires it
  7258. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7259. case $deplibs_check_method in
  7260. file_magic*)
  7261. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7263. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7264. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7265. $as_echo_n "(cached) " >&6
  7266. else
  7267. case $MAGIC_CMD in
  7268. [\\/*] | ?:[\\/]*)
  7269. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7270. ;;
  7271. *)
  7272. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7273. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7274. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7275. for ac_dir in $ac_dummy; do
  7276. IFS="$lt_save_ifs"
  7277. test -z "$ac_dir" && ac_dir=.
  7278. if test -f $ac_dir/${ac_tool_prefix}file; then
  7279. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7280. if test -n "$file_magic_test_file"; then
  7281. case $deplibs_check_method in
  7282. "file_magic "*)
  7283. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7284. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7285. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7286. $EGREP "$file_magic_regex" > /dev/null; then
  7287. :
  7288. else
  7289. cat <<_LT_EOF 1>&2
  7290. *** Warning: the command libtool uses to detect shared libraries,
  7291. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7292. *** The result is that libtool may fail to recognize shared libraries
  7293. *** as such. This will affect the creation of libtool libraries that
  7294. *** depend on shared libraries, but programs linked with such libtool
  7295. *** libraries will work regardless of this problem. Nevertheless, you
  7296. *** may want to report the problem to your system manager and/or to
  7297. *** bug-libtool@gnu.org
  7298. _LT_EOF
  7299. fi ;;
  7300. esac
  7301. fi
  7302. break
  7303. fi
  7304. done
  7305. IFS="$lt_save_ifs"
  7306. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7307. ;;
  7308. esac
  7309. fi
  7310. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7311. if test -n "$MAGIC_CMD"; then
  7312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7313. $as_echo "$MAGIC_CMD" >&6; }
  7314. else
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7316. $as_echo "no" >&6; }
  7317. fi
  7318. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7319. if test -n "$ac_tool_prefix"; then
  7320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7321. $as_echo_n "checking for file... " >&6; }
  7322. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7323. $as_echo_n "(cached) " >&6
  7324. else
  7325. case $MAGIC_CMD in
  7326. [\\/*] | ?:[\\/]*)
  7327. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7328. ;;
  7329. *)
  7330. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7331. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7332. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7333. for ac_dir in $ac_dummy; do
  7334. IFS="$lt_save_ifs"
  7335. test -z "$ac_dir" && ac_dir=.
  7336. if test -f $ac_dir/file; then
  7337. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7338. if test -n "$file_magic_test_file"; then
  7339. case $deplibs_check_method in
  7340. "file_magic "*)
  7341. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7342. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7343. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7344. $EGREP "$file_magic_regex" > /dev/null; then
  7345. :
  7346. else
  7347. cat <<_LT_EOF 1>&2
  7348. *** Warning: the command libtool uses to detect shared libraries,
  7349. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7350. *** The result is that libtool may fail to recognize shared libraries
  7351. *** as such. This will affect the creation of libtool libraries that
  7352. *** depend on shared libraries, but programs linked with such libtool
  7353. *** libraries will work regardless of this problem. Nevertheless, you
  7354. *** may want to report the problem to your system manager and/or to
  7355. *** bug-libtool@gnu.org
  7356. _LT_EOF
  7357. fi ;;
  7358. esac
  7359. fi
  7360. break
  7361. fi
  7362. done
  7363. IFS="$lt_save_ifs"
  7364. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7365. ;;
  7366. esac
  7367. fi
  7368. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7369. if test -n "$MAGIC_CMD"; then
  7370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7371. $as_echo "$MAGIC_CMD" >&6; }
  7372. else
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7374. $as_echo "no" >&6; }
  7375. fi
  7376. else
  7377. MAGIC_CMD=:
  7378. fi
  7379. fi
  7380. fi
  7381. ;;
  7382. esac
  7383. # Use C for the default configuration in the libtool script
  7384. lt_save_CC="$CC"
  7385. ac_ext=c
  7386. ac_cpp='$CPP $CPPFLAGS'
  7387. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7388. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7389. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7390. # Source file extension for C test sources.
  7391. ac_ext=c
  7392. # Object file extension for compiled C test sources.
  7393. objext=o
  7394. objext=$objext
  7395. # Code to be used in simple compile tests
  7396. lt_simple_compile_test_code="int some_variable = 0;"
  7397. # Code to be used in simple link tests
  7398. lt_simple_link_test_code='int main(){return(0);}'
  7399. # If no C compiler was specified, use CC.
  7400. LTCC=${LTCC-"$CC"}
  7401. # If no C compiler flags were specified, use CFLAGS.
  7402. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7403. # Allow CC to be a program name with arguments.
  7404. compiler=$CC
  7405. # Save the default compiler, since it gets overwritten when the other
  7406. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7407. compiler_DEFAULT=$CC
  7408. # save warnings/boilerplate of simple test code
  7409. ac_outfile=conftest.$ac_objext
  7410. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7411. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7412. _lt_compiler_boilerplate=`cat conftest.err`
  7413. $RM conftest*
  7414. ac_outfile=conftest.$ac_objext
  7415. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7416. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7417. _lt_linker_boilerplate=`cat conftest.err`
  7418. $RM -r conftest*
  7419. ## CAVEAT EMPTOR:
  7420. ## There is no encapsulation within the following macros, do not change
  7421. ## the running order or otherwise move them around unless you know exactly
  7422. ## what you are doing...
  7423. if test -n "$compiler"; then
  7424. lt_prog_compiler_no_builtin_flag=
  7425. if test "$GCC" = yes; then
  7426. case $cc_basename in
  7427. nvcc*)
  7428. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7429. *)
  7430. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7431. esac
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7433. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7434. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. lt_cv_prog_compiler_rtti_exceptions=no
  7438. ac_outfile=conftest.$ac_objext
  7439. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7440. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7441. # Insert the option either (1) after the last *FLAGS variable, or
  7442. # (2) before a word containing "conftest.", or (3) at the end.
  7443. # Note that $ac_compile itself does not contain backslashes and begins
  7444. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7445. # The option is referenced via a variable to avoid confusing sed.
  7446. lt_compile=`echo "$ac_compile" | $SED \
  7447. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7448. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7449. -e 's:$: $lt_compiler_flag:'`
  7450. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7451. (eval "$lt_compile" 2>conftest.err)
  7452. ac_status=$?
  7453. cat conftest.err >&5
  7454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7455. if (exit $ac_status) && test -s "$ac_outfile"; then
  7456. # The compiler can only warn and ignore the option if not recognized
  7457. # So say no if there are warnings other than the usual output.
  7458. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7459. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7460. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7461. lt_cv_prog_compiler_rtti_exceptions=yes
  7462. fi
  7463. fi
  7464. $RM conftest*
  7465. fi
  7466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7467. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7468. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7469. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7470. else
  7471. :
  7472. fi
  7473. fi
  7474. lt_prog_compiler_wl=
  7475. lt_prog_compiler_pic=
  7476. lt_prog_compiler_static=
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7478. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7479. if test "$GCC" = yes; then
  7480. lt_prog_compiler_wl='-Wl,'
  7481. lt_prog_compiler_static='-static'
  7482. case $host_os in
  7483. aix*)
  7484. # All AIX code is PIC.
  7485. if test "$host_cpu" = ia64; then
  7486. # AIX 5 now supports IA64 processor
  7487. lt_prog_compiler_static='-Bstatic'
  7488. fi
  7489. lt_prog_compiler_pic='-fPIC'
  7490. ;;
  7491. amigaos*)
  7492. case $host_cpu in
  7493. powerpc)
  7494. # see comment about AmigaOS4 .so support
  7495. lt_prog_compiler_pic='-fPIC'
  7496. ;;
  7497. m68k)
  7498. # FIXME: we need at least 68020 code to build shared libraries, but
  7499. # adding the `-m68020' flag to GCC prevents building anything better,
  7500. # like `-m68040'.
  7501. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7502. ;;
  7503. esac
  7504. ;;
  7505. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7506. # PIC is the default for these OSes.
  7507. ;;
  7508. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7509. # This hack is so that the source file can tell whether it is being
  7510. # built for inclusion in a dll (and should export symbols for example).
  7511. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7512. # (--disable-auto-import) libraries
  7513. lt_prog_compiler_pic='-DDLL_EXPORT'
  7514. ;;
  7515. darwin* | rhapsody*)
  7516. # PIC is the default on this platform
  7517. # Common symbols not allowed in MH_DYLIB files
  7518. lt_prog_compiler_pic='-fno-common'
  7519. ;;
  7520. haiku*)
  7521. # PIC is the default for Haiku.
  7522. # The "-static" flag exists, but is broken.
  7523. lt_prog_compiler_static=
  7524. ;;
  7525. hpux*)
  7526. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7527. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7528. # sets the default TLS model and affects inlining.
  7529. case $host_cpu in
  7530. hppa*64*)
  7531. # +Z the default
  7532. ;;
  7533. *)
  7534. lt_prog_compiler_pic='-fPIC'
  7535. ;;
  7536. esac
  7537. ;;
  7538. interix[3-9]*)
  7539. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7540. # Instead, we relocate shared libraries at runtime.
  7541. ;;
  7542. msdosdjgpp*)
  7543. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7544. # on systems that don't support them.
  7545. lt_prog_compiler_can_build_shared=no
  7546. enable_shared=no
  7547. ;;
  7548. *nto* | *qnx*)
  7549. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7550. # it will coredump.
  7551. lt_prog_compiler_pic='-fPIC -shared'
  7552. ;;
  7553. sysv4*MP*)
  7554. if test -d /usr/nec; then
  7555. lt_prog_compiler_pic=-Kconform_pic
  7556. fi
  7557. ;;
  7558. *)
  7559. lt_prog_compiler_pic='-fPIC'
  7560. ;;
  7561. esac
  7562. case $cc_basename in
  7563. nvcc*) # Cuda Compiler Driver 2.2
  7564. lt_prog_compiler_wl='-Xlinker '
  7565. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7566. ;;
  7567. esac
  7568. else
  7569. # PORTME Check for flag to pass linker flags through the system compiler.
  7570. case $host_os in
  7571. aix*)
  7572. lt_prog_compiler_wl='-Wl,'
  7573. if test "$host_cpu" = ia64; then
  7574. # AIX 5 now supports IA64 processor
  7575. lt_prog_compiler_static='-Bstatic'
  7576. else
  7577. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7578. fi
  7579. ;;
  7580. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7581. # This hack is so that the source file can tell whether it is being
  7582. # built for inclusion in a dll (and should export symbols for example).
  7583. lt_prog_compiler_pic='-DDLL_EXPORT'
  7584. ;;
  7585. hpux9* | hpux10* | hpux11*)
  7586. lt_prog_compiler_wl='-Wl,'
  7587. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7588. # not for PA HP-UX.
  7589. case $host_cpu in
  7590. hppa*64*|ia64*)
  7591. # +Z the default
  7592. ;;
  7593. *)
  7594. lt_prog_compiler_pic='+Z'
  7595. ;;
  7596. esac
  7597. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7598. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7599. ;;
  7600. irix5* | irix6* | nonstopux*)
  7601. lt_prog_compiler_wl='-Wl,'
  7602. # PIC (with -KPIC) is the default.
  7603. lt_prog_compiler_static='-non_shared'
  7604. ;;
  7605. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7606. case $cc_basename in
  7607. # old Intel for x86_64 which still supported -KPIC.
  7608. ecc*)
  7609. lt_prog_compiler_wl='-Wl,'
  7610. lt_prog_compiler_pic='-KPIC'
  7611. lt_prog_compiler_static='-static'
  7612. ;;
  7613. # icc used to be incompatible with GCC.
  7614. # ICC 10 doesn't accept -KPIC any more.
  7615. icc* | ifort*)
  7616. lt_prog_compiler_wl='-Wl,'
  7617. lt_prog_compiler_pic='-fPIC'
  7618. lt_prog_compiler_static='-static'
  7619. ;;
  7620. # Lahey Fortran 8.1.
  7621. lf95*)
  7622. lt_prog_compiler_wl='-Wl,'
  7623. lt_prog_compiler_pic='--shared'
  7624. lt_prog_compiler_static='--static'
  7625. ;;
  7626. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7627. # Portland Group compilers (*not* the Pentium gcc compiler,
  7628. # which looks to be a dead project)
  7629. lt_prog_compiler_wl='-Wl,'
  7630. lt_prog_compiler_pic='-fpic'
  7631. lt_prog_compiler_static='-Bstatic'
  7632. ;;
  7633. ccc*)
  7634. lt_prog_compiler_wl='-Wl,'
  7635. # All Alpha code is PIC.
  7636. lt_prog_compiler_static='-non_shared'
  7637. ;;
  7638. xl* | bgxl* | bgf* | mpixl*)
  7639. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7640. lt_prog_compiler_wl='-Wl,'
  7641. lt_prog_compiler_pic='-qpic'
  7642. lt_prog_compiler_static='-qstaticlink'
  7643. ;;
  7644. *)
  7645. case `$CC -V 2>&1 | sed 5q` in
  7646. *Sun\ F* | *Sun*Fortran*)
  7647. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7648. lt_prog_compiler_pic='-KPIC'
  7649. lt_prog_compiler_static='-Bstatic'
  7650. lt_prog_compiler_wl=''
  7651. ;;
  7652. *Sun\ C*)
  7653. # Sun C 5.9
  7654. lt_prog_compiler_pic='-KPIC'
  7655. lt_prog_compiler_static='-Bstatic'
  7656. lt_prog_compiler_wl='-Wl,'
  7657. ;;
  7658. esac
  7659. ;;
  7660. esac
  7661. ;;
  7662. newsos6)
  7663. lt_prog_compiler_pic='-KPIC'
  7664. lt_prog_compiler_static='-Bstatic'
  7665. ;;
  7666. *nto* | *qnx*)
  7667. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7668. # it will coredump.
  7669. lt_prog_compiler_pic='-fPIC -shared'
  7670. ;;
  7671. osf3* | osf4* | osf5*)
  7672. lt_prog_compiler_wl='-Wl,'
  7673. # All OSF/1 code is PIC.
  7674. lt_prog_compiler_static='-non_shared'
  7675. ;;
  7676. rdos*)
  7677. lt_prog_compiler_static='-non_shared'
  7678. ;;
  7679. solaris*)
  7680. lt_prog_compiler_pic='-KPIC'
  7681. lt_prog_compiler_static='-Bstatic'
  7682. case $cc_basename in
  7683. f77* | f90* | f95*)
  7684. lt_prog_compiler_wl='-Qoption ld ';;
  7685. *)
  7686. lt_prog_compiler_wl='-Wl,';;
  7687. esac
  7688. ;;
  7689. sunos4*)
  7690. lt_prog_compiler_wl='-Qoption ld '
  7691. lt_prog_compiler_pic='-PIC'
  7692. lt_prog_compiler_static='-Bstatic'
  7693. ;;
  7694. sysv4 | sysv4.2uw2* | sysv4.3*)
  7695. lt_prog_compiler_wl='-Wl,'
  7696. lt_prog_compiler_pic='-KPIC'
  7697. lt_prog_compiler_static='-Bstatic'
  7698. ;;
  7699. sysv4*MP*)
  7700. if test -d /usr/nec ;then
  7701. lt_prog_compiler_pic='-Kconform_pic'
  7702. lt_prog_compiler_static='-Bstatic'
  7703. fi
  7704. ;;
  7705. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7706. lt_prog_compiler_wl='-Wl,'
  7707. lt_prog_compiler_pic='-KPIC'
  7708. lt_prog_compiler_static='-Bstatic'
  7709. ;;
  7710. unicos*)
  7711. lt_prog_compiler_wl='-Wl,'
  7712. lt_prog_compiler_can_build_shared=no
  7713. ;;
  7714. uts4*)
  7715. lt_prog_compiler_pic='-pic'
  7716. lt_prog_compiler_static='-Bstatic'
  7717. ;;
  7718. *)
  7719. lt_prog_compiler_can_build_shared=no
  7720. ;;
  7721. esac
  7722. fi
  7723. case $host_os in
  7724. # For platforms which do not support PIC, -DPIC is meaningless:
  7725. *djgpp*)
  7726. lt_prog_compiler_pic=
  7727. ;;
  7728. *)
  7729. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7730. ;;
  7731. esac
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7733. $as_echo "$lt_prog_compiler_pic" >&6; }
  7734. #
  7735. # Check to make sure the PIC flag actually works.
  7736. #
  7737. if test -n "$lt_prog_compiler_pic"; then
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7739. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7740. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7741. $as_echo_n "(cached) " >&6
  7742. else
  7743. lt_cv_prog_compiler_pic_works=no
  7744. ac_outfile=conftest.$ac_objext
  7745. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7746. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7747. # Insert the option either (1) after the last *FLAGS variable, or
  7748. # (2) before a word containing "conftest.", or (3) at the end.
  7749. # Note that $ac_compile itself does not contain backslashes and begins
  7750. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7751. # The option is referenced via a variable to avoid confusing sed.
  7752. lt_compile=`echo "$ac_compile" | $SED \
  7753. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7754. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7755. -e 's:$: $lt_compiler_flag:'`
  7756. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7757. (eval "$lt_compile" 2>conftest.err)
  7758. ac_status=$?
  7759. cat conftest.err >&5
  7760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7761. if (exit $ac_status) && test -s "$ac_outfile"; then
  7762. # The compiler can only warn and ignore the option if not recognized
  7763. # So say no if there are warnings other than the usual output.
  7764. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7765. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7766. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7767. lt_cv_prog_compiler_pic_works=yes
  7768. fi
  7769. fi
  7770. $RM conftest*
  7771. fi
  7772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7773. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7774. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7775. case $lt_prog_compiler_pic in
  7776. "" | " "*) ;;
  7777. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7778. esac
  7779. else
  7780. lt_prog_compiler_pic=
  7781. lt_prog_compiler_can_build_shared=no
  7782. fi
  7783. fi
  7784. #
  7785. # Check to make sure the static flag actually works.
  7786. #
  7787. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7789. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7790. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7791. $as_echo_n "(cached) " >&6
  7792. else
  7793. lt_cv_prog_compiler_static_works=no
  7794. save_LDFLAGS="$LDFLAGS"
  7795. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7796. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7797. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7798. # The linker can only warn and ignore the option if not recognized
  7799. # So say no if there are warnings
  7800. if test -s conftest.err; then
  7801. # Append any errors to the config.log.
  7802. cat conftest.err 1>&5
  7803. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7804. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7805. if diff conftest.exp conftest.er2 >/dev/null; then
  7806. lt_cv_prog_compiler_static_works=yes
  7807. fi
  7808. else
  7809. lt_cv_prog_compiler_static_works=yes
  7810. fi
  7811. fi
  7812. $RM -r conftest*
  7813. LDFLAGS="$save_LDFLAGS"
  7814. fi
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7816. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7817. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7818. :
  7819. else
  7820. lt_prog_compiler_static=
  7821. fi
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7823. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7824. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. lt_cv_prog_compiler_c_o=no
  7828. $RM -r conftest 2>/dev/null
  7829. mkdir conftest
  7830. cd conftest
  7831. mkdir out
  7832. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7833. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7834. # Insert the option either (1) after the last *FLAGS variable, or
  7835. # (2) before a word containing "conftest.", or (3) at the end.
  7836. # Note that $ac_compile itself does not contain backslashes and begins
  7837. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7838. lt_compile=`echo "$ac_compile" | $SED \
  7839. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7840. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7841. -e 's:$: $lt_compiler_flag:'`
  7842. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7843. (eval "$lt_compile" 2>out/conftest.err)
  7844. ac_status=$?
  7845. cat out/conftest.err >&5
  7846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7847. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7848. then
  7849. # The compiler can only warn and ignore the option if not recognized
  7850. # So say no if there are warnings
  7851. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7852. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7853. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7854. lt_cv_prog_compiler_c_o=yes
  7855. fi
  7856. fi
  7857. chmod u+w . 2>&5
  7858. $RM conftest*
  7859. # SGI C++ compiler will create directory out/ii_files/ for
  7860. # template instantiation
  7861. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7862. $RM out/* && rmdir out
  7863. cd ..
  7864. $RM -r conftest
  7865. $RM conftest*
  7866. fi
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7868. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7870. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7871. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7872. $as_echo_n "(cached) " >&6
  7873. else
  7874. lt_cv_prog_compiler_c_o=no
  7875. $RM -r conftest 2>/dev/null
  7876. mkdir conftest
  7877. cd conftest
  7878. mkdir out
  7879. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7880. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7881. # Insert the option either (1) after the last *FLAGS variable, or
  7882. # (2) before a word containing "conftest.", or (3) at the end.
  7883. # Note that $ac_compile itself does not contain backslashes and begins
  7884. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7885. lt_compile=`echo "$ac_compile" | $SED \
  7886. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7887. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7888. -e 's:$: $lt_compiler_flag:'`
  7889. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7890. (eval "$lt_compile" 2>out/conftest.err)
  7891. ac_status=$?
  7892. cat out/conftest.err >&5
  7893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7894. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7895. then
  7896. # The compiler can only warn and ignore the option if not recognized
  7897. # So say no if there are warnings
  7898. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7899. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7900. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7901. lt_cv_prog_compiler_c_o=yes
  7902. fi
  7903. fi
  7904. chmod u+w . 2>&5
  7905. $RM conftest*
  7906. # SGI C++ compiler will create directory out/ii_files/ for
  7907. # template instantiation
  7908. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7909. $RM out/* && rmdir out
  7910. cd ..
  7911. $RM -r conftest
  7912. $RM conftest*
  7913. fi
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7915. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7916. hard_links="nottested"
  7917. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7918. # do not overwrite the value of need_locks provided by the user
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7920. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7921. hard_links=yes
  7922. $RM conftest*
  7923. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7924. touch conftest.a
  7925. ln conftest.a conftest.b 2>&5 || hard_links=no
  7926. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7928. $as_echo "$hard_links" >&6; }
  7929. if test "$hard_links" = no; then
  7930. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7931. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7932. need_locks=warn
  7933. fi
  7934. else
  7935. need_locks=no
  7936. fi
  7937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7938. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7939. runpath_var=
  7940. allow_undefined_flag=
  7941. always_export_symbols=no
  7942. archive_cmds=
  7943. archive_expsym_cmds=
  7944. compiler_needs_object=no
  7945. enable_shared_with_static_runtimes=no
  7946. export_dynamic_flag_spec=
  7947. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7948. hardcode_automatic=no
  7949. hardcode_direct=no
  7950. hardcode_direct_absolute=no
  7951. hardcode_libdir_flag_spec=
  7952. hardcode_libdir_flag_spec_ld=
  7953. hardcode_libdir_separator=
  7954. hardcode_minus_L=no
  7955. hardcode_shlibpath_var=unsupported
  7956. inherit_rpath=no
  7957. link_all_deplibs=unknown
  7958. module_cmds=
  7959. module_expsym_cmds=
  7960. old_archive_from_new_cmds=
  7961. old_archive_from_expsyms_cmds=
  7962. thread_safe_flag_spec=
  7963. whole_archive_flag_spec=
  7964. # include_expsyms should be a list of space-separated symbols to be *always*
  7965. # included in the symbol list
  7966. include_expsyms=
  7967. # exclude_expsyms can be an extended regexp of symbols to exclude
  7968. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7969. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7970. # as well as any symbol that contains `d'.
  7971. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7972. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7973. # platforms (ab)use it in PIC code, but their linkers get confused if
  7974. # the symbol is explicitly referenced. Since portable code cannot
  7975. # rely on this symbol name, it's probably fine to never include it in
  7976. # preloaded symbol tables.
  7977. # Exclude shared library initialization/finalization symbols.
  7978. extract_expsyms_cmds=
  7979. case $host_os in
  7980. cygwin* | mingw* | pw32* | cegcc*)
  7981. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7982. # When not using gcc, we currently assume that we are using
  7983. # Microsoft Visual C++.
  7984. if test "$GCC" != yes; then
  7985. with_gnu_ld=no
  7986. fi
  7987. ;;
  7988. interix*)
  7989. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7990. with_gnu_ld=yes
  7991. ;;
  7992. openbsd*)
  7993. with_gnu_ld=no
  7994. ;;
  7995. esac
  7996. ld_shlibs=yes
  7997. # On some targets, GNU ld is compatible enough with the native linker
  7998. # that we're better off using the native interface for both.
  7999. lt_use_gnu_ld_interface=no
  8000. if test "$with_gnu_ld" = yes; then
  8001. case $host_os in
  8002. aix*)
  8003. # The AIX port of GNU ld has always aspired to compatibility
  8004. # with the native linker. However, as the warning in the GNU ld
  8005. # block says, versions before 2.19.5* couldn't really create working
  8006. # shared libraries, regardless of the interface used.
  8007. case `$LD -v 2>&1` in
  8008. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8009. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8010. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8011. *)
  8012. lt_use_gnu_ld_interface=yes
  8013. ;;
  8014. esac
  8015. ;;
  8016. *)
  8017. lt_use_gnu_ld_interface=yes
  8018. ;;
  8019. esac
  8020. fi
  8021. if test "$lt_use_gnu_ld_interface" = yes; then
  8022. # If archive_cmds runs LD, not CC, wlarc should be empty
  8023. wlarc='${wl}'
  8024. # Set some defaults for GNU ld with shared library support. These
  8025. # are reset later if shared libraries are not supported. Putting them
  8026. # here allows them to be overridden if necessary.
  8027. runpath_var=LD_RUN_PATH
  8028. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8029. export_dynamic_flag_spec='${wl}--export-dynamic'
  8030. # ancient GNU ld didn't support --whole-archive et. al.
  8031. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8032. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8033. else
  8034. whole_archive_flag_spec=
  8035. fi
  8036. supports_anon_versioning=no
  8037. case `$LD -v 2>&1` in
  8038. *GNU\ gold*) supports_anon_versioning=yes ;;
  8039. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8040. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8041. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8042. *\ 2.11.*) ;; # other 2.11 versions
  8043. *) supports_anon_versioning=yes ;;
  8044. esac
  8045. # See if GNU ld supports shared libraries.
  8046. case $host_os in
  8047. aix[3-9]*)
  8048. # On AIX/PPC, the GNU linker is very broken
  8049. if test "$host_cpu" != ia64; then
  8050. ld_shlibs=no
  8051. cat <<_LT_EOF 1>&2
  8052. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8053. *** to be unable to reliably create shared libraries on AIX.
  8054. *** Therefore, libtool is disabling shared libraries support. If you
  8055. *** really care for shared libraries, you may want to install binutils
  8056. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8057. *** You will then need to restart the configuration process.
  8058. _LT_EOF
  8059. fi
  8060. ;;
  8061. amigaos*)
  8062. case $host_cpu in
  8063. powerpc)
  8064. # see comment about AmigaOS4 .so support
  8065. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8066. archive_expsym_cmds=''
  8067. ;;
  8068. m68k)
  8069. 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)'
  8070. hardcode_libdir_flag_spec='-L$libdir'
  8071. hardcode_minus_L=yes
  8072. ;;
  8073. esac
  8074. ;;
  8075. beos*)
  8076. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8077. allow_undefined_flag=unsupported
  8078. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8079. # support --undefined. This deserves some investigation. FIXME
  8080. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8081. else
  8082. ld_shlibs=no
  8083. fi
  8084. ;;
  8085. cygwin* | mingw* | pw32* | cegcc*)
  8086. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8087. # as there is no search path for DLLs.
  8088. hardcode_libdir_flag_spec='-L$libdir'
  8089. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8090. allow_undefined_flag=unsupported
  8091. always_export_symbols=no
  8092. enable_shared_with_static_runtimes=yes
  8093. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8094. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8095. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8096. # If the export-symbols file already is a .def file (1st line
  8097. # is EXPORTS), use it as is; otherwise, prepend...
  8098. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8099. cp $export_symbols $output_objdir/$soname.def;
  8100. else
  8101. echo EXPORTS > $output_objdir/$soname.def;
  8102. cat $export_symbols >> $output_objdir/$soname.def;
  8103. fi~
  8104. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8105. else
  8106. ld_shlibs=no
  8107. fi
  8108. ;;
  8109. haiku*)
  8110. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8111. link_all_deplibs=yes
  8112. ;;
  8113. interix[3-9]*)
  8114. hardcode_direct=no
  8115. hardcode_shlibpath_var=no
  8116. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8117. export_dynamic_flag_spec='${wl}-E'
  8118. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8119. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8120. # default) and relocated if they conflict, which is a slow very memory
  8121. # consuming and fragmenting process. To avoid this, we pick a random,
  8122. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8123. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8124. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8125. 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'
  8126. ;;
  8127. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8128. tmp_diet=no
  8129. if test "$host_os" = linux-dietlibc; then
  8130. case $cc_basename in
  8131. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8132. esac
  8133. fi
  8134. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8135. && test "$tmp_diet" = no
  8136. then
  8137. tmp_addflag=' $pic_flag'
  8138. tmp_sharedflag='-shared'
  8139. case $cc_basename,$host_cpu in
  8140. pgcc*) # Portland Group C compiler
  8141. 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'
  8142. tmp_addflag=' $pic_flag'
  8143. ;;
  8144. pgf77* | pgf90* | pgf95* | pgfortran*)
  8145. # Portland Group f77 and f90 compilers
  8146. 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'
  8147. tmp_addflag=' $pic_flag -Mnomain' ;;
  8148. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8149. tmp_addflag=' -i_dynamic' ;;
  8150. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8151. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8152. ifc* | ifort*) # Intel Fortran compiler
  8153. tmp_addflag=' -nofor_main' ;;
  8154. lf95*) # Lahey Fortran 8.1
  8155. whole_archive_flag_spec=
  8156. tmp_sharedflag='--shared' ;;
  8157. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8158. tmp_sharedflag='-qmkshrobj'
  8159. tmp_addflag= ;;
  8160. nvcc*) # Cuda Compiler Driver 2.2
  8161. 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'
  8162. compiler_needs_object=yes
  8163. ;;
  8164. esac
  8165. case `$CC -V 2>&1 | sed 5q` in
  8166. *Sun\ C*) # Sun C 5.9
  8167. 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'
  8168. compiler_needs_object=yes
  8169. tmp_sharedflag='-G' ;;
  8170. *Sun\ F*) # Sun Fortran 8.3
  8171. tmp_sharedflag='-G' ;;
  8172. esac
  8173. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8174. if test "x$supports_anon_versioning" = xyes; then
  8175. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8176. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8177. echo "local: *; };" >> $output_objdir/$libname.ver~
  8178. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8179. fi
  8180. case $cc_basename in
  8181. xlf* | bgf* | bgxlf* | mpixlf*)
  8182. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8183. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8184. hardcode_libdir_flag_spec=
  8185. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8186. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8187. if test "x$supports_anon_versioning" = xyes; then
  8188. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8189. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8190. echo "local: *; };" >> $output_objdir/$libname.ver~
  8191. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8192. fi
  8193. ;;
  8194. esac
  8195. else
  8196. ld_shlibs=no
  8197. fi
  8198. ;;
  8199. netbsd*)
  8200. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8201. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8202. wlarc=
  8203. else
  8204. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8205. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8206. fi
  8207. ;;
  8208. solaris*)
  8209. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8210. ld_shlibs=no
  8211. cat <<_LT_EOF 1>&2
  8212. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8213. *** create shared libraries on Solaris systems. Therefore, libtool
  8214. *** is disabling shared libraries support. We urge you to upgrade GNU
  8215. *** binutils to release 2.9.1 or newer. Another option is to modify
  8216. *** your PATH or compiler configuration so that the native linker is
  8217. *** used, and then restart.
  8218. _LT_EOF
  8219. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8220. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8221. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8222. else
  8223. ld_shlibs=no
  8224. fi
  8225. ;;
  8226. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8227. case `$LD -v 2>&1` in
  8228. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8229. ld_shlibs=no
  8230. cat <<_LT_EOF 1>&2
  8231. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8232. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8233. *** is disabling shared libraries support. We urge you to upgrade GNU
  8234. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8235. *** your PATH or compiler configuration so that the native linker is
  8236. *** used, and then restart.
  8237. _LT_EOF
  8238. ;;
  8239. *)
  8240. # For security reasons, it is highly recommended that you always
  8241. # use absolute paths for naming shared libraries, and exclude the
  8242. # DT_RUNPATH tag from executables and libraries. But doing so
  8243. # requires that you compile everything twice, which is a pain.
  8244. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8245. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8246. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8247. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8248. else
  8249. ld_shlibs=no
  8250. fi
  8251. ;;
  8252. esac
  8253. ;;
  8254. sunos4*)
  8255. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8256. wlarc=
  8257. hardcode_direct=yes
  8258. hardcode_shlibpath_var=no
  8259. ;;
  8260. *)
  8261. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8262. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8263. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8264. else
  8265. ld_shlibs=no
  8266. fi
  8267. ;;
  8268. esac
  8269. if test "$ld_shlibs" = no; then
  8270. runpath_var=
  8271. hardcode_libdir_flag_spec=
  8272. export_dynamic_flag_spec=
  8273. whole_archive_flag_spec=
  8274. fi
  8275. else
  8276. # PORTME fill in a description of your system's linker (not GNU ld)
  8277. case $host_os in
  8278. aix3*)
  8279. allow_undefined_flag=unsupported
  8280. always_export_symbols=yes
  8281. 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'
  8282. # Note: this linker hardcodes the directories in LIBPATH if there
  8283. # are no directories specified by -L.
  8284. hardcode_minus_L=yes
  8285. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8286. # Neither direct hardcoding nor static linking is supported with a
  8287. # broken collect2.
  8288. hardcode_direct=unsupported
  8289. fi
  8290. ;;
  8291. aix[4-9]*)
  8292. if test "$host_cpu" = ia64; then
  8293. # On IA64, the linker does run time linking by default, so we don't
  8294. # have to do anything special.
  8295. aix_use_runtimelinking=no
  8296. exp_sym_flag='-Bexport'
  8297. no_entry_flag=""
  8298. else
  8299. # If we're using GNU nm, then we don't want the "-C" option.
  8300. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8301. # Also, AIX nm treats weak defined symbols like other global
  8302. # defined symbols, whereas GNU nm marks them as "W".
  8303. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8304. 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'
  8305. else
  8306. 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'
  8307. fi
  8308. aix_use_runtimelinking=no
  8309. # Test if we are trying to use run time linking or normal
  8310. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8311. # need to do runtime linking.
  8312. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8313. for ld_flag in $LDFLAGS; do
  8314. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8315. aix_use_runtimelinking=yes
  8316. break
  8317. fi
  8318. done
  8319. ;;
  8320. esac
  8321. exp_sym_flag='-bexport'
  8322. no_entry_flag='-bnoentry'
  8323. fi
  8324. # When large executables or shared objects are built, AIX ld can
  8325. # have problems creating the table of contents. If linking a library
  8326. # or program results in "error TOC overflow" add -mminimal-toc to
  8327. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8328. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8329. archive_cmds=''
  8330. hardcode_direct=yes
  8331. hardcode_direct_absolute=yes
  8332. hardcode_libdir_separator=':'
  8333. link_all_deplibs=yes
  8334. file_list_spec='${wl}-f,'
  8335. if test "$GCC" = yes; then
  8336. case $host_os in aix4.[012]|aix4.[012].*)
  8337. # We only want to do this on AIX 4.2 and lower, the check
  8338. # below for broken collect2 doesn't work under 4.3+
  8339. collect2name=`${CC} -print-prog-name=collect2`
  8340. if test -f "$collect2name" &&
  8341. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8342. then
  8343. # We have reworked collect2
  8344. :
  8345. else
  8346. # We have old collect2
  8347. hardcode_direct=unsupported
  8348. # It fails to find uninstalled libraries when the uninstalled
  8349. # path is not listed in the libpath. Setting hardcode_minus_L
  8350. # to unsupported forces relinking
  8351. hardcode_minus_L=yes
  8352. hardcode_libdir_flag_spec='-L$libdir'
  8353. hardcode_libdir_separator=
  8354. fi
  8355. ;;
  8356. esac
  8357. shared_flag='-shared'
  8358. if test "$aix_use_runtimelinking" = yes; then
  8359. shared_flag="$shared_flag "'${wl}-G'
  8360. fi
  8361. else
  8362. # not using gcc
  8363. if test "$host_cpu" = ia64; then
  8364. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8365. # chokes on -Wl,-G. The following line is correct:
  8366. shared_flag='-G'
  8367. else
  8368. if test "$aix_use_runtimelinking" = yes; then
  8369. shared_flag='${wl}-G'
  8370. else
  8371. shared_flag='${wl}-bM:SRE'
  8372. fi
  8373. fi
  8374. fi
  8375. export_dynamic_flag_spec='${wl}-bexpall'
  8376. # It seems that -bexpall does not export symbols beginning with
  8377. # underscore (_), so it is better to generate a list of symbols to export.
  8378. always_export_symbols=yes
  8379. if test "$aix_use_runtimelinking" = yes; then
  8380. # Warning - without using the other runtime loading flags (-brtl),
  8381. # -berok will link without error, but may produce a broken library.
  8382. allow_undefined_flag='-berok'
  8383. # Determine the default libpath from the value encoded in an
  8384. # empty executable.
  8385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8386. /* end confdefs.h. */
  8387. int
  8388. main ()
  8389. {
  8390. ;
  8391. return 0;
  8392. }
  8393. _ACEOF
  8394. if ac_fn_c_try_link "$LINENO"; then :
  8395. lt_aix_libpath_sed='
  8396. /Import File Strings/,/^$/ {
  8397. /^0/ {
  8398. s/^0 *\(.*\)$/\1/
  8399. p
  8400. }
  8401. }'
  8402. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8403. # Check for a 64-bit object if we didn't find anything.
  8404. if test -z "$aix_libpath"; then
  8405. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8406. fi
  8407. fi
  8408. rm -f core conftest.err conftest.$ac_objext \
  8409. conftest$ac_exeext conftest.$ac_ext
  8410. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8411. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8412. 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"
  8413. else
  8414. if test "$host_cpu" = ia64; then
  8415. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8416. allow_undefined_flag="-z nodefs"
  8417. 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"
  8418. else
  8419. # Determine the default libpath from the value encoded in an
  8420. # empty executable.
  8421. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8422. /* end confdefs.h. */
  8423. int
  8424. main ()
  8425. {
  8426. ;
  8427. return 0;
  8428. }
  8429. _ACEOF
  8430. if ac_fn_c_try_link "$LINENO"; then :
  8431. lt_aix_libpath_sed='
  8432. /Import File Strings/,/^$/ {
  8433. /^0/ {
  8434. s/^0 *\(.*\)$/\1/
  8435. p
  8436. }
  8437. }'
  8438. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8439. # Check for a 64-bit object if we didn't find anything.
  8440. if test -z "$aix_libpath"; then
  8441. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8442. fi
  8443. fi
  8444. rm -f core conftest.err conftest.$ac_objext \
  8445. conftest$ac_exeext conftest.$ac_ext
  8446. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8447. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8448. # Warning - without using the other run time loading flags,
  8449. # -berok will link without error, but may produce a broken library.
  8450. no_undefined_flag=' ${wl}-bernotok'
  8451. allow_undefined_flag=' ${wl}-berok'
  8452. if test "$with_gnu_ld" = yes; then
  8453. # We only use this code for GNU lds that support --whole-archive.
  8454. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8455. else
  8456. # Exported symbols can be pulled into shared objects from archives
  8457. whole_archive_flag_spec='$convenience'
  8458. fi
  8459. archive_cmds_need_lc=yes
  8460. # This is similar to how AIX traditionally builds its shared libraries.
  8461. 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'
  8462. fi
  8463. fi
  8464. ;;
  8465. amigaos*)
  8466. case $host_cpu in
  8467. powerpc)
  8468. # see comment about AmigaOS4 .so support
  8469. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8470. archive_expsym_cmds=''
  8471. ;;
  8472. m68k)
  8473. 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)'
  8474. hardcode_libdir_flag_spec='-L$libdir'
  8475. hardcode_minus_L=yes
  8476. ;;
  8477. esac
  8478. ;;
  8479. bsdi[45]*)
  8480. export_dynamic_flag_spec=-rdynamic
  8481. ;;
  8482. cygwin* | mingw* | pw32* | cegcc*)
  8483. # When not using gcc, we currently assume that we are using
  8484. # Microsoft Visual C++.
  8485. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8486. # no search path for DLLs.
  8487. hardcode_libdir_flag_spec=' '
  8488. allow_undefined_flag=unsupported
  8489. # Tell ltmain to make .lib files, not .a files.
  8490. libext=lib
  8491. # Tell ltmain to make .dll files, not .so files.
  8492. shrext_cmds=".dll"
  8493. # FIXME: Setting linknames here is a bad hack.
  8494. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8495. # The linker will automatically build a .lib file if we build a DLL.
  8496. old_archive_from_new_cmds='true'
  8497. # FIXME: Should let the user specify the lib program.
  8498. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8499. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8500. enable_shared_with_static_runtimes=yes
  8501. ;;
  8502. darwin* | rhapsody*)
  8503. archive_cmds_need_lc=no
  8504. hardcode_direct=no
  8505. hardcode_automatic=yes
  8506. hardcode_shlibpath_var=unsupported
  8507. if test "$lt_cv_ld_force_load" = "yes"; then
  8508. 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\"`'
  8509. else
  8510. whole_archive_flag_spec=''
  8511. fi
  8512. link_all_deplibs=yes
  8513. allow_undefined_flag="$_lt_dar_allow_undefined"
  8514. case $cc_basename in
  8515. ifort*) _lt_dar_can_shared=yes ;;
  8516. *) _lt_dar_can_shared=$GCC ;;
  8517. esac
  8518. if test "$_lt_dar_can_shared" = "yes"; then
  8519. output_verbose_link_cmd=func_echo_all
  8520. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8521. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8522. 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}"
  8523. 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}"
  8524. else
  8525. ld_shlibs=no
  8526. fi
  8527. ;;
  8528. dgux*)
  8529. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8530. hardcode_libdir_flag_spec='-L$libdir'
  8531. hardcode_shlibpath_var=no
  8532. ;;
  8533. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8534. # support. Future versions do this automatically, but an explicit c++rt0.o
  8535. # does not break anything, and helps significantly (at the cost of a little
  8536. # extra space).
  8537. freebsd2.2*)
  8538. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8539. hardcode_libdir_flag_spec='-R$libdir'
  8540. hardcode_direct=yes
  8541. hardcode_shlibpath_var=no
  8542. ;;
  8543. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8544. freebsd2.*)
  8545. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8546. hardcode_direct=yes
  8547. hardcode_minus_L=yes
  8548. hardcode_shlibpath_var=no
  8549. ;;
  8550. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8551. freebsd* | dragonfly*)
  8552. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8553. hardcode_libdir_flag_spec='-R$libdir'
  8554. hardcode_direct=yes
  8555. hardcode_shlibpath_var=no
  8556. ;;
  8557. hpux9*)
  8558. if test "$GCC" = yes; then
  8559. 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'
  8560. else
  8561. 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'
  8562. fi
  8563. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8564. hardcode_libdir_separator=:
  8565. hardcode_direct=yes
  8566. # hardcode_minus_L: Not really in the search PATH,
  8567. # but as the default location of the library.
  8568. hardcode_minus_L=yes
  8569. export_dynamic_flag_spec='${wl}-E'
  8570. ;;
  8571. hpux10*)
  8572. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8573. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8574. else
  8575. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8576. fi
  8577. if test "$with_gnu_ld" = no; then
  8578. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8579. hardcode_libdir_flag_spec_ld='+b $libdir'
  8580. hardcode_libdir_separator=:
  8581. hardcode_direct=yes
  8582. hardcode_direct_absolute=yes
  8583. export_dynamic_flag_spec='${wl}-E'
  8584. # hardcode_minus_L: Not really in the search PATH,
  8585. # but as the default location of the library.
  8586. hardcode_minus_L=yes
  8587. fi
  8588. ;;
  8589. hpux11*)
  8590. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8591. case $host_cpu in
  8592. hppa*64*)
  8593. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8594. ;;
  8595. ia64*)
  8596. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8597. ;;
  8598. *)
  8599. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8600. ;;
  8601. esac
  8602. else
  8603. case $host_cpu in
  8604. hppa*64*)
  8605. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8606. ;;
  8607. ia64*)
  8608. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8609. ;;
  8610. *)
  8611. # Older versions of the 11.00 compiler do not understand -b yet
  8612. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8614. $as_echo_n "checking if $CC understands -b... " >&6; }
  8615. if ${lt_cv_prog_compiler__b+:} false; then :
  8616. $as_echo_n "(cached) " >&6
  8617. else
  8618. lt_cv_prog_compiler__b=no
  8619. save_LDFLAGS="$LDFLAGS"
  8620. LDFLAGS="$LDFLAGS -b"
  8621. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8622. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8623. # The linker can only warn and ignore the option if not recognized
  8624. # So say no if there are warnings
  8625. if test -s conftest.err; then
  8626. # Append any errors to the config.log.
  8627. cat conftest.err 1>&5
  8628. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8629. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8630. if diff conftest.exp conftest.er2 >/dev/null; then
  8631. lt_cv_prog_compiler__b=yes
  8632. fi
  8633. else
  8634. lt_cv_prog_compiler__b=yes
  8635. fi
  8636. fi
  8637. $RM -r conftest*
  8638. LDFLAGS="$save_LDFLAGS"
  8639. fi
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8641. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8642. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8643. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8644. else
  8645. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8646. fi
  8647. ;;
  8648. esac
  8649. fi
  8650. if test "$with_gnu_ld" = no; then
  8651. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8652. hardcode_libdir_separator=:
  8653. case $host_cpu in
  8654. hppa*64*|ia64*)
  8655. hardcode_direct=no
  8656. hardcode_shlibpath_var=no
  8657. ;;
  8658. *)
  8659. hardcode_direct=yes
  8660. hardcode_direct_absolute=yes
  8661. export_dynamic_flag_spec='${wl}-E'
  8662. # hardcode_minus_L: Not really in the search PATH,
  8663. # but as the default location of the library.
  8664. hardcode_minus_L=yes
  8665. ;;
  8666. esac
  8667. fi
  8668. ;;
  8669. irix5* | irix6* | nonstopux*)
  8670. if test "$GCC" = yes; then
  8671. 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'
  8672. # Try to use the -exported_symbol ld option, if it does not
  8673. # work, assume that -exports_file does not work either and
  8674. # implicitly export all symbols.
  8675. save_LDFLAGS="$LDFLAGS"
  8676. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8678. /* end confdefs.h. */
  8679. int foo(void) {}
  8680. _ACEOF
  8681. if ac_fn_c_try_link "$LINENO"; then :
  8682. 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'
  8683. fi
  8684. rm -f core conftest.err conftest.$ac_objext \
  8685. conftest$ac_exeext conftest.$ac_ext
  8686. LDFLAGS="$save_LDFLAGS"
  8687. else
  8688. 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'
  8689. 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'
  8690. fi
  8691. archive_cmds_need_lc='no'
  8692. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8693. hardcode_libdir_separator=:
  8694. inherit_rpath=yes
  8695. link_all_deplibs=yes
  8696. ;;
  8697. netbsd*)
  8698. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8699. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8700. else
  8701. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8702. fi
  8703. hardcode_libdir_flag_spec='-R$libdir'
  8704. hardcode_direct=yes
  8705. hardcode_shlibpath_var=no
  8706. ;;
  8707. newsos6)
  8708. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8709. hardcode_direct=yes
  8710. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8711. hardcode_libdir_separator=:
  8712. hardcode_shlibpath_var=no
  8713. ;;
  8714. *nto* | *qnx*)
  8715. ;;
  8716. openbsd*)
  8717. if test -f /usr/libexec/ld.so; then
  8718. hardcode_direct=yes
  8719. hardcode_shlibpath_var=no
  8720. hardcode_direct_absolute=yes
  8721. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8722. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8723. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8724. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8725. export_dynamic_flag_spec='${wl}-E'
  8726. else
  8727. case $host_os in
  8728. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8729. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8730. hardcode_libdir_flag_spec='-R$libdir'
  8731. ;;
  8732. *)
  8733. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8734. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8735. ;;
  8736. esac
  8737. fi
  8738. else
  8739. ld_shlibs=no
  8740. fi
  8741. ;;
  8742. os2*)
  8743. hardcode_libdir_flag_spec='-L$libdir'
  8744. hardcode_minus_L=yes
  8745. allow_undefined_flag=unsupported
  8746. 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'
  8747. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8748. ;;
  8749. osf3*)
  8750. if test "$GCC" = yes; then
  8751. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8752. 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'
  8753. else
  8754. allow_undefined_flag=' -expect_unresolved \*'
  8755. 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'
  8756. fi
  8757. archive_cmds_need_lc='no'
  8758. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8759. hardcode_libdir_separator=:
  8760. ;;
  8761. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8762. if test "$GCC" = yes; then
  8763. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8764. 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'
  8765. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8766. else
  8767. allow_undefined_flag=' -expect_unresolved \*'
  8768. 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'
  8769. 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~
  8770. $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'
  8771. # Both c and cxx compiler support -rpath directly
  8772. hardcode_libdir_flag_spec='-rpath $libdir'
  8773. fi
  8774. archive_cmds_need_lc='no'
  8775. hardcode_libdir_separator=:
  8776. ;;
  8777. solaris*)
  8778. no_undefined_flag=' -z defs'
  8779. if test "$GCC" = yes; then
  8780. wlarc='${wl}'
  8781. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8782. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8783. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8784. else
  8785. case `$CC -V 2>&1` in
  8786. *"Compilers 5.0"*)
  8787. wlarc=''
  8788. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8789. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8790. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8791. ;;
  8792. *)
  8793. wlarc='${wl}'
  8794. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8795. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8796. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8797. ;;
  8798. esac
  8799. fi
  8800. hardcode_libdir_flag_spec='-R$libdir'
  8801. hardcode_shlibpath_var=no
  8802. case $host_os in
  8803. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8804. *)
  8805. # The compiler driver will combine and reorder linker options,
  8806. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8807. # but is careful enough not to reorder.
  8808. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8809. if test "$GCC" = yes; then
  8810. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8811. else
  8812. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8813. fi
  8814. ;;
  8815. esac
  8816. link_all_deplibs=yes
  8817. ;;
  8818. sunos4*)
  8819. if test "x$host_vendor" = xsequent; then
  8820. # Use $CC to link under sequent, because it throws in some extra .o
  8821. # files that make .init and .fini sections work.
  8822. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8823. else
  8824. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8825. fi
  8826. hardcode_libdir_flag_spec='-L$libdir'
  8827. hardcode_direct=yes
  8828. hardcode_minus_L=yes
  8829. hardcode_shlibpath_var=no
  8830. ;;
  8831. sysv4)
  8832. case $host_vendor in
  8833. sni)
  8834. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8835. hardcode_direct=yes # is this really true???
  8836. ;;
  8837. siemens)
  8838. ## LD is ld it makes a PLAMLIB
  8839. ## CC just makes a GrossModule.
  8840. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8841. reload_cmds='$CC -r -o $output$reload_objs'
  8842. hardcode_direct=no
  8843. ;;
  8844. motorola)
  8845. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8846. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8847. ;;
  8848. esac
  8849. runpath_var='LD_RUN_PATH'
  8850. hardcode_shlibpath_var=no
  8851. ;;
  8852. sysv4.3*)
  8853. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8854. hardcode_shlibpath_var=no
  8855. export_dynamic_flag_spec='-Bexport'
  8856. ;;
  8857. sysv4*MP*)
  8858. if test -d /usr/nec; then
  8859. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8860. hardcode_shlibpath_var=no
  8861. runpath_var=LD_RUN_PATH
  8862. hardcode_runpath_var=yes
  8863. ld_shlibs=yes
  8864. fi
  8865. ;;
  8866. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8867. no_undefined_flag='${wl}-z,text'
  8868. archive_cmds_need_lc=no
  8869. hardcode_shlibpath_var=no
  8870. runpath_var='LD_RUN_PATH'
  8871. if test "$GCC" = yes; then
  8872. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8873. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8874. else
  8875. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8876. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8877. fi
  8878. ;;
  8879. sysv5* | sco3.2v5* | sco5v6*)
  8880. # Note: We can NOT use -z defs as we might desire, because we do not
  8881. # link with -lc, and that would cause any symbols used from libc to
  8882. # always be unresolved, which means just about no library would
  8883. # ever link correctly. If we're not using GNU ld we use -z text
  8884. # though, which does catch some bad symbols but isn't as heavy-handed
  8885. # as -z defs.
  8886. no_undefined_flag='${wl}-z,text'
  8887. allow_undefined_flag='${wl}-z,nodefs'
  8888. archive_cmds_need_lc=no
  8889. hardcode_shlibpath_var=no
  8890. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8891. hardcode_libdir_separator=':'
  8892. link_all_deplibs=yes
  8893. export_dynamic_flag_spec='${wl}-Bexport'
  8894. runpath_var='LD_RUN_PATH'
  8895. if test "$GCC" = yes; then
  8896. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8897. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8898. else
  8899. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8900. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8901. fi
  8902. ;;
  8903. uts4*)
  8904. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8905. hardcode_libdir_flag_spec='-L$libdir'
  8906. hardcode_shlibpath_var=no
  8907. ;;
  8908. *)
  8909. ld_shlibs=no
  8910. ;;
  8911. esac
  8912. if test x$host_vendor = xsni; then
  8913. case $host in
  8914. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8915. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8916. ;;
  8917. esac
  8918. fi
  8919. fi
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8921. $as_echo "$ld_shlibs" >&6; }
  8922. test "$ld_shlibs" = no && can_build_shared=no
  8923. with_gnu_ld=$with_gnu_ld
  8924. #
  8925. # Do we need to explicitly link libc?
  8926. #
  8927. case "x$archive_cmds_need_lc" in
  8928. x|xyes)
  8929. # Assume -lc should be added
  8930. archive_cmds_need_lc=yes
  8931. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8932. case $archive_cmds in
  8933. *'~'*)
  8934. # FIXME: we may have to deal with multi-command sequences.
  8935. ;;
  8936. '$CC '*)
  8937. # Test whether the compiler implicitly links with -lc since on some
  8938. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8939. # to ld, don't add -lc before -lgcc.
  8940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8941. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8942. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8943. $as_echo_n "(cached) " >&6
  8944. else
  8945. $RM conftest*
  8946. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8947. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8948. (eval $ac_compile) 2>&5
  8949. ac_status=$?
  8950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8951. test $ac_status = 0; } 2>conftest.err; then
  8952. soname=conftest
  8953. lib=conftest
  8954. libobjs=conftest.$ac_objext
  8955. deplibs=
  8956. wl=$lt_prog_compiler_wl
  8957. pic_flag=$lt_prog_compiler_pic
  8958. compiler_flags=-v
  8959. linker_flags=-v
  8960. verstring=
  8961. output_objdir=.
  8962. libname=conftest
  8963. lt_save_allow_undefined_flag=$allow_undefined_flag
  8964. allow_undefined_flag=
  8965. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8966. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8967. ac_status=$?
  8968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8969. test $ac_status = 0; }
  8970. then
  8971. lt_cv_archive_cmds_need_lc=no
  8972. else
  8973. lt_cv_archive_cmds_need_lc=yes
  8974. fi
  8975. allow_undefined_flag=$lt_save_allow_undefined_flag
  8976. else
  8977. cat conftest.err 1>&5
  8978. fi
  8979. $RM conftest*
  8980. fi
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8982. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8983. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8984. ;;
  8985. esac
  8986. fi
  8987. ;;
  8988. esac
  8989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8990. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8991. if test "$GCC" = yes; then
  8992. case $host_os in
  8993. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8994. *) lt_awk_arg="/^libraries:/" ;;
  8995. esac
  8996. case $host_os in
  8997. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8998. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8999. esac
  9000. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9001. case $lt_search_path_spec in
  9002. *\;*)
  9003. # if the path contains ";" then we assume it to be the separator
  9004. # otherwise default to the standard path separator (i.e. ":") - it is
  9005. # assumed that no part of a normal pathname contains ";" but that should
  9006. # okay in the real world where ";" in dirpaths is itself problematic.
  9007. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9008. ;;
  9009. *)
  9010. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9011. ;;
  9012. esac
  9013. # Ok, now we have the path, separated by spaces, we can step through it
  9014. # and add multilib dir if necessary.
  9015. lt_tmp_lt_search_path_spec=
  9016. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9017. for lt_sys_path in $lt_search_path_spec; do
  9018. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9019. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9020. else
  9021. test -d "$lt_sys_path" && \
  9022. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9023. fi
  9024. done
  9025. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9026. BEGIN {RS=" "; FS="/|\n";} {
  9027. lt_foo="";
  9028. lt_count=0;
  9029. for (lt_i = NF; lt_i > 0; lt_i--) {
  9030. if ($lt_i != "" && $lt_i != ".") {
  9031. if ($lt_i == "..") {
  9032. lt_count++;
  9033. } else {
  9034. if (lt_count == 0) {
  9035. lt_foo="/" $lt_i lt_foo;
  9036. } else {
  9037. lt_count--;
  9038. }
  9039. }
  9040. }
  9041. }
  9042. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9043. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9044. }'`
  9045. # AWK program above erroneously prepends '/' to C:/dos/paths
  9046. # for these hosts.
  9047. case $host_os in
  9048. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9049. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9050. esac
  9051. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9052. else
  9053. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9054. fi
  9055. library_names_spec=
  9056. libname_spec='lib$name'
  9057. soname_spec=
  9058. shrext_cmds=".so"
  9059. postinstall_cmds=
  9060. postuninstall_cmds=
  9061. finish_cmds=
  9062. finish_eval=
  9063. shlibpath_var=
  9064. shlibpath_overrides_runpath=unknown
  9065. version_type=none
  9066. dynamic_linker="$host_os ld.so"
  9067. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9068. need_lib_prefix=unknown
  9069. hardcode_into_libs=no
  9070. # when you set need_version to no, make sure it does not cause -set_version
  9071. # flags to be left without arguments
  9072. need_version=unknown
  9073. case $host_os in
  9074. aix3*)
  9075. version_type=linux
  9076. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9077. shlibpath_var=LIBPATH
  9078. # AIX 3 has no versioning support, so we append a major version to the name.
  9079. soname_spec='${libname}${release}${shared_ext}$major'
  9080. ;;
  9081. aix[4-9]*)
  9082. version_type=linux
  9083. need_lib_prefix=no
  9084. need_version=no
  9085. hardcode_into_libs=yes
  9086. if test "$host_cpu" = ia64; then
  9087. # AIX 5 supports IA64
  9088. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9089. shlibpath_var=LD_LIBRARY_PATH
  9090. else
  9091. # With GCC up to 2.95.x, collect2 would create an import file
  9092. # for dependence libraries. The import file would start with
  9093. # the line `#! .'. This would cause the generated library to
  9094. # depend on `.', always an invalid library. This was fixed in
  9095. # development snapshots of GCC prior to 3.0.
  9096. case $host_os in
  9097. aix4 | aix4.[01] | aix4.[01].*)
  9098. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9099. echo ' yes '
  9100. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9101. :
  9102. else
  9103. can_build_shared=no
  9104. fi
  9105. ;;
  9106. esac
  9107. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9108. # soname into executable. Probably we can add versioning support to
  9109. # collect2, so additional links can be useful in future.
  9110. if test "$aix_use_runtimelinking" = yes; then
  9111. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9112. # instead of lib<name>.a to let people know that these are not
  9113. # typical AIX shared libraries.
  9114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9115. else
  9116. # We preserve .a as extension for shared libraries through AIX4.2
  9117. # and later when we are not doing run time linking.
  9118. library_names_spec='${libname}${release}.a $libname.a'
  9119. soname_spec='${libname}${release}${shared_ext}$major'
  9120. fi
  9121. shlibpath_var=LIBPATH
  9122. fi
  9123. ;;
  9124. amigaos*)
  9125. case $host_cpu in
  9126. powerpc)
  9127. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9128. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9129. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9130. ;;
  9131. m68k)
  9132. library_names_spec='$libname.ixlibrary $libname.a'
  9133. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9134. 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'
  9135. ;;
  9136. esac
  9137. ;;
  9138. beos*)
  9139. library_names_spec='${libname}${shared_ext}'
  9140. dynamic_linker="$host_os ld.so"
  9141. shlibpath_var=LIBRARY_PATH
  9142. ;;
  9143. bsdi[45]*)
  9144. version_type=linux
  9145. need_version=no
  9146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9147. soname_spec='${libname}${release}${shared_ext}$major'
  9148. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9149. shlibpath_var=LD_LIBRARY_PATH
  9150. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9151. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9152. # the default ld.so.conf also contains /usr/contrib/lib and
  9153. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9154. # libtool to hard-code these into programs
  9155. ;;
  9156. cygwin* | mingw* | pw32* | cegcc*)
  9157. version_type=windows
  9158. shrext_cmds=".dll"
  9159. need_version=no
  9160. need_lib_prefix=no
  9161. case $GCC,$host_os in
  9162. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9163. library_names_spec='$libname.dll.a'
  9164. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9165. postinstall_cmds='base_file=`basename \${file}`~
  9166. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9167. dldir=$destdir/`dirname \$dlpath`~
  9168. test -d \$dldir || mkdir -p \$dldir~
  9169. $install_prog $dir/$dlname \$dldir/$dlname~
  9170. chmod a+x \$dldir/$dlname~
  9171. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9172. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9173. fi'
  9174. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9175. dlpath=$dir/\$dldll~
  9176. $RM \$dlpath'
  9177. shlibpath_overrides_runpath=yes
  9178. case $host_os in
  9179. cygwin*)
  9180. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9181. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9182. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9183. ;;
  9184. mingw* | cegcc*)
  9185. # MinGW DLLs use traditional 'lib' prefix
  9186. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9187. ;;
  9188. pw32*)
  9189. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9190. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9191. ;;
  9192. esac
  9193. ;;
  9194. *)
  9195. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9196. ;;
  9197. esac
  9198. dynamic_linker='Win32 ld.exe'
  9199. # FIXME: first we should search . and the directory the executable is in
  9200. shlibpath_var=PATH
  9201. ;;
  9202. darwin* | rhapsody*)
  9203. dynamic_linker="$host_os dyld"
  9204. version_type=darwin
  9205. need_lib_prefix=no
  9206. need_version=no
  9207. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9208. soname_spec='${libname}${release}${major}$shared_ext'
  9209. shlibpath_overrides_runpath=yes
  9210. shlibpath_var=DYLD_LIBRARY_PATH
  9211. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9212. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9213. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9214. ;;
  9215. dgux*)
  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. shlibpath_var=LD_LIBRARY_PATH
  9222. ;;
  9223. freebsd* | dragonfly*)
  9224. # DragonFly does not have aout. When/if they implement a new
  9225. # versioning mechanism, adjust this.
  9226. if test -x /usr/bin/objformat; then
  9227. objformat=`/usr/bin/objformat`
  9228. else
  9229. case $host_os in
  9230. freebsd[23].*) objformat=aout ;;
  9231. *) objformat=elf ;;
  9232. esac
  9233. fi
  9234. version_type=freebsd-$objformat
  9235. case $version_type in
  9236. freebsd-elf*)
  9237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9238. need_version=no
  9239. need_lib_prefix=no
  9240. ;;
  9241. freebsd-*)
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9243. need_version=yes
  9244. ;;
  9245. esac
  9246. shlibpath_var=LD_LIBRARY_PATH
  9247. case $host_os in
  9248. freebsd2.*)
  9249. shlibpath_overrides_runpath=yes
  9250. ;;
  9251. freebsd3.[01]* | freebsdelf3.[01]*)
  9252. shlibpath_overrides_runpath=yes
  9253. hardcode_into_libs=yes
  9254. ;;
  9255. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9256. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9257. shlibpath_overrides_runpath=no
  9258. hardcode_into_libs=yes
  9259. ;;
  9260. *) # from 4.6 on, and DragonFly
  9261. shlibpath_overrides_runpath=yes
  9262. hardcode_into_libs=yes
  9263. ;;
  9264. esac
  9265. ;;
  9266. haiku*)
  9267. version_type=linux
  9268. need_lib_prefix=no
  9269. need_version=no
  9270. dynamic_linker="$host_os runtime_loader"
  9271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9272. soname_spec='${libname}${release}${shared_ext}$major'
  9273. shlibpath_var=LIBRARY_PATH
  9274. shlibpath_overrides_runpath=yes
  9275. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9276. hardcode_into_libs=yes
  9277. ;;
  9278. hpux9* | hpux10* | hpux11*)
  9279. # Give a soname corresponding to the major version so that dld.sl refuses to
  9280. # link against other versions.
  9281. version_type=sunos
  9282. need_lib_prefix=no
  9283. need_version=no
  9284. case $host_cpu in
  9285. ia64*)
  9286. shrext_cmds='.so'
  9287. hardcode_into_libs=yes
  9288. dynamic_linker="$host_os dld.so"
  9289. shlibpath_var=LD_LIBRARY_PATH
  9290. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9292. soname_spec='${libname}${release}${shared_ext}$major'
  9293. if test "X$HPUX_IA64_MODE" = X32; then
  9294. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9295. else
  9296. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9297. fi
  9298. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9299. ;;
  9300. hppa*64*)
  9301. shrext_cmds='.sl'
  9302. hardcode_into_libs=yes
  9303. dynamic_linker="$host_os dld.sl"
  9304. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9305. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9307. soname_spec='${libname}${release}${shared_ext}$major'
  9308. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9309. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9310. ;;
  9311. *)
  9312. shrext_cmds='.sl'
  9313. dynamic_linker="$host_os dld.sl"
  9314. shlibpath_var=SHLIB_PATH
  9315. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9316. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9317. soname_spec='${libname}${release}${shared_ext}$major'
  9318. ;;
  9319. esac
  9320. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9321. postinstall_cmds='chmod 555 $lib'
  9322. # or fails outright, so override atomically:
  9323. install_override_mode=555
  9324. ;;
  9325. interix[3-9]*)
  9326. version_type=linux
  9327. need_lib_prefix=no
  9328. need_version=no
  9329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9330. soname_spec='${libname}${release}${shared_ext}$major'
  9331. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9332. shlibpath_var=LD_LIBRARY_PATH
  9333. shlibpath_overrides_runpath=no
  9334. hardcode_into_libs=yes
  9335. ;;
  9336. irix5* | irix6* | nonstopux*)
  9337. case $host_os in
  9338. nonstopux*) version_type=nonstopux ;;
  9339. *)
  9340. if test "$lt_cv_prog_gnu_ld" = yes; then
  9341. version_type=linux
  9342. else
  9343. version_type=irix
  9344. fi ;;
  9345. esac
  9346. need_lib_prefix=no
  9347. need_version=no
  9348. soname_spec='${libname}${release}${shared_ext}$major'
  9349. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9350. case $host_os in
  9351. irix5* | nonstopux*)
  9352. libsuff= shlibsuff=
  9353. ;;
  9354. *)
  9355. case $LD in # libtool.m4 will add one of these switches to LD
  9356. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9357. libsuff= shlibsuff= libmagic=32-bit;;
  9358. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9359. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9360. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9361. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9362. *) libsuff= shlibsuff= libmagic=never-match;;
  9363. esac
  9364. ;;
  9365. esac
  9366. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9367. shlibpath_overrides_runpath=no
  9368. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9369. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9370. hardcode_into_libs=yes
  9371. ;;
  9372. # No shared lib support for Linux oldld, aout, or coff.
  9373. linux*oldld* | linux*aout* | linux*coff*)
  9374. dynamic_linker=no
  9375. ;;
  9376. # This must be Linux ELF.
  9377. # uclinux* changes (here and below) have been submitted to the libtool
  9378. # project, but have not yet been accepted: they are GCC-local changes
  9379. # for the time being. (See
  9380. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9381. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9382. version_type=linux
  9383. need_lib_prefix=no
  9384. need_version=no
  9385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9386. soname_spec='${libname}${release}${shared_ext}$major'
  9387. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9388. shlibpath_var=LD_LIBRARY_PATH
  9389. shlibpath_overrides_runpath=no
  9390. # Some binutils ld are patched to set DT_RUNPATH
  9391. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. lt_cv_shlibpath_overrides_runpath=no
  9395. save_LDFLAGS=$LDFLAGS
  9396. save_libdir=$libdir
  9397. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9398. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9400. /* end confdefs.h. */
  9401. int
  9402. main ()
  9403. {
  9404. ;
  9405. return 0;
  9406. }
  9407. _ACEOF
  9408. if ac_fn_c_try_link "$LINENO"; then :
  9409. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9410. lt_cv_shlibpath_overrides_runpath=yes
  9411. fi
  9412. fi
  9413. rm -f core conftest.err conftest.$ac_objext \
  9414. conftest$ac_exeext conftest.$ac_ext
  9415. LDFLAGS=$save_LDFLAGS
  9416. libdir=$save_libdir
  9417. fi
  9418. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9419. # This implies no fast_install, which is unacceptable.
  9420. # Some rework will be needed to allow for fast_install
  9421. # before this can be enabled.
  9422. hardcode_into_libs=yes
  9423. # Append ld.so.conf contents to the search path
  9424. if test -f /etc/ld.so.conf; then
  9425. 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' ' '`
  9426. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9427. fi
  9428. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9429. # powerpc, because MkLinux only supported shared libraries with the
  9430. # GNU dynamic linker. Since this was broken with cross compilers,
  9431. # most powerpc-linux boxes support dynamic linking these days and
  9432. # people can always --disable-shared, the test was removed, and we
  9433. # assume the GNU/Linux dynamic linker is in use.
  9434. dynamic_linker='GNU/Linux ld.so'
  9435. ;;
  9436. netbsd*)
  9437. version_type=sunos
  9438. need_lib_prefix=no
  9439. need_version=no
  9440. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9442. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9443. dynamic_linker='NetBSD (a.out) ld.so'
  9444. else
  9445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9446. soname_spec='${libname}${release}${shared_ext}$major'
  9447. dynamic_linker='NetBSD ld.elf_so'
  9448. fi
  9449. shlibpath_var=LD_LIBRARY_PATH
  9450. shlibpath_overrides_runpath=yes
  9451. hardcode_into_libs=yes
  9452. ;;
  9453. newsos6)
  9454. version_type=linux
  9455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. shlibpath_overrides_runpath=yes
  9458. ;;
  9459. *nto* | *qnx*)
  9460. version_type=qnx
  9461. need_lib_prefix=no
  9462. need_version=no
  9463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9464. soname_spec='${libname}${release}${shared_ext}$major'
  9465. shlibpath_var=LD_LIBRARY_PATH
  9466. shlibpath_overrides_runpath=no
  9467. hardcode_into_libs=yes
  9468. dynamic_linker='ldqnx.so'
  9469. ;;
  9470. openbsd*)
  9471. version_type=sunos
  9472. sys_lib_dlsearch_path_spec="/usr/lib"
  9473. need_lib_prefix=no
  9474. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9475. case $host_os in
  9476. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9477. *) need_version=no ;;
  9478. esac
  9479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9480. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9481. shlibpath_var=LD_LIBRARY_PATH
  9482. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9483. case $host_os in
  9484. openbsd2.[89] | openbsd2.[89].*)
  9485. shlibpath_overrides_runpath=no
  9486. ;;
  9487. *)
  9488. shlibpath_overrides_runpath=yes
  9489. ;;
  9490. esac
  9491. else
  9492. shlibpath_overrides_runpath=yes
  9493. fi
  9494. ;;
  9495. os2*)
  9496. libname_spec='$name'
  9497. shrext_cmds=".dll"
  9498. need_lib_prefix=no
  9499. library_names_spec='$libname${shared_ext} $libname.a'
  9500. dynamic_linker='OS/2 ld.exe'
  9501. shlibpath_var=LIBPATH
  9502. ;;
  9503. osf3* | osf4* | osf5*)
  9504. version_type=osf
  9505. need_lib_prefix=no
  9506. need_version=no
  9507. soname_spec='${libname}${release}${shared_ext}$major'
  9508. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9509. shlibpath_var=LD_LIBRARY_PATH
  9510. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9511. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9512. ;;
  9513. rdos*)
  9514. dynamic_linker=no
  9515. ;;
  9516. solaris*)
  9517. version_type=linux
  9518. need_lib_prefix=no
  9519. need_version=no
  9520. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9521. soname_spec='${libname}${release}${shared_ext}$major'
  9522. shlibpath_var=LD_LIBRARY_PATH
  9523. shlibpath_overrides_runpath=yes
  9524. hardcode_into_libs=yes
  9525. # ldd complains unless libraries are executable
  9526. postinstall_cmds='chmod +x $lib'
  9527. ;;
  9528. sunos4*)
  9529. version_type=sunos
  9530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9531. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9532. shlibpath_var=LD_LIBRARY_PATH
  9533. shlibpath_overrides_runpath=yes
  9534. if test "$with_gnu_ld" = yes; then
  9535. need_lib_prefix=no
  9536. fi
  9537. need_version=yes
  9538. ;;
  9539. sysv4 | sysv4.3*)
  9540. version_type=linux
  9541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9542. soname_spec='${libname}${release}${shared_ext}$major'
  9543. shlibpath_var=LD_LIBRARY_PATH
  9544. case $host_vendor in
  9545. sni)
  9546. shlibpath_overrides_runpath=no
  9547. need_lib_prefix=no
  9548. runpath_var=LD_RUN_PATH
  9549. ;;
  9550. siemens)
  9551. need_lib_prefix=no
  9552. ;;
  9553. motorola)
  9554. need_lib_prefix=no
  9555. need_version=no
  9556. shlibpath_overrides_runpath=no
  9557. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9558. ;;
  9559. esac
  9560. ;;
  9561. sysv4*MP*)
  9562. if test -d /usr/nec ;then
  9563. version_type=linux
  9564. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9565. soname_spec='$libname${shared_ext}.$major'
  9566. shlibpath_var=LD_LIBRARY_PATH
  9567. fi
  9568. ;;
  9569. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9570. version_type=freebsd-elf
  9571. need_lib_prefix=no
  9572. need_version=no
  9573. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9574. soname_spec='${libname}${release}${shared_ext}$major'
  9575. shlibpath_var=LD_LIBRARY_PATH
  9576. shlibpath_overrides_runpath=yes
  9577. hardcode_into_libs=yes
  9578. if test "$with_gnu_ld" = yes; then
  9579. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9580. else
  9581. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9582. case $host_os in
  9583. sco3.2v5*)
  9584. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9585. ;;
  9586. esac
  9587. fi
  9588. sys_lib_dlsearch_path_spec='/usr/lib'
  9589. ;;
  9590. tpf*)
  9591. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9592. version_type=linux
  9593. need_lib_prefix=no
  9594. need_version=no
  9595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9596. shlibpath_var=LD_LIBRARY_PATH
  9597. shlibpath_overrides_runpath=no
  9598. hardcode_into_libs=yes
  9599. ;;
  9600. uts4*)
  9601. version_type=linux
  9602. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9603. soname_spec='${libname}${release}${shared_ext}$major'
  9604. shlibpath_var=LD_LIBRARY_PATH
  9605. ;;
  9606. *)
  9607. dynamic_linker=no
  9608. ;;
  9609. esac
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9611. $as_echo "$dynamic_linker" >&6; }
  9612. test "$dynamic_linker" = no && can_build_shared=no
  9613. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9614. if test "$GCC" = yes; then
  9615. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9616. fi
  9617. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9618. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9619. fi
  9620. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9621. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9622. fi
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9624. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9625. hardcode_action=
  9626. if test -n "$hardcode_libdir_flag_spec" ||
  9627. test -n "$runpath_var" ||
  9628. test "X$hardcode_automatic" = "Xyes" ; then
  9629. # We can hardcode non-existent directories.
  9630. if test "$hardcode_direct" != no &&
  9631. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9632. # have to relink, otherwise we might link with an installed library
  9633. # when we should be linking with a yet-to-be-installed one
  9634. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9635. test "$hardcode_minus_L" != no; then
  9636. # Linking always hardcodes the temporary library directory.
  9637. hardcode_action=relink
  9638. else
  9639. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9640. hardcode_action=immediate
  9641. fi
  9642. else
  9643. # We cannot hardcode anything, or else we can only hardcode existing
  9644. # directories.
  9645. hardcode_action=unsupported
  9646. fi
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9648. $as_echo "$hardcode_action" >&6; }
  9649. if test "$hardcode_action" = relink ||
  9650. test "$inherit_rpath" = yes; then
  9651. # Fast installation is not supported
  9652. enable_fast_install=no
  9653. elif test "$shlibpath_overrides_runpath" = yes ||
  9654. test "$enable_shared" = no; then
  9655. # Fast installation is not necessary
  9656. enable_fast_install=needless
  9657. fi
  9658. if test "x$enable_dlopen" != xyes; then
  9659. enable_dlopen=unknown
  9660. enable_dlopen_self=unknown
  9661. enable_dlopen_self_static=unknown
  9662. else
  9663. lt_cv_dlopen=no
  9664. lt_cv_dlopen_libs=
  9665. case $host_os in
  9666. beos*)
  9667. lt_cv_dlopen="load_add_on"
  9668. lt_cv_dlopen_libs=
  9669. lt_cv_dlopen_self=yes
  9670. ;;
  9671. mingw* | pw32* | cegcc*)
  9672. lt_cv_dlopen="LoadLibrary"
  9673. lt_cv_dlopen_libs=
  9674. ;;
  9675. cygwin*)
  9676. lt_cv_dlopen="dlopen"
  9677. lt_cv_dlopen_libs=
  9678. ;;
  9679. darwin*)
  9680. # if libdl is installed we need to link against it
  9681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9682. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9683. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9684. $as_echo_n "(cached) " >&6
  9685. else
  9686. ac_check_lib_save_LIBS=$LIBS
  9687. LIBS="-ldl $LIBS"
  9688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9689. /* end confdefs.h. */
  9690. /* Override any GCC internal prototype to avoid an error.
  9691. Use char because int might match the return type of a GCC
  9692. builtin and then its argument prototype would still apply. */
  9693. #ifdef __cplusplus
  9694. extern "C"
  9695. #endif
  9696. char dlopen ();
  9697. int
  9698. main ()
  9699. {
  9700. return dlopen ();
  9701. ;
  9702. return 0;
  9703. }
  9704. _ACEOF
  9705. if ac_fn_c_try_link "$LINENO"; then :
  9706. ac_cv_lib_dl_dlopen=yes
  9707. else
  9708. ac_cv_lib_dl_dlopen=no
  9709. fi
  9710. rm -f core conftest.err conftest.$ac_objext \
  9711. conftest$ac_exeext conftest.$ac_ext
  9712. LIBS=$ac_check_lib_save_LIBS
  9713. fi
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9715. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9716. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9717. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9718. else
  9719. lt_cv_dlopen="dyld"
  9720. lt_cv_dlopen_libs=
  9721. lt_cv_dlopen_self=yes
  9722. fi
  9723. ;;
  9724. *)
  9725. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9726. if test "x$ac_cv_func_shl_load" = xyes; then :
  9727. lt_cv_dlopen="shl_load"
  9728. else
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9730. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9731. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9732. $as_echo_n "(cached) " >&6
  9733. else
  9734. ac_check_lib_save_LIBS=$LIBS
  9735. LIBS="-ldld $LIBS"
  9736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9737. /* end confdefs.h. */
  9738. /* Override any GCC internal prototype to avoid an error.
  9739. Use char because int might match the return type of a GCC
  9740. builtin and then its argument prototype would still apply. */
  9741. #ifdef __cplusplus
  9742. extern "C"
  9743. #endif
  9744. char shl_load ();
  9745. int
  9746. main ()
  9747. {
  9748. return shl_load ();
  9749. ;
  9750. return 0;
  9751. }
  9752. _ACEOF
  9753. if ac_fn_c_try_link "$LINENO"; then :
  9754. ac_cv_lib_dld_shl_load=yes
  9755. else
  9756. ac_cv_lib_dld_shl_load=no
  9757. fi
  9758. rm -f core conftest.err conftest.$ac_objext \
  9759. conftest$ac_exeext conftest.$ac_ext
  9760. LIBS=$ac_check_lib_save_LIBS
  9761. fi
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9763. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9764. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9765. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9766. else
  9767. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9768. if test "x$ac_cv_func_dlopen" = xyes; then :
  9769. lt_cv_dlopen="dlopen"
  9770. else
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9772. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9773. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9774. $as_echo_n "(cached) " >&6
  9775. else
  9776. ac_check_lib_save_LIBS=$LIBS
  9777. LIBS="-ldl $LIBS"
  9778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9779. /* end confdefs.h. */
  9780. /* Override any GCC internal prototype to avoid an error.
  9781. Use char because int might match the return type of a GCC
  9782. builtin and then its argument prototype would still apply. */
  9783. #ifdef __cplusplus
  9784. extern "C"
  9785. #endif
  9786. char dlopen ();
  9787. int
  9788. main ()
  9789. {
  9790. return dlopen ();
  9791. ;
  9792. return 0;
  9793. }
  9794. _ACEOF
  9795. if ac_fn_c_try_link "$LINENO"; then :
  9796. ac_cv_lib_dl_dlopen=yes
  9797. else
  9798. ac_cv_lib_dl_dlopen=no
  9799. fi
  9800. rm -f core conftest.err conftest.$ac_objext \
  9801. conftest$ac_exeext conftest.$ac_ext
  9802. LIBS=$ac_check_lib_save_LIBS
  9803. fi
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9805. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9806. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9807. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9808. else
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9810. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9811. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9812. $as_echo_n "(cached) " >&6
  9813. else
  9814. ac_check_lib_save_LIBS=$LIBS
  9815. LIBS="-lsvld $LIBS"
  9816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9817. /* end confdefs.h. */
  9818. /* Override any GCC internal prototype to avoid an error.
  9819. Use char because int might match the return type of a GCC
  9820. builtin and then its argument prototype would still apply. */
  9821. #ifdef __cplusplus
  9822. extern "C"
  9823. #endif
  9824. char dlopen ();
  9825. int
  9826. main ()
  9827. {
  9828. return dlopen ();
  9829. ;
  9830. return 0;
  9831. }
  9832. _ACEOF
  9833. if ac_fn_c_try_link "$LINENO"; then :
  9834. ac_cv_lib_svld_dlopen=yes
  9835. else
  9836. ac_cv_lib_svld_dlopen=no
  9837. fi
  9838. rm -f core conftest.err conftest.$ac_objext \
  9839. conftest$ac_exeext conftest.$ac_ext
  9840. LIBS=$ac_check_lib_save_LIBS
  9841. fi
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9843. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9844. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9845. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9846. else
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9848. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9849. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. ac_check_lib_save_LIBS=$LIBS
  9853. LIBS="-ldld $LIBS"
  9854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9855. /* end confdefs.h. */
  9856. /* Override any GCC internal prototype to avoid an error.
  9857. Use char because int might match the return type of a GCC
  9858. builtin and then its argument prototype would still apply. */
  9859. #ifdef __cplusplus
  9860. extern "C"
  9861. #endif
  9862. char dld_link ();
  9863. int
  9864. main ()
  9865. {
  9866. return dld_link ();
  9867. ;
  9868. return 0;
  9869. }
  9870. _ACEOF
  9871. if ac_fn_c_try_link "$LINENO"; then :
  9872. ac_cv_lib_dld_dld_link=yes
  9873. else
  9874. ac_cv_lib_dld_dld_link=no
  9875. fi
  9876. rm -f core conftest.err conftest.$ac_objext \
  9877. conftest$ac_exeext conftest.$ac_ext
  9878. LIBS=$ac_check_lib_save_LIBS
  9879. fi
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9881. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9882. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9883. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9884. fi
  9885. fi
  9886. fi
  9887. fi
  9888. fi
  9889. fi
  9890. ;;
  9891. esac
  9892. if test "x$lt_cv_dlopen" != xno; then
  9893. enable_dlopen=yes
  9894. else
  9895. enable_dlopen=no
  9896. fi
  9897. case $lt_cv_dlopen in
  9898. dlopen)
  9899. save_CPPFLAGS="$CPPFLAGS"
  9900. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9901. save_LDFLAGS="$LDFLAGS"
  9902. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9903. save_LIBS="$LIBS"
  9904. LIBS="$lt_cv_dlopen_libs $LIBS"
  9905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9906. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9907. if ${lt_cv_dlopen_self+:} false; then :
  9908. $as_echo_n "(cached) " >&6
  9909. else
  9910. if test "$cross_compiling" = yes; then :
  9911. lt_cv_dlopen_self=cross
  9912. else
  9913. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9914. lt_status=$lt_dlunknown
  9915. cat > conftest.$ac_ext <<_LT_EOF
  9916. #line 11514 "configure"
  9917. #include "confdefs.h"
  9918. #if HAVE_DLFCN_H
  9919. #include <dlfcn.h>
  9920. #endif
  9921. #include <stdio.h>
  9922. #ifdef RTLD_GLOBAL
  9923. # define LT_DLGLOBAL RTLD_GLOBAL
  9924. #else
  9925. # ifdef DL_GLOBAL
  9926. # define LT_DLGLOBAL DL_GLOBAL
  9927. # else
  9928. # define LT_DLGLOBAL 0
  9929. # endif
  9930. #endif
  9931. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9932. find out it does not work in some platform. */
  9933. #ifndef LT_DLLAZY_OR_NOW
  9934. # ifdef RTLD_LAZY
  9935. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9936. # else
  9937. # ifdef DL_LAZY
  9938. # define LT_DLLAZY_OR_NOW DL_LAZY
  9939. # else
  9940. # ifdef RTLD_NOW
  9941. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9942. # else
  9943. # ifdef DL_NOW
  9944. # define LT_DLLAZY_OR_NOW DL_NOW
  9945. # else
  9946. # define LT_DLLAZY_OR_NOW 0
  9947. # endif
  9948. # endif
  9949. # endif
  9950. # endif
  9951. #endif
  9952. /* When -fvisbility=hidden is used, assume the code has been annotated
  9953. correspondingly for the symbols needed. */
  9954. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9955. void fnord () __attribute__((visibility("default")));
  9956. #endif
  9957. void fnord () { int i=42; }
  9958. int main ()
  9959. {
  9960. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9961. int status = $lt_dlunknown;
  9962. if (self)
  9963. {
  9964. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9965. else
  9966. {
  9967. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9968. else puts (dlerror ());
  9969. }
  9970. /* dlclose (self); */
  9971. }
  9972. else
  9973. puts (dlerror ());
  9974. return status;
  9975. }
  9976. _LT_EOF
  9977. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9978. (eval $ac_link) 2>&5
  9979. ac_status=$?
  9980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9981. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9982. (./conftest; exit; ) >&5 2>/dev/null
  9983. lt_status=$?
  9984. case x$lt_status in
  9985. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9986. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9987. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9988. esac
  9989. else :
  9990. # compilation failed
  9991. lt_cv_dlopen_self=no
  9992. fi
  9993. fi
  9994. rm -fr conftest*
  9995. fi
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9997. $as_echo "$lt_cv_dlopen_self" >&6; }
  9998. if test "x$lt_cv_dlopen_self" = xyes; then
  9999. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10001. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10002. if ${lt_cv_dlopen_self_static+:} false; then :
  10003. $as_echo_n "(cached) " >&6
  10004. else
  10005. if test "$cross_compiling" = yes; then :
  10006. lt_cv_dlopen_self_static=cross
  10007. else
  10008. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10009. lt_status=$lt_dlunknown
  10010. cat > conftest.$ac_ext <<_LT_EOF
  10011. #line 11620 "configure"
  10012. #include "confdefs.h"
  10013. #if HAVE_DLFCN_H
  10014. #include <dlfcn.h>
  10015. #endif
  10016. #include <stdio.h>
  10017. #ifdef RTLD_GLOBAL
  10018. # define LT_DLGLOBAL RTLD_GLOBAL
  10019. #else
  10020. # ifdef DL_GLOBAL
  10021. # define LT_DLGLOBAL DL_GLOBAL
  10022. # else
  10023. # define LT_DLGLOBAL 0
  10024. # endif
  10025. #endif
  10026. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10027. find out it does not work in some platform. */
  10028. #ifndef LT_DLLAZY_OR_NOW
  10029. # ifdef RTLD_LAZY
  10030. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10031. # else
  10032. # ifdef DL_LAZY
  10033. # define LT_DLLAZY_OR_NOW DL_LAZY
  10034. # else
  10035. # ifdef RTLD_NOW
  10036. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10037. # else
  10038. # ifdef DL_NOW
  10039. # define LT_DLLAZY_OR_NOW DL_NOW
  10040. # else
  10041. # define LT_DLLAZY_OR_NOW 0
  10042. # endif
  10043. # endif
  10044. # endif
  10045. # endif
  10046. #endif
  10047. /* When -fvisbility=hidden is used, assume the code has been annotated
  10048. correspondingly for the symbols needed. */
  10049. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10050. void fnord () __attribute__((visibility("default")));
  10051. #endif
  10052. void fnord () { int i=42; }
  10053. int main ()
  10054. {
  10055. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10056. int status = $lt_dlunknown;
  10057. if (self)
  10058. {
  10059. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10060. else
  10061. {
  10062. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10063. else puts (dlerror ());
  10064. }
  10065. /* dlclose (self); */
  10066. }
  10067. else
  10068. puts (dlerror ());
  10069. return status;
  10070. }
  10071. _LT_EOF
  10072. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10073. (eval $ac_link) 2>&5
  10074. ac_status=$?
  10075. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10076. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10077. (./conftest; exit; ) >&5 2>/dev/null
  10078. lt_status=$?
  10079. case x$lt_status in
  10080. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10081. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10082. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10083. esac
  10084. else :
  10085. # compilation failed
  10086. lt_cv_dlopen_self_static=no
  10087. fi
  10088. fi
  10089. rm -fr conftest*
  10090. fi
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10092. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10093. fi
  10094. CPPFLAGS="$save_CPPFLAGS"
  10095. LDFLAGS="$save_LDFLAGS"
  10096. LIBS="$save_LIBS"
  10097. ;;
  10098. esac
  10099. case $lt_cv_dlopen_self in
  10100. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10101. *) enable_dlopen_self=unknown ;;
  10102. esac
  10103. case $lt_cv_dlopen_self_static in
  10104. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10105. *) enable_dlopen_self_static=unknown ;;
  10106. esac
  10107. fi
  10108. striplib=
  10109. old_striplib=
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10111. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10112. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10113. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10114. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10116. $as_echo "yes" >&6; }
  10117. else
  10118. # FIXME - insert some real tests, host_os isn't really good enough
  10119. case $host_os in
  10120. darwin*)
  10121. if test -n "$STRIP" ; then
  10122. striplib="$STRIP -x"
  10123. old_striplib="$STRIP -S"
  10124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10125. $as_echo "yes" >&6; }
  10126. else
  10127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10128. $as_echo "no" >&6; }
  10129. fi
  10130. ;;
  10131. *)
  10132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10133. $as_echo "no" >&6; }
  10134. ;;
  10135. esac
  10136. fi
  10137. # Report which library types will actually be built
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10139. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10141. $as_echo "$can_build_shared" >&6; }
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10143. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10144. test "$can_build_shared" = "no" && enable_shared=no
  10145. # On AIX, shared libraries and static libraries use the same namespace, and
  10146. # are all built from PIC.
  10147. case $host_os in
  10148. aix3*)
  10149. test "$enable_shared" = yes && enable_static=no
  10150. if test -n "$RANLIB"; then
  10151. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10152. postinstall_cmds='$RANLIB $lib'
  10153. fi
  10154. ;;
  10155. aix[4-9]*)
  10156. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10157. test "$enable_shared" = yes && enable_static=no
  10158. fi
  10159. ;;
  10160. esac
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10162. $as_echo "$enable_shared" >&6; }
  10163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10164. $as_echo_n "checking whether to build static libraries... " >&6; }
  10165. # Make sure either enable_shared or enable_static is yes.
  10166. test "$enable_shared" = yes || enable_static=yes
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10168. $as_echo "$enable_static" >&6; }
  10169. fi
  10170. ac_ext=c
  10171. ac_cpp='$CPP $CPPFLAGS'
  10172. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10173. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10174. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10175. CC="$lt_save_CC"
  10176. ac_config_commands="$ac_config_commands libtool"
  10177. # Only expand once:
  10178. # Check whether --enable-largefile was given.
  10179. if test "${enable_largefile+set}" = set; then :
  10180. enableval=$enable_largefile;
  10181. fi
  10182. if test "$enable_largefile" != no; then
  10183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10184. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10185. if ${ac_cv_sys_largefile_CC+:} false; then :
  10186. $as_echo_n "(cached) " >&6
  10187. else
  10188. ac_cv_sys_largefile_CC=no
  10189. if test "$GCC" != yes; then
  10190. ac_save_CC=$CC
  10191. while :; do
  10192. # IRIX 6.2 and later do not support large files by default,
  10193. # so use the C compiler's -n32 option if that helps.
  10194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10195. /* end confdefs.h. */
  10196. #include <sys/types.h>
  10197. /* Check that off_t can represent 2**63 - 1 correctly.
  10198. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10199. since some C++ compilers masquerading as C compilers
  10200. incorrectly reject 9223372036854775807. */
  10201. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10202. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10203. && LARGE_OFF_T % 2147483647 == 1)
  10204. ? 1 : -1];
  10205. int
  10206. main ()
  10207. {
  10208. ;
  10209. return 0;
  10210. }
  10211. _ACEOF
  10212. if ac_fn_c_try_compile "$LINENO"; then :
  10213. break
  10214. fi
  10215. rm -f core conftest.err conftest.$ac_objext
  10216. CC="$CC -n32"
  10217. if ac_fn_c_try_compile "$LINENO"; then :
  10218. ac_cv_sys_largefile_CC=' -n32'; break
  10219. fi
  10220. rm -f core conftest.err conftest.$ac_objext
  10221. break
  10222. done
  10223. CC=$ac_save_CC
  10224. rm -f conftest.$ac_ext
  10225. fi
  10226. fi
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10228. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10229. if test "$ac_cv_sys_largefile_CC" != no; then
  10230. CC=$CC$ac_cv_sys_largefile_CC
  10231. fi
  10232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10233. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10234. if ${ac_cv_sys_file_offset_bits+:} false; then :
  10235. $as_echo_n "(cached) " >&6
  10236. else
  10237. while :; do
  10238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10239. /* end confdefs.h. */
  10240. #include <sys/types.h>
  10241. /* Check that off_t can represent 2**63 - 1 correctly.
  10242. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10243. since some C++ compilers masquerading as C compilers
  10244. incorrectly reject 9223372036854775807. */
  10245. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10246. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10247. && LARGE_OFF_T % 2147483647 == 1)
  10248. ? 1 : -1];
  10249. int
  10250. main ()
  10251. {
  10252. ;
  10253. return 0;
  10254. }
  10255. _ACEOF
  10256. if ac_fn_c_try_compile "$LINENO"; then :
  10257. ac_cv_sys_file_offset_bits=no; break
  10258. fi
  10259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10261. /* end confdefs.h. */
  10262. #define _FILE_OFFSET_BITS 64
  10263. #include <sys/types.h>
  10264. /* Check that off_t can represent 2**63 - 1 correctly.
  10265. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10266. since some C++ compilers masquerading as C compilers
  10267. incorrectly reject 9223372036854775807. */
  10268. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10269. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10270. && LARGE_OFF_T % 2147483647 == 1)
  10271. ? 1 : -1];
  10272. int
  10273. main ()
  10274. {
  10275. ;
  10276. return 0;
  10277. }
  10278. _ACEOF
  10279. if ac_fn_c_try_compile "$LINENO"; then :
  10280. ac_cv_sys_file_offset_bits=64; break
  10281. fi
  10282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10283. ac_cv_sys_file_offset_bits=unknown
  10284. break
  10285. done
  10286. fi
  10287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10288. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10289. case $ac_cv_sys_file_offset_bits in #(
  10290. no | unknown) ;;
  10291. *)
  10292. cat >>confdefs.h <<_ACEOF
  10293. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10294. _ACEOF
  10295. ;;
  10296. esac
  10297. rm -rf conftest*
  10298. if test $ac_cv_sys_file_offset_bits = unknown; then
  10299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10300. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10301. if ${ac_cv_sys_large_files+:} false; then :
  10302. $as_echo_n "(cached) " >&6
  10303. else
  10304. while :; do
  10305. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10306. /* end confdefs.h. */
  10307. #include <sys/types.h>
  10308. /* Check that off_t can represent 2**63 - 1 correctly.
  10309. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10310. since some C++ compilers masquerading as C compilers
  10311. incorrectly reject 9223372036854775807. */
  10312. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10313. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10314. && LARGE_OFF_T % 2147483647 == 1)
  10315. ? 1 : -1];
  10316. int
  10317. main ()
  10318. {
  10319. ;
  10320. return 0;
  10321. }
  10322. _ACEOF
  10323. if ac_fn_c_try_compile "$LINENO"; then :
  10324. ac_cv_sys_large_files=no; break
  10325. fi
  10326. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10328. /* end confdefs.h. */
  10329. #define _LARGE_FILES 1
  10330. #include <sys/types.h>
  10331. /* Check that off_t can represent 2**63 - 1 correctly.
  10332. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10333. since some C++ compilers masquerading as C compilers
  10334. incorrectly reject 9223372036854775807. */
  10335. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10336. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10337. && LARGE_OFF_T % 2147483647 == 1)
  10338. ? 1 : -1];
  10339. int
  10340. main ()
  10341. {
  10342. ;
  10343. return 0;
  10344. }
  10345. _ACEOF
  10346. if ac_fn_c_try_compile "$LINENO"; then :
  10347. ac_cv_sys_large_files=1; break
  10348. fi
  10349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10350. ac_cv_sys_large_files=unknown
  10351. break
  10352. done
  10353. fi
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10355. $as_echo "$ac_cv_sys_large_files" >&6; }
  10356. case $ac_cv_sys_large_files in #(
  10357. no | unknown) ;;
  10358. *)
  10359. cat >>confdefs.h <<_ACEOF
  10360. #define _LARGE_FILES $ac_cv_sys_large_files
  10361. _ACEOF
  10362. ;;
  10363. esac
  10364. rm -rf conftest*
  10365. fi
  10366. fi
  10367. backtrace_supported=yes
  10368. if test -n "${with_target_subdir}"; then
  10369. # We are compiling a GCC library. We can assume that the unwind
  10370. # library exists.
  10371. BACKTRACE_FILE="backtrace.lo simple.lo"
  10372. else
  10373. ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  10374. if test "x$ac_cv_header_unwind_h" = xyes; then :
  10375. ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
  10376. if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
  10377. BACKTRACE_FILE="backtrace.lo simple.lo"
  10378. else
  10379. BACKTRACE_FILE="nounwind.lo"
  10380. backtrace_supported=no
  10381. fi
  10382. else
  10383. BACKTRACE_FILE="nounwind.lo"
  10384. backtrace_supported=no
  10385. fi
  10386. fi
  10387. EXTRA_FLAGS=
  10388. if test -n "${with_target_subdir}"; then
  10389. EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
  10390. else
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
  10392. $as_echo_n "checking for -funwind-tables option... " >&6; }
  10393. if ${libbacktrace_cv_c_unwind_tables+:} false; then :
  10394. $as_echo_n "(cached) " >&6
  10395. else
  10396. CFLAGS_hold="$CFLAGS"
  10397. CFLAGS="$CFLAGS -funwind-tables"
  10398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10399. /* end confdefs.h. */
  10400. static int f() { return 0; }
  10401. int
  10402. main ()
  10403. {
  10404. return f();
  10405. ;
  10406. return 0;
  10407. }
  10408. _ACEOF
  10409. if ac_fn_c_try_compile "$LINENO"; then :
  10410. libbacktrace_cv_c_unwind_tables=yes
  10411. else
  10412. libbacktrace_cv_c_unwind_tables=no
  10413. fi
  10414. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10415. CFLAGS="$CFLAGS_hold"
  10416. fi
  10417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
  10418. $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
  10419. if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
  10420. EXTRA_FLAGS=-funwind-tables
  10421. fi
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
  10423. $as_echo_n "checking for -frandom-seed=string option... " >&6; }
  10424. if ${libbacktrace_cv_c_random_seed_string+:} false; then :
  10425. $as_echo_n "(cached) " >&6
  10426. else
  10427. CFLAGS_hold="$CFLAGS"
  10428. CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
  10429. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10430. /* end confdefs.h. */
  10431. int
  10432. main ()
  10433. {
  10434. return 0;
  10435. ;
  10436. return 0;
  10437. }
  10438. _ACEOF
  10439. if ac_fn_c_try_compile "$LINENO"; then :
  10440. libbacktrace_cv_c_random_seed_string=yes
  10441. else
  10442. libbacktrace_cv_c_random_seed_string=no
  10443. fi
  10444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10445. CFLAGS="$CFLAGS_hold"
  10446. fi
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
  10448. $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
  10449. if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
  10450. EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
  10451. fi
  10452. fi
  10453. if test -n "${with_target_subdir}"; then
  10454. # Add CET specific flags is Intel CET is enabled.
  10455. # Check whether --enable-cet was given.
  10456. if test "${enable_cet+set}" = set; then :
  10457. enableval=$enable_cet;
  10458. case "$enableval" in
  10459. yes|no|auto) ;;
  10460. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  10461. esac
  10462. else
  10463. enable_cet=auto
  10464. fi
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  10466. $as_echo_n "checking for CET support... " >&6; }
  10467. # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
  10468. case "$host" in
  10469. i[34567]86-*-linux* | x86_64-*-linux*)
  10470. case "$enable_cet" in
  10471. auto)
  10472. # Check if target supports multi-byte NOPs
  10473. # and if compiler and assembler support CET insn.
  10474. cet_save_CFLAGS="$CFLAGS"
  10475. CFLAGS="$CFLAGS -fcf-protection"
  10476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10477. /* end confdefs.h. */
  10478. int
  10479. main ()
  10480. {
  10481. #if !defined(__SSE2__)
  10482. #error target does not support multi-byte NOPs
  10483. #else
  10484. asm ("setssbsy");
  10485. #endif
  10486. ;
  10487. return 0;
  10488. }
  10489. _ACEOF
  10490. if ac_fn_c_try_compile "$LINENO"; then :
  10491. enable_cet=yes
  10492. else
  10493. enable_cet=no
  10494. fi
  10495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10496. CFLAGS="$cet_save_CFLAGS"
  10497. ;;
  10498. yes)
  10499. # Check if assembler supports CET.
  10500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10501. /* end confdefs.h. */
  10502. int
  10503. main ()
  10504. {
  10505. asm ("setssbsy");
  10506. ;
  10507. return 0;
  10508. }
  10509. _ACEOF
  10510. if ac_fn_c_try_compile "$LINENO"; then :
  10511. else
  10512. as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
  10513. fi
  10514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10515. ;;
  10516. esac
  10517. ;;
  10518. *)
  10519. enable_cet=no
  10520. ;;
  10521. esac
  10522. if test x$enable_cet = xyes; then
  10523. CET_FLAGS="-fcf-protection -mshstk"
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10525. $as_echo "yes" >&6; }
  10526. else
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10528. $as_echo "no" >&6; }
  10529. fi
  10530. EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
  10531. fi
  10532. ac_ext=c
  10533. ac_cpp='$CPP $CPPFLAGS'
  10534. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10535. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10536. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10537. WARN_FLAGS=
  10538. save_CFLAGS="$CFLAGS"
  10539. for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
  10540. -Wmissing-prototypes -Wold-style-definition \
  10541. -Wmissing-format-attribute -Wcast-qual; do
  10542. # Do the check with the no- prefix removed since gcc silently
  10543. # accepts any -Wno-* option on purpose
  10544. case $real_option in
  10545. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  10546. *) option=$real_option ;;
  10547. esac
  10548. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  10549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  10550. $as_echo_n "checking whether $CC supports $option... " >&6; }
  10551. if eval \${$as_acx_Woption+:} false; then :
  10552. $as_echo_n "(cached) " >&6
  10553. else
  10554. CFLAGS="$option"
  10555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10556. /* end confdefs.h. */
  10557. int
  10558. main ()
  10559. {
  10560. ;
  10561. return 0;
  10562. }
  10563. _ACEOF
  10564. if ac_fn_c_try_compile "$LINENO"; then :
  10565. eval "$as_acx_Woption=yes"
  10566. else
  10567. eval "$as_acx_Woption=no"
  10568. fi
  10569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10570. fi
  10571. eval ac_res=\$$as_acx_Woption
  10572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  10573. $as_echo "$ac_res" >&6; }
  10574. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  10575. WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
  10576. fi
  10577. done
  10578. CFLAGS="$save_CFLAGS"
  10579. ac_ext=c
  10580. ac_cpp='$CPP $CPPFLAGS'
  10581. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10582. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10583. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10584. # Check whether --enable-werror was given.
  10585. if test "${enable_werror+set}" = set; then :
  10586. enableval=$enable_werror;
  10587. fi
  10588. if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
  10589. WARN_FLAGS="$WARN_FLAGS -Werror"
  10590. fi
  10591. if test -n "${with_target_subdir}"; then
  10592. # Check whether --with-system-libunwind was given.
  10593. if test "${with_system_libunwind+set}" = set; then :
  10594. withval=$with_system_libunwind;
  10595. fi
  10596. # If system-libunwind was not specifically set, pick a default setting.
  10597. if test x$with_system_libunwind = x; then
  10598. case ${target} in
  10599. ia64-*-hpux*) with_system_libunwind=yes ;;
  10600. *) with_system_libunwind=no ;;
  10601. esac
  10602. fi
  10603. # Based on system-libunwind and target, do we have ipinfo?
  10604. if test x$with_system_libunwind = xyes; then
  10605. case ${target} in
  10606. ia64-*-*) have_unwind_getipinfo=no ;;
  10607. *) have_unwind_getipinfo=yes ;;
  10608. esac
  10609. else
  10610. # Darwin before version 9 does not have _Unwind_GetIPInfo.
  10611. case ${target} in
  10612. *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
  10613. *) have_unwind_getipinfo=yes ;;
  10614. esac
  10615. fi
  10616. if test x$have_unwind_getipinfo = xyes; then
  10617. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  10618. fi
  10619. else
  10620. ac_save_CFFLAGS="$CFLAGS"
  10621. CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
  10623. $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
  10624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10625. /* end confdefs.h. */
  10626. #include "unwind.h"
  10627. struct _Unwind_Context *context;
  10628. int ip_before_insn = 0;
  10629. int
  10630. main ()
  10631. {
  10632. return _Unwind_GetIPInfo (context, &ip_before_insn);
  10633. ;
  10634. return 0;
  10635. }
  10636. _ACEOF
  10637. if ac_fn_c_try_link "$LINENO"; then :
  10638. have_unwind_getipinfo=yes
  10639. else
  10640. have_unwind_getipinfo=no
  10641. fi
  10642. rm -f core conftest.err conftest.$ac_objext \
  10643. conftest$ac_exeext conftest.$ac_ext
  10644. CFLAGS="$ac_save_CFLAGS"
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
  10646. $as_echo "$have_unwind_getipinfo" >&6; }
  10647. if test "$have_unwind_getipinfo" = "yes"; then
  10648. $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
  10649. fi
  10650. fi
  10651. # Enable --enable-host-shared.
  10652. # Check whether --enable-host-shared was given.
  10653. if test "${enable_host_shared+set}" = set; then :
  10654. enableval=$enable_host_shared; PIC_FLAG=-fPIC
  10655. else
  10656. PIC_FLAG=
  10657. fi
  10658. # Enable Intel CET on Intel CET enabled host if jit is enabled.
  10659. # Check whether --enable-cet was given.
  10660. if test "${enable_cet+set}" = set; then :
  10661. enableval=$enable_cet;
  10662. case "$enableval" in
  10663. yes|no|auto) ;;
  10664. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  10665. esac
  10666. else
  10667. enable_cet=auto
  10668. fi
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  10670. $as_echo_n "checking for CET support... " >&6; }
  10671. case "$host" in
  10672. i[34567]86-*-linux* | x86_64-*-linux*)
  10673. may_have_cet=yes
  10674. cet_save_CFLAGS="$CFLAGS"
  10675. CFLAGS="$CFLAGS -fcf-protection"
  10676. case "$enable_cet" in
  10677. auto)
  10678. # Check if target supports multi-byte NOPs
  10679. # and if compiler and assembler support CET.
  10680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10681. /* end confdefs.h. */
  10682. int
  10683. main ()
  10684. {
  10685. #if !defined(__SSE2__)
  10686. #error target does not support multi-byte NOPs
  10687. #else
  10688. asm ("setssbsy");
  10689. #endif
  10690. ;
  10691. return 0;
  10692. }
  10693. _ACEOF
  10694. if ac_fn_c_try_compile "$LINENO"; then :
  10695. enable_cet=yes
  10696. else
  10697. enable_cet=no
  10698. fi
  10699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10700. ;;
  10701. yes)
  10702. # Check if compiler and assembler support CET.
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. int
  10706. main ()
  10707. {
  10708. asm ("setssbsy");
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. if ac_fn_c_try_compile "$LINENO"; then :
  10714. support_cet=yes
  10715. else
  10716. support_cet=no
  10717. fi
  10718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10719. if test $support_cet = "no"; then
  10720. if test x$enable_bootstrap != xno \
  10721. && test -z "${with_build_subdir}" \
  10722. && (test ! -f ../stage_current \
  10723. || test `cat ../stage_current` != "stage1"); then
  10724. # Require CET support only for the final GCC build.
  10725. as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
  10726. else
  10727. # Don't enable CET without CET support for non-bootstrap
  10728. # build, in stage1 nor for build support.
  10729. enable_cet=no
  10730. fi
  10731. fi
  10732. ;;
  10733. esac
  10734. CFLAGS="$cet_save_CFLAGS"
  10735. ;;
  10736. *)
  10737. may_have_cet=no
  10738. enable_cet=no
  10739. ;;
  10740. esac
  10741. cet_save_CFLAGS="$CFLAGS"
  10742. CFLAGS="$CFLAGS -fcf-protection=none"
  10743. cet_save_LDFLAGS="$LDFLAGS"
  10744. LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
  10745. if test x$may_have_cet = xyes; then
  10746. # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
  10747. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10748. /* end confdefs.h. */
  10749. int
  10750. main ()
  10751. {
  10752. return 0;
  10753. ;
  10754. return 0;
  10755. }
  10756. _ACEOF
  10757. if ac_fn_c_try_link "$LINENO"; then :
  10758. may_have_cet=yes
  10759. else
  10760. may_have_cet=no
  10761. fi
  10762. rm -f core conftest.err conftest.$ac_objext \
  10763. conftest$ac_exeext conftest.$ac_ext
  10764. fi
  10765. if test x$may_have_cet = xyes; then
  10766. if test x$cross_compiling = xno; then
  10767. if test "$cross_compiling" = yes; then :
  10768. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10769. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10770. as_fn_error $? "cannot run test program while cross compiling
  10771. See \`config.log' for more details" "$LINENO" 5; }
  10772. else
  10773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10774. /* end confdefs.h. */
  10775. int
  10776. main ()
  10777. {
  10778. asm ("endbr32");
  10779. return 0;
  10780. }
  10781. _ACEOF
  10782. if ac_fn_c_try_run "$LINENO"; then :
  10783. have_multi_byte_nop=yes
  10784. else
  10785. have_multi_byte_nop=no
  10786. fi
  10787. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10788. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10789. fi
  10790. have_cet=no
  10791. if test x$have_multi_byte_nop = xyes; then
  10792. if test "$cross_compiling" = yes; then :
  10793. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10794. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10795. as_fn_error $? "cannot run test program while cross compiling
  10796. See \`config.log' for more details" "$LINENO" 5; }
  10797. else
  10798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10799. /* end confdefs.h. */
  10800. static void
  10801. foo (void)
  10802. {
  10803. }
  10804. static void
  10805. __attribute__ ((noinline, noclone))
  10806. xxx (void (*f) (void))
  10807. {
  10808. f ();
  10809. }
  10810. static void
  10811. __attribute__ ((noinline, noclone))
  10812. bar (void)
  10813. {
  10814. xxx (foo);
  10815. }
  10816. int
  10817. main ()
  10818. {
  10819. bar ();
  10820. return 0;
  10821. }
  10822. _ACEOF
  10823. if ac_fn_c_try_run "$LINENO"; then :
  10824. have_cet=no
  10825. else
  10826. have_cet=yes
  10827. fi
  10828. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10829. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10830. fi
  10831. fi
  10832. if test x$enable_cet = xno -a x$have_cet = xyes; then
  10833. as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
  10834. fi
  10835. fi
  10836. else
  10837. # Enable CET in cross compiler if possible so that it will run on both
  10838. # CET and non-CET hosts.
  10839. have_cet=yes
  10840. fi
  10841. if test x$enable_cet = xyes; then
  10842. CET_HOST_FLAGS="-fcf-protection"
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10844. $as_echo "yes" >&6; }
  10845. else
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10847. $as_echo "no" >&6; }
  10848. fi
  10849. CFLAGS="$cet_save_CFLAGS"
  10850. LDFLAGS="$cet_save_LDFLAGS"
  10851. case x$enable_languages in
  10852. *jit*)
  10853. ;;
  10854. *)
  10855. CET_HOST_FLAGS=
  10856. ;;
  10857. esac
  10858. # Test for __sync support.
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
  10860. $as_echo_n "checking __sync extensions... " >&6; }
  10861. if ${libbacktrace_cv_sys_sync+:} false; then :
  10862. $as_echo_n "(cached) " >&6
  10863. else
  10864. if test -n "${with_target_subdir}"; then
  10865. case "${host}" in
  10866. hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
  10867. *) libbacktrace_cv_sys_sync=yes ;;
  10868. esac
  10869. else
  10870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10871. /* end confdefs.h. */
  10872. int i;
  10873. int
  10874. main ()
  10875. {
  10876. __sync_bool_compare_and_swap (&i, i, i);
  10877. __sync_lock_test_and_set (&i, 1);
  10878. __sync_lock_release (&i);
  10879. ;
  10880. return 0;
  10881. }
  10882. _ACEOF
  10883. if ac_fn_c_try_link "$LINENO"; then :
  10884. libbacktrace_cv_sys_sync=yes
  10885. else
  10886. libbacktrace_cv_sys_sync=no
  10887. fi
  10888. rm -f core conftest.err conftest.$ac_objext \
  10889. conftest$ac_exeext conftest.$ac_ext
  10890. fi
  10891. fi
  10892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
  10893. $as_echo "$libbacktrace_cv_sys_sync" >&6; }
  10894. BACKTRACE_SUPPORTS_THREADS=0
  10895. if test "$libbacktrace_cv_sys_sync" = "yes"; then
  10896. BACKTRACE_SUPPORTS_THREADS=1
  10897. $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
  10898. fi
  10899. # Test for __atomic support.
  10900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
  10901. $as_echo_n "checking __atomic extensions... " >&6; }
  10902. if ${libbacktrace_cv_sys_atomic+:} false; then :
  10903. $as_echo_n "(cached) " >&6
  10904. else
  10905. if test -n "${with_target_subdir}"; then
  10906. libbacktrace_cv_sys_atomic=yes
  10907. else
  10908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10909. /* end confdefs.h. */
  10910. int i;
  10911. int
  10912. main ()
  10913. {
  10914. __atomic_load_n (&i, __ATOMIC_ACQUIRE);
  10915. __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
  10916. ;
  10917. return 0;
  10918. }
  10919. _ACEOF
  10920. if ac_fn_c_try_link "$LINENO"; then :
  10921. libbacktrace_cv_sys_atomic=yes
  10922. else
  10923. libbacktrace_cv_sys_atomic=no
  10924. fi
  10925. rm -f core conftest.err conftest.$ac_objext \
  10926. conftest$ac_exeext conftest.$ac_ext
  10927. fi
  10928. fi
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
  10930. $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
  10931. if test "$libbacktrace_cv_sys_atomic" = "yes"; then
  10932. $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
  10933. fi
  10934. # The library needs to be able to read the executable itself. Compile
  10935. # a file to determine the executable format. The awk script
  10936. # filetype.awk prints out the file type.
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
  10938. $as_echo_n "checking output filetype... " >&6; }
  10939. if ${libbacktrace_cv_sys_filetype+:} false; then :
  10940. $as_echo_n "(cached) " >&6
  10941. else
  10942. filetype=
  10943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10944. /* end confdefs.h. */
  10945. int i;
  10946. int
  10947. main ()
  10948. {
  10949. int j;
  10950. ;
  10951. return 0;
  10952. }
  10953. _ACEOF
  10954. if ac_fn_c_try_compile "$LINENO"; then :
  10955. filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
  10956. else
  10957. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10959. as_fn_error $? "compiler failed
  10960. See \`config.log' for more details" "$LINENO" 5; }
  10961. fi
  10962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10963. libbacktrace_cv_sys_filetype=$filetype
  10964. fi
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
  10966. $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
  10967. # Match the file type to decide what files to compile.
  10968. FORMAT_FILE=
  10969. backtrace_supports_data=yes
  10970. case "$libbacktrace_cv_sys_filetype" in
  10971. elf*) FORMAT_FILE="elf.lo" ;;
  10972. macho) FORMAT_FILE="macho.lo" ;;
  10973. pecoff) FORMAT_FILE="pecoff.lo"
  10974. backtrace_supports_data=no
  10975. ;;
  10976. xcoff*) FORMAT_FILE="xcoff.lo"
  10977. backtrace_supports_data=no
  10978. ;;
  10979. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
  10980. $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
  10981. FORMAT_FILE="unknown.lo"
  10982. backtrace_supported=no
  10983. ;;
  10984. esac
  10985. # ELF defines.
  10986. elfsize=
  10987. case "$libbacktrace_cv_sys_filetype" in
  10988. elf32) elfsize=32 ;;
  10989. elf64) elfsize=64 ;;
  10990. *) elfsize=unused
  10991. esac
  10992. cat >>confdefs.h <<_ACEOF
  10993. #define BACKTRACE_ELF_SIZE $elfsize
  10994. _ACEOF
  10995. if test "$FORMAT_FILE" = "elf.lo"; then
  10996. HAVE_ELF_TRUE=
  10997. HAVE_ELF_FALSE='#'
  10998. else
  10999. HAVE_ELF_TRUE='#'
  11000. HAVE_ELF_FALSE=
  11001. fi
  11002. # XCOFF defines.
  11003. xcoffsize=
  11004. case "$libbacktrace_cv_sys_filetype" in
  11005. xcoff32) xcoffsize=32 ;;
  11006. xcoff64) xcoffsize=64 ;;
  11007. *) xcoffsize=unused
  11008. esac
  11009. cat >>confdefs.h <<_ACEOF
  11010. #define BACKTRACE_XCOFF_SIZE $xcoffsize
  11011. _ACEOF
  11012. BACKTRACE_SUPPORTED=0
  11013. if test "$backtrace_supported" = "yes"; then
  11014. BACKTRACE_SUPPORTED=1
  11015. fi
  11016. BACKTRACE_SUPPORTS_DATA=0
  11017. if test "$backtrace_supports_data" = "yes"; then
  11018. BACKTRACE_SUPPORTS_DATA=1
  11019. fi
  11020. inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
  11021. acx_cv_header_stdint=stddef.h
  11022. acx_cv_header_stdint_kind="(already complete)"
  11023. for i in stdint.h $inttype_headers; do
  11024. unset ac_cv_type_uintptr_t
  11025. unset ac_cv_type_uintmax_t
  11026. unset ac_cv_type_int_least32_t
  11027. unset ac_cv_type_int_fast32_t
  11028. unset ac_cv_type_uint64_t
  11029. $as_echo_n "looking for a compliant stdint.h in $i, " >&6
  11030. ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
  11031. #include <$i>
  11032. "
  11033. if test "x$ac_cv_type_uintmax_t" = xyes; then :
  11034. acx_cv_header_stdint=$i
  11035. else
  11036. continue
  11037. fi
  11038. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  11039. #include <$i>
  11040. "
  11041. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11042. else
  11043. acx_cv_header_stdint_kind="(mostly complete)"
  11044. fi
  11045. ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
  11046. #include <$i>
  11047. "
  11048. if test "x$ac_cv_type_int_least32_t" = xyes; then :
  11049. else
  11050. acx_cv_header_stdint_kind="(mostly complete)"
  11051. fi
  11052. ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
  11053. #include <$i>
  11054. "
  11055. if test "x$ac_cv_type_int_fast32_t" = xyes; then :
  11056. else
  11057. acx_cv_header_stdint_kind="(mostly complete)"
  11058. fi
  11059. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  11060. #include <$i>
  11061. "
  11062. if test "x$ac_cv_type_uint64_t" = xyes; then :
  11063. else
  11064. acx_cv_header_stdint_kind="(lacks uint64_t)"
  11065. fi
  11066. break
  11067. done
  11068. if test "$acx_cv_header_stdint" = stddef.h; then
  11069. acx_cv_header_stdint_kind="(lacks uintmax_t)"
  11070. for i in stdint.h $inttype_headers; do
  11071. unset ac_cv_type_uintptr_t
  11072. unset ac_cv_type_uint32_t
  11073. unset ac_cv_type_uint64_t
  11074. $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
  11075. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
  11076. #include <$i>
  11077. "
  11078. if test "x$ac_cv_type_uint32_t" = xyes; then :
  11079. acx_cv_header_stdint=$i
  11080. else
  11081. continue
  11082. fi
  11083. ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
  11084. #include <$i>
  11085. "
  11086. if test "x$ac_cv_type_uint64_t" = xyes; then :
  11087. fi
  11088. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
  11089. #include <$i>
  11090. "
  11091. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11092. fi
  11093. break
  11094. done
  11095. fi
  11096. if test "$acx_cv_header_stdint" = stddef.h; then
  11097. acx_cv_header_stdint_kind="(u_intXX_t style)"
  11098. for i in sys/types.h $inttype_headers; do
  11099. unset ac_cv_type_u_int32_t
  11100. unset ac_cv_type_u_int64_t
  11101. $as_echo_n "looking for u_intXX_t types in $i, " >&6
  11102. ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
  11103. #include <$i>
  11104. "
  11105. if test "x$ac_cv_type_u_int32_t" = xyes; then :
  11106. acx_cv_header_stdint=$i
  11107. else
  11108. continue
  11109. fi
  11110. ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
  11111. #include <$i>
  11112. "
  11113. if test "x$ac_cv_type_u_int64_t" = xyes; then :
  11114. fi
  11115. break
  11116. done
  11117. fi
  11118. if test "$acx_cv_header_stdint" = stddef.h; then
  11119. acx_cv_header_stdint_kind="(using manual detection)"
  11120. fi
  11121. test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
  11122. test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
  11123. test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
  11124. test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
  11125. test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
  11126. # ----------------- Summarize what we found so far
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
  11128. $as_echo_n "checking what to include in gstdint.h... " >&6; }
  11129. case `$as_basename -- gstdint.h ||
  11130. $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
  11131. Xgstdint.h : 'X\(//\)$' \| \
  11132. Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
  11133. $as_echo X/gstdint.h |
  11134. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11135. s//\1/
  11136. q
  11137. }
  11138. /^X\/\(\/\/\)$/{
  11139. s//\1/
  11140. q
  11141. }
  11142. /^X\/\(\/\).*/{
  11143. s//\1/
  11144. q
  11145. }
  11146. s/.*/./; q'` in
  11147. stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  11148. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  11149. inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
  11150. $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
  11151. *) ;;
  11152. esac
  11153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
  11154. $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
  11155. # ----------------- done included file, check C basic types --------
  11156. # Lacking an uintptr_t? Test size of void *
  11157. case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
  11158. stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
  11159. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11160. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11161. # This bug is HP SR number 8606223364.
  11162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  11163. $as_echo_n "checking size of void *... " >&6; }
  11164. if ${ac_cv_sizeof_void_p+:} false; then :
  11165. $as_echo_n "(cached) " >&6
  11166. else
  11167. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  11168. else
  11169. if test "$ac_cv_type_void_p" = yes; then
  11170. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11171. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11172. as_fn_error 77 "cannot compute sizeof (void *)
  11173. See \`config.log' for more details" "$LINENO" 5; }
  11174. else
  11175. ac_cv_sizeof_void_p=0
  11176. fi
  11177. fi
  11178. fi
  11179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  11180. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  11181. cat >>confdefs.h <<_ACEOF
  11182. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  11183. _ACEOF
  11184. ;;
  11185. esac
  11186. # Lacking an uint64_t? Test size of long
  11187. case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
  11188. stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
  11189. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11190. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11191. # This bug is HP SR number 8606223364.
  11192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11193. $as_echo_n "checking size of long... " >&6; }
  11194. if ${ac_cv_sizeof_long+:} false; then :
  11195. $as_echo_n "(cached) " >&6
  11196. else
  11197. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11198. else
  11199. if test "$ac_cv_type_long" = yes; then
  11200. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11202. as_fn_error 77 "cannot compute sizeof (long)
  11203. See \`config.log' for more details" "$LINENO" 5; }
  11204. else
  11205. ac_cv_sizeof_long=0
  11206. fi
  11207. fi
  11208. fi
  11209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11210. $as_echo "$ac_cv_sizeof_long" >&6; }
  11211. cat >>confdefs.h <<_ACEOF
  11212. #define SIZEOF_LONG $ac_cv_sizeof_long
  11213. _ACEOF
  11214. ;;
  11215. esac
  11216. if test $acx_cv_header_stdint = stddef.h; then
  11217. # Lacking a good header? Test size of everything and deduce all types.
  11218. # The cast to long int works around a bug in the HP C Compiler
  11219. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11220. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11221. # This bug is HP SR number 8606223364.
  11222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11223. $as_echo_n "checking size of int... " >&6; }
  11224. if ${ac_cv_sizeof_int+:} false; then :
  11225. $as_echo_n "(cached) " >&6
  11226. else
  11227. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11228. else
  11229. if test "$ac_cv_type_int" = yes; then
  11230. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11232. as_fn_error 77 "cannot compute sizeof (int)
  11233. See \`config.log' for more details" "$LINENO" 5; }
  11234. else
  11235. ac_cv_sizeof_int=0
  11236. fi
  11237. fi
  11238. fi
  11239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11240. $as_echo "$ac_cv_sizeof_int" >&6; }
  11241. cat >>confdefs.h <<_ACEOF
  11242. #define SIZEOF_INT $ac_cv_sizeof_int
  11243. _ACEOF
  11244. # The cast to long int works around a bug in the HP C Compiler
  11245. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11246. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11247. # This bug is HP SR number 8606223364.
  11248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  11249. $as_echo_n "checking size of short... " >&6; }
  11250. if ${ac_cv_sizeof_short+:} false; then :
  11251. $as_echo_n "(cached) " >&6
  11252. else
  11253. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  11254. else
  11255. if test "$ac_cv_type_short" = yes; then
  11256. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11257. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11258. as_fn_error 77 "cannot compute sizeof (short)
  11259. See \`config.log' for more details" "$LINENO" 5; }
  11260. else
  11261. ac_cv_sizeof_short=0
  11262. fi
  11263. fi
  11264. fi
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  11266. $as_echo "$ac_cv_sizeof_short" >&6; }
  11267. cat >>confdefs.h <<_ACEOF
  11268. #define SIZEOF_SHORT $ac_cv_sizeof_short
  11269. _ACEOF
  11270. # The cast to long int works around a bug in the HP C Compiler
  11271. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11272. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11273. # This bug is HP SR number 8606223364.
  11274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
  11275. $as_echo_n "checking size of char... " >&6; }
  11276. if ${ac_cv_sizeof_char+:} false; then :
  11277. $as_echo_n "(cached) " >&6
  11278. else
  11279. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
  11280. else
  11281. if test "$ac_cv_type_char" = yes; then
  11282. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11284. as_fn_error 77 "cannot compute sizeof (char)
  11285. See \`config.log' for more details" "$LINENO" 5; }
  11286. else
  11287. ac_cv_sizeof_char=0
  11288. fi
  11289. fi
  11290. fi
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
  11292. $as_echo "$ac_cv_sizeof_char" >&6; }
  11293. cat >>confdefs.h <<_ACEOF
  11294. #define SIZEOF_CHAR $ac_cv_sizeof_char
  11295. _ACEOF
  11296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
  11297. $as_echo_n "checking for type equivalent to int8_t... " >&6; }
  11298. case "$ac_cv_sizeof_char" in
  11299. 1) acx_cv_type_int8_t=char ;;
  11300. *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
  11301. esac
  11302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
  11303. $as_echo "$acx_cv_type_int8_t" >&6; }
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
  11305. $as_echo_n "checking for type equivalent to int16_t... " >&6; }
  11306. case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
  11307. 2:*) acx_cv_type_int16_t=int ;;
  11308. *:2) acx_cv_type_int16_t=short ;;
  11309. *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
  11310. esac
  11311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
  11312. $as_echo "$acx_cv_type_int16_t" >&6; }
  11313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
  11314. $as_echo_n "checking for type equivalent to int32_t... " >&6; }
  11315. case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
  11316. 4:*) acx_cv_type_int32_t=int ;;
  11317. *:4) acx_cv_type_int32_t=long ;;
  11318. *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
  11319. esac
  11320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
  11321. $as_echo "$acx_cv_type_int32_t" >&6; }
  11322. fi
  11323. # These tests are here to make the output prettier
  11324. if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
  11325. case "$ac_cv_sizeof_long" in
  11326. 8) acx_cv_type_int64_t=long ;;
  11327. esac
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
  11329. $as_echo_n "checking for type equivalent to int64_t... " >&6; }
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
  11331. $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
  11332. fi
  11333. # Now we can use the above types
  11334. if test "$ac_cv_type_uintptr_t" != yes; then
  11335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
  11336. $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
  11337. case $ac_cv_sizeof_void_p in
  11338. 2) acx_cv_type_intptr_t=int16_t ;;
  11339. 4) acx_cv_type_intptr_t=int32_t ;;
  11340. 8) acx_cv_type_intptr_t=int64_t ;;
  11341. *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
  11342. esac
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
  11344. $as_echo "$acx_cv_type_intptr_t" >&6; }
  11345. fi
  11346. # ----------------- done all checks, emit header -------------
  11347. ac_config_commands="$ac_config_commands gstdint.h"
  11348. for ac_header in sys/mman.h
  11349. do :
  11350. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  11351. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  11352. cat >>confdefs.h <<_ACEOF
  11353. #define HAVE_SYS_MMAN_H 1
  11354. _ACEOF
  11355. fi
  11356. done
  11357. if test "$ac_cv_header_sys_mman_h" = "no"; then
  11358. have_mmap=no
  11359. else
  11360. if test -n "${with_target_subdir}"; then
  11361. # When built as a GCC target library, we can't do a link test. We
  11362. # simply assume that if we have mman.h, we have mmap.
  11363. have_mmap=yes
  11364. case "${host}" in
  11365. *-*-msdosdjgpp)
  11366. # DJGPP has sys/man.h, but no mmap
  11367. have_mmap=no ;;
  11368. esac
  11369. else
  11370. ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
  11371. if test "x$ac_cv_func_mmap" = xyes; then :
  11372. have_mmap=yes
  11373. else
  11374. have_mmap=no
  11375. fi
  11376. fi
  11377. fi
  11378. if test "$have_mmap" = "no"; then
  11379. VIEW_FILE=read.lo
  11380. ALLOC_FILE=alloc.lo
  11381. else
  11382. VIEW_FILE=mmapio.lo
  11383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11384. /* end confdefs.h. */
  11385. #include <sys/mman.h>
  11386. #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
  11387. #error no MAP_ANONYMOUS
  11388. #endif
  11389. _ACEOF
  11390. if ac_fn_c_try_cpp "$LINENO"; then :
  11391. ALLOC_FILE=mmap.lo
  11392. else
  11393. ALLOC_FILE=alloc.lo
  11394. fi
  11395. rm -f conftest.err conftest.i conftest.$ac_ext
  11396. fi
  11397. BACKTRACE_USES_MALLOC=0
  11398. if test "$ALLOC_FILE" = "alloc.lo"; then
  11399. BACKTRACE_USES_MALLOC=1
  11400. fi
  11401. # Check for dl_iterate_phdr.
  11402. for ac_header in link.h
  11403. do :
  11404. ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
  11405. if test "x$ac_cv_header_link_h" = xyes; then :
  11406. cat >>confdefs.h <<_ACEOF
  11407. #define HAVE_LINK_H 1
  11408. _ACEOF
  11409. fi
  11410. done
  11411. if test "$ac_cv_header_link_h" = "no"; then
  11412. have_dl_iterate_phdr=no
  11413. else
  11414. if test -n "${with_target_subdir}"; then
  11415. # When built as a GCC target library, we can't do a link test.
  11416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11417. /* end confdefs.h. */
  11418. #include <link.h>
  11419. _ACEOF
  11420. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11421. $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
  11422. have_dl_iterate_phdr=yes
  11423. else
  11424. have_dl_iterate_phdr=no
  11425. fi
  11426. rm -f conftest*
  11427. else
  11428. ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
  11429. if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
  11430. have_dl_iterate_phdr=yes
  11431. else
  11432. have_dl_iterate_phdr=no
  11433. fi
  11434. fi
  11435. fi
  11436. if test "$have_dl_iterate_phdr" = "yes"; then
  11437. $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
  11438. fi
  11439. # Check for header file for Mach-O image functions.
  11440. for ac_header in mach-o/dyld.h
  11441. do :
  11442. ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
  11443. if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
  11444. cat >>confdefs.h <<_ACEOF
  11445. #define HAVE_MACH_O_DYLD_H 1
  11446. _ACEOF
  11447. fi
  11448. done
  11449. # Check for loadquery.
  11450. for ac_header in sys/ldr.h
  11451. do :
  11452. ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
  11453. if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
  11454. cat >>confdefs.h <<_ACEOF
  11455. #define HAVE_SYS_LDR_H 1
  11456. _ACEOF
  11457. fi
  11458. done
  11459. if test "$ac_cv_header_sys_ldr_h" = "no"; then
  11460. have_loadquery=no
  11461. else
  11462. if test -n "${with_target_subdir}"; then
  11463. # When built as a GCC target library, we can't do a link test.
  11464. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11465. /* end confdefs.h. */
  11466. #include <sys/ldr.h>
  11467. _ACEOF
  11468. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11469. $EGREP "loadquery" >/dev/null 2>&1; then :
  11470. have_loadquery=yes
  11471. else
  11472. have_loadquery=no
  11473. fi
  11474. rm -f conftest*
  11475. else
  11476. ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
  11477. if test "x$ac_cv_func_loadquery" = xyes; then :
  11478. have_loadquery=yes
  11479. else
  11480. have_loadquery=no
  11481. fi
  11482. fi
  11483. fi
  11484. if test "$have_loadquery" = "yes"; then
  11485. $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
  11486. fi
  11487. # Check for the fcntl function.
  11488. if test -n "${with_target_subdir}"; then
  11489. case "${host}" in
  11490. *-*-mingw*) have_fcntl=no ;;
  11491. *) have_fcntl=yes ;;
  11492. esac
  11493. else
  11494. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  11495. if test "x$ac_cv_func_fcntl" = xyes; then :
  11496. have_fcntl=yes
  11497. else
  11498. have_fcntl=no
  11499. fi
  11500. fi
  11501. if test "$have_fcntl" = "yes"; then
  11502. $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
  11503. fi
  11504. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  11505. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  11506. ac_have_decl=1
  11507. else
  11508. ac_have_decl=0
  11509. fi
  11510. cat >>confdefs.h <<_ACEOF
  11511. #define HAVE_DECL_STRNLEN $ac_have_decl
  11512. _ACEOF
  11513. ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
  11514. if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
  11515. ac_have_decl=1
  11516. else
  11517. ac_have_decl=0
  11518. fi
  11519. cat >>confdefs.h <<_ACEOF
  11520. #define HAVE_DECL_GETPAGESIZE $ac_have_decl
  11521. _ACEOF
  11522. for ac_func in lstat readlink
  11523. do :
  11524. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11525. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11526. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11527. cat >>confdefs.h <<_ACEOF
  11528. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11529. _ACEOF
  11530. fi
  11531. done
  11532. # Check for getexecname function.
  11533. if test -n "${with_target_subdir}"; then
  11534. case "${host}" in
  11535. *-*-solaris2*) have_getexecname=yes ;;
  11536. *) have_getexecname=no ;;
  11537. esac
  11538. else
  11539. ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
  11540. if test "x$ac_cv_func_getexecname" = xyes; then :
  11541. have_getexecname=yes
  11542. else
  11543. have_getexecname=no
  11544. fi
  11545. fi
  11546. if test "$have_getexecname" = "yes"; then
  11547. $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
  11548. fi
  11549. # Check for sysctl definitions.
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
  11551. $as_echo_n "checking for KERN_PROC... " >&6; }
  11552. if ${libbacktrace_cv_proc+:} false; then :
  11553. $as_echo_n "(cached) " >&6
  11554. else
  11555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11556. /* end confdefs.h. */
  11557. #include <sys/types.h>
  11558. #include <sys/sysctl.h>
  11559. int
  11560. main ()
  11561. {
  11562. int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
  11563. ;
  11564. return 0;
  11565. }
  11566. _ACEOF
  11567. if ac_fn_c_try_compile "$LINENO"; then :
  11568. libbacktrace_cv_proc=yes
  11569. else
  11570. libbacktrace_cv_proc=no
  11571. fi
  11572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11573. fi
  11574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
  11575. $as_echo "$libbacktrace_cv_proc" >&6; }
  11576. if test "$libbacktrace_cv_proc" = "yes"; then
  11577. $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
  11578. fi
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
  11580. $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
  11581. if ${libbacktrace_cv_procargs+:} false; then :
  11582. $as_echo_n "(cached) " >&6
  11583. else
  11584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11585. /* end confdefs.h. */
  11586. #include <sys/types.h>
  11587. #include <sys/sysctl.h>
  11588. int
  11589. main ()
  11590. {
  11591. int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
  11592. ;
  11593. return 0;
  11594. }
  11595. _ACEOF
  11596. if ac_fn_c_try_compile "$LINENO"; then :
  11597. libbacktrace_cv_procargs=yes
  11598. else
  11599. libbacktrace_cv_procargs=no
  11600. fi
  11601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11602. fi
  11603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
  11604. $as_echo "$libbacktrace_cv_procargs" >&6; }
  11605. if test "$libbacktrace_cv_procargs" = "yes"; then
  11606. $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
  11607. fi
  11608. # Check for the clock_gettime function.
  11609. for ac_func in clock_gettime
  11610. do :
  11611. ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  11612. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  11613. cat >>confdefs.h <<_ACEOF
  11614. #define HAVE_CLOCK_GETTIME 1
  11615. _ACEOF
  11616. fi
  11617. done
  11618. clock_gettime_link=
  11619. # At least for glibc, clock_gettime is in librt. But don't
  11620. # pull that in if it still doesn't give us the function we want. This
  11621. # test is copied from libgomp, and modified to not link in -lrt as
  11622. # we're using this for test timing only.
  11623. if test "$ac_cv_func_clock_gettime" = no; then
  11624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
  11625. $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
  11626. if ${ac_cv_lib_rt_clock_gettime+:} false; then :
  11627. $as_echo_n "(cached) " >&6
  11628. else
  11629. ac_check_lib_save_LIBS=$LIBS
  11630. LIBS="-lrt $LIBS"
  11631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11632. /* end confdefs.h. */
  11633. /* Override any GCC internal prototype to avoid an error.
  11634. Use char because int might match the return type of a GCC
  11635. builtin and then its argument prototype would still apply. */
  11636. #ifdef __cplusplus
  11637. extern "C"
  11638. #endif
  11639. char clock_gettime ();
  11640. int
  11641. main ()
  11642. {
  11643. return clock_gettime ();
  11644. ;
  11645. return 0;
  11646. }
  11647. _ACEOF
  11648. if ac_fn_c_try_link "$LINENO"; then :
  11649. ac_cv_lib_rt_clock_gettime=yes
  11650. else
  11651. ac_cv_lib_rt_clock_gettime=no
  11652. fi
  11653. rm -f core conftest.err conftest.$ac_objext \
  11654. conftest$ac_exeext conftest.$ac_ext
  11655. LIBS=$ac_check_lib_save_LIBS
  11656. fi
  11657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
  11658. $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
  11659. if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
  11660. CLOCK_GETTIME_LINK=-lrt
  11661. $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
  11662. fi
  11663. fi
  11664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
  11665. $as_echo_n "checking whether -pthread is supported... " >&6; }
  11666. if ${libgo_cv_lib_pthread+:} false; then :
  11667. $as_echo_n "(cached) " >&6
  11668. else
  11669. CFLAGS_hold=$CFLAGS
  11670. CFLAGS="$CFLAGS -pthread"
  11671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11672. /* end confdefs.h. */
  11673. int i;
  11674. _ACEOF
  11675. if ac_fn_c_try_compile "$LINENO"; then :
  11676. libgo_cv_lib_pthread=yes
  11677. else
  11678. libgo_cv_lib_pthread=no
  11679. fi
  11680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11681. CFLAGS=$CFLAGS_hold
  11682. fi
  11683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
  11684. $as_echo "$libgo_cv_lib_pthread" >&6; }
  11685. PTHREAD_CFLAGS=
  11686. if test "$libgo_cv_lib_pthread" = yes; then
  11687. PTHREAD_CFLAGS=-pthread
  11688. fi
  11689. if test "$libgo_cv_lib_pthread" = yes; then
  11690. HAVE_PTHREAD_TRUE=
  11691. HAVE_PTHREAD_FALSE='#'
  11692. else
  11693. HAVE_PTHREAD_TRUE='#'
  11694. HAVE_PTHREAD_FALSE=
  11695. fi
  11696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
  11697. $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
  11698. if ${libbacktrace_cv_lib_dwarf5+:} false; then :
  11699. $as_echo_n "(cached) " >&6
  11700. else
  11701. CFLAGS_hold=$CFLAGS
  11702. CFLAGS="$CFLAGS -gdwarf-5"
  11703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11704. /* end confdefs.h. */
  11705. int i;
  11706. int
  11707. main ()
  11708. {
  11709. return 0;
  11710. ;
  11711. return 0;
  11712. }
  11713. _ACEOF
  11714. if ac_fn_c_try_link "$LINENO"; then :
  11715. libbacktrace_cv_lib_dwarf5=yes
  11716. else
  11717. libbacktrace_cv_lib_dwarf5=no
  11718. fi
  11719. rm -f core conftest.err conftest.$ac_objext \
  11720. conftest$ac_exeext conftest.$ac_ext
  11721. CFLAGS=$CFLAGS_hold
  11722. fi
  11723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
  11724. $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
  11725. if test "$libbacktrace_cv_lib_dwarf5" = yes; then
  11726. HAVE_DWARF5_TRUE=
  11727. HAVE_DWARF5_FALSE='#'
  11728. else
  11729. HAVE_DWARF5_TRUE='#'
  11730. HAVE_DWARF5_FALSE=
  11731. fi
  11732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
  11733. $as_echo_n "checking for compress in -lz... " >&6; }
  11734. if ${ac_cv_lib_z_compress+:} false; then :
  11735. $as_echo_n "(cached) " >&6
  11736. else
  11737. ac_check_lib_save_LIBS=$LIBS
  11738. LIBS="-lz $LIBS"
  11739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11740. /* end confdefs.h. */
  11741. /* Override any GCC internal prototype to avoid an error.
  11742. Use char because int might match the return type of a GCC
  11743. builtin and then its argument prototype would still apply. */
  11744. #ifdef __cplusplus
  11745. extern "C"
  11746. #endif
  11747. char compress ();
  11748. int
  11749. main ()
  11750. {
  11751. return compress ();
  11752. ;
  11753. return 0;
  11754. }
  11755. _ACEOF
  11756. if ac_fn_c_try_link "$LINENO"; then :
  11757. ac_cv_lib_z_compress=yes
  11758. else
  11759. ac_cv_lib_z_compress=no
  11760. fi
  11761. rm -f core conftest.err conftest.$ac_objext \
  11762. conftest$ac_exeext conftest.$ac_ext
  11763. LIBS=$ac_check_lib_save_LIBS
  11764. fi
  11765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
  11766. $as_echo "$ac_cv_lib_z_compress" >&6; }
  11767. if test "x$ac_cv_lib_z_compress" = xyes; then :
  11768. $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
  11769. fi
  11770. if test "$ac_cv_lib_z_compress" = yes; then
  11771. HAVE_ZLIB_TRUE=
  11772. HAVE_ZLIB_FALSE='#'
  11773. else
  11774. HAVE_ZLIB_TRUE='#'
  11775. HAVE_ZLIB_FALSE=
  11776. fi
  11777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
  11778. $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
  11779. if ${libgo_cv_ld_compress+:} false; then :
  11780. $as_echo_n "(cached) " >&6
  11781. else
  11782. LDFLAGS_hold=$LDFLAGS
  11783. LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
  11784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11785. /* end confdefs.h. */
  11786. int
  11787. main ()
  11788. {
  11789. ;
  11790. return 0;
  11791. }
  11792. _ACEOF
  11793. if ac_fn_c_try_link "$LINENO"; then :
  11794. libgo_cv_ld_compress=yes
  11795. else
  11796. libgo_cv_ld_compress=no
  11797. fi
  11798. rm -f core conftest.err conftest.$ac_objext \
  11799. conftest$ac_exeext conftest.$ac_ext
  11800. LDFLAGS=$LDFLAGS_hold
  11801. fi
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
  11803. $as_echo "$libgo_cv_ld_compress" >&6; }
  11804. if test "$libgo_cv_ld_compress" = yes; then
  11805. HAVE_COMPRESSED_DEBUG_TRUE=
  11806. HAVE_COMPRESSED_DEBUG_FALSE='#'
  11807. else
  11808. HAVE_COMPRESSED_DEBUG_TRUE='#'
  11809. HAVE_COMPRESSED_DEBUG_FALSE=
  11810. fi
  11811. # Extract the first word of "objcopy", so it can be a program name with args.
  11812. set dummy objcopy; ac_word=$2
  11813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11814. $as_echo_n "checking for $ac_word... " >&6; }
  11815. if ${ac_cv_prog_OBJCOPY+:} false; then :
  11816. $as_echo_n "(cached) " >&6
  11817. else
  11818. if test -n "$OBJCOPY"; then
  11819. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  11820. else
  11821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11822. for as_dir in $PATH
  11823. do
  11824. IFS=$as_save_IFS
  11825. test -z "$as_dir" && as_dir=.
  11826. for ac_exec_ext in '' $ac_executable_extensions; do
  11827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11828. ac_cv_prog_OBJCOPY="objcopy"
  11829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11830. break 2
  11831. fi
  11832. done
  11833. done
  11834. IFS=$as_save_IFS
  11835. fi
  11836. fi
  11837. OBJCOPY=$ac_cv_prog_OBJCOPY
  11838. if test -n "$OBJCOPY"; then
  11839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  11840. $as_echo "$OBJCOPY" >&6; }
  11841. else
  11842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11843. $as_echo "no" >&6; }
  11844. fi
  11845. # Extract the first word of "readelf", so it can be a program name with args.
  11846. set dummy readelf; ac_word=$2
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11848. $as_echo_n "checking for $ac_word... " >&6; }
  11849. if ${ac_cv_prog_READELF+:} false; then :
  11850. $as_echo_n "(cached) " >&6
  11851. else
  11852. if test -n "$READELF"; then
  11853. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  11854. else
  11855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11856. for as_dir in $PATH
  11857. do
  11858. IFS=$as_save_IFS
  11859. test -z "$as_dir" && as_dir=.
  11860. for ac_exec_ext in '' $ac_executable_extensions; do
  11861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11862. ac_cv_prog_READELF="readelf"
  11863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11864. break 2
  11865. fi
  11866. done
  11867. done
  11868. IFS=$as_save_IFS
  11869. fi
  11870. fi
  11871. READELF=$ac_cv_prog_READELF
  11872. if test -n "$READELF"; then
  11873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  11874. $as_echo "$READELF" >&6; }
  11875. else
  11876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11877. $as_echo "no" >&6; }
  11878. fi
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
  11880. $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
  11881. if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
  11882. $as_echo_n "(cached) " >&6
  11883. else
  11884. if test -n "${with_target_subdir}"; then
  11885. libbacktrace_cv_objcopy_debuglink=no
  11886. elif ! test -n "${OBJCOPY}"; then
  11887. libbacktrace_cv_objcopy_debuglink=no
  11888. elif ${OBJCOPY} --help | fgrep add-gnu-debuglink >/dev/null 2>&1; then
  11889. libbacktrace_cv_objcopy_debuglink=yes
  11890. else
  11891. libbacktrace_cv_objcopy_debuglink=no
  11892. fi
  11893. fi
  11894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
  11895. $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
  11896. if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
  11897. HAVE_OBJCOPY_DEBUGLINK_TRUE=
  11898. HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
  11899. else
  11900. HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
  11901. HAVE_OBJCOPY_DEBUGLINK_FALSE=
  11902. fi
  11903. # Extract the first word of "dsymutil", so it can be a program name with args.
  11904. set dummy dsymutil; ac_word=$2
  11905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11906. $as_echo_n "checking for $ac_word... " >&6; }
  11907. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  11908. $as_echo_n "(cached) " >&6
  11909. else
  11910. if test -n "$DSYMUTIL"; then
  11911. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11912. else
  11913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11914. for as_dir in $PATH
  11915. do
  11916. IFS=$as_save_IFS
  11917. test -z "$as_dir" && as_dir=.
  11918. for ac_exec_ext in '' $ac_executable_extensions; do
  11919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11920. ac_cv_prog_DSYMUTIL="dsymutil"
  11921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11922. break 2
  11923. fi
  11924. done
  11925. done
  11926. IFS=$as_save_IFS
  11927. fi
  11928. fi
  11929. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11930. if test -n "$DSYMUTIL"; then
  11931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11932. $as_echo "$DSYMUTIL" >&6; }
  11933. else
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11935. $as_echo "no" >&6; }
  11936. fi
  11937. if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
  11938. USE_DSYMUTIL_TRUE=
  11939. USE_DSYMUTIL_FALSE='#'
  11940. else
  11941. USE_DSYMUTIL_TRUE='#'
  11942. USE_DSYMUTIL_FALSE=
  11943. fi
  11944. # Extract the first word of "nm", so it can be a program name with args.
  11945. set dummy nm; ac_word=$2
  11946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11947. $as_echo_n "checking for $ac_word... " >&6; }
  11948. if ${ac_cv_prog_NM+:} false; then :
  11949. $as_echo_n "(cached) " >&6
  11950. else
  11951. if test -n "$NM"; then
  11952. ac_cv_prog_NM="$NM" # Let the user override the test.
  11953. else
  11954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11955. for as_dir in $PATH
  11956. do
  11957. IFS=$as_save_IFS
  11958. test -z "$as_dir" && as_dir=.
  11959. for ac_exec_ext in '' $ac_executable_extensions; do
  11960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11961. ac_cv_prog_NM="nm"
  11962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11963. break 2
  11964. fi
  11965. done
  11966. done
  11967. IFS=$as_save_IFS
  11968. fi
  11969. fi
  11970. NM=$ac_cv_prog_NM
  11971. if test -n "$NM"; then
  11972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  11973. $as_echo "$NM" >&6; }
  11974. else
  11975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11976. $as_echo "no" >&6; }
  11977. fi
  11978. # Extract the first word of "xz", so it can be a program name with args.
  11979. set dummy xz; ac_word=$2
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11981. $as_echo_n "checking for $ac_word... " >&6; }
  11982. if ${ac_cv_prog_XZ+:} false; then :
  11983. $as_echo_n "(cached) " >&6
  11984. else
  11985. if test -n "$XZ"; then
  11986. ac_cv_prog_XZ="$XZ" # Let the user override the test.
  11987. else
  11988. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11989. for as_dir in $PATH
  11990. do
  11991. IFS=$as_save_IFS
  11992. test -z "$as_dir" && as_dir=.
  11993. for ac_exec_ext in '' $ac_executable_extensions; do
  11994. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11995. ac_cv_prog_XZ="xz"
  11996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11997. break 2
  11998. fi
  11999. done
  12000. done
  12001. IFS=$as_save_IFS
  12002. fi
  12003. fi
  12004. XZ=$ac_cv_prog_XZ
  12005. if test -n "$XZ"; then
  12006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
  12007. $as_echo "$XZ" >&6; }
  12008. else
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12010. $as_echo "no" >&6; }
  12011. fi
  12012. if test "$XZ" != ""; then
  12013. HAVE_XZ_TRUE=
  12014. HAVE_XZ_FALSE='#'
  12015. else
  12016. HAVE_XZ_TRUE='#'
  12017. HAVE_XZ_FALSE=
  12018. fi
  12019. # Extract the first word of "comm", so it can be a program name with args.
  12020. set dummy comm; ac_word=$2
  12021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12022. $as_echo_n "checking for $ac_word... " >&6; }
  12023. if ${ac_cv_prog_COMM+:} false; then :
  12024. $as_echo_n "(cached) " >&6
  12025. else
  12026. if test -n "$COMM"; then
  12027. ac_cv_prog_COMM="$COMM" # Let the user override the test.
  12028. else
  12029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12030. for as_dir in $PATH
  12031. do
  12032. IFS=$as_save_IFS
  12033. test -z "$as_dir" && as_dir=.
  12034. for ac_exec_ext in '' $ac_executable_extensions; do
  12035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12036. ac_cv_prog_COMM="comm"
  12037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12038. break 2
  12039. fi
  12040. done
  12041. done
  12042. IFS=$as_save_IFS
  12043. fi
  12044. fi
  12045. COMM=$ac_cv_prog_COMM
  12046. if test -n "$COMM"; then
  12047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
  12048. $as_echo "$COMM" >&6; }
  12049. else
  12050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12051. $as_echo "no" >&6; }
  12052. fi
  12053. if test "$COMM" != ""; then
  12054. HAVE_COMM_TRUE=
  12055. HAVE_COMM_FALSE='#'
  12056. else
  12057. HAVE_COMM_TRUE='#'
  12058. HAVE_COMM_FALSE=
  12059. fi
  12060. if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
  12061. HAVE_MINIDEBUG_TRUE=
  12062. HAVE_MINIDEBUG_FALSE='#'
  12063. else
  12064. HAVE_MINIDEBUG_TRUE='#'
  12065. HAVE_MINIDEBUG_FALSE=
  12066. fi
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
  12068. $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
  12069. if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
  12070. $as_echo_n "(cached) " >&6
  12071. else
  12072. ac_check_lib_save_LIBS=$LIBS
  12073. LIBS="-llzma $LIBS"
  12074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12075. /* end confdefs.h. */
  12076. /* Override any GCC internal prototype to avoid an error.
  12077. Use char because int might match the return type of a GCC
  12078. builtin and then its argument prototype would still apply. */
  12079. #ifdef __cplusplus
  12080. extern "C"
  12081. #endif
  12082. char lzma_auto_decoder ();
  12083. int
  12084. main ()
  12085. {
  12086. return lzma_auto_decoder ();
  12087. ;
  12088. return 0;
  12089. }
  12090. _ACEOF
  12091. if ac_fn_c_try_link "$LINENO"; then :
  12092. ac_cv_lib_lzma_lzma_auto_decoder=yes
  12093. else
  12094. ac_cv_lib_lzma_lzma_auto_decoder=no
  12095. fi
  12096. rm -f core conftest.err conftest.$ac_objext \
  12097. conftest$ac_exeext conftest.$ac_ext
  12098. LIBS=$ac_check_lib_save_LIBS
  12099. fi
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
  12101. $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
  12102. if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
  12103. $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
  12104. fi
  12105. if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
  12106. HAVE_LIBLZMA_TRUE=
  12107. HAVE_LIBLZMA_FALSE='#'
  12108. else
  12109. HAVE_LIBLZMA_TRUE='#'
  12110. HAVE_LIBLZMA_FALSE=
  12111. fi
  12112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
  12113. $as_echo_n "checking whether tests can run... " >&6; }
  12114. if ${libbacktrace_cv_sys_native+:} false; then :
  12115. $as_echo_n "(cached) " >&6
  12116. else
  12117. if test "$cross_compiling" = yes; then :
  12118. libbacktrace_cv_sys_native=no
  12119. else
  12120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12121. /* end confdefs.h. */
  12122. int
  12123. main ()
  12124. {
  12125. return 0;
  12126. ;
  12127. return 0;
  12128. }
  12129. _ACEOF
  12130. if ac_fn_c_try_run "$LINENO"; then :
  12131. libbacktrace_cv_sys_native=yes
  12132. else
  12133. libbacktrace_cv_sys_native=no
  12134. fi
  12135. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12136. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12137. fi
  12138. fi
  12139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
  12140. $as_echo "$libbacktrace_cv_sys_native" >&6; }
  12141. if test "$libbacktrace_cv_sys_native" = "yes"; then
  12142. NATIVE_TRUE=
  12143. NATIVE_FALSE='#'
  12144. else
  12145. NATIVE_TRUE='#'
  12146. NATIVE_FALSE=
  12147. fi
  12148. if test "${multilib}" = "yes"; then
  12149. multilib_arg="--enable-multilib"
  12150. else
  12151. multilib_arg=
  12152. fi
  12153. ac_config_files="$ac_config_files Makefile backtrace-supported.h"
  12154. ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
  12155. # We need multilib support, but only if configuring for the target.
  12156. ac_config_commands="$ac_config_commands default"
  12157. cat >confcache <<\_ACEOF
  12158. # This file is a shell script that caches the results of configure
  12159. # tests run on this system so they can be shared between configure
  12160. # scripts and configure runs, see configure's option --config-cache.
  12161. # It is not useful on other systems. If it contains results you don't
  12162. # want to keep, you may remove or edit it.
  12163. #
  12164. # config.status only pays attention to the cache file if you give it
  12165. # the --recheck option to rerun configure.
  12166. #
  12167. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12168. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12169. # following values.
  12170. _ACEOF
  12171. # The following way of writing the cache mishandles newlines in values,
  12172. # but we know of no workaround that is simple, portable, and efficient.
  12173. # So, we kill variables containing newlines.
  12174. # Ultrix sh set writes to stderr and can't be redirected directly,
  12175. # and sets the high bit in the cache file unless we assign to the vars.
  12176. (
  12177. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12178. eval ac_val=\$$ac_var
  12179. case $ac_val in #(
  12180. *${as_nl}*)
  12181. case $ac_var in #(
  12182. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12183. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12184. esac
  12185. case $ac_var in #(
  12186. _ | IFS | as_nl) ;; #(
  12187. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12188. *) { eval $ac_var=; unset $ac_var;} ;;
  12189. esac ;;
  12190. esac
  12191. done
  12192. (set) 2>&1 |
  12193. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12194. *${as_nl}ac_space=\ *)
  12195. # `set' does not quote correctly, so add quotes: double-quote
  12196. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12197. sed -n \
  12198. "s/'/'\\\\''/g;
  12199. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12200. ;; #(
  12201. *)
  12202. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12203. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12204. ;;
  12205. esac |
  12206. sort
  12207. ) |
  12208. sed '
  12209. /^ac_cv_env_/b end
  12210. t clear
  12211. :clear
  12212. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12213. t end
  12214. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12215. :end' >>confcache
  12216. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12217. if test -w "$cache_file"; then
  12218. if test "x$cache_file" != "x/dev/null"; then
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12220. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12221. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12222. cat confcache >"$cache_file"
  12223. else
  12224. case $cache_file in #(
  12225. */* | ?:*)
  12226. mv -f confcache "$cache_file"$$ &&
  12227. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12228. *)
  12229. mv -f confcache "$cache_file" ;;
  12230. esac
  12231. fi
  12232. fi
  12233. else
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12235. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12236. fi
  12237. fi
  12238. rm -f confcache
  12239. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12240. # Let make expand exec_prefix.
  12241. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12242. DEFS=-DHAVE_CONFIG_H
  12243. ac_libobjs=
  12244. ac_ltlibobjs=
  12245. U=
  12246. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12247. # 1. Remove the extension, and $U if already installed.
  12248. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12249. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12250. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12251. # will be set to the directory where LIBOBJS objects are built.
  12252. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12253. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12254. done
  12255. LIBOBJS=$ac_libobjs
  12256. LTLIBOBJS=$ac_ltlibobjs
  12257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12258. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12259. if test -n "$am_sleep_pid"; then
  12260. # Hide warnings about reused PIDs.
  12261. wait $am_sleep_pid 2>/dev/null
  12262. fi
  12263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12264. $as_echo "done" >&6; }
  12265. if test -n "$EXEEXT"; then
  12266. am__EXEEXT_TRUE=
  12267. am__EXEEXT_FALSE='#'
  12268. else
  12269. am__EXEEXT_TRUE='#'
  12270. am__EXEEXT_FALSE=
  12271. fi
  12272. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  12273. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  12274. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12275. fi
  12276. if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
  12277. as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
  12278. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12279. fi
  12280. if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
  12281. as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
  12282. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12283. fi
  12284. if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
  12285. as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
  12286. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12287. fi
  12288. if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
  12289. as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
  12290. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12291. fi
  12292. if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
  12293. as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
  12294. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12295. fi
  12296. if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
  12297. as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
  12298. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12299. fi
  12300. if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
  12301. as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
  12302. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12303. fi
  12304. if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
  12305. as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
  12306. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12307. fi
  12308. if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
  12309. as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
  12310. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12311. fi
  12312. if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
  12313. as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
  12314. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12315. fi
  12316. if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
  12317. as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
  12318. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12319. fi
  12320. if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
  12321. as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
  12322. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12323. fi
  12324. if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
  12325. as_fn_error $? "conditional \"NATIVE\" was never defined.
  12326. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12327. fi
  12328. : "${CONFIG_STATUS=./config.status}"
  12329. ac_write_fail=0
  12330. ac_clean_files_save=$ac_clean_files
  12331. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12333. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12334. as_write_fail=0
  12335. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12336. #! $SHELL
  12337. # Generated by $as_me.
  12338. # Run this file to recreate the current configuration.
  12339. # Compiler output produced by configure, useful for debugging
  12340. # configure, is in config.log if it exists.
  12341. debug=false
  12342. ac_cs_recheck=false
  12343. ac_cs_silent=false
  12344. SHELL=\${CONFIG_SHELL-$SHELL}
  12345. export SHELL
  12346. _ASEOF
  12347. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12348. ## -------------------- ##
  12349. ## M4sh Initialization. ##
  12350. ## -------------------- ##
  12351. # Be more Bourne compatible
  12352. DUALCASE=1; export DUALCASE # for MKS sh
  12353. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12354. emulate sh
  12355. NULLCMD=:
  12356. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12357. # is contrary to our usage. Disable this feature.
  12358. alias -g '${1+"$@"}'='"$@"'
  12359. setopt NO_GLOB_SUBST
  12360. else
  12361. case `(set -o) 2>/dev/null` in #(
  12362. *posix*) :
  12363. set -o posix ;; #(
  12364. *) :
  12365. ;;
  12366. esac
  12367. fi
  12368. as_nl='
  12369. '
  12370. export as_nl
  12371. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12372. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12373. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12374. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12375. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12376. # but without wasting forks for bash or zsh.
  12377. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12378. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12379. as_echo='print -r --'
  12380. as_echo_n='print -rn --'
  12381. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12382. as_echo='printf %s\n'
  12383. as_echo_n='printf %s'
  12384. else
  12385. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12386. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12387. as_echo_n='/usr/ucb/echo -n'
  12388. else
  12389. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12390. as_echo_n_body='eval
  12391. arg=$1;
  12392. case $arg in #(
  12393. *"$as_nl"*)
  12394. expr "X$arg" : "X\\(.*\\)$as_nl";
  12395. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12396. esac;
  12397. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12398. '
  12399. export as_echo_n_body
  12400. as_echo_n='sh -c $as_echo_n_body as_echo'
  12401. fi
  12402. export as_echo_body
  12403. as_echo='sh -c $as_echo_body as_echo'
  12404. fi
  12405. # The user is always right.
  12406. if test "${PATH_SEPARATOR+set}" != set; then
  12407. PATH_SEPARATOR=:
  12408. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12409. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12410. PATH_SEPARATOR=';'
  12411. }
  12412. fi
  12413. # IFS
  12414. # We need space, tab and new line, in precisely that order. Quoting is
  12415. # there to prevent editors from complaining about space-tab.
  12416. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12417. # splitting by setting IFS to empty value.)
  12418. IFS=" "" $as_nl"
  12419. # Find who we are. Look in the path if we contain no directory separator.
  12420. as_myself=
  12421. case $0 in #((
  12422. *[\\/]* ) as_myself=$0 ;;
  12423. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12424. for as_dir in $PATH
  12425. do
  12426. IFS=$as_save_IFS
  12427. test -z "$as_dir" && as_dir=.
  12428. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12429. done
  12430. IFS=$as_save_IFS
  12431. ;;
  12432. esac
  12433. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12434. # in which case we are not to be found in the path.
  12435. if test "x$as_myself" = x; then
  12436. as_myself=$0
  12437. fi
  12438. if test ! -f "$as_myself"; then
  12439. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12440. exit 1
  12441. fi
  12442. # Unset variables that we do not need and which cause bugs (e.g. in
  12443. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12444. # suppresses any "Segmentation fault" message there. '((' could
  12445. # trigger a bug in pdksh 5.2.14.
  12446. for as_var in BASH_ENV ENV MAIL MAILPATH
  12447. do eval test x\${$as_var+set} = xset \
  12448. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12449. done
  12450. PS1='$ '
  12451. PS2='> '
  12452. PS4='+ '
  12453. # NLS nuisances.
  12454. LC_ALL=C
  12455. export LC_ALL
  12456. LANGUAGE=C
  12457. export LANGUAGE
  12458. # CDPATH.
  12459. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12460. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12461. # ----------------------------------------
  12462. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12463. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12464. # script with STATUS, using 1 if that was 0.
  12465. as_fn_error ()
  12466. {
  12467. as_status=$1; test $as_status -eq 0 && as_status=1
  12468. if test "$4"; then
  12469. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12470. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12471. fi
  12472. $as_echo "$as_me: error: $2" >&2
  12473. as_fn_exit $as_status
  12474. } # as_fn_error
  12475. # as_fn_set_status STATUS
  12476. # -----------------------
  12477. # Set $? to STATUS, without forking.
  12478. as_fn_set_status ()
  12479. {
  12480. return $1
  12481. } # as_fn_set_status
  12482. # as_fn_exit STATUS
  12483. # -----------------
  12484. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12485. as_fn_exit ()
  12486. {
  12487. set +e
  12488. as_fn_set_status $1
  12489. exit $1
  12490. } # as_fn_exit
  12491. # as_fn_unset VAR
  12492. # ---------------
  12493. # Portably unset VAR.
  12494. as_fn_unset ()
  12495. {
  12496. { eval $1=; unset $1;}
  12497. }
  12498. as_unset=as_fn_unset
  12499. # as_fn_append VAR VALUE
  12500. # ----------------------
  12501. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12502. # advantage of any shell optimizations that allow amortized linear growth over
  12503. # repeated appends, instead of the typical quadratic growth present in naive
  12504. # implementations.
  12505. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12506. eval 'as_fn_append ()
  12507. {
  12508. eval $1+=\$2
  12509. }'
  12510. else
  12511. as_fn_append ()
  12512. {
  12513. eval $1=\$$1\$2
  12514. }
  12515. fi # as_fn_append
  12516. # as_fn_arith ARG...
  12517. # ------------------
  12518. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12519. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12520. # must be portable across $(()) and expr.
  12521. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12522. eval 'as_fn_arith ()
  12523. {
  12524. as_val=$(( $* ))
  12525. }'
  12526. else
  12527. as_fn_arith ()
  12528. {
  12529. as_val=`expr "$@" || test $? -eq 1`
  12530. }
  12531. fi # as_fn_arith
  12532. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12533. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12534. as_expr=expr
  12535. else
  12536. as_expr=false
  12537. fi
  12538. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12539. as_basename=basename
  12540. else
  12541. as_basename=false
  12542. fi
  12543. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12544. as_dirname=dirname
  12545. else
  12546. as_dirname=false
  12547. fi
  12548. as_me=`$as_basename -- "$0" ||
  12549. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12550. X"$0" : 'X\(//\)$' \| \
  12551. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12552. $as_echo X/"$0" |
  12553. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12554. s//\1/
  12555. q
  12556. }
  12557. /^X\/\(\/\/\)$/{
  12558. s//\1/
  12559. q
  12560. }
  12561. /^X\/\(\/\).*/{
  12562. s//\1/
  12563. q
  12564. }
  12565. s/.*/./; q'`
  12566. # Avoid depending upon Character Ranges.
  12567. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12568. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12569. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12570. as_cr_digits='0123456789'
  12571. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12572. ECHO_C= ECHO_N= ECHO_T=
  12573. case `echo -n x` in #(((((
  12574. -n*)
  12575. case `echo 'xy\c'` in
  12576. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12577. xy) ECHO_C='\c';;
  12578. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12579. ECHO_T=' ';;
  12580. esac;;
  12581. *)
  12582. ECHO_N='-n';;
  12583. esac
  12584. rm -f conf$$ conf$$.exe conf$$.file
  12585. if test -d conf$$.dir; then
  12586. rm -f conf$$.dir/conf$$.file
  12587. else
  12588. rm -f conf$$.dir
  12589. mkdir conf$$.dir 2>/dev/null
  12590. fi
  12591. if (echo >conf$$.file) 2>/dev/null; then
  12592. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12593. as_ln_s='ln -s'
  12594. # ... but there are two gotchas:
  12595. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12596. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12597. # In both cases, we have to default to `cp -pR'.
  12598. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12599. as_ln_s='cp -pR'
  12600. elif ln conf$$.file conf$$ 2>/dev/null; then
  12601. as_ln_s=ln
  12602. else
  12603. as_ln_s='cp -pR'
  12604. fi
  12605. else
  12606. as_ln_s='cp -pR'
  12607. fi
  12608. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12609. rmdir conf$$.dir 2>/dev/null
  12610. # as_fn_mkdir_p
  12611. # -------------
  12612. # Create "$as_dir" as a directory, including parents if necessary.
  12613. as_fn_mkdir_p ()
  12614. {
  12615. case $as_dir in #(
  12616. -*) as_dir=./$as_dir;;
  12617. esac
  12618. test -d "$as_dir" || eval $as_mkdir_p || {
  12619. as_dirs=
  12620. while :; do
  12621. case $as_dir in #(
  12622. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12623. *) as_qdir=$as_dir;;
  12624. esac
  12625. as_dirs="'$as_qdir' $as_dirs"
  12626. as_dir=`$as_dirname -- "$as_dir" ||
  12627. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12628. X"$as_dir" : 'X\(//\)[^/]' \| \
  12629. X"$as_dir" : 'X\(//\)$' \| \
  12630. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12631. $as_echo X"$as_dir" |
  12632. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12633. s//\1/
  12634. q
  12635. }
  12636. /^X\(\/\/\)[^/].*/{
  12637. s//\1/
  12638. q
  12639. }
  12640. /^X\(\/\/\)$/{
  12641. s//\1/
  12642. q
  12643. }
  12644. /^X\(\/\).*/{
  12645. s//\1/
  12646. q
  12647. }
  12648. s/.*/./; q'`
  12649. test -d "$as_dir" && break
  12650. done
  12651. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12652. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12653. } # as_fn_mkdir_p
  12654. if mkdir -p . 2>/dev/null; then
  12655. as_mkdir_p='mkdir -p "$as_dir"'
  12656. else
  12657. test -d ./-p && rmdir ./-p
  12658. as_mkdir_p=false
  12659. fi
  12660. # as_fn_executable_p FILE
  12661. # -----------------------
  12662. # Test if FILE is an executable regular file.
  12663. as_fn_executable_p ()
  12664. {
  12665. test -f "$1" && test -x "$1"
  12666. } # as_fn_executable_p
  12667. as_test_x='test -x'
  12668. as_executable_p=as_fn_executable_p
  12669. # Sed expression to map a string onto a valid CPP name.
  12670. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12671. # Sed expression to map a string onto a valid variable name.
  12672. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12673. exec 6>&1
  12674. ## ----------------------------------- ##
  12675. ## Main body of $CONFIG_STATUS script. ##
  12676. ## ----------------------------------- ##
  12677. _ASEOF
  12678. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12679. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12680. # Save the log message, to keep $0 and so on meaningful, and to
  12681. # report actual input values of CONFIG_FILES etc. instead of their
  12682. # values after options handling.
  12683. ac_log="
  12684. This file was extended by package-unused $as_me version-unused, which was
  12685. generated by GNU Autoconf 2.69. Invocation command line was
  12686. CONFIG_FILES = $CONFIG_FILES
  12687. CONFIG_HEADERS = $CONFIG_HEADERS
  12688. CONFIG_LINKS = $CONFIG_LINKS
  12689. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12690. $ $0 $@
  12691. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12692. "
  12693. _ACEOF
  12694. case $ac_config_files in *"
  12695. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12696. esac
  12697. case $ac_config_headers in *"
  12698. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12699. esac
  12700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12701. # Files that config.status was made for.
  12702. config_files="$ac_config_files"
  12703. config_headers="$ac_config_headers"
  12704. config_commands="$ac_config_commands"
  12705. _ACEOF
  12706. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12707. ac_cs_usage="\
  12708. \`$as_me' instantiates files and other configuration actions
  12709. from templates according to the current configuration. Unless the files
  12710. and actions are specified as TAGs, all are instantiated by default.
  12711. Usage: $0 [OPTION]... [TAG]...
  12712. -h, --help print this help, then exit
  12713. -V, --version print version number and configuration settings, then exit
  12714. --config print configuration, then exit
  12715. -q, --quiet, --silent
  12716. do not print progress messages
  12717. -d, --debug don't remove temporary files
  12718. --recheck update $as_me by reconfiguring in the same conditions
  12719. --file=FILE[:TEMPLATE]
  12720. instantiate the configuration file FILE
  12721. --header=FILE[:TEMPLATE]
  12722. instantiate the configuration header FILE
  12723. Configuration files:
  12724. $config_files
  12725. Configuration headers:
  12726. $config_headers
  12727. Configuration commands:
  12728. $config_commands
  12729. Report bugs to the package provider."
  12730. _ACEOF
  12731. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12732. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12733. ac_cs_version="\\
  12734. package-unused config.status version-unused
  12735. configured by $0, generated by GNU Autoconf 2.69,
  12736. with options \\"\$ac_cs_config\\"
  12737. Copyright (C) 2012 Free Software Foundation, Inc.
  12738. This config.status script is free software; the Free Software Foundation
  12739. gives unlimited permission to copy, distribute and modify it."
  12740. ac_pwd='$ac_pwd'
  12741. srcdir='$srcdir'
  12742. INSTALL='$INSTALL'
  12743. MKDIR_P='$MKDIR_P'
  12744. AWK='$AWK'
  12745. test -n "\$AWK" || AWK=awk
  12746. _ACEOF
  12747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12748. # The default lists apply if the user does not specify any file.
  12749. ac_need_defaults=:
  12750. while test $# != 0
  12751. do
  12752. case $1 in
  12753. --*=?*)
  12754. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12755. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12756. ac_shift=:
  12757. ;;
  12758. --*=)
  12759. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12760. ac_optarg=
  12761. ac_shift=:
  12762. ;;
  12763. *)
  12764. ac_option=$1
  12765. ac_optarg=$2
  12766. ac_shift=shift
  12767. ;;
  12768. esac
  12769. case $ac_option in
  12770. # Handling of the options.
  12771. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12772. ac_cs_recheck=: ;;
  12773. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12774. $as_echo "$ac_cs_version"; exit ;;
  12775. --config | --confi | --conf | --con | --co | --c )
  12776. $as_echo "$ac_cs_config"; exit ;;
  12777. --debug | --debu | --deb | --de | --d | -d )
  12778. debug=: ;;
  12779. --file | --fil | --fi | --f )
  12780. $ac_shift
  12781. case $ac_optarg in
  12782. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12783. '') as_fn_error $? "missing file argument" ;;
  12784. esac
  12785. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12786. ac_need_defaults=false;;
  12787. --header | --heade | --head | --hea )
  12788. $ac_shift
  12789. case $ac_optarg in
  12790. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12791. esac
  12792. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  12793. ac_need_defaults=false;;
  12794. --he | --h)
  12795. # Conflict between --help and --header
  12796. as_fn_error $? "ambiguous option: \`$1'
  12797. Try \`$0 --help' for more information.";;
  12798. --help | --hel | -h )
  12799. $as_echo "$ac_cs_usage"; exit ;;
  12800. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12801. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12802. ac_cs_silent=: ;;
  12803. # This is an error.
  12804. -*) as_fn_error $? "unrecognized option: \`$1'
  12805. Try \`$0 --help' for more information." ;;
  12806. *) as_fn_append ac_config_targets " $1"
  12807. ac_need_defaults=false ;;
  12808. esac
  12809. shift
  12810. done
  12811. ac_configure_extra_args=
  12812. if $ac_cs_silent; then
  12813. exec 6>/dev/null
  12814. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12815. fi
  12816. _ACEOF
  12817. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12818. if \$ac_cs_recheck; then
  12819. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12820. shift
  12821. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12822. CONFIG_SHELL='$SHELL'
  12823. export CONFIG_SHELL
  12824. exec "\$@"
  12825. fi
  12826. _ACEOF
  12827. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12828. exec 5>>config.log
  12829. {
  12830. echo
  12831. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12832. ## Running $as_me. ##
  12833. _ASBOX
  12834. $as_echo "$ac_log"
  12835. } >&5
  12836. _ACEOF
  12837. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12838. #
  12839. # INIT-COMMANDS
  12840. #
  12841. srcdir="$srcdir"
  12842. host="$host"
  12843. target="$target"
  12844. with_multisubdir="$with_multisubdir"
  12845. with_multisrctop="$with_multisrctop"
  12846. with_target_subdir="$with_target_subdir"
  12847. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  12848. multi_basedir="$multi_basedir"
  12849. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  12850. CC="$CC"
  12851. CXX="$CXX"
  12852. GFORTRAN="$GFORTRAN"
  12853. GDC="$GDC"
  12854. # The HP-UX ksh and POSIX shell print the target directory to stdout
  12855. # if CDPATH is set.
  12856. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12857. sed_quote_subst='$sed_quote_subst'
  12858. double_quote_subst='$double_quote_subst'
  12859. delay_variable_subst='$delay_variable_subst'
  12860. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  12861. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  12862. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  12863. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  12864. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  12865. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  12866. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  12867. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  12868. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  12869. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  12870. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  12871. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  12872. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  12873. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  12874. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  12875. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  12876. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  12877. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  12878. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  12879. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  12880. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  12881. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  12882. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  12883. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  12884. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  12885. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  12886. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  12887. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  12888. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  12889. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  12890. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  12891. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  12892. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  12893. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  12894. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  12895. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  12896. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  12897. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12898. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12899. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  12900. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  12901. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  12902. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  12903. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  12904. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  12905. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  12906. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  12907. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  12908. 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"`'
  12909. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  12910. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  12911. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  12912. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  12913. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  12914. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  12915. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  12916. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  12917. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  12918. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  12919. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  12920. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  12921. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  12922. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  12923. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  12924. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12925. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  12926. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  12927. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  12928. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  12929. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  12930. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  12931. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  12932. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  12933. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12934. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  12935. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  12936. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  12937. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12938. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  12939. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  12940. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  12941. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  12942. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  12943. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  12944. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  12945. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12946. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  12947. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  12948. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  12949. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  12950. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  12951. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  12952. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  12953. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  12954. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  12955. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  12956. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  12957. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  12958. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  12959. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  12960. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  12961. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  12962. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  12963. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  12964. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  12965. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  12966. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  12967. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  12968. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  12969. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  12970. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  12971. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  12972. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  12973. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  12974. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  12975. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  12976. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  12977. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  12978. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  12979. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  12980. LTCC='$LTCC'
  12981. LTCFLAGS='$LTCFLAGS'
  12982. compiler='$compiler_DEFAULT'
  12983. # A function that is used when there is no print builtin or printf.
  12984. func_fallback_echo ()
  12985. {
  12986. eval 'cat <<_LTECHO_EOF
  12987. \$1
  12988. _LTECHO_EOF'
  12989. }
  12990. # Quote evaled strings.
  12991. for var in SHELL \
  12992. ECHO \
  12993. SED \
  12994. GREP \
  12995. EGREP \
  12996. FGREP \
  12997. LD \
  12998. NM \
  12999. LN_S \
  13000. lt_SP2NL \
  13001. lt_NL2SP \
  13002. reload_flag \
  13003. OBJDUMP \
  13004. deplibs_check_method \
  13005. file_magic_cmd \
  13006. AR \
  13007. AR_FLAGS \
  13008. STRIP \
  13009. RANLIB \
  13010. CC \
  13011. CFLAGS \
  13012. compiler \
  13013. lt_cv_sys_global_symbol_pipe \
  13014. lt_cv_sys_global_symbol_to_cdecl \
  13015. lt_cv_sys_global_symbol_to_c_name_address \
  13016. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13017. lt_prog_compiler_no_builtin_flag \
  13018. lt_prog_compiler_wl \
  13019. lt_prog_compiler_pic \
  13020. lt_prog_compiler_static \
  13021. lt_cv_prog_compiler_c_o \
  13022. need_locks \
  13023. DSYMUTIL \
  13024. NMEDIT \
  13025. LIPO \
  13026. OTOOL \
  13027. OTOOL64 \
  13028. shrext_cmds \
  13029. export_dynamic_flag_spec \
  13030. whole_archive_flag_spec \
  13031. compiler_needs_object \
  13032. with_gnu_ld \
  13033. allow_undefined_flag \
  13034. no_undefined_flag \
  13035. hardcode_libdir_flag_spec \
  13036. hardcode_libdir_flag_spec_ld \
  13037. hardcode_libdir_separator \
  13038. fix_srcfile_path \
  13039. exclude_expsyms \
  13040. include_expsyms \
  13041. file_list_spec \
  13042. variables_saved_for_relink \
  13043. libname_spec \
  13044. library_names_spec \
  13045. soname_spec \
  13046. install_override_mode \
  13047. finish_eval \
  13048. old_striplib \
  13049. striplib; do
  13050. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13051. *[\\\\\\\`\\"\\\$]*)
  13052. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13053. ;;
  13054. *)
  13055. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13056. ;;
  13057. esac
  13058. done
  13059. # Double-quote double-evaled strings.
  13060. for var in reload_cmds \
  13061. old_postinstall_cmds \
  13062. old_postuninstall_cmds \
  13063. old_archive_cmds \
  13064. extract_expsyms_cmds \
  13065. old_archive_from_new_cmds \
  13066. old_archive_from_expsyms_cmds \
  13067. archive_cmds \
  13068. archive_expsym_cmds \
  13069. module_cmds \
  13070. module_expsym_cmds \
  13071. export_symbols_cmds \
  13072. prelink_cmds \
  13073. postinstall_cmds \
  13074. postuninstall_cmds \
  13075. finish_cmds \
  13076. sys_lib_search_path_spec \
  13077. sys_lib_dlsearch_path_spec; do
  13078. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13079. *[\\\\\\\`\\"\\\$]*)
  13080. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13081. ;;
  13082. *)
  13083. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13084. ;;
  13085. esac
  13086. done
  13087. ac_aux_dir='$ac_aux_dir'
  13088. xsi_shell='$xsi_shell'
  13089. lt_shell_append='$lt_shell_append'
  13090. # See if we are running on zsh, and set the options which allow our
  13091. # commands through without removal of \ escapes INIT.
  13092. if test -n "\${ZSH_VERSION+set}" ; then
  13093. setopt NO_GLOB_SUBST
  13094. fi
  13095. PACKAGE='$PACKAGE'
  13096. VERSION='$VERSION'
  13097. TIMESTAMP='$TIMESTAMP'
  13098. RM='$RM'
  13099. ofile='$ofile'
  13100. GCC="$GCC"
  13101. CC="$CC"
  13102. acx_cv_header_stdint="$acx_cv_header_stdint"
  13103. acx_cv_type_int8_t="$acx_cv_type_int8_t"
  13104. acx_cv_type_int16_t="$acx_cv_type_int16_t"
  13105. acx_cv_type_int32_t="$acx_cv_type_int32_t"
  13106. acx_cv_type_int64_t="$acx_cv_type_int64_t"
  13107. acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
  13108. ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
  13109. ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
  13110. ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
  13111. ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
  13112. ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
  13113. ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
  13114. ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
  13115. ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
  13116. # Variables needed in config.status (file generation) which aren't already
  13117. # passed by autoconf.
  13118. SUBDIRS="$SUBDIRS"
  13119. _ACEOF
  13120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13121. # Handling of arguments.
  13122. for ac_config_target in $ac_config_targets
  13123. do
  13124. case $ac_config_target in
  13125. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13126. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  13127. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13128. "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
  13129. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13130. "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
  13131. "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
  13132. "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
  13133. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13134. esac
  13135. done
  13136. # If the user did not use the arguments to specify the items to instantiate,
  13137. # then the envvar interface is used. Set only those that are not.
  13138. # We use the long form for the default assignment because of an extremely
  13139. # bizarre bug on SunOS 4.1.3.
  13140. if $ac_need_defaults; then
  13141. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13142. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13143. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13144. fi
  13145. # Have a temporary directory for convenience. Make it in the build tree
  13146. # simply because there is no reason against having it here, and in addition,
  13147. # creating and moving files from /tmp can sometimes cause problems.
  13148. # Hook for its removal unless debugging.
  13149. # Note that there is a small window in which the directory will not be cleaned:
  13150. # after its creation but before its name has been assigned to `$tmp'.
  13151. $debug ||
  13152. {
  13153. tmp= ac_tmp=
  13154. trap 'exit_status=$?
  13155. : "${ac_tmp:=$tmp}"
  13156. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13157. ' 0
  13158. trap 'as_fn_exit 1' 1 2 13 15
  13159. }
  13160. # Create a (secure) tmp directory for tmp files.
  13161. {
  13162. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13163. test -d "$tmp"
  13164. } ||
  13165. {
  13166. tmp=./conf$$-$RANDOM
  13167. (umask 077 && mkdir "$tmp")
  13168. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13169. ac_tmp=$tmp
  13170. # Set up the scripts for CONFIG_FILES section.
  13171. # No need to generate them if there are no CONFIG_FILES.
  13172. # This happens for instance with `./config.status config.h'.
  13173. if test -n "$CONFIG_FILES"; then
  13174. ac_cr=`echo X | tr X '\015'`
  13175. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13176. # But we know of no other shell where ac_cr would be empty at this
  13177. # point, so we can use a bashism as a fallback.
  13178. if test "x$ac_cr" = x; then
  13179. eval ac_cr=\$\'\\r\'
  13180. fi
  13181. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13182. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13183. ac_cs_awk_cr='\\r'
  13184. else
  13185. ac_cs_awk_cr=$ac_cr
  13186. fi
  13187. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13188. _ACEOF
  13189. {
  13190. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13191. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13192. echo "_ACEOF"
  13193. } >conf$$subs.sh ||
  13194. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13195. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13196. ac_delim='%!_!# '
  13197. for ac_last_try in false false false false false :; do
  13198. . ./conf$$subs.sh ||
  13199. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13200. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13201. if test $ac_delim_n = $ac_delim_num; then
  13202. break
  13203. elif $ac_last_try; then
  13204. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13205. else
  13206. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13207. fi
  13208. done
  13209. rm -f conf$$subs.sh
  13210. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13211. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13212. _ACEOF
  13213. sed -n '
  13214. h
  13215. s/^/S["/; s/!.*/"]=/
  13216. p
  13217. g
  13218. s/^[^!]*!//
  13219. :repl
  13220. t repl
  13221. s/'"$ac_delim"'$//
  13222. t delim
  13223. :nl
  13224. h
  13225. s/\(.\{148\}\)..*/\1/
  13226. t more1
  13227. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13228. p
  13229. n
  13230. b repl
  13231. :more1
  13232. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13233. p
  13234. g
  13235. s/.\{148\}//
  13236. t nl
  13237. :delim
  13238. h
  13239. s/\(.\{148\}\)..*/\1/
  13240. t more2
  13241. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13242. p
  13243. b
  13244. :more2
  13245. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13246. p
  13247. g
  13248. s/.\{148\}//
  13249. t delim
  13250. ' <conf$$subs.awk | sed '
  13251. /^[^""]/{
  13252. N
  13253. s/\n//
  13254. }
  13255. ' >>$CONFIG_STATUS || ac_write_fail=1
  13256. rm -f conf$$subs.awk
  13257. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13258. _ACAWK
  13259. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13260. for (key in S) S_is_set[key] = 1
  13261. FS = ""
  13262. }
  13263. {
  13264. line = $ 0
  13265. nfields = split(line, field, "@")
  13266. substed = 0
  13267. len = length(field[1])
  13268. for (i = 2; i < nfields; i++) {
  13269. key = field[i]
  13270. keylen = length(key)
  13271. if (S_is_set[key]) {
  13272. value = S[key]
  13273. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13274. len += length(value) + length(field[++i])
  13275. substed = 1
  13276. } else
  13277. len += 1 + keylen
  13278. }
  13279. print line
  13280. }
  13281. _ACAWK
  13282. _ACEOF
  13283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13284. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13285. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13286. else
  13287. cat
  13288. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13289. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13290. _ACEOF
  13291. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13292. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13293. # trailing colons and then remove the whole line if VPATH becomes empty
  13294. # (actually we leave an empty line to preserve line numbers).
  13295. if test "x$srcdir" = x.; then
  13296. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13297. h
  13298. s///
  13299. s/^/:/
  13300. s/[ ]*$/:/
  13301. s/:\$(srcdir):/:/g
  13302. s/:\${srcdir}:/:/g
  13303. s/:@srcdir@:/:/g
  13304. s/^:*//
  13305. s/:*$//
  13306. x
  13307. s/\(=[ ]*\).*/\1/
  13308. G
  13309. s/\n//
  13310. s/^[^=]*=[ ]*$//
  13311. }'
  13312. fi
  13313. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13314. fi # test -n "$CONFIG_FILES"
  13315. # Set up the scripts for CONFIG_HEADERS section.
  13316. # No need to generate them if there are no CONFIG_HEADERS.
  13317. # This happens for instance with `./config.status Makefile'.
  13318. if test -n "$CONFIG_HEADERS"; then
  13319. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13320. BEGIN {
  13321. _ACEOF
  13322. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13323. # here-document in config.status, that substitutes the proper values into
  13324. # config.h.in to produce config.h.
  13325. # Create a delimiter string that does not exist in confdefs.h, to ease
  13326. # handling of long lines.
  13327. ac_delim='%!_!# '
  13328. for ac_last_try in false false :; do
  13329. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13330. if test -z "$ac_tt"; then
  13331. break
  13332. elif $ac_last_try; then
  13333. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13334. else
  13335. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13336. fi
  13337. done
  13338. # For the awk script, D is an array of macro values keyed by name,
  13339. # likewise P contains macro parameters if any. Preserve backslash
  13340. # newline sequences.
  13341. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13342. sed -n '
  13343. s/.\{148\}/&'"$ac_delim"'/g
  13344. t rset
  13345. :rset
  13346. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13347. t def
  13348. d
  13349. :def
  13350. s/\\$//
  13351. t bsnl
  13352. s/["\\]/\\&/g
  13353. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13354. D["\1"]=" \3"/p
  13355. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13356. d
  13357. :bsnl
  13358. s/["\\]/\\&/g
  13359. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13360. D["\1"]=" \3\\\\\\n"\\/p
  13361. t cont
  13362. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13363. t cont
  13364. d
  13365. :cont
  13366. n
  13367. s/.\{148\}/&'"$ac_delim"'/g
  13368. t clear
  13369. :clear
  13370. s/\\$//
  13371. t bsnlc
  13372. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13373. d
  13374. :bsnlc
  13375. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13376. b cont
  13377. ' <confdefs.h | sed '
  13378. s/'"$ac_delim"'/"\\\
  13379. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13381. for (key in D) D_is_set[key] = 1
  13382. FS = ""
  13383. }
  13384. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13385. line = \$ 0
  13386. split(line, arg, " ")
  13387. if (arg[1] == "#") {
  13388. defundef = arg[2]
  13389. mac1 = arg[3]
  13390. } else {
  13391. defundef = substr(arg[1], 2)
  13392. mac1 = arg[2]
  13393. }
  13394. split(mac1, mac2, "(") #)
  13395. macro = mac2[1]
  13396. prefix = substr(line, 1, index(line, defundef) - 1)
  13397. if (D_is_set[macro]) {
  13398. # Preserve the white space surrounding the "#".
  13399. print prefix "define", macro P[macro] D[macro]
  13400. next
  13401. } else {
  13402. # Replace #undef with comments. This is necessary, for example,
  13403. # in the case of _POSIX_SOURCE, which is predefined and required
  13404. # on some systems where configure will not decide to define it.
  13405. if (defundef == "undef") {
  13406. print "/*", prefix defundef, macro, "*/"
  13407. next
  13408. }
  13409. }
  13410. }
  13411. { print }
  13412. _ACAWK
  13413. _ACEOF
  13414. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13415. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13416. fi # test -n "$CONFIG_HEADERS"
  13417. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13418. shift
  13419. for ac_tag
  13420. do
  13421. case $ac_tag in
  13422. :[FHLC]) ac_mode=$ac_tag; continue;;
  13423. esac
  13424. case $ac_mode$ac_tag in
  13425. :[FHL]*:*);;
  13426. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13427. :[FH]-) ac_tag=-:-;;
  13428. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13429. esac
  13430. ac_save_IFS=$IFS
  13431. IFS=:
  13432. set x $ac_tag
  13433. IFS=$ac_save_IFS
  13434. shift
  13435. ac_file=$1
  13436. shift
  13437. case $ac_mode in
  13438. :L) ac_source=$1;;
  13439. :[FH])
  13440. ac_file_inputs=
  13441. for ac_f
  13442. do
  13443. case $ac_f in
  13444. -) ac_f="$ac_tmp/stdin";;
  13445. *) # Look for the file first in the build tree, then in the source tree
  13446. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13447. # because $ac_f cannot contain `:'.
  13448. test -f "$ac_f" ||
  13449. case $ac_f in
  13450. [\\/$]*) false;;
  13451. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13452. esac ||
  13453. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13454. esac
  13455. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13456. as_fn_append ac_file_inputs " '$ac_f'"
  13457. done
  13458. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13459. # use $as_me), people would be surprised to read:
  13460. # /* config.h. Generated by config.status. */
  13461. configure_input='Generated from '`
  13462. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13463. `' by configure.'
  13464. if test x"$ac_file" != x-; then
  13465. configure_input="$ac_file. $configure_input"
  13466. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13467. $as_echo "$as_me: creating $ac_file" >&6;}
  13468. fi
  13469. # Neutralize special characters interpreted by sed in replacement strings.
  13470. case $configure_input in #(
  13471. *\&* | *\|* | *\\* )
  13472. ac_sed_conf_input=`$as_echo "$configure_input" |
  13473. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13474. *) ac_sed_conf_input=$configure_input;;
  13475. esac
  13476. case $ac_tag in
  13477. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13478. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13479. esac
  13480. ;;
  13481. esac
  13482. ac_dir=`$as_dirname -- "$ac_file" ||
  13483. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13484. X"$ac_file" : 'X\(//\)[^/]' \| \
  13485. X"$ac_file" : 'X\(//\)$' \| \
  13486. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13487. $as_echo X"$ac_file" |
  13488. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13489. s//\1/
  13490. q
  13491. }
  13492. /^X\(\/\/\)[^/].*/{
  13493. s//\1/
  13494. q
  13495. }
  13496. /^X\(\/\/\)$/{
  13497. s//\1/
  13498. q
  13499. }
  13500. /^X\(\/\).*/{
  13501. s//\1/
  13502. q
  13503. }
  13504. s/.*/./; q'`
  13505. as_dir="$ac_dir"; as_fn_mkdir_p
  13506. ac_builddir=.
  13507. case "$ac_dir" in
  13508. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13509. *)
  13510. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13511. # A ".." for each directory in $ac_dir_suffix.
  13512. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13513. case $ac_top_builddir_sub in
  13514. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13515. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13516. esac ;;
  13517. esac
  13518. ac_abs_top_builddir=$ac_pwd
  13519. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13520. # for backward compatibility:
  13521. ac_top_builddir=$ac_top_build_prefix
  13522. case $srcdir in
  13523. .) # We are building in place.
  13524. ac_srcdir=.
  13525. ac_top_srcdir=$ac_top_builddir_sub
  13526. ac_abs_top_srcdir=$ac_pwd ;;
  13527. [\\/]* | ?:[\\/]* ) # Absolute name.
  13528. ac_srcdir=$srcdir$ac_dir_suffix;
  13529. ac_top_srcdir=$srcdir
  13530. ac_abs_top_srcdir=$srcdir ;;
  13531. *) # Relative name.
  13532. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13533. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13534. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13535. esac
  13536. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13537. case $ac_mode in
  13538. :F)
  13539. #
  13540. # CONFIG_FILE
  13541. #
  13542. case $INSTALL in
  13543. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13544. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13545. esac
  13546. ac_MKDIR_P=$MKDIR_P
  13547. case $MKDIR_P in
  13548. [\\/$]* | ?:[\\/]* ) ;;
  13549. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13550. esac
  13551. _ACEOF
  13552. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13553. # If the template does not know about datarootdir, expand it.
  13554. # FIXME: This hack should be removed a few years after 2.60.
  13555. ac_datarootdir_hack=; ac_datarootdir_seen=
  13556. ac_sed_dataroot='
  13557. /datarootdir/ {
  13558. p
  13559. q
  13560. }
  13561. /@datadir@/p
  13562. /@docdir@/p
  13563. /@infodir@/p
  13564. /@localedir@/p
  13565. /@mandir@/p'
  13566. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13567. *datarootdir*) ac_datarootdir_seen=yes;;
  13568. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13570. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13571. _ACEOF
  13572. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13573. ac_datarootdir_hack='
  13574. s&@datadir@&$datadir&g
  13575. s&@docdir@&$docdir&g
  13576. s&@infodir@&$infodir&g
  13577. s&@localedir@&$localedir&g
  13578. s&@mandir@&$mandir&g
  13579. s&\\\${datarootdir}&$datarootdir&g' ;;
  13580. esac
  13581. _ACEOF
  13582. # Neutralize VPATH when `$srcdir' = `.'.
  13583. # Shell code in configure.ac might set extrasub.
  13584. # FIXME: do we really want to maintain this feature?
  13585. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13586. ac_sed_extra="$ac_vpsub
  13587. $extrasub
  13588. _ACEOF
  13589. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13590. :t
  13591. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13592. s|@configure_input@|$ac_sed_conf_input|;t t
  13593. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13594. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13595. s&@srcdir@&$ac_srcdir&;t t
  13596. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13597. s&@top_srcdir@&$ac_top_srcdir&;t t
  13598. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13599. s&@builddir@&$ac_builddir&;t t
  13600. s&@abs_builddir@&$ac_abs_builddir&;t t
  13601. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13602. s&@INSTALL@&$ac_INSTALL&;t t
  13603. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13604. $ac_datarootdir_hack
  13605. "
  13606. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13607. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13608. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13609. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13610. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13611. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13613. which seems to be undefined. Please make sure it is defined" >&5
  13614. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13615. which seems to be undefined. Please make sure it is defined" >&2;}
  13616. rm -f "$ac_tmp/stdin"
  13617. case $ac_file in
  13618. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13619. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13620. esac \
  13621. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13622. ;;
  13623. :H)
  13624. #
  13625. # CONFIG_HEADER
  13626. #
  13627. if test x"$ac_file" != x-; then
  13628. {
  13629. $as_echo "/* $configure_input */" \
  13630. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13631. } >"$ac_tmp/config.h" \
  13632. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13633. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13634. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13635. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13636. else
  13637. rm -f "$ac_file"
  13638. mv "$ac_tmp/config.h" "$ac_file" \
  13639. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13640. fi
  13641. else
  13642. $as_echo "/* $configure_input */" \
  13643. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13644. || as_fn_error $? "could not create -" "$LINENO" 5
  13645. fi
  13646. # Compute "$ac_file"'s index in $config_headers.
  13647. _am_arg="$ac_file"
  13648. _am_stamp_count=1
  13649. for _am_header in $config_headers :; do
  13650. case $_am_header in
  13651. $_am_arg | $_am_arg:* )
  13652. break ;;
  13653. * )
  13654. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13655. esac
  13656. done
  13657. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13658. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13659. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13660. X"$_am_arg" : 'X\(//\)$' \| \
  13661. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13662. $as_echo X"$_am_arg" |
  13663. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13664. s//\1/
  13665. q
  13666. }
  13667. /^X\(\/\/\)[^/].*/{
  13668. s//\1/
  13669. q
  13670. }
  13671. /^X\(\/\/\)$/{
  13672. s//\1/
  13673. q
  13674. }
  13675. /^X\(\/\).*/{
  13676. s//\1/
  13677. q
  13678. }
  13679. s/.*/./; q'`/stamp-h$_am_stamp_count
  13680. ;;
  13681. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13682. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13683. ;;
  13684. esac
  13685. case $ac_file$ac_mode in
  13686. "default-1":C)
  13687. # Only add multilib support code if we just rebuilt the top-level
  13688. # Makefile.
  13689. case " $CONFIG_FILES " in
  13690. *" Makefile "*)
  13691. ac_file=Makefile . ${multi_basedir}/config-ml.in
  13692. ;;
  13693. esac ;;
  13694. "libtool":C)
  13695. # See if we are running on zsh, and set the options which allow our
  13696. # commands through without removal of \ escapes.
  13697. if test -n "${ZSH_VERSION+set}" ; then
  13698. setopt NO_GLOB_SUBST
  13699. fi
  13700. cfgfile="${ofile}T"
  13701. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13702. $RM "$cfgfile"
  13703. cat <<_LT_EOF >> "$cfgfile"
  13704. #! $SHELL
  13705. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13706. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13707. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13708. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13709. #
  13710. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13711. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  13712. # Written by Gordon Matzigkeit, 1996
  13713. #
  13714. # This file is part of GNU Libtool.
  13715. #
  13716. # GNU Libtool is free software; you can redistribute it and/or
  13717. # modify it under the terms of the GNU General Public License as
  13718. # published by the Free Software Foundation; either version 2 of
  13719. # the License, or (at your option) any later version.
  13720. #
  13721. # As a special exception to the GNU General Public License,
  13722. # if you distribute this file as part of a program or library that
  13723. # is built using GNU Libtool, you may include this file under the
  13724. # same distribution terms that you use for the rest of that program.
  13725. #
  13726. # GNU Libtool is distributed in the hope that it will be useful,
  13727. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13728. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13729. # GNU General Public License for more details.
  13730. #
  13731. # You should have received a copy of the GNU General Public License
  13732. # along with GNU Libtool; see the file COPYING. If not, a copy
  13733. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  13734. # obtained by writing to the Free Software Foundation, Inc.,
  13735. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  13736. # The names of the tagged configurations supported by this script.
  13737. available_tags=""
  13738. # ### BEGIN LIBTOOL CONFIG
  13739. # Which release of libtool.m4 was used?
  13740. macro_version=$macro_version
  13741. macro_revision=$macro_revision
  13742. # Whether or not to build shared libraries.
  13743. build_libtool_libs=$enable_shared
  13744. # Whether or not to build static libraries.
  13745. build_old_libs=$enable_static
  13746. # What type of objects to build.
  13747. pic_mode=$pic_mode
  13748. # Whether or not to optimize for fast installation.
  13749. fast_install=$enable_fast_install
  13750. # Shell to use when invoking shell scripts.
  13751. SHELL=$lt_SHELL
  13752. # An echo program that protects backslashes.
  13753. ECHO=$lt_ECHO
  13754. # The host system.
  13755. host_alias=$host_alias
  13756. host=$host
  13757. host_os=$host_os
  13758. # The build system.
  13759. build_alias=$build_alias
  13760. build=$build
  13761. build_os=$build_os
  13762. # A sed program that does not truncate output.
  13763. SED=$lt_SED
  13764. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  13765. Xsed="\$SED -e 1s/^X//"
  13766. # A grep program that handles long lines.
  13767. GREP=$lt_GREP
  13768. # An ERE matcher.
  13769. EGREP=$lt_EGREP
  13770. # A literal string matcher.
  13771. FGREP=$lt_FGREP
  13772. # A BSD- or MS-compatible name lister.
  13773. NM=$lt_NM
  13774. # Whether we need soft or hard links.
  13775. LN_S=$lt_LN_S
  13776. # What is the maximum length of a command?
  13777. max_cmd_len=$max_cmd_len
  13778. # Object file suffix (normally "o").
  13779. objext=$ac_objext
  13780. # Executable file suffix (normally "").
  13781. exeext=$exeext
  13782. # whether the shell understands "unset".
  13783. lt_unset=$lt_unset
  13784. # turn spaces into newlines.
  13785. SP2NL=$lt_lt_SP2NL
  13786. # turn newlines into spaces.
  13787. NL2SP=$lt_lt_NL2SP
  13788. # An object symbol dumper.
  13789. OBJDUMP=$lt_OBJDUMP
  13790. # Method to check whether dependent libraries are shared objects.
  13791. deplibs_check_method=$lt_deplibs_check_method
  13792. # Command to use when deplibs_check_method == "file_magic".
  13793. file_magic_cmd=$lt_file_magic_cmd
  13794. # The archiver.
  13795. AR=$lt_AR
  13796. AR_FLAGS=$lt_AR_FLAGS
  13797. # A symbol stripping program.
  13798. STRIP=$lt_STRIP
  13799. # Commands used to install an old-style archive.
  13800. RANLIB=$lt_RANLIB
  13801. old_postinstall_cmds=$lt_old_postinstall_cmds
  13802. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13803. # Whether to use a lock for old archive extraction.
  13804. lock_old_archive_extraction=$lock_old_archive_extraction
  13805. # A C compiler.
  13806. LTCC=$lt_CC
  13807. # LTCC compiler flags.
  13808. LTCFLAGS=$lt_CFLAGS
  13809. # Take the output of nm and produce a listing of raw symbols and C names.
  13810. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13811. # Transform the output of nm in a proper C declaration.
  13812. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13813. # Transform the output of nm in a C name address pair.
  13814. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13815. # Transform the output of nm in a C name address pair when lib prefix is needed.
  13816. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  13817. # The name of the directory that contains temporary libtool files.
  13818. objdir=$objdir
  13819. # Used to examine libraries when file_magic_cmd begins with "file".
  13820. MAGIC_CMD=$MAGIC_CMD
  13821. # Must we lock files when doing compilation?
  13822. need_locks=$lt_need_locks
  13823. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  13824. DSYMUTIL=$lt_DSYMUTIL
  13825. # Tool to change global to local symbols on Mac OS X.
  13826. NMEDIT=$lt_NMEDIT
  13827. # Tool to manipulate fat objects and archives on Mac OS X.
  13828. LIPO=$lt_LIPO
  13829. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  13830. OTOOL=$lt_OTOOL
  13831. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  13832. OTOOL64=$lt_OTOOL64
  13833. # Old archive suffix (normally "a").
  13834. libext=$libext
  13835. # Shared library suffix (normally ".so").
  13836. shrext_cmds=$lt_shrext_cmds
  13837. # The commands to extract the exported symbol list from a shared archive.
  13838. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13839. # Variables whose values should be saved in libtool wrapper scripts and
  13840. # restored at link time.
  13841. variables_saved_for_relink=$lt_variables_saved_for_relink
  13842. # Do we need the "lib" prefix for modules?
  13843. need_lib_prefix=$need_lib_prefix
  13844. # Do we need a version for libraries?
  13845. need_version=$need_version
  13846. # Library versioning type.
  13847. version_type=$version_type
  13848. # Shared library runtime path variable.
  13849. runpath_var=$runpath_var
  13850. # Shared library path variable.
  13851. shlibpath_var=$shlibpath_var
  13852. # Is shlibpath searched before the hard-coded library search path?
  13853. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13854. # Format of library name prefix.
  13855. libname_spec=$lt_libname_spec
  13856. # List of archive names. First name is the real one, the rest are links.
  13857. # The last name is the one that the linker finds with -lNAME
  13858. library_names_spec=$lt_library_names_spec
  13859. # The coded name of the library, if different from the real name.
  13860. soname_spec=$lt_soname_spec
  13861. # Permission mode override for installation of shared libraries.
  13862. install_override_mode=$lt_install_override_mode
  13863. # Command to use after installation of a shared archive.
  13864. postinstall_cmds=$lt_postinstall_cmds
  13865. # Command to use after uninstallation of a shared archive.
  13866. postuninstall_cmds=$lt_postuninstall_cmds
  13867. # Commands used to finish a libtool library installation in a directory.
  13868. finish_cmds=$lt_finish_cmds
  13869. # As "finish_cmds", except a single script fragment to be evaled but
  13870. # not shown.
  13871. finish_eval=$lt_finish_eval
  13872. # Whether we should hardcode library paths into libraries.
  13873. hardcode_into_libs=$hardcode_into_libs
  13874. # Compile-time system search path for libraries.
  13875. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13876. # Run-time system search path for libraries.
  13877. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13878. # Whether dlopen is supported.
  13879. dlopen_support=$enable_dlopen
  13880. # Whether dlopen of programs is supported.
  13881. dlopen_self=$enable_dlopen_self
  13882. # Whether dlopen of statically linked programs is supported.
  13883. dlopen_self_static=$enable_dlopen_self_static
  13884. # Commands to strip libraries.
  13885. old_striplib=$lt_old_striplib
  13886. striplib=$lt_striplib
  13887. # The linker used to build libraries.
  13888. LD=$lt_LD
  13889. # How to create reloadable object files.
  13890. reload_flag=$lt_reload_flag
  13891. reload_cmds=$lt_reload_cmds
  13892. # Commands used to build an old-style archive.
  13893. old_archive_cmds=$lt_old_archive_cmds
  13894. # A language specific compiler.
  13895. CC=$lt_compiler
  13896. # Is the compiler the GNU compiler?
  13897. with_gcc=$GCC
  13898. # Compiler flag to turn off builtin functions.
  13899. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  13900. # How to pass a linker flag through the compiler.
  13901. wl=$lt_lt_prog_compiler_wl
  13902. # Additional compiler flags for building library objects.
  13903. pic_flag=$lt_lt_prog_compiler_pic
  13904. # Compiler flag to prevent dynamic linking.
  13905. link_static_flag=$lt_lt_prog_compiler_static
  13906. # Does compiler simultaneously support -c and -o options?
  13907. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  13908. # Whether or not to add -lc for building shared libraries.
  13909. build_libtool_need_lc=$archive_cmds_need_lc
  13910. # Whether or not to disallow shared libs when runtime libs are static.
  13911. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  13912. # Compiler flag to allow reflexive dlopens.
  13913. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  13914. # Compiler flag to generate shared objects directly from archives.
  13915. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  13916. # Whether the compiler copes with passing no objects directly.
  13917. compiler_needs_object=$lt_compiler_needs_object
  13918. # Create an old-style archive from a shared archive.
  13919. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  13920. # Create a temporary old-style archive to link instead of a shared archive.
  13921. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  13922. # Commands used to build a shared archive.
  13923. archive_cmds=$lt_archive_cmds
  13924. archive_expsym_cmds=$lt_archive_expsym_cmds
  13925. # Commands used to build a loadable module if different from building
  13926. # a shared archive.
  13927. module_cmds=$lt_module_cmds
  13928. module_expsym_cmds=$lt_module_expsym_cmds
  13929. # Whether we are building with GNU ld or not.
  13930. with_gnu_ld=$lt_with_gnu_ld
  13931. # Flag that allows shared libraries with undefined symbols to be built.
  13932. allow_undefined_flag=$lt_allow_undefined_flag
  13933. # Flag that enforces no undefined symbols.
  13934. no_undefined_flag=$lt_no_undefined_flag
  13935. # Flag to hardcode \$libdir into a binary during linking.
  13936. # This must work even if \$libdir does not exist
  13937. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  13938. # If ld is used when linking, flag to hardcode \$libdir into a binary
  13939. # during linking. This must work even if \$libdir does not exist.
  13940. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  13941. # Whether we need a single "-rpath" flag with a separated argument.
  13942. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  13943. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13944. # DIR into the resulting binary.
  13945. hardcode_direct=$hardcode_direct
  13946. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  13947. # DIR into the resulting binary and the resulting library dependency is
  13948. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  13949. # library is relocated.
  13950. hardcode_direct_absolute=$hardcode_direct_absolute
  13951. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  13952. # into the resulting binary.
  13953. hardcode_minus_L=$hardcode_minus_L
  13954. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  13955. # into the resulting binary.
  13956. hardcode_shlibpath_var=$hardcode_shlibpath_var
  13957. # Set to "yes" if building a shared library automatically hardcodes DIR
  13958. # into the library and all subsequent libraries and executables linked
  13959. # against it.
  13960. hardcode_automatic=$hardcode_automatic
  13961. # Set to yes if linker adds runtime paths of dependent libraries
  13962. # to runtime path list.
  13963. inherit_rpath=$inherit_rpath
  13964. # Whether libtool must link a program against all its dependency libraries.
  13965. link_all_deplibs=$link_all_deplibs
  13966. # Fix the shell variable \$srcfile for the compiler.
  13967. fix_srcfile_path=$lt_fix_srcfile_path
  13968. # Set to "yes" if exported symbols are required.
  13969. always_export_symbols=$always_export_symbols
  13970. # The commands to list exported symbols.
  13971. export_symbols_cmds=$lt_export_symbols_cmds
  13972. # Symbols that should not be listed in the preloaded symbols.
  13973. exclude_expsyms=$lt_exclude_expsyms
  13974. # Symbols that must always be exported.
  13975. include_expsyms=$lt_include_expsyms
  13976. # Commands necessary for linking programs (against libraries) with templates.
  13977. prelink_cmds=$lt_prelink_cmds
  13978. # Specify filename containing input files.
  13979. file_list_spec=$lt_file_list_spec
  13980. # How to hardcode a shared library path into an executable.
  13981. hardcode_action=$hardcode_action
  13982. # ### END LIBTOOL CONFIG
  13983. _LT_EOF
  13984. case $host_os in
  13985. aix3*)
  13986. cat <<\_LT_EOF >> "$cfgfile"
  13987. # AIX sometimes has problems with the GCC collect2 program. For some
  13988. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13989. # vanish in a puff of smoke.
  13990. if test "X${COLLECT_NAMES+set}" != Xset; then
  13991. COLLECT_NAMES=
  13992. export COLLECT_NAMES
  13993. fi
  13994. _LT_EOF
  13995. ;;
  13996. esac
  13997. ltmain="$ac_aux_dir/ltmain.sh"
  13998. # We use sed instead of cat because bash on DJGPP gets confused if
  13999. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14000. # text mode, it properly converts lines to CR/LF. This bash problem
  14001. # is reportedly fixed, but why not run on old versions too?
  14002. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14003. || (rm -f "$cfgfile"; exit 1)
  14004. case $xsi_shell in
  14005. yes)
  14006. cat << \_LT_EOF >> "$cfgfile"
  14007. # func_dirname file append nondir_replacement
  14008. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14009. # otherwise set result to NONDIR_REPLACEMENT.
  14010. func_dirname ()
  14011. {
  14012. case ${1} in
  14013. */*) func_dirname_result="${1%/*}${2}" ;;
  14014. * ) func_dirname_result="${3}" ;;
  14015. esac
  14016. }
  14017. # func_basename file
  14018. func_basename ()
  14019. {
  14020. func_basename_result="${1##*/}"
  14021. }
  14022. # func_dirname_and_basename file append nondir_replacement
  14023. # perform func_basename and func_dirname in a single function
  14024. # call:
  14025. # dirname: Compute the dirname of FILE. If nonempty,
  14026. # add APPEND to the result, otherwise set result
  14027. # to NONDIR_REPLACEMENT.
  14028. # value returned in "$func_dirname_result"
  14029. # basename: Compute filename of FILE.
  14030. # value retuned in "$func_basename_result"
  14031. # Implementation must be kept synchronized with func_dirname
  14032. # and func_basename. For efficiency, we do not delegate to
  14033. # those functions but instead duplicate the functionality here.
  14034. func_dirname_and_basename ()
  14035. {
  14036. case ${1} in
  14037. */*) func_dirname_result="${1%/*}${2}" ;;
  14038. * ) func_dirname_result="${3}" ;;
  14039. esac
  14040. func_basename_result="${1##*/}"
  14041. }
  14042. # func_stripname prefix suffix name
  14043. # strip PREFIX and SUFFIX off of NAME.
  14044. # PREFIX and SUFFIX must not contain globbing or regex special
  14045. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14046. # dot (in which case that matches only a dot).
  14047. func_stripname ()
  14048. {
  14049. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14050. # positional parameters, so assign one to ordinary parameter first.
  14051. func_stripname_result=${3}
  14052. func_stripname_result=${func_stripname_result#"${1}"}
  14053. func_stripname_result=${func_stripname_result%"${2}"}
  14054. }
  14055. # func_opt_split
  14056. func_opt_split ()
  14057. {
  14058. func_opt_split_opt=${1%%=*}
  14059. func_opt_split_arg=${1#*=}
  14060. }
  14061. # func_lo2o object
  14062. func_lo2o ()
  14063. {
  14064. case ${1} in
  14065. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14066. *) func_lo2o_result=${1} ;;
  14067. esac
  14068. }
  14069. # func_xform libobj-or-source
  14070. func_xform ()
  14071. {
  14072. func_xform_result=${1%.*}.lo
  14073. }
  14074. # func_arith arithmetic-term...
  14075. func_arith ()
  14076. {
  14077. func_arith_result=$(( $* ))
  14078. }
  14079. # func_len string
  14080. # STRING may not start with a hyphen.
  14081. func_len ()
  14082. {
  14083. func_len_result=${#1}
  14084. }
  14085. _LT_EOF
  14086. ;;
  14087. *) # Bourne compatible functions.
  14088. cat << \_LT_EOF >> "$cfgfile"
  14089. # func_dirname file append nondir_replacement
  14090. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14091. # otherwise set result to NONDIR_REPLACEMENT.
  14092. func_dirname ()
  14093. {
  14094. # Extract subdirectory from the argument.
  14095. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  14096. if test "X$func_dirname_result" = "X${1}"; then
  14097. func_dirname_result="${3}"
  14098. else
  14099. func_dirname_result="$func_dirname_result${2}"
  14100. fi
  14101. }
  14102. # func_basename file
  14103. func_basename ()
  14104. {
  14105. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  14106. }
  14107. # func_stripname prefix suffix name
  14108. # strip PREFIX and SUFFIX off of NAME.
  14109. # PREFIX and SUFFIX must not contain globbing or regex special
  14110. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14111. # dot (in which case that matches only a dot).
  14112. # func_strip_suffix prefix name
  14113. func_stripname ()
  14114. {
  14115. case ${2} in
  14116. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  14117. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  14118. esac
  14119. }
  14120. # sed scripts:
  14121. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14122. my_sed_long_arg='1s/^-[^=]*=//'
  14123. # func_opt_split
  14124. func_opt_split ()
  14125. {
  14126. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  14127. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  14128. }
  14129. # func_lo2o object
  14130. func_lo2o ()
  14131. {
  14132. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  14133. }
  14134. # func_xform libobj-or-source
  14135. func_xform ()
  14136. {
  14137. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  14138. }
  14139. # func_arith arithmetic-term...
  14140. func_arith ()
  14141. {
  14142. func_arith_result=`expr "$@"`
  14143. }
  14144. # func_len string
  14145. # STRING may not start with a hyphen.
  14146. func_len ()
  14147. {
  14148. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14149. }
  14150. _LT_EOF
  14151. esac
  14152. case $lt_shell_append in
  14153. yes)
  14154. cat << \_LT_EOF >> "$cfgfile"
  14155. # func_append var value
  14156. # Append VALUE to the end of shell variable VAR.
  14157. func_append ()
  14158. {
  14159. eval "$1+=\$2"
  14160. }
  14161. _LT_EOF
  14162. ;;
  14163. *)
  14164. cat << \_LT_EOF >> "$cfgfile"
  14165. # func_append var value
  14166. # Append VALUE to the end of shell variable VAR.
  14167. func_append ()
  14168. {
  14169. eval "$1=\$$1\$2"
  14170. }
  14171. _LT_EOF
  14172. ;;
  14173. esac
  14174. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14175. || (rm -f "$cfgfile"; exit 1)
  14176. mv -f "$cfgfile" "$ofile" ||
  14177. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14178. chmod +x "$ofile"
  14179. ;;
  14180. "gstdint.h":C)
  14181. if test "$GCC" = yes; then
  14182. echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
  14183. else
  14184. echo "/* generated for $CC */" > tmp-stdint.h
  14185. fi
  14186. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14187. #ifndef GCC_GENERATED_STDINT_H
  14188. #define GCC_GENERATED_STDINT_H 1
  14189. #include <sys/types.h>
  14190. EOF
  14191. if test "$acx_cv_header_stdint" != stdint.h; then
  14192. echo "#include <stddef.h>" >> tmp-stdint.h
  14193. fi
  14194. if test "$acx_cv_header_stdint" != stddef.h; then
  14195. echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
  14196. fi
  14197. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14198. /* glibc uses these symbols as guards to prevent redefinitions. */
  14199. #ifdef __int8_t_defined
  14200. #define _INT8_T
  14201. #define _INT16_T
  14202. #define _INT32_T
  14203. #endif
  14204. #ifdef __uint32_t_defined
  14205. #define _UINT32_T
  14206. #endif
  14207. EOF
  14208. # ----------------- done header, emit basic int types -------------
  14209. if test "$acx_cv_header_stdint" = stddef.h; then
  14210. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14211. #ifndef _UINT8_T
  14212. #define _UINT8_T
  14213. #ifndef __uint8_t_defined
  14214. #define __uint8_t_defined
  14215. #ifndef uint8_t
  14216. typedef unsigned $acx_cv_type_int8_t uint8_t;
  14217. #endif
  14218. #endif
  14219. #endif
  14220. #ifndef _UINT16_T
  14221. #define _UINT16_T
  14222. #ifndef __uint16_t_defined
  14223. #define __uint16_t_defined
  14224. #ifndef uint16_t
  14225. typedef unsigned $acx_cv_type_int16_t uint16_t;
  14226. #endif
  14227. #endif
  14228. #endif
  14229. #ifndef _UINT32_T
  14230. #define _UINT32_T
  14231. #ifndef __uint32_t_defined
  14232. #define __uint32_t_defined
  14233. #ifndef uint32_t
  14234. typedef unsigned $acx_cv_type_int32_t uint32_t;
  14235. #endif
  14236. #endif
  14237. #endif
  14238. #ifndef _INT8_T
  14239. #define _INT8_T
  14240. #ifndef __int8_t_defined
  14241. #define __int8_t_defined
  14242. #ifndef int8_t
  14243. typedef $acx_cv_type_int8_t int8_t;
  14244. #endif
  14245. #endif
  14246. #endif
  14247. #ifndef _INT16_T
  14248. #define _INT16_T
  14249. #ifndef __int16_t_defined
  14250. #define __int16_t_defined
  14251. #ifndef int16_t
  14252. typedef $acx_cv_type_int16_t int16_t;
  14253. #endif
  14254. #endif
  14255. #endif
  14256. #ifndef _INT32_T
  14257. #define _INT32_T
  14258. #ifndef __int32_t_defined
  14259. #define __int32_t_defined
  14260. #ifndef int32_t
  14261. typedef $acx_cv_type_int32_t int32_t;
  14262. #endif
  14263. #endif
  14264. #endif
  14265. EOF
  14266. elif test "$ac_cv_type_u_int32_t" = yes; then
  14267. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14268. /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
  14269. #ifndef _INT8_T
  14270. #define _INT8_T
  14271. #endif
  14272. #ifndef _INT16_T
  14273. #define _INT16_T
  14274. #endif
  14275. #ifndef _INT32_T
  14276. #define _INT32_T
  14277. #endif
  14278. #ifndef _UINT8_T
  14279. #define _UINT8_T
  14280. #ifndef __uint8_t_defined
  14281. #define __uint8_t_defined
  14282. #ifndef uint8_t
  14283. typedef u_int8_t uint8_t;
  14284. #endif
  14285. #endif
  14286. #endif
  14287. #ifndef _UINT16_T
  14288. #define _UINT16_T
  14289. #ifndef __uint16_t_defined
  14290. #define __uint16_t_defined
  14291. #ifndef uint16_t
  14292. typedef u_int16_t uint16_t;
  14293. #endif
  14294. #endif
  14295. #endif
  14296. #ifndef _UINT32_T
  14297. #define _UINT32_T
  14298. #ifndef __uint32_t_defined
  14299. #define __uint32_t_defined
  14300. #ifndef uint32_t
  14301. typedef u_int32_t uint32_t;
  14302. #endif
  14303. #endif
  14304. #endif
  14305. EOF
  14306. else
  14307. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14308. /* Some systems have guard macros to prevent redefinitions, define them. */
  14309. #ifndef _INT8_T
  14310. #define _INT8_T
  14311. #endif
  14312. #ifndef _INT16_T
  14313. #define _INT16_T
  14314. #endif
  14315. #ifndef _INT32_T
  14316. #define _INT32_T
  14317. #endif
  14318. #ifndef _UINT8_T
  14319. #define _UINT8_T
  14320. #endif
  14321. #ifndef _UINT16_T
  14322. #define _UINT16_T
  14323. #endif
  14324. #ifndef _UINT32_T
  14325. #define _UINT32_T
  14326. #endif
  14327. EOF
  14328. fi
  14329. # ------------- done basic int types, emit int64_t types ------------
  14330. if test "$ac_cv_type_uint64_t" = yes; then
  14331. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14332. /* system headers have good uint64_t and int64_t */
  14333. #ifndef _INT64_T
  14334. #define _INT64_T
  14335. #endif
  14336. #ifndef _UINT64_T
  14337. #define _UINT64_T
  14338. #endif
  14339. EOF
  14340. elif test "$ac_cv_type_u_int64_t" = yes; then
  14341. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14342. /* system headers have an u_int64_t (and int64_t) */
  14343. #ifndef _INT64_T
  14344. #define _INT64_T
  14345. #endif
  14346. #ifndef _UINT64_T
  14347. #define _UINT64_T
  14348. #ifndef __uint64_t_defined
  14349. #define __uint64_t_defined
  14350. #ifndef uint64_t
  14351. typedef u_int64_t uint64_t;
  14352. #endif
  14353. #endif
  14354. #endif
  14355. EOF
  14356. elif test -n "$acx_cv_type_int64_t"; then
  14357. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14358. /* architecture has a 64-bit type, $acx_cv_type_int64_t */
  14359. #ifndef _INT64_T
  14360. #define _INT64_T
  14361. #ifndef int64_t
  14362. typedef $acx_cv_type_int64_t int64_t;
  14363. #endif
  14364. #endif
  14365. #ifndef _UINT64_T
  14366. #define _UINT64_T
  14367. #ifndef __uint64_t_defined
  14368. #define __uint64_t_defined
  14369. #ifndef uint64_t
  14370. typedef unsigned $acx_cv_type_int64_t uint64_t;
  14371. #endif
  14372. #endif
  14373. #endif
  14374. EOF
  14375. else
  14376. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14377. /* some common heuristics for int64_t, using compiler-specific tests */
  14378. #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
  14379. #ifndef _INT64_T
  14380. #define _INT64_T
  14381. #ifndef __int64_t_defined
  14382. #ifndef int64_t
  14383. typedef long long int64_t;
  14384. #endif
  14385. #endif
  14386. #endif
  14387. #ifndef _UINT64_T
  14388. #define _UINT64_T
  14389. #ifndef uint64_t
  14390. typedef unsigned long long uint64_t;
  14391. #endif
  14392. #endif
  14393. #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
  14394. /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
  14395. does not implement __extension__. But that compiler doesn't define
  14396. __GNUC_MINOR__. */
  14397. # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
  14398. # define __extension__
  14399. # endif
  14400. # ifndef _INT64_T
  14401. # define _INT64_T
  14402. # ifndef int64_t
  14403. __extension__ typedef long long int64_t;
  14404. # endif
  14405. # endif
  14406. # ifndef _UINT64_T
  14407. # define _UINT64_T
  14408. # ifndef uint64_t
  14409. __extension__ typedef unsigned long long uint64_t;
  14410. # endif
  14411. # endif
  14412. #elif !defined __STRICT_ANSI__
  14413. # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
  14414. # ifndef _INT64_T
  14415. # define _INT64_T
  14416. # ifndef int64_t
  14417. typedef __int64 int64_t;
  14418. # endif
  14419. # endif
  14420. # ifndef _UINT64_T
  14421. # define _UINT64_T
  14422. # ifndef uint64_t
  14423. typedef unsigned __int64 uint64_t;
  14424. # endif
  14425. # endif
  14426. # endif /* compiler */
  14427. #endif /* ANSI version */
  14428. EOF
  14429. fi
  14430. # ------------- done int64_t types, emit intptr types ------------
  14431. if test "$ac_cv_type_uintptr_t" != yes; then
  14432. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14433. /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
  14434. #ifndef __uintptr_t_defined
  14435. #ifndef uintptr_t
  14436. typedef u$acx_cv_type_intptr_t uintptr_t;
  14437. #endif
  14438. #endif
  14439. #ifndef __intptr_t_defined
  14440. #ifndef intptr_t
  14441. typedef $acx_cv_type_intptr_t intptr_t;
  14442. #endif
  14443. #endif
  14444. EOF
  14445. fi
  14446. # ------------- done intptr types, emit int_least types ------------
  14447. if test "$ac_cv_type_int_least32_t" != yes; then
  14448. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14449. /* Define int_least types */
  14450. typedef int8_t int_least8_t;
  14451. typedef int16_t int_least16_t;
  14452. typedef int32_t int_least32_t;
  14453. #ifdef _INT64_T
  14454. typedef int64_t int_least64_t;
  14455. #endif
  14456. typedef uint8_t uint_least8_t;
  14457. typedef uint16_t uint_least16_t;
  14458. typedef uint32_t uint_least32_t;
  14459. #ifdef _UINT64_T
  14460. typedef uint64_t uint_least64_t;
  14461. #endif
  14462. EOF
  14463. fi
  14464. # ------------- done intptr types, emit int_fast types ------------
  14465. if test "$ac_cv_type_int_fast32_t" != yes; then
  14466. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14467. /* Define int_fast types. short is often slow */
  14468. typedef int8_t int_fast8_t;
  14469. typedef int int_fast16_t;
  14470. typedef int32_t int_fast32_t;
  14471. #ifdef _INT64_T
  14472. typedef int64_t int_fast64_t;
  14473. #endif
  14474. typedef uint8_t uint_fast8_t;
  14475. typedef unsigned int uint_fast16_t;
  14476. typedef uint32_t uint_fast32_t;
  14477. #ifdef _UINT64_T
  14478. typedef uint64_t uint_fast64_t;
  14479. #endif
  14480. EOF
  14481. fi
  14482. if test "$ac_cv_type_uintmax_t" != yes; then
  14483. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14484. /* Define intmax based on what we found */
  14485. #ifndef intmax_t
  14486. #ifdef _INT64_T
  14487. typedef int64_t intmax_t;
  14488. #else
  14489. typedef long intmax_t;
  14490. #endif
  14491. #endif
  14492. #ifndef uintmax_t
  14493. #ifdef _UINT64_T
  14494. typedef uint64_t uintmax_t;
  14495. #else
  14496. typedef unsigned long uintmax_t;
  14497. #endif
  14498. #endif
  14499. EOF
  14500. fi
  14501. sed 's/^ *//' >> tmp-stdint.h <<EOF
  14502. #endif /* GCC_GENERATED_STDINT_H */
  14503. EOF
  14504. if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
  14505. rm -f tmp-stdint.h
  14506. else
  14507. mv -f tmp-stdint.h gstdint.h
  14508. fi
  14509. ;;
  14510. "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
  14511. "default":C) if test -n "$CONFIG_FILES"; then
  14512. if test -n "${with_target_subdir}"; then
  14513. # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
  14514. # that multilib installs will end up installed in the correct place.
  14515. # The testsuite needs it for multilib-aware ABI baseline files.
  14516. # To work around this not being passed down from config-ml.in ->
  14517. # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
  14518. # append it here. Only modify Makefiles that have just been created.
  14519. #
  14520. # Also, get rid of this simulated-VPATH thing that automake does.
  14521. cat > vpsed << \_EOF
  14522. s!`test -f '$<' || echo '$(srcdir)/'`!!
  14523. _EOF
  14524. for i in $SUBDIRS; do
  14525. case $CONFIG_FILES in
  14526. *${i}/Makefile*)
  14527. #echo "Adding MULTISUBDIR to $i/Makefile"
  14528. sed -f vpsed $i/Makefile > tmp
  14529. grep '^MULTISUBDIR =' Makefile >> tmp
  14530. mv tmp $i/Makefile
  14531. ;;
  14532. esac
  14533. done
  14534. rm vpsed
  14535. fi
  14536. fi
  14537. ;;
  14538. esac
  14539. done # for ac_tag
  14540. as_fn_exit 0
  14541. _ACEOF
  14542. ac_clean_files=$ac_clean_files_save
  14543. test $ac_write_fail = 0 ||
  14544. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14545. # configure is writing to config.log, and then calls config.status.
  14546. # config.status does its own redirection, appending to config.log.
  14547. # Unfortunately, on DOS this fails, as config.log is still kept open
  14548. # by configure, so config.status won't be able to write to it; its
  14549. # output is simply discarded. So we exec the FD to /dev/null,
  14550. # effectively closing config.log, so it can be properly (re)opened and
  14551. # appended to by config.status. When coming back to configure, we
  14552. # need to make the FD available again.
  14553. if test "$no_create" != yes; then
  14554. ac_cs_success=:
  14555. ac_config_status_args=
  14556. test "$silent" = yes &&
  14557. ac_config_status_args="$ac_config_status_args --quiet"
  14558. exec 5>/dev/null
  14559. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14560. exec 5>>config.log
  14561. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14562. # would make configure fail if this is the last instruction.
  14563. $ac_cs_success || as_fn_exit 1
  14564. fi
  14565. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14566. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14567. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14568. fi