configure 498 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.39.
  4. #
  5. # Report bugs to <christos@astron.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: christos@astron.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='file'
  542. PACKAGE_TARNAME='file'
  543. PACKAGE_VERSION='5.39'
  544. PACKAGE_STRING='file 5.39'
  545. PACKAGE_BUGREPORT='christos@astron.com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_header_list=
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. IS_CROSS_COMPILE_FALSE
  587. IS_CROSS_COMPILE_TRUE
  588. LIBOBJS
  589. HAVE_VISIBILITY
  590. CFLAG_VISIBILITY
  591. LT_SYS_LIBRARY_PATH
  592. OTOOL64
  593. OTOOL
  594. LIPO
  595. NMEDIT
  596. DSYMUTIL
  597. MANIFEST_TOOL
  598. RANLIB
  599. ac_ct_AR
  600. AR
  601. DLLTOOL
  602. OBJDUMP
  603. NM
  604. ac_ct_DUMPBIN
  605. DUMPBIN
  606. LD
  607. FGREP
  608. SED
  609. LIBTOOL
  610. LN_S
  611. EGREP
  612. GREP
  613. CPP
  614. am__fastdepCC_FALSE
  615. am__fastdepCC_TRUE
  616. CCDEPMODE
  617. am__nodep
  618. AMDEPBACKSLASH
  619. AMDEP_FALSE
  620. AMDEP_TRUE
  621. am__include
  622. DEPDIR
  623. OBJEXT
  624. EXEEXT
  625. ac_ct_CC
  626. CPPFLAGS
  627. LDFLAGS
  628. CFLAGS
  629. CC
  630. WARNINGS
  631. FSECT5_FALSE
  632. FSECT5_TRUE
  633. fsect
  634. pkgdatadir
  635. MINGW_FALSE
  636. MINGW_TRUE
  637. MINGW
  638. host_os
  639. host_vendor
  640. host_cpu
  641. host
  642. build_os
  643. build_vendor
  644. build_cpu
  645. build
  646. AM_BACKSLASH
  647. AM_DEFAULT_VERBOSITY
  648. AM_DEFAULT_V
  649. AM_V
  650. am__untar
  651. am__tar
  652. AMTAR
  653. am__leading_dot
  654. SET_MAKE
  655. AWK
  656. mkdir_p
  657. MKDIR_P
  658. INSTALL_STRIP_PROGRAM
  659. STRIP
  660. install_sh
  661. MAKEINFO
  662. AUTOHEADER
  663. AUTOMAKE
  664. AUTOCONF
  665. ACLOCAL
  666. VERSION
  667. PACKAGE
  668. CYGPATH_W
  669. am__isrc
  670. INSTALL_DATA
  671. INSTALL_SCRIPT
  672. INSTALL_PROGRAM
  673. target_alias
  674. host_alias
  675. build_alias
  676. LIBS
  677. ECHO_T
  678. ECHO_N
  679. ECHO_C
  680. DEFS
  681. mandir
  682. localedir
  683. libdir
  684. psdir
  685. pdfdir
  686. dvidir
  687. htmldir
  688. infodir
  689. docdir
  690. oldincludedir
  691. includedir
  692. localstatedir
  693. sharedstatedir
  694. sysconfdir
  695. datadir
  696. datarootdir
  697. libexecdir
  698. sbindir
  699. bindir
  700. program_transform_name
  701. prefix
  702. exec_prefix
  703. PACKAGE_URL
  704. PACKAGE_BUGREPORT
  705. PACKAGE_STRING
  706. PACKAGE_VERSION
  707. PACKAGE_TARNAME
  708. PACKAGE_NAME
  709. PATH_SEPARATOR
  710. SHELL
  711. am__quote'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_silent_rules
  716. enable_elf
  717. enable_elf_core
  718. enable_zlib
  719. enable_bzlib
  720. enable_xzlib
  721. enable_libseccomp
  722. enable_fsect_man5
  723. enable_dependency_tracking
  724. enable_static
  725. with_pic
  726. enable_shared
  727. enable_fast_install
  728. with_aix_soname
  729. with_gnu_ld
  730. with_sysroot
  731. enable_libtool_lock
  732. enable_largefile
  733. enable_warnings
  734. '
  735. ac_precious_vars='build_alias
  736. host_alias
  737. target_alias
  738. CC
  739. CFLAGS
  740. LDFLAGS
  741. LIBS
  742. CPPFLAGS
  743. CPP
  744. LT_SYS_LIBRARY_PATH'
  745. # Initialize some variables set by options.
  746. ac_init_help=
  747. ac_init_version=false
  748. ac_unrecognized_opts=
  749. ac_unrecognized_sep=
  750. # The variables have the same names as the options, with
  751. # dashes changed to underlines.
  752. cache_file=/dev/null
  753. exec_prefix=NONE
  754. no_create=
  755. no_recursion=
  756. prefix=NONE
  757. program_prefix=NONE
  758. program_suffix=NONE
  759. program_transform_name=s,x,x,
  760. silent=
  761. site=
  762. srcdir=
  763. verbose=
  764. x_includes=NONE
  765. x_libraries=NONE
  766. # Installation directory options.
  767. # These are left unexpanded so users can "make install exec_prefix=/foo"
  768. # and all the variables that are supposed to be based on exec_prefix
  769. # by default will actually change.
  770. # Use braces instead of parens because sh, perl, etc. also accept them.
  771. # (The list follows the same order as the GNU Coding Standards.)
  772. bindir='${exec_prefix}/bin'
  773. sbindir='${exec_prefix}/sbin'
  774. libexecdir='${exec_prefix}/libexec'
  775. datarootdir='${prefix}/share'
  776. datadir='${datarootdir}'
  777. sysconfdir='${prefix}/etc'
  778. sharedstatedir='${prefix}/com'
  779. localstatedir='${prefix}/var'
  780. includedir='${prefix}/include'
  781. oldincludedir='/usr/include'
  782. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  783. infodir='${datarootdir}/info'
  784. htmldir='${docdir}'
  785. dvidir='${docdir}'
  786. pdfdir='${docdir}'
  787. psdir='${docdir}'
  788. libdir='${exec_prefix}/lib'
  789. localedir='${datarootdir}/locale'
  790. mandir='${datarootdir}/man'
  791. ac_prev=
  792. ac_dashdash=
  793. for ac_option
  794. do
  795. # If the previous option needs an argument, assign it.
  796. if test -n "$ac_prev"; then
  797. eval $ac_prev=\$ac_option
  798. ac_prev=
  799. continue
  800. fi
  801. case $ac_option in
  802. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  803. *=) ac_optarg= ;;
  804. *) ac_optarg=yes ;;
  805. esac
  806. # Accept the important Cygnus configure options, so we can diagnose typos.
  807. case $ac_dashdash$ac_option in
  808. --)
  809. ac_dashdash=yes ;;
  810. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  811. ac_prev=bindir ;;
  812. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  813. bindir=$ac_optarg ;;
  814. -build | --build | --buil | --bui | --bu)
  815. ac_prev=build_alias ;;
  816. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  817. build_alias=$ac_optarg ;;
  818. -cache-file | --cache-file | --cache-fil | --cache-fi \
  819. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  820. ac_prev=cache_file ;;
  821. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  822. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  823. cache_file=$ac_optarg ;;
  824. --config-cache | -C)
  825. cache_file=config.cache ;;
  826. -datadir | --datadir | --datadi | --datad)
  827. ac_prev=datadir ;;
  828. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  829. datadir=$ac_optarg ;;
  830. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  831. | --dataroo | --dataro | --datar)
  832. ac_prev=datarootdir ;;
  833. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  834. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  835. datarootdir=$ac_optarg ;;
  836. -disable-* | --disable-*)
  837. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  838. # Reject names that are not valid shell variable names.
  839. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  840. as_fn_error $? "invalid feature name: $ac_useropt"
  841. ac_useropt_orig=$ac_useropt
  842. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  843. case $ac_user_opts in
  844. *"
  845. "enable_$ac_useropt"
  846. "*) ;;
  847. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  848. ac_unrecognized_sep=', ';;
  849. esac
  850. eval enable_$ac_useropt=no ;;
  851. -docdir | --docdir | --docdi | --doc | --do)
  852. ac_prev=docdir ;;
  853. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  854. docdir=$ac_optarg ;;
  855. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  856. ac_prev=dvidir ;;
  857. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  858. dvidir=$ac_optarg ;;
  859. -enable-* | --enable-*)
  860. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  861. # Reject names that are not valid shell variable names.
  862. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  863. as_fn_error $? "invalid feature name: $ac_useropt"
  864. ac_useropt_orig=$ac_useropt
  865. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  866. case $ac_user_opts in
  867. *"
  868. "enable_$ac_useropt"
  869. "*) ;;
  870. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  871. ac_unrecognized_sep=', ';;
  872. esac
  873. eval enable_$ac_useropt=\$ac_optarg ;;
  874. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  875. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  876. | --exec | --exe | --ex)
  877. ac_prev=exec_prefix ;;
  878. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  879. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  880. | --exec=* | --exe=* | --ex=*)
  881. exec_prefix=$ac_optarg ;;
  882. -gas | --gas | --ga | --g)
  883. # Obsolete; use --with-gas.
  884. with_gas=yes ;;
  885. -help | --help | --hel | --he | -h)
  886. ac_init_help=long ;;
  887. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  888. ac_init_help=recursive ;;
  889. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  890. ac_init_help=short ;;
  891. -host | --host | --hos | --ho)
  892. ac_prev=host_alias ;;
  893. -host=* | --host=* | --hos=* | --ho=*)
  894. host_alias=$ac_optarg ;;
  895. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  896. ac_prev=htmldir ;;
  897. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  898. | --ht=*)
  899. htmldir=$ac_optarg ;;
  900. -includedir | --includedir | --includedi | --included | --include \
  901. | --includ | --inclu | --incl | --inc)
  902. ac_prev=includedir ;;
  903. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  904. | --includ=* | --inclu=* | --incl=* | --inc=*)
  905. includedir=$ac_optarg ;;
  906. -infodir | --infodir | --infodi | --infod | --info | --inf)
  907. ac_prev=infodir ;;
  908. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  909. infodir=$ac_optarg ;;
  910. -libdir | --libdir | --libdi | --libd)
  911. ac_prev=libdir ;;
  912. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  913. libdir=$ac_optarg ;;
  914. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  915. | --libexe | --libex | --libe)
  916. ac_prev=libexecdir ;;
  917. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  918. | --libexe=* | --libex=* | --libe=*)
  919. libexecdir=$ac_optarg ;;
  920. -localedir | --localedir | --localedi | --localed | --locale)
  921. ac_prev=localedir ;;
  922. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  923. localedir=$ac_optarg ;;
  924. -localstatedir | --localstatedir | --localstatedi | --localstated \
  925. | --localstate | --localstat | --localsta | --localst | --locals)
  926. ac_prev=localstatedir ;;
  927. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  928. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  929. localstatedir=$ac_optarg ;;
  930. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  931. ac_prev=mandir ;;
  932. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  933. mandir=$ac_optarg ;;
  934. -nfp | --nfp | --nf)
  935. # Obsolete; use --without-fp.
  936. with_fp=no ;;
  937. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  938. | --no-cr | --no-c | -n)
  939. no_create=yes ;;
  940. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  941. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  942. no_recursion=yes ;;
  943. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  944. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  945. | --oldin | --oldi | --old | --ol | --o)
  946. ac_prev=oldincludedir ;;
  947. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  948. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  949. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  950. oldincludedir=$ac_optarg ;;
  951. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  952. ac_prev=prefix ;;
  953. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  954. prefix=$ac_optarg ;;
  955. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  956. | --program-pre | --program-pr | --program-p)
  957. ac_prev=program_prefix ;;
  958. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  959. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  960. program_prefix=$ac_optarg ;;
  961. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  962. | --program-suf | --program-su | --program-s)
  963. ac_prev=program_suffix ;;
  964. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  965. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  966. program_suffix=$ac_optarg ;;
  967. -program-transform-name | --program-transform-name \
  968. | --program-transform-nam | --program-transform-na \
  969. | --program-transform-n | --program-transform- \
  970. | --program-transform | --program-transfor \
  971. | --program-transfo | --program-transf \
  972. | --program-trans | --program-tran \
  973. | --progr-tra | --program-tr | --program-t)
  974. ac_prev=program_transform_name ;;
  975. -program-transform-name=* | --program-transform-name=* \
  976. | --program-transform-nam=* | --program-transform-na=* \
  977. | --program-transform-n=* | --program-transform-=* \
  978. | --program-transform=* | --program-transfor=* \
  979. | --program-transfo=* | --program-transf=* \
  980. | --program-trans=* | --program-tran=* \
  981. | --progr-tra=* | --program-tr=* | --program-t=*)
  982. program_transform_name=$ac_optarg ;;
  983. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  984. ac_prev=pdfdir ;;
  985. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  986. pdfdir=$ac_optarg ;;
  987. -psdir | --psdir | --psdi | --psd | --ps)
  988. ac_prev=psdir ;;
  989. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  990. psdir=$ac_optarg ;;
  991. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  992. | -silent | --silent | --silen | --sile | --sil)
  993. silent=yes ;;
  994. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  995. ac_prev=sbindir ;;
  996. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  997. | --sbi=* | --sb=*)
  998. sbindir=$ac_optarg ;;
  999. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1000. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1001. | --sharedst | --shareds | --shared | --share | --shar \
  1002. | --sha | --sh)
  1003. ac_prev=sharedstatedir ;;
  1004. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1005. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1006. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1007. | --sha=* | --sh=*)
  1008. sharedstatedir=$ac_optarg ;;
  1009. -site | --site | --sit)
  1010. ac_prev=site ;;
  1011. -site=* | --site=* | --sit=*)
  1012. site=$ac_optarg ;;
  1013. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1014. ac_prev=srcdir ;;
  1015. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1016. srcdir=$ac_optarg ;;
  1017. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1018. | --syscon | --sysco | --sysc | --sys | --sy)
  1019. ac_prev=sysconfdir ;;
  1020. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1021. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1022. sysconfdir=$ac_optarg ;;
  1023. -target | --target | --targe | --targ | --tar | --ta | --t)
  1024. ac_prev=target_alias ;;
  1025. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1026. target_alias=$ac_optarg ;;
  1027. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1028. verbose=yes ;;
  1029. -version | --version | --versio | --versi | --vers | -V)
  1030. ac_init_version=: ;;
  1031. -with-* | --with-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=\$ac_optarg ;;
  1046. -without-* | --without-*)
  1047. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1048. # Reject names that are not valid shell variable names.
  1049. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1050. as_fn_error $? "invalid package name: $ac_useropt"
  1051. ac_useropt_orig=$ac_useropt
  1052. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1053. case $ac_user_opts in
  1054. *"
  1055. "with_$ac_useropt"
  1056. "*) ;;
  1057. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1058. ac_unrecognized_sep=', ';;
  1059. esac
  1060. eval with_$ac_useropt=no ;;
  1061. --x)
  1062. # Obsolete; use --with-x.
  1063. with_x=yes ;;
  1064. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1065. | --x-incl | --x-inc | --x-in | --x-i)
  1066. ac_prev=x_includes ;;
  1067. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1068. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1069. x_includes=$ac_optarg ;;
  1070. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1071. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1072. ac_prev=x_libraries ;;
  1073. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1074. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1075. x_libraries=$ac_optarg ;;
  1076. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1077. Try \`$0 --help' for more information"
  1078. ;;
  1079. *=*)
  1080. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1081. # Reject names that are not valid shell variable names.
  1082. case $ac_envvar in #(
  1083. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1084. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1085. esac
  1086. eval $ac_envvar=\$ac_optarg
  1087. export $ac_envvar ;;
  1088. *)
  1089. # FIXME: should be removed in autoconf 3.0.
  1090. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1091. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1092. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1093. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1094. ;;
  1095. esac
  1096. done
  1097. if test -n "$ac_prev"; then
  1098. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1099. as_fn_error $? "missing argument to $ac_option"
  1100. fi
  1101. if test -n "$ac_unrecognized_opts"; then
  1102. case $enable_option_checking in
  1103. no) ;;
  1104. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1105. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1106. esac
  1107. fi
  1108. # Check all directory arguments for consistency.
  1109. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1110. datadir sysconfdir sharedstatedir localstatedir includedir \
  1111. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1112. libdir localedir mandir
  1113. do
  1114. eval ac_val=\$$ac_var
  1115. # Remove trailing slashes.
  1116. case $ac_val in
  1117. */ )
  1118. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1119. eval $ac_var=\$ac_val;;
  1120. esac
  1121. # Be sure to have absolute directory names.
  1122. case $ac_val in
  1123. [\\/$]* | ?:[\\/]* ) continue;;
  1124. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1125. esac
  1126. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1127. done
  1128. # There might be people who depend on the old broken behavior: `$host'
  1129. # used to hold the argument of --host etc.
  1130. # FIXME: To remove some day.
  1131. build=$build_alias
  1132. host=$host_alias
  1133. target=$target_alias
  1134. # FIXME: To remove some day.
  1135. if test "x$host_alias" != x; then
  1136. if test "x$build_alias" = x; then
  1137. cross_compiling=maybe
  1138. elif test "x$build_alias" != "x$host_alias"; then
  1139. cross_compiling=yes
  1140. fi
  1141. fi
  1142. ac_tool_prefix=
  1143. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1144. test "$silent" = yes && exec 6>/dev/null
  1145. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1146. ac_ls_di=`ls -di .` &&
  1147. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1148. as_fn_error $? "working directory cannot be determined"
  1149. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1150. as_fn_error $? "pwd does not report name of working directory"
  1151. # Find the source files, if location was not specified.
  1152. if test -z "$srcdir"; then
  1153. ac_srcdir_defaulted=yes
  1154. # Try the directory containing this script, then the parent directory.
  1155. ac_confdir=`$as_dirname -- "$as_myself" ||
  1156. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1157. X"$as_myself" : 'X\(//\)[^/]' \| \
  1158. X"$as_myself" : 'X\(//\)$' \| \
  1159. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1160. $as_echo X"$as_myself" |
  1161. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1162. s//\1/
  1163. q
  1164. }
  1165. /^X\(\/\/\)[^/].*/{
  1166. s//\1/
  1167. q
  1168. }
  1169. /^X\(\/\/\)$/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\).*/{
  1174. s//\1/
  1175. q
  1176. }
  1177. s/.*/./; q'`
  1178. srcdir=$ac_confdir
  1179. if test ! -r "$srcdir/$ac_unique_file"; then
  1180. srcdir=..
  1181. fi
  1182. else
  1183. ac_srcdir_defaulted=no
  1184. fi
  1185. if test ! -r "$srcdir/$ac_unique_file"; then
  1186. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1187. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1188. fi
  1189. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1190. ac_abs_confdir=`(
  1191. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1192. pwd)`
  1193. # When building in place, set srcdir=.
  1194. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1195. srcdir=.
  1196. fi
  1197. # Remove unnecessary trailing slashes from srcdir.
  1198. # Double slashes in file names in object file debugging info
  1199. # mess up M-x gdb in Emacs.
  1200. case $srcdir in
  1201. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1202. esac
  1203. for ac_var in $ac_precious_vars; do
  1204. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1205. eval ac_env_${ac_var}_value=\$${ac_var}
  1206. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1207. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1208. done
  1209. #
  1210. # Report the --help message.
  1211. #
  1212. if test "$ac_init_help" = "long"; then
  1213. # Omit some internal or obsolete options to make the list less imposing.
  1214. # This message is too long to be a string in the A/UX 3.1 sh.
  1215. cat <<_ACEOF
  1216. \`configure' configures file 5.39 to adapt to many kinds of systems.
  1217. Usage: $0 [OPTION]... [VAR=VALUE]...
  1218. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1219. VAR=VALUE. See below for descriptions of some of the useful variables.
  1220. Defaults for the options are specified in brackets.
  1221. Configuration:
  1222. -h, --help display this help and exit
  1223. --help=short display options specific to this package
  1224. --help=recursive display the short help of all the included packages
  1225. -V, --version display version information and exit
  1226. -q, --quiet, --silent do not print \`checking ...' messages
  1227. --cache-file=FILE cache test results in FILE [disabled]
  1228. -C, --config-cache alias for \`--cache-file=config.cache'
  1229. -n, --no-create do not create output files
  1230. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1231. Installation directories:
  1232. --prefix=PREFIX install architecture-independent files in PREFIX
  1233. [$ac_default_prefix]
  1234. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1235. [PREFIX]
  1236. By default, \`make install' will install all the files in
  1237. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1238. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1239. for instance \`--prefix=\$HOME'.
  1240. For better control, use the options below.
  1241. Fine tuning of the installation directories:
  1242. --bindir=DIR user executables [EPREFIX/bin]
  1243. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1244. --libexecdir=DIR program executables [EPREFIX/libexec]
  1245. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1246. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1247. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1248. --libdir=DIR object code libraries [EPREFIX/lib]
  1249. --includedir=DIR C header files [PREFIX/include]
  1250. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1251. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1252. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1253. --infodir=DIR info documentation [DATAROOTDIR/info]
  1254. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1255. --mandir=DIR man documentation [DATAROOTDIR/man]
  1256. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1257. --htmldir=DIR html documentation [DOCDIR]
  1258. --dvidir=DIR dvi documentation [DOCDIR]
  1259. --pdfdir=DIR pdf documentation [DOCDIR]
  1260. --psdir=DIR ps documentation [DOCDIR]
  1261. _ACEOF
  1262. cat <<\_ACEOF
  1263. Program names:
  1264. --program-prefix=PREFIX prepend PREFIX to installed program names
  1265. --program-suffix=SUFFIX append SUFFIX to installed program names
  1266. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1267. System types:
  1268. --build=BUILD configure for building on BUILD [guessed]
  1269. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1270. _ACEOF
  1271. fi
  1272. if test -n "$ac_init_help"; then
  1273. case $ac_init_help in
  1274. short | recursive ) echo "Configuration of file 5.39:";;
  1275. esac
  1276. cat <<\_ACEOF
  1277. Optional Features:
  1278. --disable-option-checking ignore unrecognized --enable/--with options
  1279. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1280. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1281. --enable-silent-rules less verbose build output (undo: "make V=1")
  1282. --disable-silent-rules verbose build output (undo: "make V=0")
  1283. --disable-elf disable builtin ELF support
  1284. --disable-elf-core disable ELF core file support
  1285. --disable-zlib disable zlib compression support [default=auto]
  1286. --disable-bzlib disable bz2lib compression support [default=auto]
  1287. --disable-xzlib disable liblzma/xz compression support
  1288. [default=auto]
  1289. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1290. --enable-fsect-man5 enable file formats in man section 5
  1291. --enable-dependency-tracking
  1292. do not reject slow dependency extractors
  1293. --disable-dependency-tracking
  1294. speeds up one-time build
  1295. --enable-static[=PKGS] build static libraries [default=no]
  1296. --enable-shared[=PKGS] build shared libraries [default=yes]
  1297. --enable-fast-install[=PKGS]
  1298. optimize for fast installation [default=yes]
  1299. --disable-libtool-lock avoid locking (might break parallel builds)
  1300. --disable-largefile omit support for large files
  1301. --disable-warnings disable compiler warnings
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1306. both]
  1307. --with-aix-soname=aix|svr4|both
  1308. shared library versioning (aka "SONAME") variant to
  1309. provide on AIX, [default=aix].
  1310. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1311. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1312. compiler's sysroot if not specified).
  1313. Some influential environment variables:
  1314. CC C compiler command
  1315. CFLAGS C compiler flags
  1316. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1317. nonstandard directory <lib dir>
  1318. LIBS libraries to pass to the linker, e.g. -l<library>
  1319. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1320. you have headers in a nonstandard directory <include dir>
  1321. CPP C preprocessor
  1322. LT_SYS_LIBRARY_PATH
  1323. User-defined run-time library search path.
  1324. Use these variables to override the choices made by `configure' or to help
  1325. it to find libraries and programs with nonstandard names/locations.
  1326. Report bugs to <christos@astron.com>.
  1327. _ACEOF
  1328. ac_status=$?
  1329. fi
  1330. if test "$ac_init_help" = "recursive"; then
  1331. # If there are subdirs, report their specific --help.
  1332. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1333. test -d "$ac_dir" ||
  1334. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1335. continue
  1336. ac_builddir=.
  1337. case "$ac_dir" in
  1338. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1339. *)
  1340. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1341. # A ".." for each directory in $ac_dir_suffix.
  1342. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1343. case $ac_top_builddir_sub in
  1344. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1345. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1346. esac ;;
  1347. esac
  1348. ac_abs_top_builddir=$ac_pwd
  1349. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1350. # for backward compatibility:
  1351. ac_top_builddir=$ac_top_build_prefix
  1352. case $srcdir in
  1353. .) # We are building in place.
  1354. ac_srcdir=.
  1355. ac_top_srcdir=$ac_top_builddir_sub
  1356. ac_abs_top_srcdir=$ac_pwd ;;
  1357. [\\/]* | ?:[\\/]* ) # Absolute name.
  1358. ac_srcdir=$srcdir$ac_dir_suffix;
  1359. ac_top_srcdir=$srcdir
  1360. ac_abs_top_srcdir=$srcdir ;;
  1361. *) # Relative name.
  1362. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1363. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1364. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1365. esac
  1366. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1367. cd "$ac_dir" || { ac_status=$?; continue; }
  1368. # Check for guested configure.
  1369. if test -f "$ac_srcdir/configure.gnu"; then
  1370. echo &&
  1371. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1372. elif test -f "$ac_srcdir/configure"; then
  1373. echo &&
  1374. $SHELL "$ac_srcdir/configure" --help=recursive
  1375. else
  1376. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1377. fi || ac_status=$?
  1378. cd "$ac_pwd" || { ac_status=$?; break; }
  1379. done
  1380. fi
  1381. test -n "$ac_init_help" && exit $ac_status
  1382. if $ac_init_version; then
  1383. cat <<\_ACEOF
  1384. file configure 5.39
  1385. generated by GNU Autoconf 2.69
  1386. Copyright (C) 2012 Free Software Foundation, Inc.
  1387. This configure script is free software; the Free Software Foundation
  1388. gives unlimited permission to copy, distribute and modify it.
  1389. _ACEOF
  1390. exit
  1391. fi
  1392. ## ------------------------ ##
  1393. ## Autoconf initialization. ##
  1394. ## ------------------------ ##
  1395. # ac_fn_c_try_compile LINENO
  1396. # --------------------------
  1397. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1398. ac_fn_c_try_compile ()
  1399. {
  1400. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1401. rm -f conftest.$ac_objext
  1402. if { { ac_try="$ac_compile"
  1403. case "(($ac_try" in
  1404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1405. *) ac_try_echo=$ac_try;;
  1406. esac
  1407. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1408. $as_echo "$ac_try_echo"; } >&5
  1409. (eval "$ac_compile") 2>conftest.err
  1410. ac_status=$?
  1411. if test -s conftest.err; then
  1412. grep -v '^ *+' conftest.err >conftest.er1
  1413. cat conftest.er1 >&5
  1414. mv -f conftest.er1 conftest.err
  1415. fi
  1416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1417. test $ac_status = 0; } && {
  1418. test -z "$ac_c_werror_flag" ||
  1419. test ! -s conftest.err
  1420. } && test -s conftest.$ac_objext; then :
  1421. ac_retval=0
  1422. else
  1423. $as_echo "$as_me: failed program was:" >&5
  1424. sed 's/^/| /' conftest.$ac_ext >&5
  1425. ac_retval=1
  1426. fi
  1427. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1428. as_fn_set_status $ac_retval
  1429. } # ac_fn_c_try_compile
  1430. # ac_fn_c_try_cpp LINENO
  1431. # ----------------------
  1432. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1433. ac_fn_c_try_cpp ()
  1434. {
  1435. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1436. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1437. case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. $as_echo "$ac_try_echo"; } >&5
  1443. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1444. ac_status=$?
  1445. if test -s conftest.err; then
  1446. grep -v '^ *+' conftest.err >conftest.er1
  1447. cat conftest.er1 >&5
  1448. mv -f conftest.er1 conftest.err
  1449. fi
  1450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1451. test $ac_status = 0; } > conftest.i && {
  1452. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1453. test ! -s conftest.err
  1454. }; then :
  1455. ac_retval=0
  1456. else
  1457. $as_echo "$as_me: failed program was:" >&5
  1458. sed 's/^/| /' conftest.$ac_ext >&5
  1459. ac_retval=1
  1460. fi
  1461. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1462. as_fn_set_status $ac_retval
  1463. } # ac_fn_c_try_cpp
  1464. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1465. # -------------------------------------------------------
  1466. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1467. # the include files in INCLUDES and setting the cache variable VAR
  1468. # accordingly.
  1469. ac_fn_c_check_header_mongrel ()
  1470. {
  1471. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1472. if eval \${$3+:} false; then :
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1474. $as_echo_n "checking for $2... " >&6; }
  1475. if eval \${$3+:} false; then :
  1476. $as_echo_n "(cached) " >&6
  1477. fi
  1478. eval ac_res=\$$3
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1480. $as_echo "$ac_res" >&6; }
  1481. else
  1482. # Is the header compilable?
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1484. $as_echo_n "checking $2 usability... " >&6; }
  1485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1486. /* end confdefs.h. */
  1487. $4
  1488. #include <$2>
  1489. _ACEOF
  1490. if ac_fn_c_try_compile "$LINENO"; then :
  1491. ac_header_compiler=yes
  1492. else
  1493. ac_header_compiler=no
  1494. fi
  1495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1497. $as_echo "$ac_header_compiler" >&6; }
  1498. # Is the header present?
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1500. $as_echo_n "checking $2 presence... " >&6; }
  1501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1502. /* end confdefs.h. */
  1503. #include <$2>
  1504. _ACEOF
  1505. if ac_fn_c_try_cpp "$LINENO"; then :
  1506. ac_header_preproc=yes
  1507. else
  1508. ac_header_preproc=no
  1509. fi
  1510. rm -f conftest.err conftest.i conftest.$ac_ext
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1512. $as_echo "$ac_header_preproc" >&6; }
  1513. # So? What about this header?
  1514. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1515. yes:no: )
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1517. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1519. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1520. ;;
  1521. no:yes:* )
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1523. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1525. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1527. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1528. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1529. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1531. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1532. ( $as_echo "## ---------------------------------- ##
  1533. ## Report this to christos@astron.com ##
  1534. ## ---------------------------------- ##"
  1535. ) | sed "s/^/$as_me: WARNING: /" >&2
  1536. ;;
  1537. esac
  1538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1539. $as_echo_n "checking for $2... " >&6; }
  1540. if eval \${$3+:} false; then :
  1541. $as_echo_n "(cached) " >&6
  1542. else
  1543. eval "$3=\$ac_header_compiler"
  1544. fi
  1545. eval ac_res=\$$3
  1546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1547. $as_echo "$ac_res" >&6; }
  1548. fi
  1549. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1550. } # ac_fn_c_check_header_mongrel
  1551. # ac_fn_c_try_run LINENO
  1552. # ----------------------
  1553. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1554. # that executables *can* be run.
  1555. ac_fn_c_try_run ()
  1556. {
  1557. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558. if { { ac_try="$ac_link"
  1559. case "(($ac_try" in
  1560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1561. *) ac_try_echo=$ac_try;;
  1562. esac
  1563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1564. $as_echo "$ac_try_echo"; } >&5
  1565. (eval "$ac_link") 2>&5
  1566. ac_status=$?
  1567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1568. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1569. { { case "(($ac_try" in
  1570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1571. *) ac_try_echo=$ac_try;;
  1572. esac
  1573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1574. $as_echo "$ac_try_echo"; } >&5
  1575. (eval "$ac_try") 2>&5
  1576. ac_status=$?
  1577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1578. test $ac_status = 0; }; }; then :
  1579. ac_retval=0
  1580. else
  1581. $as_echo "$as_me: program exited with status $ac_status" >&5
  1582. $as_echo "$as_me: failed program was:" >&5
  1583. sed 's/^/| /' conftest.$ac_ext >&5
  1584. ac_retval=$ac_status
  1585. fi
  1586. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1587. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1588. as_fn_set_status $ac_retval
  1589. } # ac_fn_c_try_run
  1590. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1591. # -------------------------------------------------------
  1592. # Tests whether HEADER exists and can be compiled using the include files in
  1593. # INCLUDES, setting the cache variable VAR accordingly.
  1594. ac_fn_c_check_header_compile ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1598. $as_echo_n "checking for $2... " >&6; }
  1599. if eval \${$3+:} false; then :
  1600. $as_echo_n "(cached) " >&6
  1601. else
  1602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end confdefs.h. */
  1604. $4
  1605. #include <$2>
  1606. _ACEOF
  1607. if ac_fn_c_try_compile "$LINENO"; then :
  1608. eval "$3=yes"
  1609. else
  1610. eval "$3=no"
  1611. fi
  1612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1613. fi
  1614. eval ac_res=\$$3
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1616. $as_echo "$ac_res" >&6; }
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. } # ac_fn_c_check_header_compile
  1619. # ac_fn_c_try_link LINENO
  1620. # -----------------------
  1621. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1622. ac_fn_c_try_link ()
  1623. {
  1624. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1625. rm -f conftest.$ac_objext conftest$ac_exeext
  1626. if { { ac_try="$ac_link"
  1627. case "(($ac_try" in
  1628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1629. *) ac_try_echo=$ac_try;;
  1630. esac
  1631. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1632. $as_echo "$ac_try_echo"; } >&5
  1633. (eval "$ac_link") 2>conftest.err
  1634. ac_status=$?
  1635. if test -s conftest.err; then
  1636. grep -v '^ *+' conftest.err >conftest.er1
  1637. cat conftest.er1 >&5
  1638. mv -f conftest.er1 conftest.err
  1639. fi
  1640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1641. test $ac_status = 0; } && {
  1642. test -z "$ac_c_werror_flag" ||
  1643. test ! -s conftest.err
  1644. } && test -s conftest$ac_exeext && {
  1645. test "$cross_compiling" = yes ||
  1646. test -x conftest$ac_exeext
  1647. }; then :
  1648. ac_retval=0
  1649. else
  1650. $as_echo "$as_me: failed program was:" >&5
  1651. sed 's/^/| /' conftest.$ac_ext >&5
  1652. ac_retval=1
  1653. fi
  1654. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1655. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1656. # interfere with the next link command; also delete a directory that is
  1657. # left behind by Apple's compiler. We do this before executing the actions.
  1658. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1659. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1660. as_fn_set_status $ac_retval
  1661. } # ac_fn_c_try_link
  1662. # ac_fn_c_check_func LINENO FUNC VAR
  1663. # ----------------------------------
  1664. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1665. ac_fn_c_check_func ()
  1666. {
  1667. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1669. $as_echo_n "checking for $2... " >&6; }
  1670. if eval \${$3+:} false; then :
  1671. $as_echo_n "(cached) " >&6
  1672. else
  1673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1674. /* end confdefs.h. */
  1675. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1676. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1677. #define $2 innocuous_$2
  1678. /* System header to define __stub macros and hopefully few prototypes,
  1679. which can conflict with char $2 (); below.
  1680. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1681. <limits.h> exists even on freestanding compilers. */
  1682. #ifdef __STDC__
  1683. # include <limits.h>
  1684. #else
  1685. # include <assert.h>
  1686. #endif
  1687. #undef $2
  1688. /* Override any GCC internal prototype to avoid an error.
  1689. Use char because int might match the return type of a GCC
  1690. builtin and then its argument prototype would still apply. */
  1691. #ifdef __cplusplus
  1692. extern "C"
  1693. #endif
  1694. char $2 ();
  1695. /* The GNU C library defines this for functions which it implements
  1696. to always fail with ENOSYS. Some functions are actually named
  1697. something starting with __ and the normal name is an alias. */
  1698. #if defined __stub_$2 || defined __stub___$2
  1699. choke me
  1700. #endif
  1701. int
  1702. main ()
  1703. {
  1704. return $2 ();
  1705. ;
  1706. return 0;
  1707. }
  1708. _ACEOF
  1709. if ac_fn_c_try_link "$LINENO"; then :
  1710. eval "$3=yes"
  1711. else
  1712. eval "$3=no"
  1713. fi
  1714. rm -f core conftest.err conftest.$ac_objext \
  1715. conftest$ac_exeext conftest.$ac_ext
  1716. fi
  1717. eval ac_res=\$$3
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1719. $as_echo "$ac_res" >&6; }
  1720. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1721. } # ac_fn_c_check_func
  1722. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1723. # -------------------------------------------
  1724. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1725. # variable VAR accordingly.
  1726. ac_fn_c_check_type ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1730. $as_echo_n "checking for $2... " >&6; }
  1731. if eval \${$3+:} false; then :
  1732. $as_echo_n "(cached) " >&6
  1733. else
  1734. eval "$3=no"
  1735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1736. /* end confdefs.h. */
  1737. $4
  1738. int
  1739. main ()
  1740. {
  1741. if (sizeof ($2))
  1742. return 0;
  1743. ;
  1744. return 0;
  1745. }
  1746. _ACEOF
  1747. if ac_fn_c_try_compile "$LINENO"; then :
  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. else
  1762. eval "$3=yes"
  1763. fi
  1764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1765. fi
  1766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1767. fi
  1768. eval ac_res=\$$3
  1769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1770. $as_echo "$ac_res" >&6; }
  1771. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1772. } # ac_fn_c_check_type
  1773. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1774. # ----------------------------------------------------
  1775. # Tries to find if the field MEMBER exists in type AGGR, after including
  1776. # INCLUDES, setting cache variable VAR accordingly.
  1777. ac_fn_c_check_member ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1781. $as_echo_n "checking for $2.$3... " >&6; }
  1782. if eval \${$4+:} false; then :
  1783. $as_echo_n "(cached) " >&6
  1784. else
  1785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1786. /* end confdefs.h. */
  1787. $5
  1788. int
  1789. main ()
  1790. {
  1791. static $2 ac_aggr;
  1792. if (ac_aggr.$3)
  1793. return 0;
  1794. ;
  1795. return 0;
  1796. }
  1797. _ACEOF
  1798. if ac_fn_c_try_compile "$LINENO"; then :
  1799. eval "$4=yes"
  1800. else
  1801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1802. /* end confdefs.h. */
  1803. $5
  1804. int
  1805. main ()
  1806. {
  1807. static $2 ac_aggr;
  1808. if (sizeof ac_aggr.$3)
  1809. return 0;
  1810. ;
  1811. return 0;
  1812. }
  1813. _ACEOF
  1814. if ac_fn_c_try_compile "$LINENO"; then :
  1815. eval "$4=yes"
  1816. else
  1817. eval "$4=no"
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$4
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_c_check_member
  1828. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1829. # ---------------------------------------------
  1830. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1831. # accordingly.
  1832. ac_fn_c_check_decl ()
  1833. {
  1834. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1835. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1836. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1838. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1839. if eval \${$3+:} false; then :
  1840. $as_echo_n "(cached) " >&6
  1841. else
  1842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1843. /* end confdefs.h. */
  1844. $4
  1845. int
  1846. main ()
  1847. {
  1848. #ifndef $as_decl_name
  1849. #ifdef __cplusplus
  1850. (void) $as_decl_use;
  1851. #else
  1852. (void) $as_decl_name;
  1853. #endif
  1854. #endif
  1855. ;
  1856. return 0;
  1857. }
  1858. _ACEOF
  1859. if ac_fn_c_try_compile "$LINENO"; then :
  1860. eval "$3=yes"
  1861. else
  1862. eval "$3=no"
  1863. fi
  1864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1865. fi
  1866. eval ac_res=\$$3
  1867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1868. $as_echo "$ac_res" >&6; }
  1869. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1870. } # ac_fn_c_check_decl
  1871. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1872. # ------------------------------------
  1873. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1874. # accordingly.
  1875. ac_fn_c_find_uintX_t ()
  1876. {
  1877. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1879. $as_echo_n "checking for uint$2_t... " >&6; }
  1880. if eval \${$3+:} false; then :
  1881. $as_echo_n "(cached) " >&6
  1882. else
  1883. eval "$3=no"
  1884. # Order is important - never check a type that is potentially smaller
  1885. # than half of the expected target width.
  1886. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1887. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1889. /* end confdefs.h. */
  1890. $ac_includes_default
  1891. int
  1892. main ()
  1893. {
  1894. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  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. case $ac_type in #(
  1903. uint$2_t) :
  1904. eval "$3=yes" ;; #(
  1905. *) :
  1906. eval "$3=\$ac_type" ;;
  1907. esac
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1910. if eval test \"x\$"$3"\" = x"no"; then :
  1911. else
  1912. break
  1913. fi
  1914. done
  1915. fi
  1916. eval ac_res=\$$3
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1918. $as_echo "$ac_res" >&6; }
  1919. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1920. } # ac_fn_c_find_uintX_t
  1921. # ac_fn_c_find_intX_t LINENO BITS VAR
  1922. # -----------------------------------
  1923. # Finds a signed integer type with width BITS, setting cache variable VAR
  1924. # accordingly.
  1925. ac_fn_c_find_intX_t ()
  1926. {
  1927. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1929. $as_echo_n "checking for int$2_t... " >&6; }
  1930. if eval \${$3+:} false; then :
  1931. $as_echo_n "(cached) " >&6
  1932. else
  1933. eval "$3=no"
  1934. # Order is important - never check a type that is potentially smaller
  1935. # than half of the expected target width.
  1936. for ac_type in int$2_t 'int' 'long int' \
  1937. 'long long int' 'short int' 'signed char'; do
  1938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1939. /* end confdefs.h. */
  1940. $ac_includes_default
  1941. enum { N = $2 / 2 - 1 };
  1942. int
  1943. main ()
  1944. {
  1945. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1946. test_array [0] = 0;
  1947. return test_array [0];
  1948. ;
  1949. return 0;
  1950. }
  1951. _ACEOF
  1952. if ac_fn_c_try_compile "$LINENO"; then :
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $ac_includes_default
  1956. enum { N = $2 / 2 - 1 };
  1957. int
  1958. main ()
  1959. {
  1960. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1961. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1962. test_array [0] = 0;
  1963. return test_array [0];
  1964. ;
  1965. return 0;
  1966. }
  1967. _ACEOF
  1968. if ac_fn_c_try_compile "$LINENO"; then :
  1969. else
  1970. case $ac_type in #(
  1971. int$2_t) :
  1972. eval "$3=yes" ;; #(
  1973. *) :
  1974. eval "$3=\$ac_type" ;;
  1975. esac
  1976. fi
  1977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1978. fi
  1979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1980. if eval test \"x\$"$3"\" = x"no"; then :
  1981. else
  1982. break
  1983. fi
  1984. done
  1985. fi
  1986. eval ac_res=\$$3
  1987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1988. $as_echo "$ac_res" >&6; }
  1989. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1990. } # ac_fn_c_find_intX_t
  1991. cat >config.log <<_ACEOF
  1992. This file contains any messages produced by compilers while
  1993. running configure, to aid debugging if configure makes a mistake.
  1994. It was created by file $as_me 5.39, which was
  1995. generated by GNU Autoconf 2.69. Invocation command line was
  1996. $ $0 $@
  1997. _ACEOF
  1998. exec 5>>config.log
  1999. {
  2000. cat <<_ASUNAME
  2001. ## --------- ##
  2002. ## Platform. ##
  2003. ## --------- ##
  2004. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2005. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2006. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2007. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2008. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2009. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2010. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2011. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2012. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2013. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2014. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2015. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2016. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2017. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2018. _ASUNAME
  2019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2020. for as_dir in $PATH
  2021. do
  2022. IFS=$as_save_IFS
  2023. test -z "$as_dir" && as_dir=.
  2024. $as_echo "PATH: $as_dir"
  2025. done
  2026. IFS=$as_save_IFS
  2027. } >&5
  2028. cat >&5 <<_ACEOF
  2029. ## ----------- ##
  2030. ## Core tests. ##
  2031. ## ----------- ##
  2032. _ACEOF
  2033. # Keep a trace of the command line.
  2034. # Strip out --no-create and --no-recursion so they do not pile up.
  2035. # Strip out --silent because we don't want to record it for future runs.
  2036. # Also quote any args containing shell meta-characters.
  2037. # Make two passes to allow for proper duplicate-argument suppression.
  2038. ac_configure_args=
  2039. ac_configure_args0=
  2040. ac_configure_args1=
  2041. ac_must_keep_next=false
  2042. for ac_pass in 1 2
  2043. do
  2044. for ac_arg
  2045. do
  2046. case $ac_arg in
  2047. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2048. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2049. | -silent | --silent | --silen | --sile | --sil)
  2050. continue ;;
  2051. *\'*)
  2052. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2053. esac
  2054. case $ac_pass in
  2055. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2056. 2)
  2057. as_fn_append ac_configure_args1 " '$ac_arg'"
  2058. if test $ac_must_keep_next = true; then
  2059. ac_must_keep_next=false # Got value, back to normal.
  2060. else
  2061. case $ac_arg in
  2062. *=* | --config-cache | -C | -disable-* | --disable-* \
  2063. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2064. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2065. | -with-* | --with-* | -without-* | --without-* | --x)
  2066. case "$ac_configure_args0 " in
  2067. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2068. esac
  2069. ;;
  2070. -* ) ac_must_keep_next=true ;;
  2071. esac
  2072. fi
  2073. as_fn_append ac_configure_args " '$ac_arg'"
  2074. ;;
  2075. esac
  2076. done
  2077. done
  2078. { ac_configure_args0=; unset ac_configure_args0;}
  2079. { ac_configure_args1=; unset ac_configure_args1;}
  2080. # When interrupted or exit'd, cleanup temporary files, and complete
  2081. # config.log. We remove comments because anyway the quotes in there
  2082. # would cause problems or look ugly.
  2083. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2084. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2085. trap 'exit_status=$?
  2086. # Save into config.log some information that might help in debugging.
  2087. {
  2088. echo
  2089. $as_echo "## ---------------- ##
  2090. ## Cache variables. ##
  2091. ## ---------------- ##"
  2092. echo
  2093. # The following way of writing the cache mishandles newlines in values,
  2094. (
  2095. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2096. eval ac_val=\$$ac_var
  2097. case $ac_val in #(
  2098. *${as_nl}*)
  2099. case $ac_var in #(
  2100. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2101. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2102. esac
  2103. case $ac_var in #(
  2104. _ | IFS | as_nl) ;; #(
  2105. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2106. *) { eval $ac_var=; unset $ac_var;} ;;
  2107. esac ;;
  2108. esac
  2109. done
  2110. (set) 2>&1 |
  2111. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2112. *${as_nl}ac_space=\ *)
  2113. sed -n \
  2114. "s/'\''/'\''\\\\'\'''\''/g;
  2115. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2116. ;; #(
  2117. *)
  2118. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2119. ;;
  2120. esac |
  2121. sort
  2122. )
  2123. echo
  2124. $as_echo "## ----------------- ##
  2125. ## Output variables. ##
  2126. ## ----------------- ##"
  2127. echo
  2128. for ac_var in $ac_subst_vars
  2129. do
  2130. eval ac_val=\$$ac_var
  2131. case $ac_val in
  2132. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2133. esac
  2134. $as_echo "$ac_var='\''$ac_val'\''"
  2135. done | sort
  2136. echo
  2137. if test -n "$ac_subst_files"; then
  2138. $as_echo "## ------------------- ##
  2139. ## File substitutions. ##
  2140. ## ------------------- ##"
  2141. echo
  2142. for ac_var in $ac_subst_files
  2143. do
  2144. eval ac_val=\$$ac_var
  2145. case $ac_val in
  2146. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2147. esac
  2148. $as_echo "$ac_var='\''$ac_val'\''"
  2149. done | sort
  2150. echo
  2151. fi
  2152. if test -s confdefs.h; then
  2153. $as_echo "## ----------- ##
  2154. ## confdefs.h. ##
  2155. ## ----------- ##"
  2156. echo
  2157. cat confdefs.h
  2158. echo
  2159. fi
  2160. test "$ac_signal" != 0 &&
  2161. $as_echo "$as_me: caught signal $ac_signal"
  2162. $as_echo "$as_me: exit $exit_status"
  2163. } >&5
  2164. rm -f core *.core core.conftest.* &&
  2165. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2166. exit $exit_status
  2167. ' 0
  2168. for ac_signal in 1 2 13 15; do
  2169. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2170. done
  2171. ac_signal=0
  2172. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2173. rm -f -r conftest* confdefs.h
  2174. $as_echo "/* confdefs.h */" > confdefs.h
  2175. # Predefined preprocessor variables.
  2176. cat >>confdefs.h <<_ACEOF
  2177. #define PACKAGE_NAME "$PACKAGE_NAME"
  2178. _ACEOF
  2179. cat >>confdefs.h <<_ACEOF
  2180. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2181. _ACEOF
  2182. cat >>confdefs.h <<_ACEOF
  2183. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2184. _ACEOF
  2185. cat >>confdefs.h <<_ACEOF
  2186. #define PACKAGE_STRING "$PACKAGE_STRING"
  2187. _ACEOF
  2188. cat >>confdefs.h <<_ACEOF
  2189. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2190. _ACEOF
  2191. cat >>confdefs.h <<_ACEOF
  2192. #define PACKAGE_URL "$PACKAGE_URL"
  2193. _ACEOF
  2194. # Let the site file select an alternate cache file if it wants to.
  2195. # Prefer an explicitly selected file to automatically selected ones.
  2196. ac_site_file1=NONE
  2197. ac_site_file2=NONE
  2198. if test -n "$CONFIG_SITE"; then
  2199. # We do not want a PATH search for config.site.
  2200. case $CONFIG_SITE in #((
  2201. -*) ac_site_file1=./$CONFIG_SITE;;
  2202. */*) ac_site_file1=$CONFIG_SITE;;
  2203. *) ac_site_file1=./$CONFIG_SITE;;
  2204. esac
  2205. elif test "x$prefix" != xNONE; then
  2206. ac_site_file1=$prefix/share/config.site
  2207. ac_site_file2=$prefix/etc/config.site
  2208. else
  2209. ac_site_file1=$ac_default_prefix/share/config.site
  2210. ac_site_file2=$ac_default_prefix/etc/config.site
  2211. fi
  2212. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2213. do
  2214. test "x$ac_site_file" = xNONE && continue
  2215. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2217. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2218. sed 's/^/| /' "$ac_site_file" >&5
  2219. . "$ac_site_file" \
  2220. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2221. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2222. as_fn_error $? "failed to load site script $ac_site_file
  2223. See \`config.log' for more details" "$LINENO" 5; }
  2224. fi
  2225. done
  2226. if test -r "$cache_file"; then
  2227. # Some versions of bash will fail to source /dev/null (special files
  2228. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2229. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2230. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2231. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2232. case $cache_file in
  2233. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2234. *) . "./$cache_file";;
  2235. esac
  2236. fi
  2237. else
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2239. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2240. >$cache_file
  2241. fi
  2242. as_fn_append ac_header_list " stdlib.h"
  2243. as_fn_append ac_header_list " unistd.h"
  2244. as_fn_append ac_header_list " sys/param.h"
  2245. # Check that the precious variables saved in the cache have kept the same
  2246. # value.
  2247. ac_cache_corrupted=false
  2248. for ac_var in $ac_precious_vars; do
  2249. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2250. eval ac_new_set=\$ac_env_${ac_var}_set
  2251. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2252. eval ac_new_val=\$ac_env_${ac_var}_value
  2253. case $ac_old_set,$ac_new_set in
  2254. set,)
  2255. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2256. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2257. ac_cache_corrupted=: ;;
  2258. ,set)
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2260. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2261. ac_cache_corrupted=: ;;
  2262. ,);;
  2263. *)
  2264. if test "x$ac_old_val" != "x$ac_new_val"; then
  2265. # differences in whitespace do not lead to failure.
  2266. ac_old_val_w=`echo x $ac_old_val`
  2267. ac_new_val_w=`echo x $ac_new_val`
  2268. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2269. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2270. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2271. ac_cache_corrupted=:
  2272. else
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2274. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2275. eval $ac_var=\$ac_old_val
  2276. fi
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2278. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2280. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2281. fi;;
  2282. esac
  2283. # Pass precious variables to config.status.
  2284. if test "$ac_new_set" = set; then
  2285. case $ac_new_val in
  2286. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2287. *) ac_arg=$ac_var=$ac_new_val ;;
  2288. esac
  2289. case " $ac_configure_args " in
  2290. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2291. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2292. esac
  2293. fi
  2294. done
  2295. if $ac_cache_corrupted; then
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2297. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2299. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2300. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2301. fi
  2302. ## -------------------- ##
  2303. ## Main body of script. ##
  2304. ## -------------------- ##
  2305. ac_ext=c
  2306. ac_cpp='$CPP $CPPFLAGS'
  2307. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2308. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2309. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2310. am__api_version='1.16'
  2311. ac_aux_dir=
  2312. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2313. if test -f "$ac_dir/install-sh"; then
  2314. ac_aux_dir=$ac_dir
  2315. ac_install_sh="$ac_aux_dir/install-sh -c"
  2316. break
  2317. elif test -f "$ac_dir/install.sh"; then
  2318. ac_aux_dir=$ac_dir
  2319. ac_install_sh="$ac_aux_dir/install.sh -c"
  2320. break
  2321. elif test -f "$ac_dir/shtool"; then
  2322. ac_aux_dir=$ac_dir
  2323. ac_install_sh="$ac_aux_dir/shtool install -c"
  2324. break
  2325. fi
  2326. done
  2327. if test -z "$ac_aux_dir"; then
  2328. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2329. fi
  2330. # These three variables are undocumented and unsupported,
  2331. # and are intended to be withdrawn in a future Autoconf release.
  2332. # They can cause serious problems if a builder's source tree is in a directory
  2333. # whose full name contains unusual characters.
  2334. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2335. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2336. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2337. # Find a good install program. We prefer a C program (faster),
  2338. # so one script is as good as another. But avoid the broken or
  2339. # incompatible versions:
  2340. # SysV /etc/install, /usr/sbin/install
  2341. # SunOS /usr/etc/install
  2342. # IRIX /sbin/install
  2343. # AIX /bin/install
  2344. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2345. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2346. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2347. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2348. # OS/2's system install, which has a completely different semantic
  2349. # ./install, which can be erroneously created by make from ./install.sh.
  2350. # Reject install programs that cannot install multiple files.
  2351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2352. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2353. if test -z "$INSTALL"; then
  2354. if ${ac_cv_path_install+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2358. for as_dir in $PATH
  2359. do
  2360. IFS=$as_save_IFS
  2361. test -z "$as_dir" && as_dir=.
  2362. # Account for people who put trailing slashes in PATH elements.
  2363. case $as_dir/ in #((
  2364. ./ | .// | /[cC]/* | \
  2365. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2366. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2367. /usr/ucb/* ) ;;
  2368. *)
  2369. # OSF1 and SCO ODT 3.0 have their own names for install.
  2370. # Don't use installbsd from OSF since it installs stuff as root
  2371. # by default.
  2372. for ac_prog in ginstall scoinst install; do
  2373. for ac_exec_ext in '' $ac_executable_extensions; do
  2374. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2375. if test $ac_prog = install &&
  2376. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2377. # AIX install. It has an incompatible calling convention.
  2378. :
  2379. elif test $ac_prog = install &&
  2380. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2381. # program-specific install script used by HP pwplus--don't use.
  2382. :
  2383. else
  2384. rm -rf conftest.one conftest.two conftest.dir
  2385. echo one > conftest.one
  2386. echo two > conftest.two
  2387. mkdir conftest.dir
  2388. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2389. test -s conftest.one && test -s conftest.two &&
  2390. test -s conftest.dir/conftest.one &&
  2391. test -s conftest.dir/conftest.two
  2392. then
  2393. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2394. break 3
  2395. fi
  2396. fi
  2397. fi
  2398. done
  2399. done
  2400. ;;
  2401. esac
  2402. done
  2403. IFS=$as_save_IFS
  2404. rm -rf conftest.one conftest.two conftest.dir
  2405. fi
  2406. if test "${ac_cv_path_install+set}" = set; then
  2407. INSTALL=$ac_cv_path_install
  2408. else
  2409. # As a last resort, use the slow shell script. Don't cache a
  2410. # value for INSTALL within a source directory, because that will
  2411. # break other packages using the cache if that directory is
  2412. # removed, or if the value is a relative name.
  2413. INSTALL=$ac_install_sh
  2414. fi
  2415. fi
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2417. $as_echo "$INSTALL" >&6; }
  2418. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2419. # It thinks the first close brace ends the variable substitution.
  2420. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2421. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2422. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2424. $as_echo_n "checking whether build environment is sane... " >&6; }
  2425. # Reject unsafe characters in $srcdir or the absolute working directory
  2426. # name. Accept space and tab only in the latter.
  2427. am_lf='
  2428. '
  2429. case `pwd` in
  2430. *[\\\"\#\$\&\'\`$am_lf]*)
  2431. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2432. esac
  2433. case $srcdir in
  2434. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2435. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2436. esac
  2437. # Do 'set' in a subshell so we don't clobber the current shell's
  2438. # arguments. Must try -L first in case configure is actually a
  2439. # symlink; some systems play weird games with the mod time of symlinks
  2440. # (eg FreeBSD returns the mod time of the symlink's containing
  2441. # directory).
  2442. if (
  2443. am_has_slept=no
  2444. for am_try in 1 2; do
  2445. echo "timestamp, slept: $am_has_slept" > conftest.file
  2446. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2447. if test "$*" = "X"; then
  2448. # -L didn't work.
  2449. set X `ls -t "$srcdir/configure" conftest.file`
  2450. fi
  2451. if test "$*" != "X $srcdir/configure conftest.file" \
  2452. && test "$*" != "X conftest.file $srcdir/configure"; then
  2453. # If neither matched, then we have a broken ls. This can happen
  2454. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2455. # broken ls alias from the environment. This has actually
  2456. # happened. Such a system could not be considered "sane".
  2457. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2458. alias in your environment" "$LINENO" 5
  2459. fi
  2460. if test "$2" = conftest.file || test $am_try -eq 2; then
  2461. break
  2462. fi
  2463. # Just in case.
  2464. sleep 1
  2465. am_has_slept=yes
  2466. done
  2467. test "$2" = conftest.file
  2468. )
  2469. then
  2470. # Ok.
  2471. :
  2472. else
  2473. as_fn_error $? "newly created file is older than distributed files!
  2474. Check your system clock" "$LINENO" 5
  2475. fi
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2477. $as_echo "yes" >&6; }
  2478. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2479. # generated files are strictly newer.
  2480. am_sleep_pid=
  2481. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2482. ( sleep 1 ) &
  2483. am_sleep_pid=$!
  2484. fi
  2485. rm -f conftest.file
  2486. test "$program_prefix" != NONE &&
  2487. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2488. # Use a double $ so make ignores it.
  2489. test "$program_suffix" != NONE &&
  2490. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2491. # Double any \ or $.
  2492. # By default was `s,x,x', remove it if useless.
  2493. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2494. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2495. # Expand $ac_aux_dir to an absolute path.
  2496. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2497. if test x"${MISSING+set}" != xset; then
  2498. case $am_aux_dir in
  2499. *\ * | *\ *)
  2500. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2501. *)
  2502. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2503. esac
  2504. fi
  2505. # Use eval to expand $SHELL
  2506. if eval "$MISSING --is-lightweight"; then
  2507. am_missing_run="$MISSING "
  2508. else
  2509. am_missing_run=
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2511. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2512. fi
  2513. if test x"${install_sh+set}" != xset; then
  2514. case $am_aux_dir in
  2515. *\ * | *\ *)
  2516. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2517. *)
  2518. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2519. esac
  2520. fi
  2521. # Installed binaries are usually stripped using 'strip' when the user
  2522. # run "make install-strip". However 'strip' might not be the right
  2523. # tool to use in cross-compilation environments, therefore Automake
  2524. # will honor the 'STRIP' environment variable to overrule this program.
  2525. if test "$cross_compiling" != no; then
  2526. if test -n "$ac_tool_prefix"; then
  2527. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2528. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2530. $as_echo_n "checking for $ac_word... " >&6; }
  2531. if ${ac_cv_prog_STRIP+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. if test -n "$STRIP"; then
  2535. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2536. else
  2537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2538. for as_dir in $PATH
  2539. do
  2540. IFS=$as_save_IFS
  2541. test -z "$as_dir" && as_dir=.
  2542. for ac_exec_ext in '' $ac_executable_extensions; do
  2543. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2544. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2545. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2546. break 2
  2547. fi
  2548. done
  2549. done
  2550. IFS=$as_save_IFS
  2551. fi
  2552. fi
  2553. STRIP=$ac_cv_prog_STRIP
  2554. if test -n "$STRIP"; then
  2555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2556. $as_echo "$STRIP" >&6; }
  2557. else
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2559. $as_echo "no" >&6; }
  2560. fi
  2561. fi
  2562. if test -z "$ac_cv_prog_STRIP"; then
  2563. ac_ct_STRIP=$STRIP
  2564. # Extract the first word of "strip", so it can be a program name with args.
  2565. set dummy strip; ac_word=$2
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2567. $as_echo_n "checking for $ac_word... " >&6; }
  2568. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2569. $as_echo_n "(cached) " >&6
  2570. else
  2571. if test -n "$ac_ct_STRIP"; then
  2572. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2573. else
  2574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2575. for as_dir in $PATH
  2576. do
  2577. IFS=$as_save_IFS
  2578. test -z "$as_dir" && as_dir=.
  2579. for ac_exec_ext in '' $ac_executable_extensions; do
  2580. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2581. ac_cv_prog_ac_ct_STRIP="strip"
  2582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2583. break 2
  2584. fi
  2585. done
  2586. done
  2587. IFS=$as_save_IFS
  2588. fi
  2589. fi
  2590. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2591. if test -n "$ac_ct_STRIP"; then
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2593. $as_echo "$ac_ct_STRIP" >&6; }
  2594. else
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2596. $as_echo "no" >&6; }
  2597. fi
  2598. if test "x$ac_ct_STRIP" = x; then
  2599. STRIP=":"
  2600. else
  2601. case $cross_compiling:$ac_tool_warned in
  2602. yes:)
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2604. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2605. ac_tool_warned=yes ;;
  2606. esac
  2607. STRIP=$ac_ct_STRIP
  2608. fi
  2609. else
  2610. STRIP="$ac_cv_prog_STRIP"
  2611. fi
  2612. fi
  2613. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2615. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2616. if test -z "$MKDIR_P"; then
  2617. if ${ac_cv_path_mkdir+:} false; then :
  2618. $as_echo_n "(cached) " >&6
  2619. else
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_prog in mkdir gmkdir; do
  2626. for ac_exec_ext in '' $ac_executable_extensions; do
  2627. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2628. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2629. 'mkdir (GNU coreutils) '* | \
  2630. 'mkdir (coreutils) '* | \
  2631. 'mkdir (fileutils) '4.1*)
  2632. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2633. break 3;;
  2634. esac
  2635. done
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. test -d ./--version && rmdir ./--version
  2641. if test "${ac_cv_path_mkdir+set}" = set; then
  2642. MKDIR_P="$ac_cv_path_mkdir -p"
  2643. else
  2644. # As a last resort, use the slow shell script. Don't cache a
  2645. # value for MKDIR_P within a source directory, because that will
  2646. # break other packages using the cache if that directory is
  2647. # removed, or if the value is a relative name.
  2648. MKDIR_P="$ac_install_sh -d"
  2649. fi
  2650. fi
  2651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2652. $as_echo "$MKDIR_P" >&6; }
  2653. for ac_prog in gawk mawk nawk awk
  2654. do
  2655. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2656. set dummy $ac_prog; ac_word=$2
  2657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2658. $as_echo_n "checking for $ac_word... " >&6; }
  2659. if ${ac_cv_prog_AWK+:} false; then :
  2660. $as_echo_n "(cached) " >&6
  2661. else
  2662. if test -n "$AWK"; then
  2663. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2664. else
  2665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2666. for as_dir in $PATH
  2667. do
  2668. IFS=$as_save_IFS
  2669. test -z "$as_dir" && as_dir=.
  2670. for ac_exec_ext in '' $ac_executable_extensions; do
  2671. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2672. ac_cv_prog_AWK="$ac_prog"
  2673. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2674. break 2
  2675. fi
  2676. done
  2677. done
  2678. IFS=$as_save_IFS
  2679. fi
  2680. fi
  2681. AWK=$ac_cv_prog_AWK
  2682. if test -n "$AWK"; then
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2684. $as_echo "$AWK" >&6; }
  2685. else
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2687. $as_echo "no" >&6; }
  2688. fi
  2689. test -n "$AWK" && break
  2690. done
  2691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2692. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2693. set x ${MAKE-make}
  2694. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2695. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. cat >conftest.make <<\_ACEOF
  2699. SHELL = /bin/sh
  2700. all:
  2701. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2702. _ACEOF
  2703. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2704. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2705. *@@@%%%=?*=@@@%%%*)
  2706. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2707. *)
  2708. eval ac_cv_prog_make_${ac_make}_set=no;;
  2709. esac
  2710. rm -f conftest.make
  2711. fi
  2712. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2714. $as_echo "yes" >&6; }
  2715. SET_MAKE=
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2718. $as_echo "no" >&6; }
  2719. SET_MAKE="MAKE=${MAKE-make}"
  2720. fi
  2721. rm -rf .tst 2>/dev/null
  2722. mkdir .tst 2>/dev/null
  2723. if test -d .tst; then
  2724. am__leading_dot=.
  2725. else
  2726. am__leading_dot=_
  2727. fi
  2728. rmdir .tst 2>/dev/null
  2729. # Check whether --enable-silent-rules was given.
  2730. if test "${enable_silent_rules+set}" = set; then :
  2731. enableval=$enable_silent_rules;
  2732. fi
  2733. case $enable_silent_rules in # (((
  2734. yes) AM_DEFAULT_VERBOSITY=0;;
  2735. no) AM_DEFAULT_VERBOSITY=1;;
  2736. *) AM_DEFAULT_VERBOSITY=1;;
  2737. esac
  2738. am_make=${MAKE-make}
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2740. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2741. if ${am_cv_make_support_nested_variables+:} false; then :
  2742. $as_echo_n "(cached) " >&6
  2743. else
  2744. if $as_echo 'TRUE=$(BAR$(V))
  2745. BAR0=false
  2746. BAR1=true
  2747. V=1
  2748. am__doit:
  2749. @$(TRUE)
  2750. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2751. am_cv_make_support_nested_variables=yes
  2752. else
  2753. am_cv_make_support_nested_variables=no
  2754. fi
  2755. fi
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2757. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2758. if test $am_cv_make_support_nested_variables = yes; then
  2759. AM_V='$(V)'
  2760. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2761. else
  2762. AM_V=$AM_DEFAULT_VERBOSITY
  2763. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2764. fi
  2765. AM_BACKSLASH='\'
  2766. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2767. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2768. # is not polluted with repeated "-I."
  2769. am__isrc=' -I$(srcdir)'
  2770. # test to see if srcdir already configured
  2771. if test -f $srcdir/config.status; then
  2772. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2773. fi
  2774. fi
  2775. # test whether we have cygpath
  2776. if test -z "$CYGPATH_W"; then
  2777. if (cygpath --version) >/dev/null 2>/dev/null; then
  2778. CYGPATH_W='cygpath -w'
  2779. else
  2780. CYGPATH_W=echo
  2781. fi
  2782. fi
  2783. # Define the identity of the package.
  2784. PACKAGE='file'
  2785. VERSION='5.39'
  2786. cat >>confdefs.h <<_ACEOF
  2787. #define PACKAGE "$PACKAGE"
  2788. _ACEOF
  2789. cat >>confdefs.h <<_ACEOF
  2790. #define VERSION "$VERSION"
  2791. _ACEOF
  2792. # Some tools Automake needs.
  2793. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2794. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2795. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2796. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2797. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2798. # For better backward compatibility. To be removed once Automake 1.9.x
  2799. # dies out for good. For more background, see:
  2800. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2801. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2802. mkdir_p='$(MKDIR_P)'
  2803. # We need awk for the "check" target (and possibly the TAP driver). The
  2804. # system "awk" is bad on some platforms.
  2805. # Always define AMTAR for backward compatibility. Yes, it's still used
  2806. # in the wild :-( We should find a proper way to deprecate it ...
  2807. AMTAR='$${TAR-tar}'
  2808. # We'll loop over all known methods to create a tar archive until one works.
  2809. _am_tools='gnutar pax cpio none'
  2810. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2811. # POSIX will say in a future version that running "rm -f" with no argument
  2812. # is OK; and we want to be able to make that assumption in our Makefile
  2813. # recipes. So use an aggressive probe to check that the usage we want is
  2814. # actually supported "in the wild" to an acceptable degree.
  2815. # See automake bug#10828.
  2816. # To make any issue more visible, cause the running configure to be aborted
  2817. # by default if the 'rm' program in use doesn't match our expectations; the
  2818. # user can still override this though.
  2819. if rm -f && rm -fr && rm -rf; then : OK; else
  2820. cat >&2 <<'END'
  2821. Oops!
  2822. Your 'rm' program seems unable to run without file operands specified
  2823. on the command line, even when the '-f' option is present. This is contrary
  2824. to the behaviour of most rm programs out there, and not conforming with
  2825. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2826. Please tell bug-automake@gnu.org about your system, including the value
  2827. of your $PATH and any error possibly output before this message. This
  2828. can help us improve future automake versions.
  2829. END
  2830. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2831. echo 'Configuration will proceed anyway, since you have set the' >&2
  2832. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2833. echo >&2
  2834. else
  2835. cat >&2 <<'END'
  2836. Aborting the configuration process, to ensure you take notice of the issue.
  2837. You can download and install GNU coreutils to get an 'rm' implementation
  2838. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2839. If you want to complete the configuration process using your problematic
  2840. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2841. to "yes", and re-run configure.
  2842. END
  2843. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2844. fi
  2845. fi
  2846. # Check whether --enable-silent-rules was given.
  2847. if test "${enable_silent_rules+set}" = set; then :
  2848. enableval=$enable_silent_rules;
  2849. fi
  2850. case $enable_silent_rules in # (((
  2851. yes) AM_DEFAULT_VERBOSITY=0;;
  2852. no) AM_DEFAULT_VERBOSITY=1;;
  2853. *) AM_DEFAULT_VERBOSITY=0;;
  2854. esac
  2855. am_make=${MAKE-make}
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2857. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2858. if ${am_cv_make_support_nested_variables+:} false; then :
  2859. $as_echo_n "(cached) " >&6
  2860. else
  2861. if $as_echo 'TRUE=$(BAR$(V))
  2862. BAR0=false
  2863. BAR1=true
  2864. V=1
  2865. am__doit:
  2866. @$(TRUE)
  2867. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2868. am_cv_make_support_nested_variables=yes
  2869. else
  2870. am_cv_make_support_nested_variables=no
  2871. fi
  2872. fi
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2874. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2875. if test $am_cv_make_support_nested_variables = yes; then
  2876. AM_V='$(V)'
  2877. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2878. else
  2879. AM_V=$AM_DEFAULT_VERBOSITY
  2880. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2881. fi
  2882. AM_BACKSLASH='\'
  2883. ac_config_headers="$ac_config_headers config.h"
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2885. $as_echo_n "checking for builtin ELF support... " >&6; }
  2886. # Check whether --enable-elf was given.
  2887. if test "${enable_elf+set}" = set; then :
  2888. enableval=$enable_elf; if test "${enableval}" = yes; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2890. $as_echo "yes" >&6; }
  2891. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2892. else
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2894. $as_echo "no" >&6; }
  2895. fi
  2896. else
  2897. # enable by default
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2899. $as_echo "yes" >&6; }
  2900. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2901. fi
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2903. $as_echo_n "checking for ELF core file support... " >&6; }
  2904. # Check whether --enable-elf-core was given.
  2905. if test "${enable_elf_core+set}" = set; then :
  2906. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2908. $as_echo "yes" >&6; }
  2909. $as_echo "#define ELFCORE 1" >>confdefs.h
  2910. else
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2912. $as_echo "no" >&6; }
  2913. fi
  2914. else
  2915. # enable by default
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2917. $as_echo "yes" >&6; }
  2918. $as_echo "#define ELFCORE 1" >>confdefs.h
  2919. fi
  2920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  2921. $as_echo_n "checking for zlib support... " >&6; }
  2922. # Check whether --enable-zlib was given.
  2923. if test "${enable_zlib+set}" = set; then :
  2924. enableval=$enable_zlib;
  2925. fi
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  2927. $as_echo "$enable_zlib" >&6; }
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
  2929. $as_echo_n "checking for bzlib support... " >&6; }
  2930. # Check whether --enable-bzlib was given.
  2931. if test "${enable_bzlib+set}" = set; then :
  2932. enableval=$enable_bzlib;
  2933. fi
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
  2935. $as_echo "$enable_bzlib" >&6; }
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
  2937. $as_echo_n "checking for xzlib support... " >&6; }
  2938. # Check whether --enable-xzlib was given.
  2939. if test "${enable_xzlib+set}" = set; then :
  2940. enableval=$enable_xzlib;
  2941. fi
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
  2943. $as_echo "$enable_xzlib" >&6; }
  2944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  2945. $as_echo_n "checking for libseccomp support... " >&6; }
  2946. # Check whether --enable-libseccomp was given.
  2947. if test "${enable_libseccomp+set}" = set; then :
  2948. enableval=$enable_libseccomp;
  2949. fi
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  2951. $as_echo "$enable_libseccomp" >&6; }
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2953. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2954. # Check whether --enable-fsect-man5 was given.
  2955. if test "${enable_fsect_man5+set}" = set; then :
  2956. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2958. $as_echo "yes" >&6; }
  2959. fsect=5
  2960. else
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2962. $as_echo "no" >&6; }
  2963. fsect=4
  2964. fi
  2965. else
  2966. # disable by default
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2968. $as_echo "no" >&6; }
  2969. fsect=4
  2970. fi
  2971. # Make sure we can run config.sub.
  2972. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2973. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2975. $as_echo_n "checking build system type... " >&6; }
  2976. if ${ac_cv_build+:} false; then :
  2977. $as_echo_n "(cached) " >&6
  2978. else
  2979. ac_build_alias=$build_alias
  2980. test "x$ac_build_alias" = x &&
  2981. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2982. test "x$ac_build_alias" = x &&
  2983. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2984. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2985. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2988. $as_echo "$ac_cv_build" >&6; }
  2989. case $ac_cv_build in
  2990. *-*-*) ;;
  2991. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2992. esac
  2993. build=$ac_cv_build
  2994. ac_save_IFS=$IFS; IFS='-'
  2995. set x $ac_cv_build
  2996. shift
  2997. build_cpu=$1
  2998. build_vendor=$2
  2999. shift; shift
  3000. # Remember, the first character of IFS is used to create $*,
  3001. # except with old shells:
  3002. build_os=$*
  3003. IFS=$ac_save_IFS
  3004. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3006. $as_echo_n "checking host system type... " >&6; }
  3007. if ${ac_cv_host+:} false; then :
  3008. $as_echo_n "(cached) " >&6
  3009. else
  3010. if test "x$host_alias" = x; then
  3011. ac_cv_host=$ac_cv_build
  3012. else
  3013. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3014. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3015. fi
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3018. $as_echo "$ac_cv_host" >&6; }
  3019. case $ac_cv_host in
  3020. *-*-*) ;;
  3021. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3022. esac
  3023. host=$ac_cv_host
  3024. ac_save_IFS=$IFS; IFS='-'
  3025. set x $ac_cv_host
  3026. shift
  3027. host_cpu=$1
  3028. host_vendor=$2
  3029. shift; shift
  3030. # Remember, the first character of IFS is used to create $*,
  3031. # except with old shells:
  3032. host_os=$*
  3033. IFS=$ac_save_IFS
  3034. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3035. case "$host_os" in
  3036. mingw32*)
  3037. MINGW=1
  3038. ;;
  3039. *)
  3040. MINGW=0
  3041. ;;
  3042. esac
  3043. if test "$MINGW" = 1; then
  3044. MINGW_TRUE=
  3045. MINGW_FALSE='#'
  3046. else
  3047. MINGW_TRUE='#'
  3048. MINGW_FALSE=
  3049. fi
  3050. pkgdatadir='$(datadir)/misc'
  3051. if test x$fsect = x5; then
  3052. FSECT5_TRUE=
  3053. FSECT5_FALSE='#'
  3054. else
  3055. FSECT5_TRUE='#'
  3056. FSECT5_FALSE=
  3057. fi
  3058. DEPDIR="${am__leading_dot}deps"
  3059. ac_config_commands="$ac_config_commands depfiles"
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  3061. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  3062. cat > confinc.mk << 'END'
  3063. am__doit:
  3064. @echo this is the am__doit target >confinc.out
  3065. .PHONY: am__doit
  3066. END
  3067. am__include="#"
  3068. am__quote=
  3069. # BSD make does it like this.
  3070. echo '.include "confinc.mk" # ignored' > confmf.BSD
  3071. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  3072. echo 'include confinc.mk # ignored' > confmf.GNU
  3073. _am_result=no
  3074. for s in GNU BSD; do
  3075. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  3076. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  3077. ac_status=$?
  3078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3079. (exit $ac_status); }
  3080. case $?:`cat confinc.out 2>/dev/null` in #(
  3081. '0:this is the am__doit target') :
  3082. case $s in #(
  3083. BSD) :
  3084. am__include='.include' am__quote='"' ;; #(
  3085. *) :
  3086. am__include='include' am__quote='' ;;
  3087. esac ;; #(
  3088. *) :
  3089. ;;
  3090. esac
  3091. if test "$am__include" != "#"; then
  3092. _am_result="yes ($s style)"
  3093. break
  3094. fi
  3095. done
  3096. rm -f confinc.* confmf.*
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  3098. $as_echo "${_am_result}" >&6; }
  3099. # Check whether --enable-dependency-tracking was given.
  3100. if test "${enable_dependency_tracking+set}" = set; then :
  3101. enableval=$enable_dependency_tracking;
  3102. fi
  3103. if test "x$enable_dependency_tracking" != xno; then
  3104. am_depcomp="$ac_aux_dir/depcomp"
  3105. AMDEPBACKSLASH='\'
  3106. am__nodep='_no'
  3107. fi
  3108. if test "x$enable_dependency_tracking" != xno; then
  3109. AMDEP_TRUE=
  3110. AMDEP_FALSE='#'
  3111. else
  3112. AMDEP_TRUE='#'
  3113. AMDEP_FALSE=
  3114. fi
  3115. ac_ext=c
  3116. ac_cpp='$CPP $CPPFLAGS'
  3117. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3118. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3119. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3120. if test -n "$ac_tool_prefix"; then
  3121. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3122. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3124. $as_echo_n "checking for $ac_word... " >&6; }
  3125. if ${ac_cv_prog_CC+:} false; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. if test -n "$CC"; then
  3129. ac_cv_prog_CC="$CC" # Let the user override the test.
  3130. else
  3131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3132. for as_dir in $PATH
  3133. do
  3134. IFS=$as_save_IFS
  3135. test -z "$as_dir" && as_dir=.
  3136. for ac_exec_ext in '' $ac_executable_extensions; do
  3137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3138. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3140. break 2
  3141. fi
  3142. done
  3143. done
  3144. IFS=$as_save_IFS
  3145. fi
  3146. fi
  3147. CC=$ac_cv_prog_CC
  3148. if test -n "$CC"; then
  3149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3150. $as_echo "$CC" >&6; }
  3151. else
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3153. $as_echo "no" >&6; }
  3154. fi
  3155. fi
  3156. if test -z "$ac_cv_prog_CC"; then
  3157. ac_ct_CC=$CC
  3158. # Extract the first word of "gcc", so it can be a program name with args.
  3159. set dummy gcc; ac_word=$2
  3160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3161. $as_echo_n "checking for $ac_word... " >&6; }
  3162. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3163. $as_echo_n "(cached) " >&6
  3164. else
  3165. if test -n "$ac_ct_CC"; then
  3166. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3167. else
  3168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3169. for as_dir in $PATH
  3170. do
  3171. IFS=$as_save_IFS
  3172. test -z "$as_dir" && as_dir=.
  3173. for ac_exec_ext in '' $ac_executable_extensions; do
  3174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3175. ac_cv_prog_ac_ct_CC="gcc"
  3176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3177. break 2
  3178. fi
  3179. done
  3180. done
  3181. IFS=$as_save_IFS
  3182. fi
  3183. fi
  3184. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3185. if test -n "$ac_ct_CC"; then
  3186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3187. $as_echo "$ac_ct_CC" >&6; }
  3188. else
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3190. $as_echo "no" >&6; }
  3191. fi
  3192. if test "x$ac_ct_CC" = x; then
  3193. CC=""
  3194. else
  3195. case $cross_compiling:$ac_tool_warned in
  3196. yes:)
  3197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3199. ac_tool_warned=yes ;;
  3200. esac
  3201. CC=$ac_ct_CC
  3202. fi
  3203. else
  3204. CC="$ac_cv_prog_CC"
  3205. fi
  3206. if test -z "$CC"; then
  3207. if test -n "$ac_tool_prefix"; then
  3208. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3209. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3211. $as_echo_n "checking for $ac_word... " >&6; }
  3212. if ${ac_cv_prog_CC+:} false; then :
  3213. $as_echo_n "(cached) " >&6
  3214. else
  3215. if test -n "$CC"; then
  3216. ac_cv_prog_CC="$CC" # Let the user override the test.
  3217. else
  3218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3219. for as_dir in $PATH
  3220. do
  3221. IFS=$as_save_IFS
  3222. test -z "$as_dir" && as_dir=.
  3223. for ac_exec_ext in '' $ac_executable_extensions; do
  3224. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3225. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3227. break 2
  3228. fi
  3229. done
  3230. done
  3231. IFS=$as_save_IFS
  3232. fi
  3233. fi
  3234. CC=$ac_cv_prog_CC
  3235. if test -n "$CC"; then
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3237. $as_echo "$CC" >&6; }
  3238. else
  3239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3240. $as_echo "no" >&6; }
  3241. fi
  3242. fi
  3243. fi
  3244. if test -z "$CC"; then
  3245. # Extract the first word of "cc", so it can be a program name with args.
  3246. set dummy cc; ac_word=$2
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3248. $as_echo_n "checking for $ac_word... " >&6; }
  3249. if ${ac_cv_prog_CC+:} false; then :
  3250. $as_echo_n "(cached) " >&6
  3251. else
  3252. if test -n "$CC"; then
  3253. ac_cv_prog_CC="$CC" # Let the user override the test.
  3254. else
  3255. ac_prog_rejected=no
  3256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3257. for as_dir in $PATH
  3258. do
  3259. IFS=$as_save_IFS
  3260. test -z "$as_dir" && as_dir=.
  3261. for ac_exec_ext in '' $ac_executable_extensions; do
  3262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3263. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3264. ac_prog_rejected=yes
  3265. continue
  3266. fi
  3267. ac_cv_prog_CC="cc"
  3268. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3269. break 2
  3270. fi
  3271. done
  3272. done
  3273. IFS=$as_save_IFS
  3274. if test $ac_prog_rejected = yes; then
  3275. # We found a bogon in the path, so make sure we never use it.
  3276. set dummy $ac_cv_prog_CC
  3277. shift
  3278. if test $# != 0; then
  3279. # We chose a different compiler from the bogus one.
  3280. # However, it has the same basename, so the bogon will be chosen
  3281. # first if we set CC to just the basename; use the full file name.
  3282. shift
  3283. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3284. fi
  3285. fi
  3286. fi
  3287. fi
  3288. CC=$ac_cv_prog_CC
  3289. if test -n "$CC"; then
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3291. $as_echo "$CC" >&6; }
  3292. else
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3294. $as_echo "no" >&6; }
  3295. fi
  3296. fi
  3297. if test -z "$CC"; then
  3298. if test -n "$ac_tool_prefix"; then
  3299. for ac_prog in cl.exe
  3300. do
  3301. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3302. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3304. $as_echo_n "checking for $ac_word... " >&6; }
  3305. if ${ac_cv_prog_CC+:} false; then :
  3306. $as_echo_n "(cached) " >&6
  3307. else
  3308. if test -n "$CC"; then
  3309. ac_cv_prog_CC="$CC" # Let the user override the test.
  3310. else
  3311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3312. for as_dir in $PATH
  3313. do
  3314. IFS=$as_save_IFS
  3315. test -z "$as_dir" && as_dir=.
  3316. for ac_exec_ext in '' $ac_executable_extensions; do
  3317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3318. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3320. break 2
  3321. fi
  3322. done
  3323. done
  3324. IFS=$as_save_IFS
  3325. fi
  3326. fi
  3327. CC=$ac_cv_prog_CC
  3328. if test -n "$CC"; then
  3329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3330. $as_echo "$CC" >&6; }
  3331. else
  3332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3333. $as_echo "no" >&6; }
  3334. fi
  3335. test -n "$CC" && break
  3336. done
  3337. fi
  3338. if test -z "$CC"; then
  3339. ac_ct_CC=$CC
  3340. for ac_prog in cl.exe
  3341. do
  3342. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3343. set dummy $ac_prog; ac_word=$2
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3345. $as_echo_n "checking for $ac_word... " >&6; }
  3346. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3347. $as_echo_n "(cached) " >&6
  3348. else
  3349. if test -n "$ac_ct_CC"; then
  3350. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3351. else
  3352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3353. for as_dir in $PATH
  3354. do
  3355. IFS=$as_save_IFS
  3356. test -z "$as_dir" && as_dir=.
  3357. for ac_exec_ext in '' $ac_executable_extensions; do
  3358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3359. ac_cv_prog_ac_ct_CC="$ac_prog"
  3360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3361. break 2
  3362. fi
  3363. done
  3364. done
  3365. IFS=$as_save_IFS
  3366. fi
  3367. fi
  3368. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3369. if test -n "$ac_ct_CC"; then
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3371. $as_echo "$ac_ct_CC" >&6; }
  3372. else
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3374. $as_echo "no" >&6; }
  3375. fi
  3376. test -n "$ac_ct_CC" && break
  3377. done
  3378. if test "x$ac_ct_CC" = x; then
  3379. CC=""
  3380. else
  3381. case $cross_compiling:$ac_tool_warned in
  3382. yes:)
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3385. ac_tool_warned=yes ;;
  3386. esac
  3387. CC=$ac_ct_CC
  3388. fi
  3389. fi
  3390. fi
  3391. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3392. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3393. as_fn_error $? "no acceptable C compiler found in \$PATH
  3394. See \`config.log' for more details" "$LINENO" 5; }
  3395. # Provide some information about the compiler.
  3396. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3397. set X $ac_compile
  3398. ac_compiler=$2
  3399. for ac_option in --version -v -V -qversion; do
  3400. { { ac_try="$ac_compiler $ac_option >&5"
  3401. case "(($ac_try" in
  3402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3403. *) ac_try_echo=$ac_try;;
  3404. esac
  3405. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3406. $as_echo "$ac_try_echo"; } >&5
  3407. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3408. ac_status=$?
  3409. if test -s conftest.err; then
  3410. sed '10a\
  3411. ... rest of stderr output deleted ...
  3412. 10q' conftest.err >conftest.er1
  3413. cat conftest.er1 >&5
  3414. fi
  3415. rm -f conftest.er1 conftest.err
  3416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3417. test $ac_status = 0; }
  3418. done
  3419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3420. /* end confdefs.h. */
  3421. int
  3422. main ()
  3423. {
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. ac_clean_files_save=$ac_clean_files
  3429. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3430. # Try to create an executable without -o first, disregard a.out.
  3431. # It will help us diagnose broken compilers, and finding out an intuition
  3432. # of exeext.
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3434. $as_echo_n "checking whether the C compiler works... " >&6; }
  3435. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3436. # The possible output files:
  3437. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3438. ac_rmfiles=
  3439. for ac_file in $ac_files
  3440. do
  3441. case $ac_file in
  3442. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3443. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3444. esac
  3445. done
  3446. rm -f $ac_rmfiles
  3447. if { { ac_try="$ac_link_default"
  3448. case "(($ac_try" in
  3449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3450. *) ac_try_echo=$ac_try;;
  3451. esac
  3452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3453. $as_echo "$ac_try_echo"; } >&5
  3454. (eval "$ac_link_default") 2>&5
  3455. ac_status=$?
  3456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3457. test $ac_status = 0; }; then :
  3458. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3459. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3460. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3461. # so that the user can short-circuit this test for compilers unknown to
  3462. # Autoconf.
  3463. for ac_file in $ac_files ''
  3464. do
  3465. test -f "$ac_file" || continue
  3466. case $ac_file in
  3467. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3468. ;;
  3469. [ab].out )
  3470. # We found the default executable, but exeext='' is most
  3471. # certainly right.
  3472. break;;
  3473. *.* )
  3474. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3475. then :; else
  3476. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3477. fi
  3478. # We set ac_cv_exeext here because the later test for it is not
  3479. # safe: cross compilers may not add the suffix if given an `-o'
  3480. # argument, so we may need to know it at that point already.
  3481. # Even if this section looks crufty: it has the advantage of
  3482. # actually working.
  3483. break;;
  3484. * )
  3485. break;;
  3486. esac
  3487. done
  3488. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3489. else
  3490. ac_file=''
  3491. fi
  3492. if test -z "$ac_file"; then :
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3494. $as_echo "no" >&6; }
  3495. $as_echo "$as_me: failed program was:" >&5
  3496. sed 's/^/| /' conftest.$ac_ext >&5
  3497. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3498. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3499. as_fn_error 77 "C compiler cannot create executables
  3500. See \`config.log' for more details" "$LINENO" 5; }
  3501. else
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3503. $as_echo "yes" >&6; }
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3506. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3508. $as_echo "$ac_file" >&6; }
  3509. ac_exeext=$ac_cv_exeext
  3510. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3511. ac_clean_files=$ac_clean_files_save
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3513. $as_echo_n "checking for suffix of executables... " >&6; }
  3514. if { { ac_try="$ac_link"
  3515. case "(($ac_try" in
  3516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3517. *) ac_try_echo=$ac_try;;
  3518. esac
  3519. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3520. $as_echo "$ac_try_echo"; } >&5
  3521. (eval "$ac_link") 2>&5
  3522. ac_status=$?
  3523. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3524. test $ac_status = 0; }; then :
  3525. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3526. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3527. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3528. # `rm'.
  3529. for ac_file in conftest.exe conftest conftest.*; do
  3530. test -f "$ac_file" || continue
  3531. case $ac_file in
  3532. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3533. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3534. break;;
  3535. * ) break;;
  3536. esac
  3537. done
  3538. else
  3539. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3540. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3541. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3542. See \`config.log' for more details" "$LINENO" 5; }
  3543. fi
  3544. rm -f conftest conftest$ac_cv_exeext
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3546. $as_echo "$ac_cv_exeext" >&6; }
  3547. rm -f conftest.$ac_ext
  3548. EXEEXT=$ac_cv_exeext
  3549. ac_exeext=$EXEEXT
  3550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3551. /* end confdefs.h. */
  3552. #include <stdio.h>
  3553. int
  3554. main ()
  3555. {
  3556. FILE *f = fopen ("conftest.out", "w");
  3557. return ferror (f) || fclose (f) != 0;
  3558. ;
  3559. return 0;
  3560. }
  3561. _ACEOF
  3562. ac_clean_files="$ac_clean_files conftest.out"
  3563. # Check that the compiler produces executables we can run. If not, either
  3564. # the compiler is broken, or we cross compile.
  3565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3566. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3567. if test "$cross_compiling" != yes; then
  3568. { { ac_try="$ac_link"
  3569. case "(($ac_try" in
  3570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3571. *) ac_try_echo=$ac_try;;
  3572. esac
  3573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3574. $as_echo "$ac_try_echo"; } >&5
  3575. (eval "$ac_link") 2>&5
  3576. ac_status=$?
  3577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3578. test $ac_status = 0; }
  3579. if { ac_try='./conftest$ac_cv_exeext'
  3580. { { case "(($ac_try" in
  3581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3582. *) ac_try_echo=$ac_try;;
  3583. esac
  3584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3585. $as_echo "$ac_try_echo"; } >&5
  3586. (eval "$ac_try") 2>&5
  3587. ac_status=$?
  3588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3589. test $ac_status = 0; }; }; then
  3590. cross_compiling=no
  3591. else
  3592. if test "$cross_compiling" = maybe; then
  3593. cross_compiling=yes
  3594. else
  3595. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3596. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3597. as_fn_error $? "cannot run C compiled programs.
  3598. If you meant to cross compile, use \`--host'.
  3599. See \`config.log' for more details" "$LINENO" 5; }
  3600. fi
  3601. fi
  3602. fi
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3604. $as_echo "$cross_compiling" >&6; }
  3605. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3606. ac_clean_files=$ac_clean_files_save
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3608. $as_echo_n "checking for suffix of object files... " >&6; }
  3609. if ${ac_cv_objext+:} false; then :
  3610. $as_echo_n "(cached) " >&6
  3611. else
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. int
  3615. main ()
  3616. {
  3617. ;
  3618. return 0;
  3619. }
  3620. _ACEOF
  3621. rm -f conftest.o conftest.obj
  3622. if { { ac_try="$ac_compile"
  3623. case "(($ac_try" in
  3624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3625. *) ac_try_echo=$ac_try;;
  3626. esac
  3627. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3628. $as_echo "$ac_try_echo"; } >&5
  3629. (eval "$ac_compile") 2>&5
  3630. ac_status=$?
  3631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3632. test $ac_status = 0; }; then :
  3633. for ac_file in conftest.o conftest.obj conftest.*; do
  3634. test -f "$ac_file" || continue;
  3635. case $ac_file in
  3636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3638. break;;
  3639. esac
  3640. done
  3641. else
  3642. $as_echo "$as_me: failed program was:" >&5
  3643. sed 's/^/| /' conftest.$ac_ext >&5
  3644. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3645. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3646. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3647. See \`config.log' for more details" "$LINENO" 5; }
  3648. fi
  3649. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3650. fi
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3652. $as_echo "$ac_cv_objext" >&6; }
  3653. OBJEXT=$ac_cv_objext
  3654. ac_objext=$OBJEXT
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3656. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3657. if ${ac_cv_c_compiler_gnu+:} false; then :
  3658. $as_echo_n "(cached) " >&6
  3659. else
  3660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3661. /* end confdefs.h. */
  3662. int
  3663. main ()
  3664. {
  3665. #ifndef __GNUC__
  3666. choke me
  3667. #endif
  3668. ;
  3669. return 0;
  3670. }
  3671. _ACEOF
  3672. if ac_fn_c_try_compile "$LINENO"; then :
  3673. ac_compiler_gnu=yes
  3674. else
  3675. ac_compiler_gnu=no
  3676. fi
  3677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3678. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3679. fi
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3681. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3682. if test $ac_compiler_gnu = yes; then
  3683. GCC=yes
  3684. else
  3685. GCC=
  3686. fi
  3687. ac_test_CFLAGS=${CFLAGS+set}
  3688. ac_save_CFLAGS=$CFLAGS
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3690. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3691. if ${ac_cv_prog_cc_g+:} false; then :
  3692. $as_echo_n "(cached) " >&6
  3693. else
  3694. ac_save_c_werror_flag=$ac_c_werror_flag
  3695. ac_c_werror_flag=yes
  3696. ac_cv_prog_cc_g=no
  3697. CFLAGS="-g"
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. int
  3701. main ()
  3702. {
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. if ac_fn_c_try_compile "$LINENO"; then :
  3708. ac_cv_prog_cc_g=yes
  3709. else
  3710. CFLAGS=""
  3711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3712. /* end confdefs.h. */
  3713. int
  3714. main ()
  3715. {
  3716. ;
  3717. return 0;
  3718. }
  3719. _ACEOF
  3720. if ac_fn_c_try_compile "$LINENO"; then :
  3721. else
  3722. ac_c_werror_flag=$ac_save_c_werror_flag
  3723. CFLAGS="-g"
  3724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3725. /* end confdefs.h. */
  3726. int
  3727. main ()
  3728. {
  3729. ;
  3730. return 0;
  3731. }
  3732. _ACEOF
  3733. if ac_fn_c_try_compile "$LINENO"; then :
  3734. ac_cv_prog_cc_g=yes
  3735. fi
  3736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3737. fi
  3738. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3739. fi
  3740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3741. ac_c_werror_flag=$ac_save_c_werror_flag
  3742. fi
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3744. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3745. if test "$ac_test_CFLAGS" = set; then
  3746. CFLAGS=$ac_save_CFLAGS
  3747. elif test $ac_cv_prog_cc_g = yes; then
  3748. if test "$GCC" = yes; then
  3749. CFLAGS="-g -O2"
  3750. else
  3751. CFLAGS="-g"
  3752. fi
  3753. else
  3754. if test "$GCC" = yes; then
  3755. CFLAGS="-O2"
  3756. else
  3757. CFLAGS=
  3758. fi
  3759. fi
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3761. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3762. if ${ac_cv_prog_cc_c89+:} false; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. ac_cv_prog_cc_c89=no
  3766. ac_save_CC=$CC
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. #include <stdarg.h>
  3770. #include <stdio.h>
  3771. struct stat;
  3772. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3773. struct buf { int x; };
  3774. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3775. static char *e (p, i)
  3776. char **p;
  3777. int i;
  3778. {
  3779. return p[i];
  3780. }
  3781. static char *f (char * (*g) (char **, int), char **p, ...)
  3782. {
  3783. char *s;
  3784. va_list v;
  3785. va_start (v,p);
  3786. s = g (p, va_arg (v,int));
  3787. va_end (v);
  3788. return s;
  3789. }
  3790. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3791. function prototypes and stuff, but not '\xHH' hex character constants.
  3792. These don't provoke an error unfortunately, instead are silently treated
  3793. as 'x'. The following induces an error, until -std is added to get
  3794. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3795. array size at least. It's necessary to write '\x00'==0 to get something
  3796. that's true only with -std. */
  3797. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3798. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3799. inside strings and character constants. */
  3800. #define FOO(x) 'x'
  3801. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3802. int test (int i, double x);
  3803. struct s1 {int (*f) (int a);};
  3804. struct s2 {int (*f) (double a);};
  3805. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3806. int argc;
  3807. char **argv;
  3808. int
  3809. main ()
  3810. {
  3811. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3812. ;
  3813. return 0;
  3814. }
  3815. _ACEOF
  3816. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3817. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3818. do
  3819. CC="$ac_save_CC $ac_arg"
  3820. if ac_fn_c_try_compile "$LINENO"; then :
  3821. ac_cv_prog_cc_c89=$ac_arg
  3822. fi
  3823. rm -f core conftest.err conftest.$ac_objext
  3824. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3825. done
  3826. rm -f conftest.$ac_ext
  3827. CC=$ac_save_CC
  3828. fi
  3829. # AC_CACHE_VAL
  3830. case "x$ac_cv_prog_cc_c89" in
  3831. x)
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3833. $as_echo "none needed" >&6; } ;;
  3834. xno)
  3835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3836. $as_echo "unsupported" >&6; } ;;
  3837. *)
  3838. CC="$CC $ac_cv_prog_cc_c89"
  3839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3840. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3841. esac
  3842. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3843. fi
  3844. ac_ext=c
  3845. ac_cpp='$CPP $CPPFLAGS'
  3846. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3847. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3848. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3849. ac_ext=c
  3850. ac_cpp='$CPP $CPPFLAGS'
  3851. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3852. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3853. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3855. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3856. if ${am_cv_prog_cc_c_o+:} false; then :
  3857. $as_echo_n "(cached) " >&6
  3858. else
  3859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3860. /* end confdefs.h. */
  3861. int
  3862. main ()
  3863. {
  3864. ;
  3865. return 0;
  3866. }
  3867. _ACEOF
  3868. # Make sure it works both with $CC and with simple cc.
  3869. # Following AC_PROG_CC_C_O, we do the test twice because some
  3870. # compilers refuse to overwrite an existing .o file with -o,
  3871. # though they will create one.
  3872. am_cv_prog_cc_c_o=yes
  3873. for am_i in 1 2; do
  3874. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3875. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3876. ac_status=$?
  3877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3878. (exit $ac_status); } \
  3879. && test -f conftest2.$ac_objext; then
  3880. : OK
  3881. else
  3882. am_cv_prog_cc_c_o=no
  3883. break
  3884. fi
  3885. done
  3886. rm -f core conftest*
  3887. unset am_i
  3888. fi
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3890. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3891. if test "$am_cv_prog_cc_c_o" != yes; then
  3892. # Losing compiler, so override with the script.
  3893. # FIXME: It is wrong to rewrite CC.
  3894. # But if we don't then we get into trouble of one sort or another.
  3895. # A longer-term fix would be to have automake use am__CC in this case,
  3896. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3897. CC="$am_aux_dir/compile $CC"
  3898. fi
  3899. ac_ext=c
  3900. ac_cpp='$CPP $CPPFLAGS'
  3901. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3902. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3903. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3904. depcc="$CC" am_compiler_list=
  3905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3906. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3907. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3908. $as_echo_n "(cached) " >&6
  3909. else
  3910. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3911. # We make a subdir and do the tests there. Otherwise we can end up
  3912. # making bogus files that we don't know about and never remove. For
  3913. # instance it was reported that on HP-UX the gcc test will end up
  3914. # making a dummy file named 'D' -- because '-MD' means "put the output
  3915. # in D".
  3916. rm -rf conftest.dir
  3917. mkdir conftest.dir
  3918. # Copy depcomp to subdir because otherwise we won't find it if we're
  3919. # using a relative directory.
  3920. cp "$am_depcomp" conftest.dir
  3921. cd conftest.dir
  3922. # We will build objects and dependencies in a subdirectory because
  3923. # it helps to detect inapplicable dependency modes. For instance
  3924. # both Tru64's cc and ICC support -MD to output dependencies as a
  3925. # side effect of compilation, but ICC will put the dependencies in
  3926. # the current directory while Tru64 will put them in the object
  3927. # directory.
  3928. mkdir sub
  3929. am_cv_CC_dependencies_compiler_type=none
  3930. if test "$am_compiler_list" = ""; then
  3931. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3932. fi
  3933. am__universal=false
  3934. case " $depcc " in #(
  3935. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3936. esac
  3937. for depmode in $am_compiler_list; do
  3938. # Setup a source with many dependencies, because some compilers
  3939. # like to wrap large dependency lists on column 80 (with \), and
  3940. # we should not choose a depcomp mode which is confused by this.
  3941. #
  3942. # We need to recreate these files for each test, as the compiler may
  3943. # overwrite some of them when testing with obscure command lines.
  3944. # This happens at least with the AIX C compiler.
  3945. : > sub/conftest.c
  3946. for i in 1 2 3 4 5 6; do
  3947. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3948. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3949. # Solaris 10 /bin/sh.
  3950. echo '/* dummy */' > sub/conftst$i.h
  3951. done
  3952. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3953. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3954. # mode. It turns out that the SunPro C++ compiler does not properly
  3955. # handle '-M -o', and we need to detect this. Also, some Intel
  3956. # versions had trouble with output in subdirs.
  3957. am__obj=sub/conftest.${OBJEXT-o}
  3958. am__minus_obj="-o $am__obj"
  3959. case $depmode in
  3960. gcc)
  3961. # This depmode causes a compiler race in universal mode.
  3962. test "$am__universal" = false || continue
  3963. ;;
  3964. nosideeffect)
  3965. # After this tag, mechanisms are not by side-effect, so they'll
  3966. # only be used when explicitly requested.
  3967. if test "x$enable_dependency_tracking" = xyes; then
  3968. continue
  3969. else
  3970. break
  3971. fi
  3972. ;;
  3973. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3974. # This compiler won't grok '-c -o', but also, the minuso test has
  3975. # not run yet. These depmodes are late enough in the game, and
  3976. # so weak that their functioning should not be impacted.
  3977. am__obj=conftest.${OBJEXT-o}
  3978. am__minus_obj=
  3979. ;;
  3980. none) break ;;
  3981. esac
  3982. if depmode=$depmode \
  3983. source=sub/conftest.c object=$am__obj \
  3984. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3985. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3986. >/dev/null 2>conftest.err &&
  3987. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3988. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3989. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3990. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3991. # icc doesn't choke on unknown options, it will just issue warnings
  3992. # or remarks (even with -Werror). So we grep stderr for any message
  3993. # that says an option was ignored or not supported.
  3994. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3995. # icc: Command line warning: ignoring option '-M'; no argument required
  3996. # The diagnosis changed in icc 8.0:
  3997. # icc: Command line remark: option '-MP' not supported
  3998. if (grep 'ignoring option' conftest.err ||
  3999. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4000. am_cv_CC_dependencies_compiler_type=$depmode
  4001. break
  4002. fi
  4003. fi
  4004. done
  4005. cd ..
  4006. rm -rf conftest.dir
  4007. else
  4008. am_cv_CC_dependencies_compiler_type=none
  4009. fi
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4012. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4013. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4014. if
  4015. test "x$enable_dependency_tracking" != xno \
  4016. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4017. am__fastdepCC_TRUE=
  4018. am__fastdepCC_FALSE='#'
  4019. else
  4020. am__fastdepCC_TRUE='#'
  4021. am__fastdepCC_FALSE=
  4022. fi
  4023. case $ac_cv_prog_cc_stdc in #(
  4024. no) :
  4025. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  4026. *) :
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4028. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4029. if ${ac_cv_prog_cc_c99+:} false; then :
  4030. $as_echo_n "(cached) " >&6
  4031. else
  4032. ac_cv_prog_cc_c99=no
  4033. ac_save_CC=$CC
  4034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4035. /* end confdefs.h. */
  4036. #include <stdarg.h>
  4037. #include <stdbool.h>
  4038. #include <stdlib.h>
  4039. #include <wchar.h>
  4040. #include <stdio.h>
  4041. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4042. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4043. #define showlist(...) puts (#__VA_ARGS__)
  4044. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4045. static void
  4046. test_varargs_macros (void)
  4047. {
  4048. int x = 1234;
  4049. int y = 5678;
  4050. debug ("Flag");
  4051. debug ("X = %d\n", x);
  4052. showlist (The first, second, and third items.);
  4053. report (x>y, "x is %d but y is %d", x, y);
  4054. }
  4055. // Check long long types.
  4056. #define BIG64 18446744073709551615ull
  4057. #define BIG32 4294967295ul
  4058. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4059. #if !BIG_OK
  4060. your preprocessor is broken;
  4061. #endif
  4062. #if BIG_OK
  4063. #else
  4064. your preprocessor is broken;
  4065. #endif
  4066. static long long int bignum = -9223372036854775807LL;
  4067. static unsigned long long int ubignum = BIG64;
  4068. struct incomplete_array
  4069. {
  4070. int datasize;
  4071. double data[];
  4072. };
  4073. struct named_init {
  4074. int number;
  4075. const wchar_t *name;
  4076. double average;
  4077. };
  4078. typedef const char *ccp;
  4079. static inline int
  4080. test_restrict (ccp restrict text)
  4081. {
  4082. // See if C++-style comments work.
  4083. // Iterate through items via the restricted pointer.
  4084. // Also check for declarations in for loops.
  4085. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4086. continue;
  4087. return 0;
  4088. }
  4089. // Check varargs and va_copy.
  4090. static void
  4091. test_varargs (const char *format, ...)
  4092. {
  4093. va_list args;
  4094. va_start (args, format);
  4095. va_list args_copy;
  4096. va_copy (args_copy, args);
  4097. const char *str;
  4098. int number;
  4099. float fnumber;
  4100. while (*format)
  4101. {
  4102. switch (*format++)
  4103. {
  4104. case 's': // string
  4105. str = va_arg (args_copy, const char *);
  4106. break;
  4107. case 'd': // int
  4108. number = va_arg (args_copy, int);
  4109. break;
  4110. case 'f': // float
  4111. fnumber = va_arg (args_copy, double);
  4112. break;
  4113. default:
  4114. break;
  4115. }
  4116. }
  4117. va_end (args_copy);
  4118. va_end (args);
  4119. }
  4120. int
  4121. main ()
  4122. {
  4123. // Check bool.
  4124. _Bool success = false;
  4125. // Check restrict.
  4126. if (test_restrict ("String literal") == 0)
  4127. success = true;
  4128. char *restrict newvar = "Another string";
  4129. // Check varargs.
  4130. test_varargs ("s, d' f .", "string", 65, 34.234);
  4131. test_varargs_macros ();
  4132. // Check flexible array members.
  4133. struct incomplete_array *ia =
  4134. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4135. ia->datasize = 10;
  4136. for (int i = 0; i < ia->datasize; ++i)
  4137. ia->data[i] = i * 1.234;
  4138. // Check named initializers.
  4139. struct named_init ni = {
  4140. .number = 34,
  4141. .name = L"Test wide string",
  4142. .average = 543.34343,
  4143. };
  4144. ni.number = 58;
  4145. int dynamic_array[ni.number];
  4146. dynamic_array[ni.number - 1] = 543;
  4147. // work around unused variable warnings
  4148. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4149. || dynamic_array[ni.number - 1] != 543);
  4150. ;
  4151. return 0;
  4152. }
  4153. _ACEOF
  4154. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4155. do
  4156. CC="$ac_save_CC $ac_arg"
  4157. if ac_fn_c_try_compile "$LINENO"; then :
  4158. ac_cv_prog_cc_c99=$ac_arg
  4159. fi
  4160. rm -f core conftest.err conftest.$ac_objext
  4161. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4162. done
  4163. rm -f conftest.$ac_ext
  4164. CC=$ac_save_CC
  4165. fi
  4166. # AC_CACHE_VAL
  4167. case "x$ac_cv_prog_cc_c99" in
  4168. x)
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4170. $as_echo "none needed" >&6; } ;;
  4171. xno)
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4173. $as_echo "unsupported" >&6; } ;;
  4174. *)
  4175. CC="$CC $ac_cv_prog_cc_c99"
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4177. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4178. esac
  4179. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4180. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4181. else
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4183. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4184. if ${ac_cv_prog_cc_c89+:} false; then :
  4185. $as_echo_n "(cached) " >&6
  4186. else
  4187. ac_cv_prog_cc_c89=no
  4188. ac_save_CC=$CC
  4189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4190. /* end confdefs.h. */
  4191. #include <stdarg.h>
  4192. #include <stdio.h>
  4193. struct stat;
  4194. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4195. struct buf { int x; };
  4196. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4197. static char *e (p, i)
  4198. char **p;
  4199. int i;
  4200. {
  4201. return p[i];
  4202. }
  4203. static char *f (char * (*g) (char **, int), char **p, ...)
  4204. {
  4205. char *s;
  4206. va_list v;
  4207. va_start (v,p);
  4208. s = g (p, va_arg (v,int));
  4209. va_end (v);
  4210. return s;
  4211. }
  4212. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4213. function prototypes and stuff, but not '\xHH' hex character constants.
  4214. These don't provoke an error unfortunately, instead are silently treated
  4215. as 'x'. The following induces an error, until -std is added to get
  4216. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4217. array size at least. It's necessary to write '\x00'==0 to get something
  4218. that's true only with -std. */
  4219. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4220. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4221. inside strings and character constants. */
  4222. #define FOO(x) 'x'
  4223. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4224. int test (int i, double x);
  4225. struct s1 {int (*f) (int a);};
  4226. struct s2 {int (*f) (double a);};
  4227. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4228. int argc;
  4229. char **argv;
  4230. int
  4231. main ()
  4232. {
  4233. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4234. ;
  4235. return 0;
  4236. }
  4237. _ACEOF
  4238. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4239. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4240. do
  4241. CC="$ac_save_CC $ac_arg"
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. ac_cv_prog_cc_c89=$ac_arg
  4244. fi
  4245. rm -f core conftest.err conftest.$ac_objext
  4246. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4247. done
  4248. rm -f conftest.$ac_ext
  4249. CC=$ac_save_CC
  4250. fi
  4251. # AC_CACHE_VAL
  4252. case "x$ac_cv_prog_cc_c89" in
  4253. x)
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4255. $as_echo "none needed" >&6; } ;;
  4256. xno)
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4258. $as_echo "unsupported" >&6; } ;;
  4259. *)
  4260. CC="$CC $ac_cv_prog_cc_c89"
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4262. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4263. esac
  4264. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4265. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4266. else
  4267. ac_cv_prog_cc_stdc=no
  4268. fi
  4269. fi
  4270. ;;
  4271. esac
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4273. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4274. if ${ac_cv_prog_cc_stdc+:} false; then :
  4275. $as_echo_n "(cached) " >&6
  4276. fi
  4277. case $ac_cv_prog_cc_stdc in #(
  4278. no) :
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4280. $as_echo "unsupported" >&6; } ;; #(
  4281. '') :
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4283. $as_echo "none needed" >&6; } ;; #(
  4284. *) :
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4286. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4287. esac
  4288. ac_ext=c
  4289. ac_cpp='$CPP $CPPFLAGS'
  4290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4294. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4295. # On Suns, sometimes $CPP names a directory.
  4296. if test -n "$CPP" && test -d "$CPP"; then
  4297. CPP=
  4298. fi
  4299. if test -z "$CPP"; then
  4300. if ${ac_cv_prog_CPP+:} false; then :
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. # Double quotes because CPP needs to be expanded
  4304. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4305. do
  4306. ac_preproc_ok=false
  4307. for ac_c_preproc_warn_flag in '' yes
  4308. do
  4309. # Use a header file that comes with gcc, so configuring glibc
  4310. # with a fresh cross-compiler works.
  4311. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4312. # <limits.h> exists even on freestanding compilers.
  4313. # On the NeXT, cc -E runs the code through the compiler's parser,
  4314. # not just through cpp. "Syntax error" is here to catch this case.
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. #ifdef __STDC__
  4318. # include <limits.h>
  4319. #else
  4320. # include <assert.h>
  4321. #endif
  4322. Syntax error
  4323. _ACEOF
  4324. if ac_fn_c_try_cpp "$LINENO"; then :
  4325. else
  4326. # Broken: fails on valid input.
  4327. continue
  4328. fi
  4329. rm -f conftest.err conftest.i conftest.$ac_ext
  4330. # OK, works on sane cases. Now check whether nonexistent headers
  4331. # can be detected and how.
  4332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4333. /* end confdefs.h. */
  4334. #include <ac_nonexistent.h>
  4335. _ACEOF
  4336. if ac_fn_c_try_cpp "$LINENO"; then :
  4337. # Broken: success on invalid input.
  4338. continue
  4339. else
  4340. # Passes both tests.
  4341. ac_preproc_ok=:
  4342. break
  4343. fi
  4344. rm -f conftest.err conftest.i conftest.$ac_ext
  4345. done
  4346. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4347. rm -f conftest.i conftest.err conftest.$ac_ext
  4348. if $ac_preproc_ok; then :
  4349. break
  4350. fi
  4351. done
  4352. ac_cv_prog_CPP=$CPP
  4353. fi
  4354. CPP=$ac_cv_prog_CPP
  4355. else
  4356. ac_cv_prog_CPP=$CPP
  4357. fi
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4359. $as_echo "$CPP" >&6; }
  4360. ac_preproc_ok=false
  4361. for ac_c_preproc_warn_flag in '' yes
  4362. do
  4363. # Use a header file that comes with gcc, so configuring glibc
  4364. # with a fresh cross-compiler works.
  4365. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4366. # <limits.h> exists even on freestanding compilers.
  4367. # On the NeXT, cc -E runs the code through the compiler's parser,
  4368. # not just through cpp. "Syntax error" is here to catch this case.
  4369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4370. /* end confdefs.h. */
  4371. #ifdef __STDC__
  4372. # include <limits.h>
  4373. #else
  4374. # include <assert.h>
  4375. #endif
  4376. Syntax error
  4377. _ACEOF
  4378. if ac_fn_c_try_cpp "$LINENO"; then :
  4379. else
  4380. # Broken: fails on valid input.
  4381. continue
  4382. fi
  4383. rm -f conftest.err conftest.i conftest.$ac_ext
  4384. # OK, works on sane cases. Now check whether nonexistent headers
  4385. # can be detected and how.
  4386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4387. /* end confdefs.h. */
  4388. #include <ac_nonexistent.h>
  4389. _ACEOF
  4390. if ac_fn_c_try_cpp "$LINENO"; then :
  4391. # Broken: success on invalid input.
  4392. continue
  4393. else
  4394. # Passes both tests.
  4395. ac_preproc_ok=:
  4396. break
  4397. fi
  4398. rm -f conftest.err conftest.i conftest.$ac_ext
  4399. done
  4400. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4401. rm -f conftest.i conftest.err conftest.$ac_ext
  4402. if $ac_preproc_ok; then :
  4403. else
  4404. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4405. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4406. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4407. See \`config.log' for more details" "$LINENO" 5; }
  4408. fi
  4409. ac_ext=c
  4410. ac_cpp='$CPP $CPPFLAGS'
  4411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4415. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4416. if ${ac_cv_path_GREP+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. if test -z "$GREP"; then
  4420. ac_path_GREP_found=false
  4421. # Loop through the user's path and test for each of PROGNAME-LIST
  4422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4423. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4424. do
  4425. IFS=$as_save_IFS
  4426. test -z "$as_dir" && as_dir=.
  4427. for ac_prog in grep ggrep; do
  4428. for ac_exec_ext in '' $ac_executable_extensions; do
  4429. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4430. as_fn_executable_p "$ac_path_GREP" || continue
  4431. # Check for GNU ac_path_GREP and select it if it is found.
  4432. # Check for GNU $ac_path_GREP
  4433. case `"$ac_path_GREP" --version 2>&1` in
  4434. *GNU*)
  4435. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4436. *)
  4437. ac_count=0
  4438. $as_echo_n 0123456789 >"conftest.in"
  4439. while :
  4440. do
  4441. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4442. mv "conftest.tmp" "conftest.in"
  4443. cp "conftest.in" "conftest.nl"
  4444. $as_echo 'GREP' >> "conftest.nl"
  4445. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4446. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4447. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4448. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4449. # Best one so far, save it but keep looking for a better one
  4450. ac_cv_path_GREP="$ac_path_GREP"
  4451. ac_path_GREP_max=$ac_count
  4452. fi
  4453. # 10*(2^10) chars as input seems more than enough
  4454. test $ac_count -gt 10 && break
  4455. done
  4456. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4457. esac
  4458. $ac_path_GREP_found && break 3
  4459. done
  4460. done
  4461. done
  4462. IFS=$as_save_IFS
  4463. if test -z "$ac_cv_path_GREP"; then
  4464. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4465. fi
  4466. else
  4467. ac_cv_path_GREP=$GREP
  4468. fi
  4469. fi
  4470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4471. $as_echo "$ac_cv_path_GREP" >&6; }
  4472. GREP="$ac_cv_path_GREP"
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4474. $as_echo_n "checking for egrep... " >&6; }
  4475. if ${ac_cv_path_EGREP+:} false; then :
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4479. then ac_cv_path_EGREP="$GREP -E"
  4480. else
  4481. if test -z "$EGREP"; then
  4482. ac_path_EGREP_found=false
  4483. # Loop through the user's path and test for each of PROGNAME-LIST
  4484. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4485. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4486. do
  4487. IFS=$as_save_IFS
  4488. test -z "$as_dir" && as_dir=.
  4489. for ac_prog in egrep; do
  4490. for ac_exec_ext in '' $ac_executable_extensions; do
  4491. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4492. as_fn_executable_p "$ac_path_EGREP" || continue
  4493. # Check for GNU ac_path_EGREP and select it if it is found.
  4494. # Check for GNU $ac_path_EGREP
  4495. case `"$ac_path_EGREP" --version 2>&1` in
  4496. *GNU*)
  4497. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4498. *)
  4499. ac_count=0
  4500. $as_echo_n 0123456789 >"conftest.in"
  4501. while :
  4502. do
  4503. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4504. mv "conftest.tmp" "conftest.in"
  4505. cp "conftest.in" "conftest.nl"
  4506. $as_echo 'EGREP' >> "conftest.nl"
  4507. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4508. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4509. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4510. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4511. # Best one so far, save it but keep looking for a better one
  4512. ac_cv_path_EGREP="$ac_path_EGREP"
  4513. ac_path_EGREP_max=$ac_count
  4514. fi
  4515. # 10*(2^10) chars as input seems more than enough
  4516. test $ac_count -gt 10 && break
  4517. done
  4518. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4519. esac
  4520. $ac_path_EGREP_found && break 3
  4521. done
  4522. done
  4523. done
  4524. IFS=$as_save_IFS
  4525. if test -z "$ac_cv_path_EGREP"; then
  4526. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4527. fi
  4528. else
  4529. ac_cv_path_EGREP=$EGREP
  4530. fi
  4531. fi
  4532. fi
  4533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4534. $as_echo "$ac_cv_path_EGREP" >&6; }
  4535. EGREP="$ac_cv_path_EGREP"
  4536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4537. $as_echo_n "checking for ANSI C header files... " >&6; }
  4538. if ${ac_cv_header_stdc+:} false; then :
  4539. $as_echo_n "(cached) " >&6
  4540. else
  4541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4542. /* end confdefs.h. */
  4543. #include <stdlib.h>
  4544. #include <stdarg.h>
  4545. #include <string.h>
  4546. #include <float.h>
  4547. int
  4548. main ()
  4549. {
  4550. ;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. if ac_fn_c_try_compile "$LINENO"; then :
  4555. ac_cv_header_stdc=yes
  4556. else
  4557. ac_cv_header_stdc=no
  4558. fi
  4559. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4560. if test $ac_cv_header_stdc = yes; then
  4561. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4563. /* end confdefs.h. */
  4564. #include <string.h>
  4565. _ACEOF
  4566. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4567. $EGREP "memchr" >/dev/null 2>&1; then :
  4568. else
  4569. ac_cv_header_stdc=no
  4570. fi
  4571. rm -f conftest*
  4572. fi
  4573. if test $ac_cv_header_stdc = yes; then
  4574. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4576. /* end confdefs.h. */
  4577. #include <stdlib.h>
  4578. _ACEOF
  4579. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4580. $EGREP "free" >/dev/null 2>&1; then :
  4581. else
  4582. ac_cv_header_stdc=no
  4583. fi
  4584. rm -f conftest*
  4585. fi
  4586. if test $ac_cv_header_stdc = yes; then
  4587. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4588. if test "$cross_compiling" = yes; then :
  4589. :
  4590. else
  4591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4592. /* end confdefs.h. */
  4593. #include <ctype.h>
  4594. #include <stdlib.h>
  4595. #if ((' ' & 0x0FF) == 0x020)
  4596. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4597. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4598. #else
  4599. # define ISLOWER(c) \
  4600. (('a' <= (c) && (c) <= 'i') \
  4601. || ('j' <= (c) && (c) <= 'r') \
  4602. || ('s' <= (c) && (c) <= 'z'))
  4603. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4604. #endif
  4605. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4606. int
  4607. main ()
  4608. {
  4609. int i;
  4610. for (i = 0; i < 256; i++)
  4611. if (XOR (islower (i), ISLOWER (i))
  4612. || toupper (i) != TOUPPER (i))
  4613. return 2;
  4614. return 0;
  4615. }
  4616. _ACEOF
  4617. if ac_fn_c_try_run "$LINENO"; then :
  4618. else
  4619. ac_cv_header_stdc=no
  4620. fi
  4621. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4622. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4623. fi
  4624. fi
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4627. $as_echo "$ac_cv_header_stdc" >&6; }
  4628. if test $ac_cv_header_stdc = yes; then
  4629. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4630. fi
  4631. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4632. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4633. inttypes.h stdint.h unistd.h
  4634. do :
  4635. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4636. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4637. "
  4638. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4639. cat >>confdefs.h <<_ACEOF
  4640. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4641. _ACEOF
  4642. fi
  4643. done
  4644. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4645. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4646. MINIX=yes
  4647. else
  4648. MINIX=
  4649. fi
  4650. if test "$MINIX" = yes; then
  4651. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4652. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4653. $as_echo "#define _MINIX 1" >>confdefs.h
  4654. fi
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4656. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4657. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4661. /* end confdefs.h. */
  4662. # define __EXTENSIONS__ 1
  4663. $ac_includes_default
  4664. int
  4665. main ()
  4666. {
  4667. ;
  4668. return 0;
  4669. }
  4670. _ACEOF
  4671. if ac_fn_c_try_compile "$LINENO"; then :
  4672. ac_cv_safe_to_define___extensions__=yes
  4673. else
  4674. ac_cv_safe_to_define___extensions__=no
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4679. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4680. test $ac_cv_safe_to_define___extensions__ = yes &&
  4681. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4682. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4683. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4684. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4685. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4687. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4688. if ${ac_cv_c_bigendian+:} false; then :
  4689. $as_echo_n "(cached) " >&6
  4690. else
  4691. ac_cv_c_bigendian=unknown
  4692. # See if we're dealing with a universal compiler.
  4693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4694. /* end confdefs.h. */
  4695. #ifndef __APPLE_CC__
  4696. not a universal capable compiler
  4697. #endif
  4698. typedef int dummy;
  4699. _ACEOF
  4700. if ac_fn_c_try_compile "$LINENO"; then :
  4701. # Check for potential -arch flags. It is not universal unless
  4702. # there are at least two -arch flags with different values.
  4703. ac_arch=
  4704. ac_prev=
  4705. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4706. if test -n "$ac_prev"; then
  4707. case $ac_word in
  4708. i?86 | x86_64 | ppc | ppc64)
  4709. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4710. ac_arch=$ac_word
  4711. else
  4712. ac_cv_c_bigendian=universal
  4713. break
  4714. fi
  4715. ;;
  4716. esac
  4717. ac_prev=
  4718. elif test "x$ac_word" = "x-arch"; then
  4719. ac_prev=arch
  4720. fi
  4721. done
  4722. fi
  4723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4724. if test $ac_cv_c_bigendian = unknown; then
  4725. # See if sys/param.h defines the BYTE_ORDER macro.
  4726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4727. /* end confdefs.h. */
  4728. #include <sys/types.h>
  4729. #include <sys/param.h>
  4730. int
  4731. main ()
  4732. {
  4733. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4734. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4735. && LITTLE_ENDIAN)
  4736. bogus endian macros
  4737. #endif
  4738. ;
  4739. return 0;
  4740. }
  4741. _ACEOF
  4742. if ac_fn_c_try_compile "$LINENO"; then :
  4743. # It does; now see whether it defined to BIG_ENDIAN or not.
  4744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4745. /* end confdefs.h. */
  4746. #include <sys/types.h>
  4747. #include <sys/param.h>
  4748. int
  4749. main ()
  4750. {
  4751. #if BYTE_ORDER != BIG_ENDIAN
  4752. not big endian
  4753. #endif
  4754. ;
  4755. return 0;
  4756. }
  4757. _ACEOF
  4758. if ac_fn_c_try_compile "$LINENO"; then :
  4759. ac_cv_c_bigendian=yes
  4760. else
  4761. ac_cv_c_bigendian=no
  4762. fi
  4763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4764. fi
  4765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4766. fi
  4767. if test $ac_cv_c_bigendian = unknown; then
  4768. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4769. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4770. /* end confdefs.h. */
  4771. #include <limits.h>
  4772. int
  4773. main ()
  4774. {
  4775. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4776. bogus endian macros
  4777. #endif
  4778. ;
  4779. return 0;
  4780. }
  4781. _ACEOF
  4782. if ac_fn_c_try_compile "$LINENO"; then :
  4783. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4785. /* end confdefs.h. */
  4786. #include <limits.h>
  4787. int
  4788. main ()
  4789. {
  4790. #ifndef _BIG_ENDIAN
  4791. not big endian
  4792. #endif
  4793. ;
  4794. return 0;
  4795. }
  4796. _ACEOF
  4797. if ac_fn_c_try_compile "$LINENO"; then :
  4798. ac_cv_c_bigendian=yes
  4799. else
  4800. ac_cv_c_bigendian=no
  4801. fi
  4802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4803. fi
  4804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4805. fi
  4806. if test $ac_cv_c_bigendian = unknown; then
  4807. # Compile a test program.
  4808. if test "$cross_compiling" = yes; then :
  4809. # Try to guess by grepping values from an object file.
  4810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4811. /* end confdefs.h. */
  4812. short int ascii_mm[] =
  4813. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4814. short int ascii_ii[] =
  4815. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4816. int use_ascii (int i) {
  4817. return ascii_mm[i] + ascii_ii[i];
  4818. }
  4819. short int ebcdic_ii[] =
  4820. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4821. short int ebcdic_mm[] =
  4822. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4823. int use_ebcdic (int i) {
  4824. return ebcdic_mm[i] + ebcdic_ii[i];
  4825. }
  4826. extern int foo;
  4827. int
  4828. main ()
  4829. {
  4830. return use_ascii (foo) == use_ebcdic (foo);
  4831. ;
  4832. return 0;
  4833. }
  4834. _ACEOF
  4835. if ac_fn_c_try_compile "$LINENO"; then :
  4836. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4837. ac_cv_c_bigendian=yes
  4838. fi
  4839. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4840. if test "$ac_cv_c_bigendian" = unknown; then
  4841. ac_cv_c_bigendian=no
  4842. else
  4843. # finding both strings is unlikely to happen, but who knows?
  4844. ac_cv_c_bigendian=unknown
  4845. fi
  4846. fi
  4847. fi
  4848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4849. else
  4850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4851. /* end confdefs.h. */
  4852. $ac_includes_default
  4853. int
  4854. main ()
  4855. {
  4856. /* Are we little or big endian? From Harbison&Steele. */
  4857. union
  4858. {
  4859. long int l;
  4860. char c[sizeof (long int)];
  4861. } u;
  4862. u.l = 1;
  4863. return u.c[sizeof (long int) - 1] == 1;
  4864. ;
  4865. return 0;
  4866. }
  4867. _ACEOF
  4868. if ac_fn_c_try_run "$LINENO"; then :
  4869. ac_cv_c_bigendian=no
  4870. else
  4871. ac_cv_c_bigendian=yes
  4872. fi
  4873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4874. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4875. fi
  4876. fi
  4877. fi
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4879. $as_echo "$ac_cv_c_bigendian" >&6; }
  4880. case $ac_cv_c_bigendian in #(
  4881. yes)
  4882. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4883. ;; #(
  4884. no)
  4885. ;; #(
  4886. universal)
  4887. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4888. ;; #(
  4889. *)
  4890. as_fn_error $? "unknown endianness
  4891. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4892. esac
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4894. $as_echo_n "checking whether ln -s works... " >&6; }
  4895. LN_S=$as_ln_s
  4896. if test "$LN_S" = "ln -s"; then
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4898. $as_echo "yes" >&6; }
  4899. else
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4901. $as_echo "no, using $LN_S" >&6; }
  4902. fi
  4903. case `pwd` in
  4904. *\ * | *\ *)
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4906. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4907. esac
  4908. macro_version='2.4.6'
  4909. macro_revision='2.4.6'
  4910. ltmain=$ac_aux_dir/ltmain.sh
  4911. # Backslashify metacharacters that are still active within
  4912. # double-quoted strings.
  4913. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4914. # Same as above, but do not quote variable references.
  4915. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4916. # Sed substitution to delay expansion of an escaped shell variable in a
  4917. # double_quote_subst'ed string.
  4918. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4919. # Sed substitution to delay expansion of an escaped single quote.
  4920. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4921. # Sed substitution to avoid accidental globbing in evaled expressions
  4922. no_glob_subst='s/\*/\\\*/g'
  4923. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4924. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4925. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4927. $as_echo_n "checking how to print strings... " >&6; }
  4928. # Test print first, because it will be a builtin if present.
  4929. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4930. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4931. ECHO='print -r --'
  4932. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4933. ECHO='printf %s\n'
  4934. else
  4935. # Use this function as a fallback that always works.
  4936. func_fallback_echo ()
  4937. {
  4938. eval 'cat <<_LTECHO_EOF
  4939. $1
  4940. _LTECHO_EOF'
  4941. }
  4942. ECHO='func_fallback_echo'
  4943. fi
  4944. # func_echo_all arg...
  4945. # Invoke $ECHO with all args, space-separated.
  4946. func_echo_all ()
  4947. {
  4948. $ECHO ""
  4949. }
  4950. case $ECHO in
  4951. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4952. $as_echo "printf" >&6; } ;;
  4953. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4954. $as_echo "print -r" >&6; } ;;
  4955. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4956. $as_echo "cat" >&6; } ;;
  4957. esac
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4959. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4960. if ${ac_cv_path_SED+:} false; then :
  4961. $as_echo_n "(cached) " >&6
  4962. else
  4963. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4964. for ac_i in 1 2 3 4 5 6 7; do
  4965. ac_script="$ac_script$as_nl$ac_script"
  4966. done
  4967. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4968. { ac_script=; unset ac_script;}
  4969. if test -z "$SED"; then
  4970. ac_path_SED_found=false
  4971. # Loop through the user's path and test for each of PROGNAME-LIST
  4972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4973. for as_dir in $PATH
  4974. do
  4975. IFS=$as_save_IFS
  4976. test -z "$as_dir" && as_dir=.
  4977. for ac_prog in sed gsed; do
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4980. as_fn_executable_p "$ac_path_SED" || continue
  4981. # Check for GNU ac_path_SED and select it if it is found.
  4982. # Check for GNU $ac_path_SED
  4983. case `"$ac_path_SED" --version 2>&1` in
  4984. *GNU*)
  4985. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4986. *)
  4987. ac_count=0
  4988. $as_echo_n 0123456789 >"conftest.in"
  4989. while :
  4990. do
  4991. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4992. mv "conftest.tmp" "conftest.in"
  4993. cp "conftest.in" "conftest.nl"
  4994. $as_echo '' >> "conftest.nl"
  4995. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4996. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4997. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4998. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4999. # Best one so far, save it but keep looking for a better one
  5000. ac_cv_path_SED="$ac_path_SED"
  5001. ac_path_SED_max=$ac_count
  5002. fi
  5003. # 10*(2^10) chars as input seems more than enough
  5004. test $ac_count -gt 10 && break
  5005. done
  5006. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5007. esac
  5008. $ac_path_SED_found && break 3
  5009. done
  5010. done
  5011. done
  5012. IFS=$as_save_IFS
  5013. if test -z "$ac_cv_path_SED"; then
  5014. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5015. fi
  5016. else
  5017. ac_cv_path_SED=$SED
  5018. fi
  5019. fi
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5021. $as_echo "$ac_cv_path_SED" >&6; }
  5022. SED="$ac_cv_path_SED"
  5023. rm -f conftest.sed
  5024. test -z "$SED" && SED=sed
  5025. Xsed="$SED -e 1s/^X//"
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5027. $as_echo_n "checking for fgrep... " >&6; }
  5028. if ${ac_cv_path_FGREP+:} false; then :
  5029. $as_echo_n "(cached) " >&6
  5030. else
  5031. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5032. then ac_cv_path_FGREP="$GREP -F"
  5033. else
  5034. if test -z "$FGREP"; then
  5035. ac_path_FGREP_found=false
  5036. # Loop through the user's path and test for each of PROGNAME-LIST
  5037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5038. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5039. do
  5040. IFS=$as_save_IFS
  5041. test -z "$as_dir" && as_dir=.
  5042. for ac_prog in fgrep; do
  5043. for ac_exec_ext in '' $ac_executable_extensions; do
  5044. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5045. as_fn_executable_p "$ac_path_FGREP" || continue
  5046. # Check for GNU ac_path_FGREP and select it if it is found.
  5047. # Check for GNU $ac_path_FGREP
  5048. case `"$ac_path_FGREP" --version 2>&1` in
  5049. *GNU*)
  5050. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5051. *)
  5052. ac_count=0
  5053. $as_echo_n 0123456789 >"conftest.in"
  5054. while :
  5055. do
  5056. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5057. mv "conftest.tmp" "conftest.in"
  5058. cp "conftest.in" "conftest.nl"
  5059. $as_echo 'FGREP' >> "conftest.nl"
  5060. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5061. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5062. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5063. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5064. # Best one so far, save it but keep looking for a better one
  5065. ac_cv_path_FGREP="$ac_path_FGREP"
  5066. ac_path_FGREP_max=$ac_count
  5067. fi
  5068. # 10*(2^10) chars as input seems more than enough
  5069. test $ac_count -gt 10 && break
  5070. done
  5071. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5072. esac
  5073. $ac_path_FGREP_found && break 3
  5074. done
  5075. done
  5076. done
  5077. IFS=$as_save_IFS
  5078. if test -z "$ac_cv_path_FGREP"; then
  5079. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5080. fi
  5081. else
  5082. ac_cv_path_FGREP=$FGREP
  5083. fi
  5084. fi
  5085. fi
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5087. $as_echo "$ac_cv_path_FGREP" >&6; }
  5088. FGREP="$ac_cv_path_FGREP"
  5089. test -z "$GREP" && GREP=grep
  5090. # Check whether --with-gnu-ld was given.
  5091. if test "${with_gnu_ld+set}" = set; then :
  5092. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  5093. else
  5094. with_gnu_ld=no
  5095. fi
  5096. ac_prog=ld
  5097. if test yes = "$GCC"; then
  5098. # Check if gcc -print-prog-name=ld gives a path.
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5100. $as_echo_n "checking for ld used by $CC... " >&6; }
  5101. case $host in
  5102. *-*-mingw*)
  5103. # gcc leaves a trailing carriage return, which upsets mingw
  5104. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5105. *)
  5106. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5107. esac
  5108. case $ac_prog in
  5109. # Accept absolute paths.
  5110. [\\/]* | ?:[\\/]*)
  5111. re_direlt='/[^/][^/]*/\.\./'
  5112. # Canonicalize the pathname of ld
  5113. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5114. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5115. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5116. done
  5117. test -z "$LD" && LD=$ac_prog
  5118. ;;
  5119. "")
  5120. # If it fails, then pretend we aren't using GCC.
  5121. ac_prog=ld
  5122. ;;
  5123. *)
  5124. # If it is relative, then search for the first ld in PATH.
  5125. with_gnu_ld=unknown
  5126. ;;
  5127. esac
  5128. elif test yes = "$with_gnu_ld"; then
  5129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5130. $as_echo_n "checking for GNU ld... " >&6; }
  5131. else
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5133. $as_echo_n "checking for non-GNU ld... " >&6; }
  5134. fi
  5135. if ${lt_cv_path_LD+:} false; then :
  5136. $as_echo_n "(cached) " >&6
  5137. else
  5138. if test -z "$LD"; then
  5139. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5140. for ac_dir in $PATH; do
  5141. IFS=$lt_save_ifs
  5142. test -z "$ac_dir" && ac_dir=.
  5143. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5144. lt_cv_path_LD=$ac_dir/$ac_prog
  5145. # Check to see if the program is GNU ld. I'd rather use --version,
  5146. # but apparently some variants of GNU ld only accept -v.
  5147. # Break only if it was the GNU/non-GNU ld that we prefer.
  5148. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5149. *GNU* | *'with BFD'*)
  5150. test no != "$with_gnu_ld" && break
  5151. ;;
  5152. *)
  5153. test yes != "$with_gnu_ld" && break
  5154. ;;
  5155. esac
  5156. fi
  5157. done
  5158. IFS=$lt_save_ifs
  5159. else
  5160. lt_cv_path_LD=$LD # Let the user override the test with a path.
  5161. fi
  5162. fi
  5163. LD=$lt_cv_path_LD
  5164. if test -n "$LD"; then
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5166. $as_echo "$LD" >&6; }
  5167. else
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5169. $as_echo "no" >&6; }
  5170. fi
  5171. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5173. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5174. if ${lt_cv_prog_gnu_ld+:} false; then :
  5175. $as_echo_n "(cached) " >&6
  5176. else
  5177. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5178. case `$LD -v 2>&1 </dev/null` in
  5179. *GNU* | *'with BFD'*)
  5180. lt_cv_prog_gnu_ld=yes
  5181. ;;
  5182. *)
  5183. lt_cv_prog_gnu_ld=no
  5184. ;;
  5185. esac
  5186. fi
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5188. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5189. with_gnu_ld=$lt_cv_prog_gnu_ld
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5191. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5192. if ${lt_cv_path_NM+:} false; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. if test -n "$NM"; then
  5196. # Let the user override the test.
  5197. lt_cv_path_NM=$NM
  5198. else
  5199. lt_nm_to_check=${ac_tool_prefix}nm
  5200. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5201. lt_nm_to_check="$lt_nm_to_check nm"
  5202. fi
  5203. for lt_tmp_nm in $lt_nm_to_check; do
  5204. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  5205. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5206. IFS=$lt_save_ifs
  5207. test -z "$ac_dir" && ac_dir=.
  5208. tmp_nm=$ac_dir/$lt_tmp_nm
  5209. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  5210. # Check to see if the nm accepts a BSD-compat flag.
  5211. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  5212. # nm: unknown option "B" ignored
  5213. # Tru64's nm complains that /dev/null is an invalid object file
  5214. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  5215. case $build_os in
  5216. mingw*) lt_bad_file=conftest.nm/nofile ;;
  5217. *) lt_bad_file=/dev/null ;;
  5218. esac
  5219. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  5220. *$lt_bad_file* | *'Invalid file or object type'*)
  5221. lt_cv_path_NM="$tmp_nm -B"
  5222. break 2
  5223. ;;
  5224. *)
  5225. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5226. */dev/null*)
  5227. lt_cv_path_NM="$tmp_nm -p"
  5228. break 2
  5229. ;;
  5230. *)
  5231. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5232. continue # so that we can try to find one that supports BSD flags
  5233. ;;
  5234. esac
  5235. ;;
  5236. esac
  5237. fi
  5238. done
  5239. IFS=$lt_save_ifs
  5240. done
  5241. : ${lt_cv_path_NM=no}
  5242. fi
  5243. fi
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5245. $as_echo "$lt_cv_path_NM" >&6; }
  5246. if test no != "$lt_cv_path_NM"; then
  5247. NM=$lt_cv_path_NM
  5248. else
  5249. # Didn't find any BSD compatible name lister, look for dumpbin.
  5250. if test -n "$DUMPBIN"; then :
  5251. # Let the user override the test.
  5252. else
  5253. if test -n "$ac_tool_prefix"; then
  5254. for ac_prog in dumpbin "link -dump"
  5255. do
  5256. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5257. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5259. $as_echo_n "checking for $ac_word... " >&6; }
  5260. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5261. $as_echo_n "(cached) " >&6
  5262. else
  5263. if test -n "$DUMPBIN"; then
  5264. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5265. else
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5273. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5275. break 2
  5276. fi
  5277. done
  5278. done
  5279. IFS=$as_save_IFS
  5280. fi
  5281. fi
  5282. DUMPBIN=$ac_cv_prog_DUMPBIN
  5283. if test -n "$DUMPBIN"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5285. $as_echo "$DUMPBIN" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5288. $as_echo "no" >&6; }
  5289. fi
  5290. test -n "$DUMPBIN" && break
  5291. done
  5292. fi
  5293. if test -z "$DUMPBIN"; then
  5294. ac_ct_DUMPBIN=$DUMPBIN
  5295. for ac_prog in dumpbin "link -dump"
  5296. do
  5297. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5298. set dummy $ac_prog; ac_word=$2
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5300. $as_echo_n "checking for $ac_word... " >&6; }
  5301. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5302. $as_echo_n "(cached) " >&6
  5303. else
  5304. if test -n "$ac_ct_DUMPBIN"; then
  5305. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5306. else
  5307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5308. for as_dir in $PATH
  5309. do
  5310. IFS=$as_save_IFS
  5311. test -z "$as_dir" && as_dir=.
  5312. for ac_exec_ext in '' $ac_executable_extensions; do
  5313. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5314. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5315. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5316. break 2
  5317. fi
  5318. done
  5319. done
  5320. IFS=$as_save_IFS
  5321. fi
  5322. fi
  5323. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5324. if test -n "$ac_ct_DUMPBIN"; then
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5326. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5327. else
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5329. $as_echo "no" >&6; }
  5330. fi
  5331. test -n "$ac_ct_DUMPBIN" && break
  5332. done
  5333. if test "x$ac_ct_DUMPBIN" = x; then
  5334. DUMPBIN=":"
  5335. else
  5336. case $cross_compiling:$ac_tool_warned in
  5337. yes:)
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5340. ac_tool_warned=yes ;;
  5341. esac
  5342. DUMPBIN=$ac_ct_DUMPBIN
  5343. fi
  5344. fi
  5345. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  5346. *COFF*)
  5347. DUMPBIN="$DUMPBIN -symbols -headers"
  5348. ;;
  5349. *)
  5350. DUMPBIN=:
  5351. ;;
  5352. esac
  5353. fi
  5354. if test : != "$DUMPBIN"; then
  5355. NM=$DUMPBIN
  5356. fi
  5357. fi
  5358. test -z "$NM" && NM=nm
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5360. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5361. if ${lt_cv_nm_interface+:} false; then :
  5362. $as_echo_n "(cached) " >&6
  5363. else
  5364. lt_cv_nm_interface="BSD nm"
  5365. echo "int some_variable = 0;" > conftest.$ac_ext
  5366. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5367. (eval "$ac_compile" 2>conftest.err)
  5368. cat conftest.err >&5
  5369. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5370. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5371. cat conftest.err >&5
  5372. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5373. cat conftest.out >&5
  5374. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5375. lt_cv_nm_interface="MS dumpbin"
  5376. fi
  5377. rm -f conftest*
  5378. fi
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5380. $as_echo "$lt_cv_nm_interface" >&6; }
  5381. # find the maximum length of command line arguments
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5383. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5384. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. i=0
  5388. teststring=ABCD
  5389. case $build_os in
  5390. msdosdjgpp*)
  5391. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5392. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5393. # during glob expansion). Even if it were fixed, the result of this
  5394. # check would be larger than it should be.
  5395. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5396. ;;
  5397. gnu*)
  5398. # Under GNU Hurd, this test is not required because there is
  5399. # no limit to the length of command line arguments.
  5400. # Libtool will interpret -1 as no limit whatsoever
  5401. lt_cv_sys_max_cmd_len=-1;
  5402. ;;
  5403. cygwin* | mingw* | cegcc*)
  5404. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5405. # about 5 minutes as the teststring grows exponentially.
  5406. # Worse, since 9x/ME are not pre-emptively multitasking,
  5407. # you end up with a "frozen" computer, even though with patience
  5408. # the test eventually succeeds (with a max line length of 256k).
  5409. # Instead, let's just punt: use the minimum linelength reported by
  5410. # all of the supported platforms: 8192 (on NT/2K/XP).
  5411. lt_cv_sys_max_cmd_len=8192;
  5412. ;;
  5413. mint*)
  5414. # On MiNT this can take a long time and run out of memory.
  5415. lt_cv_sys_max_cmd_len=8192;
  5416. ;;
  5417. amigaos*)
  5418. # On AmigaOS with pdksh, this test takes hours, literally.
  5419. # So we just punt and use a minimum line length of 8192.
  5420. lt_cv_sys_max_cmd_len=8192;
  5421. ;;
  5422. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  5423. # This has been around since 386BSD, at least. Likely further.
  5424. if test -x /sbin/sysctl; then
  5425. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5426. elif test -x /usr/sbin/sysctl; then
  5427. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5428. else
  5429. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5430. fi
  5431. # And add a safety zone
  5432. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5433. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5434. ;;
  5435. interix*)
  5436. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5437. lt_cv_sys_max_cmd_len=196608
  5438. ;;
  5439. os2*)
  5440. # The test takes a long time on OS/2.
  5441. lt_cv_sys_max_cmd_len=8192
  5442. ;;
  5443. osf*)
  5444. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5445. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5446. # nice to cause kernel panics so lets avoid the loop below.
  5447. # First set a reasonable default.
  5448. lt_cv_sys_max_cmd_len=16384
  5449. #
  5450. if test -x /sbin/sysconfig; then
  5451. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5452. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5453. esac
  5454. fi
  5455. ;;
  5456. sco3.2v5*)
  5457. lt_cv_sys_max_cmd_len=102400
  5458. ;;
  5459. sysv5* | sco5v6* | sysv4.2uw2*)
  5460. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5461. if test -n "$kargmax"; then
  5462. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5463. else
  5464. lt_cv_sys_max_cmd_len=32768
  5465. fi
  5466. ;;
  5467. *)
  5468. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5469. if test -n "$lt_cv_sys_max_cmd_len" && \
  5470. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5471. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5472. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5473. else
  5474. # Make teststring a little bigger before we do anything with it.
  5475. # a 1K string should be a reasonable start.
  5476. for i in 1 2 3 4 5 6 7 8; do
  5477. teststring=$teststring$teststring
  5478. done
  5479. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5480. # If test is not a shell built-in, we'll probably end up computing a
  5481. # maximum length that is only half of the actual maximum length, but
  5482. # we can't tell.
  5483. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  5484. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5485. test 17 != "$i" # 1/2 MB should be enough
  5486. do
  5487. i=`expr $i + 1`
  5488. teststring=$teststring$teststring
  5489. done
  5490. # Only check the string length outside the loop.
  5491. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5492. teststring=
  5493. # Add a significant safety factor because C++ compilers can tack on
  5494. # massive amounts of additional arguments before passing them to the
  5495. # linker. It appears as though 1/2 is a usable value.
  5496. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5497. fi
  5498. ;;
  5499. esac
  5500. fi
  5501. if test -n "$lt_cv_sys_max_cmd_len"; then
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5503. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5504. else
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5506. $as_echo "none" >&6; }
  5507. fi
  5508. max_cmd_len=$lt_cv_sys_max_cmd_len
  5509. : ${CP="cp -f"}
  5510. : ${MV="mv -f"}
  5511. : ${RM="rm -f"}
  5512. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5513. lt_unset=unset
  5514. else
  5515. lt_unset=false
  5516. fi
  5517. # test EBCDIC or ASCII
  5518. case `echo X|tr X '\101'` in
  5519. A) # ASCII based system
  5520. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5521. lt_SP2NL='tr \040 \012'
  5522. lt_NL2SP='tr \015\012 \040\040'
  5523. ;;
  5524. *) # EBCDIC based system
  5525. lt_SP2NL='tr \100 \n'
  5526. lt_NL2SP='tr \r\n \100\100'
  5527. ;;
  5528. esac
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5530. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5531. if ${lt_cv_to_host_file_cmd+:} false; then :
  5532. $as_echo_n "(cached) " >&6
  5533. else
  5534. case $host in
  5535. *-*-mingw* )
  5536. case $build in
  5537. *-*-mingw* ) # actually msys
  5538. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5539. ;;
  5540. *-*-cygwin* )
  5541. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5542. ;;
  5543. * ) # otherwise, assume *nix
  5544. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5545. ;;
  5546. esac
  5547. ;;
  5548. *-*-cygwin* )
  5549. case $build in
  5550. *-*-mingw* ) # actually msys
  5551. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5552. ;;
  5553. *-*-cygwin* )
  5554. lt_cv_to_host_file_cmd=func_convert_file_noop
  5555. ;;
  5556. * ) # otherwise, assume *nix
  5557. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5558. ;;
  5559. esac
  5560. ;;
  5561. * ) # unhandled hosts (and "normal" native builds)
  5562. lt_cv_to_host_file_cmd=func_convert_file_noop
  5563. ;;
  5564. esac
  5565. fi
  5566. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5568. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5570. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5571. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. #assume ordinary cross tools, or native build.
  5575. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5576. case $host in
  5577. *-*-mingw* )
  5578. case $build in
  5579. *-*-mingw* ) # actually msys
  5580. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5581. ;;
  5582. esac
  5583. ;;
  5584. esac
  5585. fi
  5586. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5588. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5590. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5591. if ${lt_cv_ld_reload_flag+:} false; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. lt_cv_ld_reload_flag='-r'
  5595. fi
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5597. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5598. reload_flag=$lt_cv_ld_reload_flag
  5599. case $reload_flag in
  5600. "" | " "*) ;;
  5601. *) reload_flag=" $reload_flag" ;;
  5602. esac
  5603. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5604. case $host_os in
  5605. cygwin* | mingw* | pw32* | cegcc*)
  5606. if test yes != "$GCC"; then
  5607. reload_cmds=false
  5608. fi
  5609. ;;
  5610. darwin*)
  5611. if test yes = "$GCC"; then
  5612. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  5613. else
  5614. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5615. fi
  5616. ;;
  5617. esac
  5618. if test -n "$ac_tool_prefix"; then
  5619. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5620. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5622. $as_echo_n "checking for $ac_word... " >&6; }
  5623. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5624. $as_echo_n "(cached) " >&6
  5625. else
  5626. if test -n "$OBJDUMP"; then
  5627. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5628. else
  5629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5630. for as_dir in $PATH
  5631. do
  5632. IFS=$as_save_IFS
  5633. test -z "$as_dir" && as_dir=.
  5634. for ac_exec_ext in '' $ac_executable_extensions; do
  5635. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5636. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5638. break 2
  5639. fi
  5640. done
  5641. done
  5642. IFS=$as_save_IFS
  5643. fi
  5644. fi
  5645. OBJDUMP=$ac_cv_prog_OBJDUMP
  5646. if test -n "$OBJDUMP"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5648. $as_echo "$OBJDUMP" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5651. $as_echo "no" >&6; }
  5652. fi
  5653. fi
  5654. if test -z "$ac_cv_prog_OBJDUMP"; then
  5655. ac_ct_OBJDUMP=$OBJDUMP
  5656. # Extract the first word of "objdump", so it can be a program name with args.
  5657. set dummy objdump; ac_word=$2
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5659. $as_echo_n "checking for $ac_word... " >&6; }
  5660. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5661. $as_echo_n "(cached) " >&6
  5662. else
  5663. if test -n "$ac_ct_OBJDUMP"; then
  5664. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5665. else
  5666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5667. for as_dir in $PATH
  5668. do
  5669. IFS=$as_save_IFS
  5670. test -z "$as_dir" && as_dir=.
  5671. for ac_exec_ext in '' $ac_executable_extensions; do
  5672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5673. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5675. break 2
  5676. fi
  5677. done
  5678. done
  5679. IFS=$as_save_IFS
  5680. fi
  5681. fi
  5682. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5683. if test -n "$ac_ct_OBJDUMP"; then
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5685. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5686. else
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5688. $as_echo "no" >&6; }
  5689. fi
  5690. if test "x$ac_ct_OBJDUMP" = x; then
  5691. OBJDUMP="false"
  5692. else
  5693. case $cross_compiling:$ac_tool_warned in
  5694. yes:)
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5696. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5697. ac_tool_warned=yes ;;
  5698. esac
  5699. OBJDUMP=$ac_ct_OBJDUMP
  5700. fi
  5701. else
  5702. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5703. fi
  5704. test -z "$OBJDUMP" && OBJDUMP=objdump
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5706. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5707. if ${lt_cv_deplibs_check_method+:} false; then :
  5708. $as_echo_n "(cached) " >&6
  5709. else
  5710. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5711. lt_cv_file_magic_test_file=
  5712. lt_cv_deplibs_check_method='unknown'
  5713. # Need to set the preceding variable on all platforms that support
  5714. # interlibrary dependencies.
  5715. # 'none' -- dependencies not supported.
  5716. # 'unknown' -- same as none, but documents that we really don't know.
  5717. # 'pass_all' -- all dependencies passed with no checks.
  5718. # 'test_compile' -- check by making test program.
  5719. # 'file_magic [[regex]]' -- check by looking for files in library path
  5720. # that responds to the $file_magic_cmd with a given extended regex.
  5721. # If you have 'file' or equivalent on your system and you're not sure
  5722. # whether 'pass_all' will *always* work, you probably want this one.
  5723. case $host_os in
  5724. aix[4-9]*)
  5725. lt_cv_deplibs_check_method=pass_all
  5726. ;;
  5727. beos*)
  5728. lt_cv_deplibs_check_method=pass_all
  5729. ;;
  5730. bsdi[45]*)
  5731. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5732. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5733. lt_cv_file_magic_test_file=/shlib/libc.so
  5734. ;;
  5735. cygwin*)
  5736. # func_win32_libid is a shell function defined in ltmain.sh
  5737. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5738. lt_cv_file_magic_cmd='func_win32_libid'
  5739. ;;
  5740. mingw* | pw32*)
  5741. # Base MSYS/MinGW do not provide the 'file' command needed by
  5742. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5743. # unless we find 'file', for example because we are cross-compiling.
  5744. if ( file / ) >/dev/null 2>&1; then
  5745. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5746. lt_cv_file_magic_cmd='func_win32_libid'
  5747. else
  5748. # Keep this pattern in sync with the one in func_win32_libid.
  5749. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5750. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5751. fi
  5752. ;;
  5753. cegcc*)
  5754. # use the weaker test based on 'objdump'. See mingw*.
  5755. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5756. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5757. ;;
  5758. darwin* | rhapsody*)
  5759. lt_cv_deplibs_check_method=pass_all
  5760. ;;
  5761. freebsd* | dragonfly*)
  5762. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5763. case $host_cpu in
  5764. i*86 )
  5765. # Not sure whether the presence of OpenBSD here was a mistake.
  5766. # Let's accept both of them until this is cleared up.
  5767. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5768. lt_cv_file_magic_cmd=/usr/bin/file
  5769. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5770. ;;
  5771. esac
  5772. else
  5773. lt_cv_deplibs_check_method=pass_all
  5774. fi
  5775. ;;
  5776. haiku*)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. hpux10.20* | hpux11*)
  5780. lt_cv_file_magic_cmd=/usr/bin/file
  5781. case $host_cpu in
  5782. ia64*)
  5783. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5784. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5785. ;;
  5786. hppa*64*)
  5787. 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]'
  5788. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5789. ;;
  5790. *)
  5791. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5792. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5793. ;;
  5794. esac
  5795. ;;
  5796. interix[3-9]*)
  5797. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5798. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5799. ;;
  5800. irix5* | irix6* | nonstopux*)
  5801. case $LD in
  5802. *-32|*"-32 ") libmagic=32-bit;;
  5803. *-n32|*"-n32 ") libmagic=N32;;
  5804. *-64|*"-64 ") libmagic=64-bit;;
  5805. *) libmagic=never-match;;
  5806. esac
  5807. lt_cv_deplibs_check_method=pass_all
  5808. ;;
  5809. # This must be glibc/ELF.
  5810. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5811. lt_cv_deplibs_check_method=pass_all
  5812. ;;
  5813. netbsd*)
  5814. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5815. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5816. else
  5817. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5818. fi
  5819. ;;
  5820. newos6*)
  5821. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5822. lt_cv_file_magic_cmd=/usr/bin/file
  5823. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5824. ;;
  5825. *nto* | *qnx*)
  5826. lt_cv_deplibs_check_method=pass_all
  5827. ;;
  5828. openbsd* | bitrig*)
  5829. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5830. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5831. else
  5832. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5833. fi
  5834. ;;
  5835. osf3* | osf4* | osf5*)
  5836. lt_cv_deplibs_check_method=pass_all
  5837. ;;
  5838. rdos*)
  5839. lt_cv_deplibs_check_method=pass_all
  5840. ;;
  5841. solaris*)
  5842. lt_cv_deplibs_check_method=pass_all
  5843. ;;
  5844. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5845. lt_cv_deplibs_check_method=pass_all
  5846. ;;
  5847. sysv4 | sysv4.3*)
  5848. case $host_vendor in
  5849. motorola)
  5850. 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]'
  5851. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5852. ;;
  5853. ncr)
  5854. lt_cv_deplibs_check_method=pass_all
  5855. ;;
  5856. sequent)
  5857. lt_cv_file_magic_cmd='/bin/file'
  5858. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5859. ;;
  5860. sni)
  5861. lt_cv_file_magic_cmd='/bin/file'
  5862. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5863. lt_cv_file_magic_test_file=/lib/libc.so
  5864. ;;
  5865. siemens)
  5866. lt_cv_deplibs_check_method=pass_all
  5867. ;;
  5868. pc)
  5869. lt_cv_deplibs_check_method=pass_all
  5870. ;;
  5871. esac
  5872. ;;
  5873. tpf*)
  5874. lt_cv_deplibs_check_method=pass_all
  5875. ;;
  5876. os2*)
  5877. lt_cv_deplibs_check_method=pass_all
  5878. ;;
  5879. esac
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5882. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5883. file_magic_glob=
  5884. want_nocaseglob=no
  5885. if test "$build" = "$host"; then
  5886. case $host_os in
  5887. mingw* | pw32*)
  5888. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5889. want_nocaseglob=yes
  5890. else
  5891. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5892. fi
  5893. ;;
  5894. esac
  5895. fi
  5896. file_magic_cmd=$lt_cv_file_magic_cmd
  5897. deplibs_check_method=$lt_cv_deplibs_check_method
  5898. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5899. if test -n "$ac_tool_prefix"; then
  5900. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5901. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$DLLTOOL"; then
  5908. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. DLLTOOL=$ac_cv_prog_DLLTOOL
  5927. if test -n "$DLLTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5929. $as_echo "$DLLTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. fi
  5935. if test -z "$ac_cv_prog_DLLTOOL"; then
  5936. ac_ct_DLLTOOL=$DLLTOOL
  5937. # Extract the first word of "dlltool", so it can be a program name with args.
  5938. set dummy dlltool; ac_word=$2
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5940. $as_echo_n "checking for $ac_word... " >&6; }
  5941. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. if test -n "$ac_ct_DLLTOOL"; then
  5945. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5946. else
  5947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948. for as_dir in $PATH
  5949. do
  5950. IFS=$as_save_IFS
  5951. test -z "$as_dir" && as_dir=.
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5954. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi
  5962. fi
  5963. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5964. if test -n "$ac_ct_DLLTOOL"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5966. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5969. $as_echo "no" >&6; }
  5970. fi
  5971. if test "x$ac_ct_DLLTOOL" = x; then
  5972. DLLTOOL="false"
  5973. else
  5974. case $cross_compiling:$ac_tool_warned in
  5975. yes:)
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5978. ac_tool_warned=yes ;;
  5979. esac
  5980. DLLTOOL=$ac_ct_DLLTOOL
  5981. fi
  5982. else
  5983. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5984. fi
  5985. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5987. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5988. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5989. $as_echo_n "(cached) " >&6
  5990. else
  5991. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5992. case $host_os in
  5993. cygwin* | mingw* | pw32* | cegcc*)
  5994. # two different shell functions defined in ltmain.sh;
  5995. # decide which one to use based on capabilities of $DLLTOOL
  5996. case `$DLLTOOL --help 2>&1` in
  5997. *--identify-strict*)
  5998. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5999. ;;
  6000. *)
  6001. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  6002. ;;
  6003. esac
  6004. ;;
  6005. *)
  6006. # fallback: assume linklib IS sharedlib
  6007. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  6008. ;;
  6009. esac
  6010. fi
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  6012. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  6013. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  6014. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  6015. if test -n "$ac_tool_prefix"; then
  6016. for ac_prog in ar
  6017. do
  6018. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6019. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6021. $as_echo_n "checking for $ac_word... " >&6; }
  6022. if ${ac_cv_prog_AR+:} false; then :
  6023. $as_echo_n "(cached) " >&6
  6024. else
  6025. if test -n "$AR"; then
  6026. ac_cv_prog_AR="$AR" # Let the user override the test.
  6027. else
  6028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6029. for as_dir in $PATH
  6030. do
  6031. IFS=$as_save_IFS
  6032. test -z "$as_dir" && as_dir=.
  6033. for ac_exec_ext in '' $ac_executable_extensions; do
  6034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6035. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6037. break 2
  6038. fi
  6039. done
  6040. done
  6041. IFS=$as_save_IFS
  6042. fi
  6043. fi
  6044. AR=$ac_cv_prog_AR
  6045. if test -n "$AR"; then
  6046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6047. $as_echo "$AR" >&6; }
  6048. else
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6050. $as_echo "no" >&6; }
  6051. fi
  6052. test -n "$AR" && break
  6053. done
  6054. fi
  6055. if test -z "$AR"; then
  6056. ac_ct_AR=$AR
  6057. for ac_prog in ar
  6058. do
  6059. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6060. set dummy $ac_prog; ac_word=$2
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6062. $as_echo_n "checking for $ac_word... " >&6; }
  6063. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. if test -n "$ac_ct_AR"; then
  6067. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6068. else
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6076. ac_cv_prog_ac_ct_AR="$ac_prog"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. fi
  6084. fi
  6085. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6086. if test -n "$ac_ct_AR"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6088. $as_echo "$ac_ct_AR" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6091. $as_echo "no" >&6; }
  6092. fi
  6093. test -n "$ac_ct_AR" && break
  6094. done
  6095. if test "x$ac_ct_AR" = x; then
  6096. AR="false"
  6097. else
  6098. case $cross_compiling:$ac_tool_warned in
  6099. yes:)
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6101. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6102. ac_tool_warned=yes ;;
  6103. esac
  6104. AR=$ac_ct_AR
  6105. fi
  6106. fi
  6107. : ${AR=ar}
  6108. : ${AR_FLAGS=cru}
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6110. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6111. if ${lt_cv_ar_at_file+:} false; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. lt_cv_ar_at_file=no
  6115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6116. /* end confdefs.h. */
  6117. int
  6118. main ()
  6119. {
  6120. ;
  6121. return 0;
  6122. }
  6123. _ACEOF
  6124. if ac_fn_c_try_compile "$LINENO"; then :
  6125. echo conftest.$ac_objext > conftest.lst
  6126. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6127. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6128. (eval $lt_ar_try) 2>&5
  6129. ac_status=$?
  6130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6131. test $ac_status = 0; }
  6132. if test 0 -eq "$ac_status"; then
  6133. # Ensure the archiver fails upon bogus file names.
  6134. rm -f conftest.$ac_objext libconftest.a
  6135. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6136. (eval $lt_ar_try) 2>&5
  6137. ac_status=$?
  6138. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6139. test $ac_status = 0; }
  6140. if test 0 -ne "$ac_status"; then
  6141. lt_cv_ar_at_file=@
  6142. fi
  6143. fi
  6144. rm -f conftest.* libconftest.a
  6145. fi
  6146. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6147. fi
  6148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6149. $as_echo "$lt_cv_ar_at_file" >&6; }
  6150. if test no = "$lt_cv_ar_at_file"; then
  6151. archiver_list_spec=
  6152. else
  6153. archiver_list_spec=$lt_cv_ar_at_file
  6154. fi
  6155. if test -n "$ac_tool_prefix"; then
  6156. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6157. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_STRIP+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$STRIP"; then
  6164. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6173. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. STRIP=$ac_cv_prog_STRIP
  6183. if test -n "$STRIP"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6185. $as_echo "$STRIP" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. fi
  6191. if test -z "$ac_cv_prog_STRIP"; then
  6192. ac_ct_STRIP=$STRIP
  6193. # Extract the first word of "strip", so it can be a program name with args.
  6194. set dummy strip; ac_word=$2
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6196. $as_echo_n "checking for $ac_word... " >&6; }
  6197. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6198. $as_echo_n "(cached) " >&6
  6199. else
  6200. if test -n "$ac_ct_STRIP"; then
  6201. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6202. else
  6203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6204. for as_dir in $PATH
  6205. do
  6206. IFS=$as_save_IFS
  6207. test -z "$as_dir" && as_dir=.
  6208. for ac_exec_ext in '' $ac_executable_extensions; do
  6209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6210. ac_cv_prog_ac_ct_STRIP="strip"
  6211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6212. break 2
  6213. fi
  6214. done
  6215. done
  6216. IFS=$as_save_IFS
  6217. fi
  6218. fi
  6219. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6220. if test -n "$ac_ct_STRIP"; then
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6222. $as_echo "$ac_ct_STRIP" >&6; }
  6223. else
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6225. $as_echo "no" >&6; }
  6226. fi
  6227. if test "x$ac_ct_STRIP" = x; then
  6228. STRIP=":"
  6229. else
  6230. case $cross_compiling:$ac_tool_warned in
  6231. yes:)
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6234. ac_tool_warned=yes ;;
  6235. esac
  6236. STRIP=$ac_ct_STRIP
  6237. fi
  6238. else
  6239. STRIP="$ac_cv_prog_STRIP"
  6240. fi
  6241. test -z "$STRIP" && STRIP=:
  6242. if test -n "$ac_tool_prefix"; then
  6243. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6244. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6246. $as_echo_n "checking for $ac_word... " >&6; }
  6247. if ${ac_cv_prog_RANLIB+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. if test -n "$RANLIB"; then
  6251. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6252. else
  6253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6254. for as_dir in $PATH
  6255. do
  6256. IFS=$as_save_IFS
  6257. test -z "$as_dir" && as_dir=.
  6258. for ac_exec_ext in '' $ac_executable_extensions; do
  6259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6260. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6262. break 2
  6263. fi
  6264. done
  6265. done
  6266. IFS=$as_save_IFS
  6267. fi
  6268. fi
  6269. RANLIB=$ac_cv_prog_RANLIB
  6270. if test -n "$RANLIB"; then
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6272. $as_echo "$RANLIB" >&6; }
  6273. else
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6275. $as_echo "no" >&6; }
  6276. fi
  6277. fi
  6278. if test -z "$ac_cv_prog_RANLIB"; then
  6279. ac_ct_RANLIB=$RANLIB
  6280. # Extract the first word of "ranlib", so it can be a program name with args.
  6281. set dummy ranlib; ac_word=$2
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6283. $as_echo_n "checking for $ac_word... " >&6; }
  6284. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6285. $as_echo_n "(cached) " >&6
  6286. else
  6287. if test -n "$ac_ct_RANLIB"; then
  6288. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6289. else
  6290. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. for as_dir in $PATH
  6292. do
  6293. IFS=$as_save_IFS
  6294. test -z "$as_dir" && as_dir=.
  6295. for ac_exec_ext in '' $ac_executable_extensions; do
  6296. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6297. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6298. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6299. break 2
  6300. fi
  6301. done
  6302. done
  6303. IFS=$as_save_IFS
  6304. fi
  6305. fi
  6306. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6307. if test -n "$ac_ct_RANLIB"; then
  6308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6309. $as_echo "$ac_ct_RANLIB" >&6; }
  6310. else
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6312. $as_echo "no" >&6; }
  6313. fi
  6314. if test "x$ac_ct_RANLIB" = x; then
  6315. RANLIB=":"
  6316. else
  6317. case $cross_compiling:$ac_tool_warned in
  6318. yes:)
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6320. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6321. ac_tool_warned=yes ;;
  6322. esac
  6323. RANLIB=$ac_ct_RANLIB
  6324. fi
  6325. else
  6326. RANLIB="$ac_cv_prog_RANLIB"
  6327. fi
  6328. test -z "$RANLIB" && RANLIB=:
  6329. # Determine commands to create old-style static archives.
  6330. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6331. old_postinstall_cmds='chmod 644 $oldlib'
  6332. old_postuninstall_cmds=
  6333. if test -n "$RANLIB"; then
  6334. case $host_os in
  6335. bitrig* | openbsd*)
  6336. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6337. ;;
  6338. *)
  6339. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6340. ;;
  6341. esac
  6342. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6343. fi
  6344. case $host_os in
  6345. darwin*)
  6346. lock_old_archive_extraction=yes ;;
  6347. *)
  6348. lock_old_archive_extraction=no ;;
  6349. esac
  6350. # If no C compiler was specified, use CC.
  6351. LTCC=${LTCC-"$CC"}
  6352. # If no C compiler flags were specified, use CFLAGS.
  6353. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6354. # Allow CC to be a program name with arguments.
  6355. compiler=$CC
  6356. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6358. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6359. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6360. $as_echo_n "(cached) " >&6
  6361. else
  6362. # These are sane defaults that work on at least a few old systems.
  6363. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6364. # Character class describing NM global symbol codes.
  6365. symcode='[BCDEGRST]'
  6366. # Regexp to match symbols that can be accessed directly from C.
  6367. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6368. # Define system-specific variables.
  6369. case $host_os in
  6370. aix*)
  6371. symcode='[BCDT]'
  6372. ;;
  6373. cygwin* | mingw* | pw32* | cegcc*)
  6374. symcode='[ABCDGISTW]'
  6375. ;;
  6376. hpux*)
  6377. if test ia64 = "$host_cpu"; then
  6378. symcode='[ABCDEGRST]'
  6379. fi
  6380. ;;
  6381. irix* | nonstopux*)
  6382. symcode='[BCDEGRST]'
  6383. ;;
  6384. osf*)
  6385. symcode='[BCDEGQRST]'
  6386. ;;
  6387. solaris*)
  6388. symcode='[BDRT]'
  6389. ;;
  6390. sco3.2v5*)
  6391. symcode='[DT]'
  6392. ;;
  6393. sysv4.2uw2*)
  6394. symcode='[DT]'
  6395. ;;
  6396. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6397. symcode='[ABDT]'
  6398. ;;
  6399. sysv4)
  6400. symcode='[DFNSTU]'
  6401. ;;
  6402. esac
  6403. # If we're using GNU nm, then use its standard symbol codes.
  6404. case `$NM -V 2>&1` in
  6405. *GNU* | *'with BFD'*)
  6406. symcode='[ABCDGIRSTW]' ;;
  6407. esac
  6408. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6409. # Gets list of data symbols to import.
  6410. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  6411. # Adjust the below global symbol transforms to fixup imported variables.
  6412. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  6413. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  6414. lt_c_name_lib_hook="\
  6415. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  6416. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  6417. else
  6418. # Disable hooks by default.
  6419. lt_cv_sys_global_symbol_to_import=
  6420. lt_cdecl_hook=
  6421. lt_c_name_hook=
  6422. lt_c_name_lib_hook=
  6423. fi
  6424. # Transform an extracted symbol line into a proper C declaration.
  6425. # Some systems (esp. on ia64) link data and code symbols differently,
  6426. # so use this general approach.
  6427. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  6428. $lt_cdecl_hook\
  6429. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  6430. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  6431. # Transform an extracted symbol line into symbol name and symbol address
  6432. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  6433. $lt_c_name_hook\
  6434. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6435. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  6436. # Transform an extracted symbol line into symbol name with lib prefix and
  6437. # symbol address.
  6438. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  6439. $lt_c_name_lib_hook\
  6440. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  6441. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  6442. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  6443. # Handle CRLF in mingw tool chain
  6444. opt_cr=
  6445. case $build_os in
  6446. mingw*)
  6447. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6448. ;;
  6449. esac
  6450. # Try without a prefix underscore, then with it.
  6451. for ac_symprfx in "" "_"; do
  6452. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6453. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6454. # Write the raw and C identifiers.
  6455. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6456. # Fake it for dumpbin and say T for any non-static function,
  6457. # D for any global variable and I for any imported variable.
  6458. # Also find C++ and __fastcall symbols from MSVC++,
  6459. # which start with @ or ?.
  6460. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6461. " {last_section=section; section=\$ 3};"\
  6462. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6463. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6464. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  6465. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  6466. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  6467. " \$ 0!~/External *\|/{next};"\
  6468. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6469. " {if(hide[section]) next};"\
  6470. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  6471. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  6472. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  6473. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  6474. " ' prfx=^$ac_symprfx"
  6475. else
  6476. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6477. fi
  6478. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6479. # Check to see that the pipe works correctly.
  6480. pipe_works=no
  6481. rm -f conftest*
  6482. cat > conftest.$ac_ext <<_LT_EOF
  6483. #ifdef __cplusplus
  6484. extern "C" {
  6485. #endif
  6486. char nm_test_var;
  6487. void nm_test_func(void);
  6488. void nm_test_func(void){}
  6489. #ifdef __cplusplus
  6490. }
  6491. #endif
  6492. int main(){nm_test_var='a';nm_test_func();return(0);}
  6493. _LT_EOF
  6494. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6495. (eval $ac_compile) 2>&5
  6496. ac_status=$?
  6497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6498. test $ac_status = 0; }; then
  6499. # Now try to grab the symbols.
  6500. nlist=conftest.nm
  6501. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6502. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6503. ac_status=$?
  6504. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6505. test $ac_status = 0; } && test -s "$nlist"; then
  6506. # Try sorting and uniquifying the output.
  6507. if sort "$nlist" | uniq > "$nlist"T; then
  6508. mv -f "$nlist"T "$nlist"
  6509. else
  6510. rm -f "$nlist"T
  6511. fi
  6512. # Make sure that we snagged all the symbols we need.
  6513. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6514. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6515. cat <<_LT_EOF > conftest.$ac_ext
  6516. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6517. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  6518. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  6519. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6520. # define LT_DLSYM_CONST
  6521. #elif defined __osf__
  6522. /* This system does not cope well with relocations in const data. */
  6523. # define LT_DLSYM_CONST
  6524. #else
  6525. # define LT_DLSYM_CONST const
  6526. #endif
  6527. #ifdef __cplusplus
  6528. extern "C" {
  6529. #endif
  6530. _LT_EOF
  6531. # Now generate the symbol file.
  6532. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6533. cat <<_LT_EOF >> conftest.$ac_ext
  6534. /* The mapping between symbol names and symbols. */
  6535. LT_DLSYM_CONST struct {
  6536. const char *name;
  6537. void *address;
  6538. }
  6539. lt__PROGRAM__LTX_preloaded_symbols[] =
  6540. {
  6541. { "@PROGRAM@", (void *) 0 },
  6542. _LT_EOF
  6543. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6544. cat <<\_LT_EOF >> conftest.$ac_ext
  6545. {0, (void *) 0}
  6546. };
  6547. /* This works around a problem in FreeBSD linker */
  6548. #ifdef FREEBSD_WORKAROUND
  6549. static const void *lt_preloaded_setup() {
  6550. return lt__PROGRAM__LTX_preloaded_symbols;
  6551. }
  6552. #endif
  6553. #ifdef __cplusplus
  6554. }
  6555. #endif
  6556. _LT_EOF
  6557. # Now try linking the two files.
  6558. mv conftest.$ac_objext conftstm.$ac_objext
  6559. lt_globsym_save_LIBS=$LIBS
  6560. lt_globsym_save_CFLAGS=$CFLAGS
  6561. LIBS=conftstm.$ac_objext
  6562. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6563. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6564. (eval $ac_link) 2>&5
  6565. ac_status=$?
  6566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6567. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  6568. pipe_works=yes
  6569. fi
  6570. LIBS=$lt_globsym_save_LIBS
  6571. CFLAGS=$lt_globsym_save_CFLAGS
  6572. else
  6573. echo "cannot find nm_test_func in $nlist" >&5
  6574. fi
  6575. else
  6576. echo "cannot find nm_test_var in $nlist" >&5
  6577. fi
  6578. else
  6579. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6580. fi
  6581. else
  6582. echo "$progname: failed program was:" >&5
  6583. cat conftest.$ac_ext >&5
  6584. fi
  6585. rm -rf conftest* conftst*
  6586. # Do not use the global_symbol_pipe unless it works.
  6587. if test yes = "$pipe_works"; then
  6588. break
  6589. else
  6590. lt_cv_sys_global_symbol_pipe=
  6591. fi
  6592. done
  6593. fi
  6594. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6595. lt_cv_sys_global_symbol_to_cdecl=
  6596. fi
  6597. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6599. $as_echo "failed" >&6; }
  6600. else
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6602. $as_echo "ok" >&6; }
  6603. fi
  6604. # Response file support.
  6605. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6606. nm_file_list_spec='@'
  6607. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6608. nm_file_list_spec='@'
  6609. fi
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6611. $as_echo_n "checking for sysroot... " >&6; }
  6612. # Check whether --with-sysroot was given.
  6613. if test "${with_sysroot+set}" = set; then :
  6614. withval=$with_sysroot;
  6615. else
  6616. with_sysroot=no
  6617. fi
  6618. lt_sysroot=
  6619. case $with_sysroot in #(
  6620. yes)
  6621. if test yes = "$GCC"; then
  6622. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6623. fi
  6624. ;; #(
  6625. /*)
  6626. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6627. ;; #(
  6628. no|'')
  6629. ;; #(
  6630. *)
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  6632. $as_echo "$with_sysroot" >&6; }
  6633. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6634. ;;
  6635. esac
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6637. $as_echo "${lt_sysroot:-no}" >&6; }
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  6639. $as_echo_n "checking for a working dd... " >&6; }
  6640. if ${ac_cv_path_lt_DD+:} false; then :
  6641. $as_echo_n "(cached) " >&6
  6642. else
  6643. printf 0123456789abcdef0123456789abcdef >conftest.i
  6644. cat conftest.i conftest.i >conftest2.i
  6645. : ${lt_DD:=$DD}
  6646. if test -z "$lt_DD"; then
  6647. ac_path_lt_DD_found=false
  6648. # Loop through the user's path and test for each of PROGNAME-LIST
  6649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6650. for as_dir in $PATH
  6651. do
  6652. IFS=$as_save_IFS
  6653. test -z "$as_dir" && as_dir=.
  6654. for ac_prog in dd; do
  6655. for ac_exec_ext in '' $ac_executable_extensions; do
  6656. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  6657. as_fn_executable_p "$ac_path_lt_DD" || continue
  6658. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6659. cmp -s conftest.i conftest.out \
  6660. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  6661. fi
  6662. $ac_path_lt_DD_found && break 3
  6663. done
  6664. done
  6665. done
  6666. IFS=$as_save_IFS
  6667. if test -z "$ac_cv_path_lt_DD"; then
  6668. :
  6669. fi
  6670. else
  6671. ac_cv_path_lt_DD=$lt_DD
  6672. fi
  6673. rm -f conftest.i conftest2.i conftest.out
  6674. fi
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  6676. $as_echo "$ac_cv_path_lt_DD" >&6; }
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  6678. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  6679. if ${lt_cv_truncate_bin+:} false; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. printf 0123456789abcdef0123456789abcdef >conftest.i
  6683. cat conftest.i conftest.i >conftest2.i
  6684. lt_cv_truncate_bin=
  6685. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  6686. cmp -s conftest.i conftest.out \
  6687. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  6688. fi
  6689. rm -f conftest.i conftest2.i conftest.out
  6690. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  6691. fi
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  6693. $as_echo "$lt_cv_truncate_bin" >&6; }
  6694. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  6695. func_cc_basename ()
  6696. {
  6697. for cc_temp in $*""; do
  6698. case $cc_temp in
  6699. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6700. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6701. \-*) ;;
  6702. *) break;;
  6703. esac
  6704. done
  6705. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6706. }
  6707. # Check whether --enable-libtool-lock was given.
  6708. if test "${enable_libtool_lock+set}" = set; then :
  6709. enableval=$enable_libtool_lock;
  6710. fi
  6711. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  6712. # Some flags need to be propagated to the compiler or linker for good
  6713. # libtool support.
  6714. case $host in
  6715. ia64-*-hpux*)
  6716. # Find out what ABI is being produced by ac_compile, and set mode
  6717. # options accordingly.
  6718. echo 'int i;' > conftest.$ac_ext
  6719. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6720. (eval $ac_compile) 2>&5
  6721. ac_status=$?
  6722. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6723. test $ac_status = 0; }; then
  6724. case `/usr/bin/file conftest.$ac_objext` in
  6725. *ELF-32*)
  6726. HPUX_IA64_MODE=32
  6727. ;;
  6728. *ELF-64*)
  6729. HPUX_IA64_MODE=64
  6730. ;;
  6731. esac
  6732. fi
  6733. rm -rf conftest*
  6734. ;;
  6735. *-*-irix6*)
  6736. # Find out what ABI is being produced by ac_compile, and set linker
  6737. # options accordingly.
  6738. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6739. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6740. (eval $ac_compile) 2>&5
  6741. ac_status=$?
  6742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6743. test $ac_status = 0; }; then
  6744. if test yes = "$lt_cv_prog_gnu_ld"; then
  6745. case `/usr/bin/file conftest.$ac_objext` in
  6746. *32-bit*)
  6747. LD="${LD-ld} -melf32bsmip"
  6748. ;;
  6749. *N32*)
  6750. LD="${LD-ld} -melf32bmipn32"
  6751. ;;
  6752. *64-bit*)
  6753. LD="${LD-ld} -melf64bmip"
  6754. ;;
  6755. esac
  6756. else
  6757. case `/usr/bin/file conftest.$ac_objext` in
  6758. *32-bit*)
  6759. LD="${LD-ld} -32"
  6760. ;;
  6761. *N32*)
  6762. LD="${LD-ld} -n32"
  6763. ;;
  6764. *64-bit*)
  6765. LD="${LD-ld} -64"
  6766. ;;
  6767. esac
  6768. fi
  6769. fi
  6770. rm -rf conftest*
  6771. ;;
  6772. mips64*-*linux*)
  6773. # Find out what ABI is being produced by ac_compile, and set linker
  6774. # options accordingly.
  6775. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6777. (eval $ac_compile) 2>&5
  6778. ac_status=$?
  6779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6780. test $ac_status = 0; }; then
  6781. emul=elf
  6782. case `/usr/bin/file conftest.$ac_objext` in
  6783. *32-bit*)
  6784. emul="${emul}32"
  6785. ;;
  6786. *64-bit*)
  6787. emul="${emul}64"
  6788. ;;
  6789. esac
  6790. case `/usr/bin/file conftest.$ac_objext` in
  6791. *MSB*)
  6792. emul="${emul}btsmip"
  6793. ;;
  6794. *LSB*)
  6795. emul="${emul}ltsmip"
  6796. ;;
  6797. esac
  6798. case `/usr/bin/file conftest.$ac_objext` in
  6799. *N32*)
  6800. emul="${emul}n32"
  6801. ;;
  6802. esac
  6803. LD="${LD-ld} -m $emul"
  6804. fi
  6805. rm -rf conftest*
  6806. ;;
  6807. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6808. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6809. # Find out what ABI is being produced by ac_compile, and set linker
  6810. # options accordingly. Note that the listed cases only cover the
  6811. # situations where additional linker options are needed (such as when
  6812. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  6813. # vice versa); the common cases where no linker options are needed do
  6814. # not appear in the list.
  6815. echo 'int i;' > conftest.$ac_ext
  6816. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6817. (eval $ac_compile) 2>&5
  6818. ac_status=$?
  6819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6820. test $ac_status = 0; }; then
  6821. case `/usr/bin/file conftest.o` in
  6822. *32-bit*)
  6823. case $host in
  6824. x86_64-*kfreebsd*-gnu)
  6825. LD="${LD-ld} -m elf_i386_fbsd"
  6826. ;;
  6827. x86_64-*linux*)
  6828. case `/usr/bin/file conftest.o` in
  6829. *x86-64*)
  6830. LD="${LD-ld} -m elf32_x86_64"
  6831. ;;
  6832. *)
  6833. LD="${LD-ld} -m elf_i386"
  6834. ;;
  6835. esac
  6836. ;;
  6837. powerpc64le-*linux*)
  6838. LD="${LD-ld} -m elf32lppclinux"
  6839. ;;
  6840. powerpc64-*linux*)
  6841. LD="${LD-ld} -m elf32ppclinux"
  6842. ;;
  6843. s390x-*linux*)
  6844. LD="${LD-ld} -m elf_s390"
  6845. ;;
  6846. sparc64-*linux*)
  6847. LD="${LD-ld} -m elf32_sparc"
  6848. ;;
  6849. esac
  6850. ;;
  6851. *64-bit*)
  6852. case $host in
  6853. x86_64-*kfreebsd*-gnu)
  6854. LD="${LD-ld} -m elf_x86_64_fbsd"
  6855. ;;
  6856. x86_64-*linux*)
  6857. LD="${LD-ld} -m elf_x86_64"
  6858. ;;
  6859. powerpcle-*linux*)
  6860. LD="${LD-ld} -m elf64lppc"
  6861. ;;
  6862. powerpc-*linux*)
  6863. LD="${LD-ld} -m elf64ppc"
  6864. ;;
  6865. s390*-*linux*|s390*-*tpf*)
  6866. LD="${LD-ld} -m elf64_s390"
  6867. ;;
  6868. sparc*-*linux*)
  6869. LD="${LD-ld} -m elf64_sparc"
  6870. ;;
  6871. esac
  6872. ;;
  6873. esac
  6874. fi
  6875. rm -rf conftest*
  6876. ;;
  6877. *-*-sco3.2v5*)
  6878. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6879. SAVE_CFLAGS=$CFLAGS
  6880. CFLAGS="$CFLAGS -belf"
  6881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6882. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6883. if ${lt_cv_cc_needs_belf+:} false; then :
  6884. $as_echo_n "(cached) " >&6
  6885. else
  6886. ac_ext=c
  6887. ac_cpp='$CPP $CPPFLAGS'
  6888. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6889. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6890. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6892. /* end confdefs.h. */
  6893. int
  6894. main ()
  6895. {
  6896. ;
  6897. return 0;
  6898. }
  6899. _ACEOF
  6900. if ac_fn_c_try_link "$LINENO"; then :
  6901. lt_cv_cc_needs_belf=yes
  6902. else
  6903. lt_cv_cc_needs_belf=no
  6904. fi
  6905. rm -f core conftest.err conftest.$ac_objext \
  6906. conftest$ac_exeext conftest.$ac_ext
  6907. ac_ext=c
  6908. ac_cpp='$CPP $CPPFLAGS'
  6909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6912. fi
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6914. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6915. if test yes != "$lt_cv_cc_needs_belf"; then
  6916. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6917. CFLAGS=$SAVE_CFLAGS
  6918. fi
  6919. ;;
  6920. *-*solaris*)
  6921. # Find out what ABI is being produced by ac_compile, and set linker
  6922. # options accordingly.
  6923. echo 'int i;' > conftest.$ac_ext
  6924. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6925. (eval $ac_compile) 2>&5
  6926. ac_status=$?
  6927. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6928. test $ac_status = 0; }; then
  6929. case `/usr/bin/file conftest.o` in
  6930. *64-bit*)
  6931. case $lt_cv_prog_gnu_ld in
  6932. yes*)
  6933. case $host in
  6934. i?86-*-solaris*|x86_64-*-solaris*)
  6935. LD="${LD-ld} -m elf_x86_64"
  6936. ;;
  6937. sparc*-*-solaris*)
  6938. LD="${LD-ld} -m elf64_sparc"
  6939. ;;
  6940. esac
  6941. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6942. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6943. LD=${LD-ld}_sol2
  6944. fi
  6945. ;;
  6946. *)
  6947. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6948. LD="${LD-ld} -64"
  6949. fi
  6950. ;;
  6951. esac
  6952. ;;
  6953. esac
  6954. fi
  6955. rm -rf conftest*
  6956. ;;
  6957. esac
  6958. need_locks=$enable_libtool_lock
  6959. if test -n "$ac_tool_prefix"; then
  6960. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6961. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6963. $as_echo_n "checking for $ac_word... " >&6; }
  6964. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6965. $as_echo_n "(cached) " >&6
  6966. else
  6967. if test -n "$MANIFEST_TOOL"; then
  6968. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6969. else
  6970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6971. for as_dir in $PATH
  6972. do
  6973. IFS=$as_save_IFS
  6974. test -z "$as_dir" && as_dir=.
  6975. for ac_exec_ext in '' $ac_executable_extensions; do
  6976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6977. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6979. break 2
  6980. fi
  6981. done
  6982. done
  6983. IFS=$as_save_IFS
  6984. fi
  6985. fi
  6986. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6987. if test -n "$MANIFEST_TOOL"; then
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6989. $as_echo "$MANIFEST_TOOL" >&6; }
  6990. else
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6992. $as_echo "no" >&6; }
  6993. fi
  6994. fi
  6995. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6996. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6997. # Extract the first word of "mt", so it can be a program name with args.
  6998. set dummy mt; ac_word=$2
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7000. $as_echo_n "checking for $ac_word... " >&6; }
  7001. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  7002. $as_echo_n "(cached) " >&6
  7003. else
  7004. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7005. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  7006. else
  7007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7008. for as_dir in $PATH
  7009. do
  7010. IFS=$as_save_IFS
  7011. test -z "$as_dir" && as_dir=.
  7012. for ac_exec_ext in '' $ac_executable_extensions; do
  7013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7014. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  7015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7016. break 2
  7017. fi
  7018. done
  7019. done
  7020. IFS=$as_save_IFS
  7021. fi
  7022. fi
  7023. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  7024. if test -n "$ac_ct_MANIFEST_TOOL"; then
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  7026. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  7027. else
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7029. $as_echo "no" >&6; }
  7030. fi
  7031. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  7032. MANIFEST_TOOL=":"
  7033. else
  7034. case $cross_compiling:$ac_tool_warned in
  7035. yes:)
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7038. ac_tool_warned=yes ;;
  7039. esac
  7040. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  7041. fi
  7042. else
  7043. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  7044. fi
  7045. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  7047. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  7048. if ${lt_cv_path_mainfest_tool+:} false; then :
  7049. $as_echo_n "(cached) " >&6
  7050. else
  7051. lt_cv_path_mainfest_tool=no
  7052. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  7053. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  7054. cat conftest.err >&5
  7055. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  7056. lt_cv_path_mainfest_tool=yes
  7057. fi
  7058. rm -f conftest*
  7059. fi
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  7061. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  7062. if test yes != "$lt_cv_path_mainfest_tool"; then
  7063. MANIFEST_TOOL=:
  7064. fi
  7065. case $host_os in
  7066. rhapsody* | darwin*)
  7067. if test -n "$ac_tool_prefix"; then
  7068. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7069. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7071. $as_echo_n "checking for $ac_word... " >&6; }
  7072. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7073. $as_echo_n "(cached) " >&6
  7074. else
  7075. if test -n "$DSYMUTIL"; then
  7076. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7077. else
  7078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7079. for as_dir in $PATH
  7080. do
  7081. IFS=$as_save_IFS
  7082. test -z "$as_dir" && as_dir=.
  7083. for ac_exec_ext in '' $ac_executable_extensions; do
  7084. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7085. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7087. break 2
  7088. fi
  7089. done
  7090. done
  7091. IFS=$as_save_IFS
  7092. fi
  7093. fi
  7094. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7095. if test -n "$DSYMUTIL"; then
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7097. $as_echo "$DSYMUTIL" >&6; }
  7098. else
  7099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7100. $as_echo "no" >&6; }
  7101. fi
  7102. fi
  7103. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7104. ac_ct_DSYMUTIL=$DSYMUTIL
  7105. # Extract the first word of "dsymutil", so it can be a program name with args.
  7106. set dummy dsymutil; ac_word=$2
  7107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7108. $as_echo_n "checking for $ac_word... " >&6; }
  7109. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7110. $as_echo_n "(cached) " >&6
  7111. else
  7112. if test -n "$ac_ct_DSYMUTIL"; then
  7113. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7114. else
  7115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7116. for as_dir in $PATH
  7117. do
  7118. IFS=$as_save_IFS
  7119. test -z "$as_dir" && as_dir=.
  7120. for ac_exec_ext in '' $ac_executable_extensions; do
  7121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7122. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7124. break 2
  7125. fi
  7126. done
  7127. done
  7128. IFS=$as_save_IFS
  7129. fi
  7130. fi
  7131. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7132. if test -n "$ac_ct_DSYMUTIL"; then
  7133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7134. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7135. else
  7136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7137. $as_echo "no" >&6; }
  7138. fi
  7139. if test "x$ac_ct_DSYMUTIL" = x; then
  7140. DSYMUTIL=":"
  7141. else
  7142. case $cross_compiling:$ac_tool_warned in
  7143. yes:)
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7145. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7146. ac_tool_warned=yes ;;
  7147. esac
  7148. DSYMUTIL=$ac_ct_DSYMUTIL
  7149. fi
  7150. else
  7151. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7152. fi
  7153. if test -n "$ac_tool_prefix"; then
  7154. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7155. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7157. $as_echo_n "checking for $ac_word... " >&6; }
  7158. if ${ac_cv_prog_NMEDIT+:} false; then :
  7159. $as_echo_n "(cached) " >&6
  7160. else
  7161. if test -n "$NMEDIT"; then
  7162. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7163. else
  7164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7165. for as_dir in $PATH
  7166. do
  7167. IFS=$as_save_IFS
  7168. test -z "$as_dir" && as_dir=.
  7169. for ac_exec_ext in '' $ac_executable_extensions; do
  7170. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7171. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7173. break 2
  7174. fi
  7175. done
  7176. done
  7177. IFS=$as_save_IFS
  7178. fi
  7179. fi
  7180. NMEDIT=$ac_cv_prog_NMEDIT
  7181. if test -n "$NMEDIT"; then
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7183. $as_echo "$NMEDIT" >&6; }
  7184. else
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7186. $as_echo "no" >&6; }
  7187. fi
  7188. fi
  7189. if test -z "$ac_cv_prog_NMEDIT"; then
  7190. ac_ct_NMEDIT=$NMEDIT
  7191. # Extract the first word of "nmedit", so it can be a program name with args.
  7192. set dummy nmedit; ac_word=$2
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7194. $as_echo_n "checking for $ac_word... " >&6; }
  7195. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7196. $as_echo_n "(cached) " >&6
  7197. else
  7198. if test -n "$ac_ct_NMEDIT"; then
  7199. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7200. else
  7201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7202. for as_dir in $PATH
  7203. do
  7204. IFS=$as_save_IFS
  7205. test -z "$as_dir" && as_dir=.
  7206. for ac_exec_ext in '' $ac_executable_extensions; do
  7207. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7208. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7210. break 2
  7211. fi
  7212. done
  7213. done
  7214. IFS=$as_save_IFS
  7215. fi
  7216. fi
  7217. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7218. if test -n "$ac_ct_NMEDIT"; then
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7220. $as_echo "$ac_ct_NMEDIT" >&6; }
  7221. else
  7222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7223. $as_echo "no" >&6; }
  7224. fi
  7225. if test "x$ac_ct_NMEDIT" = x; then
  7226. NMEDIT=":"
  7227. else
  7228. case $cross_compiling:$ac_tool_warned in
  7229. yes:)
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7231. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7232. ac_tool_warned=yes ;;
  7233. esac
  7234. NMEDIT=$ac_ct_NMEDIT
  7235. fi
  7236. else
  7237. NMEDIT="$ac_cv_prog_NMEDIT"
  7238. fi
  7239. if test -n "$ac_tool_prefix"; then
  7240. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7241. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7243. $as_echo_n "checking for $ac_word... " >&6; }
  7244. if ${ac_cv_prog_LIPO+:} false; then :
  7245. $as_echo_n "(cached) " >&6
  7246. else
  7247. if test -n "$LIPO"; then
  7248. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7249. else
  7250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7251. for as_dir in $PATH
  7252. do
  7253. IFS=$as_save_IFS
  7254. test -z "$as_dir" && as_dir=.
  7255. for ac_exec_ext in '' $ac_executable_extensions; do
  7256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7257. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7259. break 2
  7260. fi
  7261. done
  7262. done
  7263. IFS=$as_save_IFS
  7264. fi
  7265. fi
  7266. LIPO=$ac_cv_prog_LIPO
  7267. if test -n "$LIPO"; then
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7269. $as_echo "$LIPO" >&6; }
  7270. else
  7271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7272. $as_echo "no" >&6; }
  7273. fi
  7274. fi
  7275. if test -z "$ac_cv_prog_LIPO"; then
  7276. ac_ct_LIPO=$LIPO
  7277. # Extract the first word of "lipo", so it can be a program name with args.
  7278. set dummy lipo; ac_word=$2
  7279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7280. $as_echo_n "checking for $ac_word... " >&6; }
  7281. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7282. $as_echo_n "(cached) " >&6
  7283. else
  7284. if test -n "$ac_ct_LIPO"; then
  7285. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7286. else
  7287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7288. for as_dir in $PATH
  7289. do
  7290. IFS=$as_save_IFS
  7291. test -z "$as_dir" && as_dir=.
  7292. for ac_exec_ext in '' $ac_executable_extensions; do
  7293. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7294. ac_cv_prog_ac_ct_LIPO="lipo"
  7295. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7296. break 2
  7297. fi
  7298. done
  7299. done
  7300. IFS=$as_save_IFS
  7301. fi
  7302. fi
  7303. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7304. if test -n "$ac_ct_LIPO"; then
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7306. $as_echo "$ac_ct_LIPO" >&6; }
  7307. else
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7309. $as_echo "no" >&6; }
  7310. fi
  7311. if test "x$ac_ct_LIPO" = x; then
  7312. LIPO=":"
  7313. else
  7314. case $cross_compiling:$ac_tool_warned in
  7315. yes:)
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7317. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7318. ac_tool_warned=yes ;;
  7319. esac
  7320. LIPO=$ac_ct_LIPO
  7321. fi
  7322. else
  7323. LIPO="$ac_cv_prog_LIPO"
  7324. fi
  7325. if test -n "$ac_tool_prefix"; then
  7326. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7327. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7329. $as_echo_n "checking for $ac_word... " >&6; }
  7330. if ${ac_cv_prog_OTOOL+:} false; then :
  7331. $as_echo_n "(cached) " >&6
  7332. else
  7333. if test -n "$OTOOL"; then
  7334. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7335. else
  7336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7337. for as_dir in $PATH
  7338. do
  7339. IFS=$as_save_IFS
  7340. test -z "$as_dir" && as_dir=.
  7341. for ac_exec_ext in '' $ac_executable_extensions; do
  7342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7343. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7345. break 2
  7346. fi
  7347. done
  7348. done
  7349. IFS=$as_save_IFS
  7350. fi
  7351. fi
  7352. OTOOL=$ac_cv_prog_OTOOL
  7353. if test -n "$OTOOL"; then
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7355. $as_echo "$OTOOL" >&6; }
  7356. else
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7358. $as_echo "no" >&6; }
  7359. fi
  7360. fi
  7361. if test -z "$ac_cv_prog_OTOOL"; then
  7362. ac_ct_OTOOL=$OTOOL
  7363. # Extract the first word of "otool", so it can be a program name with args.
  7364. set dummy otool; ac_word=$2
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7366. $as_echo_n "checking for $ac_word... " >&6; }
  7367. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7368. $as_echo_n "(cached) " >&6
  7369. else
  7370. if test -n "$ac_ct_OTOOL"; then
  7371. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7372. else
  7373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7374. for as_dir in $PATH
  7375. do
  7376. IFS=$as_save_IFS
  7377. test -z "$as_dir" && as_dir=.
  7378. for ac_exec_ext in '' $ac_executable_extensions; do
  7379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7380. ac_cv_prog_ac_ct_OTOOL="otool"
  7381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7382. break 2
  7383. fi
  7384. done
  7385. done
  7386. IFS=$as_save_IFS
  7387. fi
  7388. fi
  7389. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7390. if test -n "$ac_ct_OTOOL"; then
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7392. $as_echo "$ac_ct_OTOOL" >&6; }
  7393. else
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7395. $as_echo "no" >&6; }
  7396. fi
  7397. if test "x$ac_ct_OTOOL" = x; then
  7398. OTOOL=":"
  7399. else
  7400. case $cross_compiling:$ac_tool_warned in
  7401. yes:)
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7403. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7404. ac_tool_warned=yes ;;
  7405. esac
  7406. OTOOL=$ac_ct_OTOOL
  7407. fi
  7408. else
  7409. OTOOL="$ac_cv_prog_OTOOL"
  7410. fi
  7411. if test -n "$ac_tool_prefix"; then
  7412. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7413. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7415. $as_echo_n "checking for $ac_word... " >&6; }
  7416. if ${ac_cv_prog_OTOOL64+:} false; then :
  7417. $as_echo_n "(cached) " >&6
  7418. else
  7419. if test -n "$OTOOL64"; then
  7420. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7421. else
  7422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7423. for as_dir in $PATH
  7424. do
  7425. IFS=$as_save_IFS
  7426. test -z "$as_dir" && as_dir=.
  7427. for ac_exec_ext in '' $ac_executable_extensions; do
  7428. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7429. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7430. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7431. break 2
  7432. fi
  7433. done
  7434. done
  7435. IFS=$as_save_IFS
  7436. fi
  7437. fi
  7438. OTOOL64=$ac_cv_prog_OTOOL64
  7439. if test -n "$OTOOL64"; then
  7440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7441. $as_echo "$OTOOL64" >&6; }
  7442. else
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7444. $as_echo "no" >&6; }
  7445. fi
  7446. fi
  7447. if test -z "$ac_cv_prog_OTOOL64"; then
  7448. ac_ct_OTOOL64=$OTOOL64
  7449. # Extract the first word of "otool64", so it can be a program name with args.
  7450. set dummy otool64; ac_word=$2
  7451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7452. $as_echo_n "checking for $ac_word... " >&6; }
  7453. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7454. $as_echo_n "(cached) " >&6
  7455. else
  7456. if test -n "$ac_ct_OTOOL64"; then
  7457. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7458. else
  7459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7460. for as_dir in $PATH
  7461. do
  7462. IFS=$as_save_IFS
  7463. test -z "$as_dir" && as_dir=.
  7464. for ac_exec_ext in '' $ac_executable_extensions; do
  7465. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7466. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7468. break 2
  7469. fi
  7470. done
  7471. done
  7472. IFS=$as_save_IFS
  7473. fi
  7474. fi
  7475. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7476. if test -n "$ac_ct_OTOOL64"; then
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7478. $as_echo "$ac_ct_OTOOL64" >&6; }
  7479. else
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7481. $as_echo "no" >&6; }
  7482. fi
  7483. if test "x$ac_ct_OTOOL64" = x; then
  7484. OTOOL64=":"
  7485. else
  7486. case $cross_compiling:$ac_tool_warned in
  7487. yes:)
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7489. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7490. ac_tool_warned=yes ;;
  7491. esac
  7492. OTOOL64=$ac_ct_OTOOL64
  7493. fi
  7494. else
  7495. OTOOL64="$ac_cv_prog_OTOOL64"
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7498. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7499. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7500. $as_echo_n "(cached) " >&6
  7501. else
  7502. lt_cv_apple_cc_single_mod=no
  7503. if test -z "$LT_MULTI_MODULE"; then
  7504. # By default we will add the -single_module flag. You can override
  7505. # by either setting the environment variable LT_MULTI_MODULE
  7506. # non-empty at configure time, or by adding -multi_module to the
  7507. # link flags.
  7508. rm -rf libconftest.dylib*
  7509. echo "int foo(void){return 1;}" > conftest.c
  7510. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7511. -dynamiclib -Wl,-single_module conftest.c" >&5
  7512. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7513. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7514. _lt_result=$?
  7515. # If there is a non-empty error log, and "single_module"
  7516. # appears in it, assume the flag caused a linker warning
  7517. if test -s conftest.err && $GREP single_module conftest.err; then
  7518. cat conftest.err >&5
  7519. # Otherwise, if the output was created with a 0 exit code from
  7520. # the compiler, it worked.
  7521. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  7522. lt_cv_apple_cc_single_mod=yes
  7523. else
  7524. cat conftest.err >&5
  7525. fi
  7526. rm -rf libconftest.dylib*
  7527. rm -f conftest.*
  7528. fi
  7529. fi
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7531. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7533. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7534. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7535. $as_echo_n "(cached) " >&6
  7536. else
  7537. lt_cv_ld_exported_symbols_list=no
  7538. save_LDFLAGS=$LDFLAGS
  7539. echo "_main" > conftest.sym
  7540. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7542. /* end confdefs.h. */
  7543. int
  7544. main ()
  7545. {
  7546. ;
  7547. return 0;
  7548. }
  7549. _ACEOF
  7550. if ac_fn_c_try_link "$LINENO"; then :
  7551. lt_cv_ld_exported_symbols_list=yes
  7552. else
  7553. lt_cv_ld_exported_symbols_list=no
  7554. fi
  7555. rm -f core conftest.err conftest.$ac_objext \
  7556. conftest$ac_exeext conftest.$ac_ext
  7557. LDFLAGS=$save_LDFLAGS
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7560. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7562. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7563. if ${lt_cv_ld_force_load+:} false; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. lt_cv_ld_force_load=no
  7567. cat > conftest.c << _LT_EOF
  7568. int forced_loaded() { return 2;}
  7569. _LT_EOF
  7570. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7571. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7572. echo "$AR cru libconftest.a conftest.o" >&5
  7573. $AR cru libconftest.a conftest.o 2>&5
  7574. echo "$RANLIB libconftest.a" >&5
  7575. $RANLIB libconftest.a 2>&5
  7576. cat > conftest.c << _LT_EOF
  7577. int main() { return 0;}
  7578. _LT_EOF
  7579. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7580. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7581. _lt_result=$?
  7582. if test -s conftest.err && $GREP force_load conftest.err; then
  7583. cat conftest.err >&5
  7584. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  7585. lt_cv_ld_force_load=yes
  7586. else
  7587. cat conftest.err >&5
  7588. fi
  7589. rm -f conftest.err libconftest.a conftest conftest.c
  7590. rm -rf conftest.dSYM
  7591. fi
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7593. $as_echo "$lt_cv_ld_force_load" >&6; }
  7594. case $host_os in
  7595. rhapsody* | darwin1.[012])
  7596. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  7597. darwin1.*)
  7598. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7599. darwin*) # darwin 5.x on
  7600. # if running on 10.5 or later, the deployment target defaults
  7601. # to the OS version, if on x86, and 10.4, the deployment
  7602. # target defaults to 10.4. Don't you love it?
  7603. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7604. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7605. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7606. 10.[012][,.]*)
  7607. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  7608. 10.*)
  7609. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  7610. esac
  7611. ;;
  7612. esac
  7613. if test yes = "$lt_cv_apple_cc_single_mod"; then
  7614. _lt_dar_single_mod='$single_module'
  7615. fi
  7616. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  7617. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  7618. else
  7619. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  7620. fi
  7621. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  7622. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7623. else
  7624. _lt_dsymutil=
  7625. fi
  7626. ;;
  7627. esac
  7628. # func_munge_path_list VARIABLE PATH
  7629. # -----------------------------------
  7630. # VARIABLE is name of variable containing _space_ separated list of
  7631. # directories to be munged by the contents of PATH, which is string
  7632. # having a format:
  7633. # "DIR[:DIR]:"
  7634. # string "DIR[ DIR]" will be prepended to VARIABLE
  7635. # ":DIR[:DIR]"
  7636. # string "DIR[ DIR]" will be appended to VARIABLE
  7637. # "DIRP[:DIRP]::[DIRA:]DIRA"
  7638. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  7639. # "DIRA[ DIRA]" will be appended to VARIABLE
  7640. # "DIR[:DIR]"
  7641. # VARIABLE will be replaced by "DIR[ DIR]"
  7642. func_munge_path_list ()
  7643. {
  7644. case x$2 in
  7645. x)
  7646. ;;
  7647. *:)
  7648. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  7649. ;;
  7650. x:*)
  7651. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  7652. ;;
  7653. *::*)
  7654. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  7655. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  7656. ;;
  7657. *)
  7658. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  7659. ;;
  7660. esac
  7661. }
  7662. for ac_header in dlfcn.h
  7663. do :
  7664. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7665. "
  7666. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7667. cat >>confdefs.h <<_ACEOF
  7668. #define HAVE_DLFCN_H 1
  7669. _ACEOF
  7670. fi
  7671. done
  7672. # Set options
  7673. # Check whether --enable-static was given.
  7674. if test "${enable_static+set}" = set; then :
  7675. enableval=$enable_static; p=${PACKAGE-default}
  7676. case $enableval in
  7677. yes) enable_static=yes ;;
  7678. no) enable_static=no ;;
  7679. *)
  7680. enable_static=no
  7681. # Look at the argument we got. We use all the common list separators.
  7682. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7683. for pkg in $enableval; do
  7684. IFS=$lt_save_ifs
  7685. if test "X$pkg" = "X$p"; then
  7686. enable_static=yes
  7687. fi
  7688. done
  7689. IFS=$lt_save_ifs
  7690. ;;
  7691. esac
  7692. else
  7693. enable_static=no
  7694. fi
  7695. # Check whether --with-pic was given.
  7696. if test "${with_pic+set}" = set; then :
  7697. withval=$with_pic; lt_p=${PACKAGE-default}
  7698. case $withval in
  7699. yes|no) pic_mode=$withval ;;
  7700. *)
  7701. pic_mode=default
  7702. # Look at the argument we got. We use all the common list separators.
  7703. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7704. for lt_pkg in $withval; do
  7705. IFS=$lt_save_ifs
  7706. if test "X$lt_pkg" = "X$lt_p"; then
  7707. pic_mode=yes
  7708. fi
  7709. done
  7710. IFS=$lt_save_ifs
  7711. ;;
  7712. esac
  7713. else
  7714. pic_mode=yes
  7715. fi
  7716. enable_dlopen=no
  7717. enable_win32_dll=no
  7718. # Check whether --enable-shared was given.
  7719. if test "${enable_shared+set}" = set; then :
  7720. enableval=$enable_shared; p=${PACKAGE-default}
  7721. case $enableval in
  7722. yes) enable_shared=yes ;;
  7723. no) enable_shared=no ;;
  7724. *)
  7725. enable_shared=no
  7726. # Look at the argument we got. We use all the common list separators.
  7727. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7728. for pkg in $enableval; do
  7729. IFS=$lt_save_ifs
  7730. if test "X$pkg" = "X$p"; then
  7731. enable_shared=yes
  7732. fi
  7733. done
  7734. IFS=$lt_save_ifs
  7735. ;;
  7736. esac
  7737. else
  7738. enable_shared=yes
  7739. fi
  7740. # Check whether --enable-fast-install was given.
  7741. if test "${enable_fast_install+set}" = set; then :
  7742. enableval=$enable_fast_install; p=${PACKAGE-default}
  7743. case $enableval in
  7744. yes) enable_fast_install=yes ;;
  7745. no) enable_fast_install=no ;;
  7746. *)
  7747. enable_fast_install=no
  7748. # Look at the argument we got. We use all the common list separators.
  7749. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7750. for pkg in $enableval; do
  7751. IFS=$lt_save_ifs
  7752. if test "X$pkg" = "X$p"; then
  7753. enable_fast_install=yes
  7754. fi
  7755. done
  7756. IFS=$lt_save_ifs
  7757. ;;
  7758. esac
  7759. else
  7760. enable_fast_install=yes
  7761. fi
  7762. shared_archive_member_spec=
  7763. case $host,$enable_shared in
  7764. power*-*-aix[5-9]*,yes)
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  7766. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  7767. # Check whether --with-aix-soname was given.
  7768. if test "${with_aix_soname+set}" = set; then :
  7769. withval=$with_aix_soname; case $withval in
  7770. aix|svr4|both)
  7771. ;;
  7772. *)
  7773. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  7774. ;;
  7775. esac
  7776. lt_cv_with_aix_soname=$with_aix_soname
  7777. else
  7778. if ${lt_cv_with_aix_soname+:} false; then :
  7779. $as_echo_n "(cached) " >&6
  7780. else
  7781. lt_cv_with_aix_soname=aix
  7782. fi
  7783. with_aix_soname=$lt_cv_with_aix_soname
  7784. fi
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  7786. $as_echo "$with_aix_soname" >&6; }
  7787. if test aix != "$with_aix_soname"; then
  7788. # For the AIX way of multilib, we name the shared archive member
  7789. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7790. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7791. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7792. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7793. if test 64 = "${OBJECT_MODE-32}"; then
  7794. shared_archive_member_spec=shr_64
  7795. else
  7796. shared_archive_member_spec=shr
  7797. fi
  7798. fi
  7799. ;;
  7800. *)
  7801. with_aix_soname=aix
  7802. ;;
  7803. esac
  7804. # This can be used to rebuild libtool when needed
  7805. LIBTOOL_DEPS=$ltmain
  7806. # Always use our own libtool.
  7807. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7808. test -z "$LN_S" && LN_S="ln -s"
  7809. if test -n "${ZSH_VERSION+set}"; then
  7810. setopt NO_GLOB_SUBST
  7811. fi
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7813. $as_echo_n "checking for objdir... " >&6; }
  7814. if ${lt_cv_objdir+:} false; then :
  7815. $as_echo_n "(cached) " >&6
  7816. else
  7817. rm -f .libs 2>/dev/null
  7818. mkdir .libs 2>/dev/null
  7819. if test -d .libs; then
  7820. lt_cv_objdir=.libs
  7821. else
  7822. # MS-DOS does not allow filenames that begin with a dot.
  7823. lt_cv_objdir=_libs
  7824. fi
  7825. rmdir .libs 2>/dev/null
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7828. $as_echo "$lt_cv_objdir" >&6; }
  7829. objdir=$lt_cv_objdir
  7830. cat >>confdefs.h <<_ACEOF
  7831. #define LT_OBJDIR "$lt_cv_objdir/"
  7832. _ACEOF
  7833. case $host_os in
  7834. aix3*)
  7835. # AIX sometimes has problems with the GCC collect2 program. For some
  7836. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7837. # vanish in a puff of smoke.
  7838. if test set != "${COLLECT_NAMES+set}"; then
  7839. COLLECT_NAMES=
  7840. export COLLECT_NAMES
  7841. fi
  7842. ;;
  7843. esac
  7844. # Global variables:
  7845. ofile=libtool
  7846. can_build_shared=yes
  7847. # All known linkers require a '.a' archive for static linking (except MSVC,
  7848. # which needs '.lib').
  7849. libext=a
  7850. with_gnu_ld=$lt_cv_prog_gnu_ld
  7851. old_CC=$CC
  7852. old_CFLAGS=$CFLAGS
  7853. # Set sane defaults for various variables
  7854. test -z "$CC" && CC=cc
  7855. test -z "$LTCC" && LTCC=$CC
  7856. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7857. test -z "$LD" && LD=ld
  7858. test -z "$ac_objext" && ac_objext=o
  7859. func_cc_basename $compiler
  7860. cc_basename=$func_cc_basename_result
  7861. # Only perform the check for file, if the check method requires it
  7862. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7863. case $deplibs_check_method in
  7864. file_magic*)
  7865. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7867. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7868. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7869. $as_echo_n "(cached) " >&6
  7870. else
  7871. case $MAGIC_CMD in
  7872. [\\/*] | ?:[\\/]*)
  7873. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7874. ;;
  7875. *)
  7876. lt_save_MAGIC_CMD=$MAGIC_CMD
  7877. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7878. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7879. for ac_dir in $ac_dummy; do
  7880. IFS=$lt_save_ifs
  7881. test -z "$ac_dir" && ac_dir=.
  7882. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7883. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7884. if test -n "$file_magic_test_file"; then
  7885. case $deplibs_check_method in
  7886. "file_magic "*)
  7887. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7888. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7889. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7890. $EGREP "$file_magic_regex" > /dev/null; then
  7891. :
  7892. else
  7893. cat <<_LT_EOF 1>&2
  7894. *** Warning: the command libtool uses to detect shared libraries,
  7895. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7896. *** The result is that libtool may fail to recognize shared libraries
  7897. *** as such. This will affect the creation of libtool libraries that
  7898. *** depend on shared libraries, but programs linked with such libtool
  7899. *** libraries will work regardless of this problem. Nevertheless, you
  7900. *** may want to report the problem to your system manager and/or to
  7901. *** bug-libtool@gnu.org
  7902. _LT_EOF
  7903. fi ;;
  7904. esac
  7905. fi
  7906. break
  7907. fi
  7908. done
  7909. IFS=$lt_save_ifs
  7910. MAGIC_CMD=$lt_save_MAGIC_CMD
  7911. ;;
  7912. esac
  7913. fi
  7914. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7915. if test -n "$MAGIC_CMD"; then
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7917. $as_echo "$MAGIC_CMD" >&6; }
  7918. else
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7920. $as_echo "no" >&6; }
  7921. fi
  7922. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7923. if test -n "$ac_tool_prefix"; then
  7924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7925. $as_echo_n "checking for file... " >&6; }
  7926. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7927. $as_echo_n "(cached) " >&6
  7928. else
  7929. case $MAGIC_CMD in
  7930. [\\/*] | ?:[\\/]*)
  7931. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7932. ;;
  7933. *)
  7934. lt_save_MAGIC_CMD=$MAGIC_CMD
  7935. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7936. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7937. for ac_dir in $ac_dummy; do
  7938. IFS=$lt_save_ifs
  7939. test -z "$ac_dir" && ac_dir=.
  7940. if test -f "$ac_dir/file"; then
  7941. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7942. if test -n "$file_magic_test_file"; then
  7943. case $deplibs_check_method in
  7944. "file_magic "*)
  7945. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7946. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7947. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7948. $EGREP "$file_magic_regex" > /dev/null; then
  7949. :
  7950. else
  7951. cat <<_LT_EOF 1>&2
  7952. *** Warning: the command libtool uses to detect shared libraries,
  7953. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7954. *** The result is that libtool may fail to recognize shared libraries
  7955. *** as such. This will affect the creation of libtool libraries that
  7956. *** depend on shared libraries, but programs linked with such libtool
  7957. *** libraries will work regardless of this problem. Nevertheless, you
  7958. *** may want to report the problem to your system manager and/or to
  7959. *** bug-libtool@gnu.org
  7960. _LT_EOF
  7961. fi ;;
  7962. esac
  7963. fi
  7964. break
  7965. fi
  7966. done
  7967. IFS=$lt_save_ifs
  7968. MAGIC_CMD=$lt_save_MAGIC_CMD
  7969. ;;
  7970. esac
  7971. fi
  7972. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7973. if test -n "$MAGIC_CMD"; then
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7975. $as_echo "$MAGIC_CMD" >&6; }
  7976. else
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7978. $as_echo "no" >&6; }
  7979. fi
  7980. else
  7981. MAGIC_CMD=:
  7982. fi
  7983. fi
  7984. fi
  7985. ;;
  7986. esac
  7987. # Use C for the default configuration in the libtool script
  7988. lt_save_CC=$CC
  7989. ac_ext=c
  7990. ac_cpp='$CPP $CPPFLAGS'
  7991. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7992. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7993. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7994. # Source file extension for C test sources.
  7995. ac_ext=c
  7996. # Object file extension for compiled C test sources.
  7997. objext=o
  7998. objext=$objext
  7999. # Code to be used in simple compile tests
  8000. lt_simple_compile_test_code="int some_variable = 0;"
  8001. # Code to be used in simple link tests
  8002. lt_simple_link_test_code='int main(){return(0);}'
  8003. # If no C compiler was specified, use CC.
  8004. LTCC=${LTCC-"$CC"}
  8005. # If no C compiler flags were specified, use CFLAGS.
  8006. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8007. # Allow CC to be a program name with arguments.
  8008. compiler=$CC
  8009. # Save the default compiler, since it gets overwritten when the other
  8010. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8011. compiler_DEFAULT=$CC
  8012. # save warnings/boilerplate of simple test code
  8013. ac_outfile=conftest.$ac_objext
  8014. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8015. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8016. _lt_compiler_boilerplate=`cat conftest.err`
  8017. $RM conftest*
  8018. ac_outfile=conftest.$ac_objext
  8019. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8020. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8021. _lt_linker_boilerplate=`cat conftest.err`
  8022. $RM -r conftest*
  8023. ## CAVEAT EMPTOR:
  8024. ## There is no encapsulation within the following macros, do not change
  8025. ## the running order or otherwise move them around unless you know exactly
  8026. ## what you are doing...
  8027. if test -n "$compiler"; then
  8028. lt_prog_compiler_no_builtin_flag=
  8029. if test yes = "$GCC"; then
  8030. case $cc_basename in
  8031. nvcc*)
  8032. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8033. *)
  8034. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8035. esac
  8036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8037. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8038. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8039. $as_echo_n "(cached) " >&6
  8040. else
  8041. lt_cv_prog_compiler_rtti_exceptions=no
  8042. ac_outfile=conftest.$ac_objext
  8043. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8044. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  8045. # Insert the option either (1) after the last *FLAGS variable, or
  8046. # (2) before a word containing "conftest.", or (3) at the end.
  8047. # Note that $ac_compile itself does not contain backslashes and begins
  8048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8049. # The option is referenced via a variable to avoid confusing sed.
  8050. lt_compile=`echo "$ac_compile" | $SED \
  8051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8053. -e 's:$: $lt_compiler_flag:'`
  8054. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8055. (eval "$lt_compile" 2>conftest.err)
  8056. ac_status=$?
  8057. cat conftest.err >&5
  8058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8059. if (exit $ac_status) && test -s "$ac_outfile"; then
  8060. # The compiler can only warn and ignore the option if not recognized
  8061. # So say no if there are warnings other than the usual output.
  8062. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8063. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8064. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8065. lt_cv_prog_compiler_rtti_exceptions=yes
  8066. fi
  8067. fi
  8068. $RM conftest*
  8069. fi
  8070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8071. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8072. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  8073. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8074. else
  8075. :
  8076. fi
  8077. fi
  8078. lt_prog_compiler_wl=
  8079. lt_prog_compiler_pic=
  8080. lt_prog_compiler_static=
  8081. if test yes = "$GCC"; then
  8082. lt_prog_compiler_wl='-Wl,'
  8083. lt_prog_compiler_static='-static'
  8084. case $host_os in
  8085. aix*)
  8086. # All AIX code is PIC.
  8087. if test ia64 = "$host_cpu"; then
  8088. # AIX 5 now supports IA64 processor
  8089. lt_prog_compiler_static='-Bstatic'
  8090. fi
  8091. lt_prog_compiler_pic='-fPIC'
  8092. ;;
  8093. amigaos*)
  8094. case $host_cpu in
  8095. powerpc)
  8096. # see comment about AmigaOS4 .so support
  8097. lt_prog_compiler_pic='-fPIC'
  8098. ;;
  8099. m68k)
  8100. # FIXME: we need at least 68020 code to build shared libraries, but
  8101. # adding the '-m68020' flag to GCC prevents building anything better,
  8102. # like '-m68040'.
  8103. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8104. ;;
  8105. esac
  8106. ;;
  8107. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8108. # PIC is the default for these OSes.
  8109. ;;
  8110. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8111. # This hack is so that the source file can tell whether it is being
  8112. # built for inclusion in a dll (and should export symbols for example).
  8113. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8114. # (--disable-auto-import) libraries
  8115. lt_prog_compiler_pic='-DDLL_EXPORT'
  8116. case $host_os in
  8117. os2*)
  8118. lt_prog_compiler_static='$wl-static'
  8119. ;;
  8120. esac
  8121. ;;
  8122. darwin* | rhapsody*)
  8123. # PIC is the default on this platform
  8124. # Common symbols not allowed in MH_DYLIB files
  8125. lt_prog_compiler_pic='-fno-common'
  8126. ;;
  8127. haiku*)
  8128. # PIC is the default for Haiku.
  8129. # The "-static" flag exists, but is broken.
  8130. lt_prog_compiler_static=
  8131. ;;
  8132. hpux*)
  8133. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8134. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8135. # sets the default TLS model and affects inlining.
  8136. case $host_cpu in
  8137. hppa*64*)
  8138. # +Z the default
  8139. ;;
  8140. *)
  8141. lt_prog_compiler_pic='-fPIC'
  8142. ;;
  8143. esac
  8144. ;;
  8145. interix[3-9]*)
  8146. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8147. # Instead, we relocate shared libraries at runtime.
  8148. ;;
  8149. msdosdjgpp*)
  8150. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8151. # on systems that don't support them.
  8152. lt_prog_compiler_can_build_shared=no
  8153. enable_shared=no
  8154. ;;
  8155. *nto* | *qnx*)
  8156. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8157. # it will coredump.
  8158. lt_prog_compiler_pic='-fPIC -shared'
  8159. ;;
  8160. sysv4*MP*)
  8161. if test -d /usr/nec; then
  8162. lt_prog_compiler_pic=-Kconform_pic
  8163. fi
  8164. ;;
  8165. *)
  8166. lt_prog_compiler_pic='-fPIC'
  8167. ;;
  8168. esac
  8169. case $cc_basename in
  8170. nvcc*) # Cuda Compiler Driver 2.2
  8171. lt_prog_compiler_wl='-Xlinker '
  8172. if test -n "$lt_prog_compiler_pic"; then
  8173. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8174. fi
  8175. ;;
  8176. esac
  8177. else
  8178. # PORTME Check for flag to pass linker flags through the system compiler.
  8179. case $host_os in
  8180. aix*)
  8181. lt_prog_compiler_wl='-Wl,'
  8182. if test ia64 = "$host_cpu"; then
  8183. # AIX 5 now supports IA64 processor
  8184. lt_prog_compiler_static='-Bstatic'
  8185. else
  8186. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8187. fi
  8188. ;;
  8189. darwin* | rhapsody*)
  8190. # PIC is the default on this platform
  8191. # Common symbols not allowed in MH_DYLIB files
  8192. lt_prog_compiler_pic='-fno-common'
  8193. case $cc_basename in
  8194. nagfor*)
  8195. # NAG Fortran compiler
  8196. lt_prog_compiler_wl='-Wl,-Wl,,'
  8197. lt_prog_compiler_pic='-PIC'
  8198. lt_prog_compiler_static='-Bstatic'
  8199. ;;
  8200. esac
  8201. ;;
  8202. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8203. # This hack is so that the source file can tell whether it is being
  8204. # built for inclusion in a dll (and should export symbols for example).
  8205. lt_prog_compiler_pic='-DDLL_EXPORT'
  8206. case $host_os in
  8207. os2*)
  8208. lt_prog_compiler_static='$wl-static'
  8209. ;;
  8210. esac
  8211. ;;
  8212. hpux9* | hpux10* | hpux11*)
  8213. lt_prog_compiler_wl='-Wl,'
  8214. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8215. # not for PA HP-UX.
  8216. case $host_cpu in
  8217. hppa*64*|ia64*)
  8218. # +Z the default
  8219. ;;
  8220. *)
  8221. lt_prog_compiler_pic='+Z'
  8222. ;;
  8223. esac
  8224. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8225. lt_prog_compiler_static='$wl-a ${wl}archive'
  8226. ;;
  8227. irix5* | irix6* | nonstopux*)
  8228. lt_prog_compiler_wl='-Wl,'
  8229. # PIC (with -KPIC) is the default.
  8230. lt_prog_compiler_static='-non_shared'
  8231. ;;
  8232. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8233. case $cc_basename in
  8234. # old Intel for x86_64, which still supported -KPIC.
  8235. ecc*)
  8236. lt_prog_compiler_wl='-Wl,'
  8237. lt_prog_compiler_pic='-KPIC'
  8238. lt_prog_compiler_static='-static'
  8239. ;;
  8240. # icc used to be incompatible with GCC.
  8241. # ICC 10 doesn't accept -KPIC any more.
  8242. icc* | ifort*)
  8243. lt_prog_compiler_wl='-Wl,'
  8244. lt_prog_compiler_pic='-fPIC'
  8245. lt_prog_compiler_static='-static'
  8246. ;;
  8247. # Lahey Fortran 8.1.
  8248. lf95*)
  8249. lt_prog_compiler_wl='-Wl,'
  8250. lt_prog_compiler_pic='--shared'
  8251. lt_prog_compiler_static='--static'
  8252. ;;
  8253. nagfor*)
  8254. # NAG Fortran compiler
  8255. lt_prog_compiler_wl='-Wl,-Wl,,'
  8256. lt_prog_compiler_pic='-PIC'
  8257. lt_prog_compiler_static='-Bstatic'
  8258. ;;
  8259. tcc*)
  8260. # Fabrice Bellard et al's Tiny C Compiler
  8261. lt_prog_compiler_wl='-Wl,'
  8262. lt_prog_compiler_pic='-fPIC'
  8263. lt_prog_compiler_static='-static'
  8264. ;;
  8265. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8266. # Portland Group compilers (*not* the Pentium gcc compiler,
  8267. # which looks to be a dead project)
  8268. lt_prog_compiler_wl='-Wl,'
  8269. lt_prog_compiler_pic='-fpic'
  8270. lt_prog_compiler_static='-Bstatic'
  8271. ;;
  8272. ccc*)
  8273. lt_prog_compiler_wl='-Wl,'
  8274. # All Alpha code is PIC.
  8275. lt_prog_compiler_static='-non_shared'
  8276. ;;
  8277. xl* | bgxl* | bgf* | mpixl*)
  8278. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8279. lt_prog_compiler_wl='-Wl,'
  8280. lt_prog_compiler_pic='-qpic'
  8281. lt_prog_compiler_static='-qstaticlink'
  8282. ;;
  8283. *)
  8284. case `$CC -V 2>&1 | sed 5q` in
  8285. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8286. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8287. lt_prog_compiler_pic='-KPIC'
  8288. lt_prog_compiler_static='-Bstatic'
  8289. lt_prog_compiler_wl=''
  8290. ;;
  8291. *Sun\ F* | *Sun*Fortran*)
  8292. lt_prog_compiler_pic='-KPIC'
  8293. lt_prog_compiler_static='-Bstatic'
  8294. lt_prog_compiler_wl='-Qoption ld '
  8295. ;;
  8296. *Sun\ C*)
  8297. # Sun C 5.9
  8298. lt_prog_compiler_pic='-KPIC'
  8299. lt_prog_compiler_static='-Bstatic'
  8300. lt_prog_compiler_wl='-Wl,'
  8301. ;;
  8302. *Intel*\ [CF]*Compiler*)
  8303. lt_prog_compiler_wl='-Wl,'
  8304. lt_prog_compiler_pic='-fPIC'
  8305. lt_prog_compiler_static='-static'
  8306. ;;
  8307. *Portland\ Group*)
  8308. lt_prog_compiler_wl='-Wl,'
  8309. lt_prog_compiler_pic='-fpic'
  8310. lt_prog_compiler_static='-Bstatic'
  8311. ;;
  8312. esac
  8313. ;;
  8314. esac
  8315. ;;
  8316. newsos6)
  8317. lt_prog_compiler_pic='-KPIC'
  8318. lt_prog_compiler_static='-Bstatic'
  8319. ;;
  8320. *nto* | *qnx*)
  8321. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8322. # it will coredump.
  8323. lt_prog_compiler_pic='-fPIC -shared'
  8324. ;;
  8325. osf3* | osf4* | osf5*)
  8326. lt_prog_compiler_wl='-Wl,'
  8327. # All OSF/1 code is PIC.
  8328. lt_prog_compiler_static='-non_shared'
  8329. ;;
  8330. rdos*)
  8331. lt_prog_compiler_static='-non_shared'
  8332. ;;
  8333. solaris*)
  8334. lt_prog_compiler_pic='-KPIC'
  8335. lt_prog_compiler_static='-Bstatic'
  8336. case $cc_basename in
  8337. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8338. lt_prog_compiler_wl='-Qoption ld ';;
  8339. *)
  8340. lt_prog_compiler_wl='-Wl,';;
  8341. esac
  8342. ;;
  8343. sunos4*)
  8344. lt_prog_compiler_wl='-Qoption ld '
  8345. lt_prog_compiler_pic='-PIC'
  8346. lt_prog_compiler_static='-Bstatic'
  8347. ;;
  8348. sysv4 | sysv4.2uw2* | sysv4.3*)
  8349. lt_prog_compiler_wl='-Wl,'
  8350. lt_prog_compiler_pic='-KPIC'
  8351. lt_prog_compiler_static='-Bstatic'
  8352. ;;
  8353. sysv4*MP*)
  8354. if test -d /usr/nec; then
  8355. lt_prog_compiler_pic='-Kconform_pic'
  8356. lt_prog_compiler_static='-Bstatic'
  8357. fi
  8358. ;;
  8359. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8360. lt_prog_compiler_wl='-Wl,'
  8361. lt_prog_compiler_pic='-KPIC'
  8362. lt_prog_compiler_static='-Bstatic'
  8363. ;;
  8364. unicos*)
  8365. lt_prog_compiler_wl='-Wl,'
  8366. lt_prog_compiler_can_build_shared=no
  8367. ;;
  8368. uts4*)
  8369. lt_prog_compiler_pic='-pic'
  8370. lt_prog_compiler_static='-Bstatic'
  8371. ;;
  8372. *)
  8373. lt_prog_compiler_can_build_shared=no
  8374. ;;
  8375. esac
  8376. fi
  8377. case $host_os in
  8378. # For platforms that do not support PIC, -DPIC is meaningless:
  8379. *djgpp*)
  8380. lt_prog_compiler_pic=
  8381. ;;
  8382. *)
  8383. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8384. ;;
  8385. esac
  8386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8387. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8388. if ${lt_cv_prog_compiler_pic+:} false; then :
  8389. $as_echo_n "(cached) " >&6
  8390. else
  8391. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8392. fi
  8393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8394. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8395. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8396. #
  8397. # Check to make sure the PIC flag actually works.
  8398. #
  8399. if test -n "$lt_prog_compiler_pic"; then
  8400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8401. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8402. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8403. $as_echo_n "(cached) " >&6
  8404. else
  8405. lt_cv_prog_compiler_pic_works=no
  8406. ac_outfile=conftest.$ac_objext
  8407. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8408. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  8409. # Insert the option either (1) after the last *FLAGS variable, or
  8410. # (2) before a word containing "conftest.", or (3) at the end.
  8411. # Note that $ac_compile itself does not contain backslashes and begins
  8412. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8413. # The option is referenced via a variable to avoid confusing sed.
  8414. lt_compile=`echo "$ac_compile" | $SED \
  8415. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8416. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8417. -e 's:$: $lt_compiler_flag:'`
  8418. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8419. (eval "$lt_compile" 2>conftest.err)
  8420. ac_status=$?
  8421. cat conftest.err >&5
  8422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8423. if (exit $ac_status) && test -s "$ac_outfile"; then
  8424. # The compiler can only warn and ignore the option if not recognized
  8425. # So say no if there are warnings other than the usual output.
  8426. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8427. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8428. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8429. lt_cv_prog_compiler_pic_works=yes
  8430. fi
  8431. fi
  8432. $RM conftest*
  8433. fi
  8434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8435. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8436. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  8437. case $lt_prog_compiler_pic in
  8438. "" | " "*) ;;
  8439. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8440. esac
  8441. else
  8442. lt_prog_compiler_pic=
  8443. lt_prog_compiler_can_build_shared=no
  8444. fi
  8445. fi
  8446. #
  8447. # Check to make sure the static flag actually works.
  8448. #
  8449. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8451. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8452. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8453. $as_echo_n "(cached) " >&6
  8454. else
  8455. lt_cv_prog_compiler_static_works=no
  8456. save_LDFLAGS=$LDFLAGS
  8457. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8458. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8459. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8460. # The linker can only warn and ignore the option if not recognized
  8461. # So say no if there are warnings
  8462. if test -s conftest.err; then
  8463. # Append any errors to the config.log.
  8464. cat conftest.err 1>&5
  8465. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8466. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8467. if diff conftest.exp conftest.er2 >/dev/null; then
  8468. lt_cv_prog_compiler_static_works=yes
  8469. fi
  8470. else
  8471. lt_cv_prog_compiler_static_works=yes
  8472. fi
  8473. fi
  8474. $RM -r conftest*
  8475. LDFLAGS=$save_LDFLAGS
  8476. fi
  8477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8478. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8479. if test yes = "$lt_cv_prog_compiler_static_works"; then
  8480. :
  8481. else
  8482. lt_prog_compiler_static=
  8483. fi
  8484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8485. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8486. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8487. $as_echo_n "(cached) " >&6
  8488. else
  8489. lt_cv_prog_compiler_c_o=no
  8490. $RM -r conftest 2>/dev/null
  8491. mkdir conftest
  8492. cd conftest
  8493. mkdir out
  8494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8495. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8496. # Insert the option either (1) after the last *FLAGS variable, or
  8497. # (2) before a word containing "conftest.", or (3) at the end.
  8498. # Note that $ac_compile itself does not contain backslashes and begins
  8499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8500. lt_compile=`echo "$ac_compile" | $SED \
  8501. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8502. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8503. -e 's:$: $lt_compiler_flag:'`
  8504. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8505. (eval "$lt_compile" 2>out/conftest.err)
  8506. ac_status=$?
  8507. cat out/conftest.err >&5
  8508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8509. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8510. then
  8511. # The compiler can only warn and ignore the option if not recognized
  8512. # So say no if there are warnings
  8513. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8514. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8515. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8516. lt_cv_prog_compiler_c_o=yes
  8517. fi
  8518. fi
  8519. chmod u+w . 2>&5
  8520. $RM conftest*
  8521. # SGI C++ compiler will create directory out/ii_files/ for
  8522. # template instantiation
  8523. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8524. $RM out/* && rmdir out
  8525. cd ..
  8526. $RM -r conftest
  8527. $RM conftest*
  8528. fi
  8529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8530. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8532. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8533. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8534. $as_echo_n "(cached) " >&6
  8535. else
  8536. lt_cv_prog_compiler_c_o=no
  8537. $RM -r conftest 2>/dev/null
  8538. mkdir conftest
  8539. cd conftest
  8540. mkdir out
  8541. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8542. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8543. # Insert the option either (1) after the last *FLAGS variable, or
  8544. # (2) before a word containing "conftest.", or (3) at the end.
  8545. # Note that $ac_compile itself does not contain backslashes and begins
  8546. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8547. lt_compile=`echo "$ac_compile" | $SED \
  8548. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8549. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8550. -e 's:$: $lt_compiler_flag:'`
  8551. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8552. (eval "$lt_compile" 2>out/conftest.err)
  8553. ac_status=$?
  8554. cat out/conftest.err >&5
  8555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8556. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8557. then
  8558. # The compiler can only warn and ignore the option if not recognized
  8559. # So say no if there are warnings
  8560. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8561. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8562. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8563. lt_cv_prog_compiler_c_o=yes
  8564. fi
  8565. fi
  8566. chmod u+w . 2>&5
  8567. $RM conftest*
  8568. # SGI C++ compiler will create directory out/ii_files/ for
  8569. # template instantiation
  8570. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8571. $RM out/* && rmdir out
  8572. cd ..
  8573. $RM -r conftest
  8574. $RM conftest*
  8575. fi
  8576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8577. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8578. hard_links=nottested
  8579. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  8580. # do not overwrite the value of need_locks provided by the user
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8582. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8583. hard_links=yes
  8584. $RM conftest*
  8585. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8586. touch conftest.a
  8587. ln conftest.a conftest.b 2>&5 || hard_links=no
  8588. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8590. $as_echo "$hard_links" >&6; }
  8591. if test no = "$hard_links"; then
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  8593. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  8594. need_locks=warn
  8595. fi
  8596. else
  8597. need_locks=no
  8598. fi
  8599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8600. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8601. runpath_var=
  8602. allow_undefined_flag=
  8603. always_export_symbols=no
  8604. archive_cmds=
  8605. archive_expsym_cmds=
  8606. compiler_needs_object=no
  8607. enable_shared_with_static_runtimes=no
  8608. export_dynamic_flag_spec=
  8609. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8610. hardcode_automatic=no
  8611. hardcode_direct=no
  8612. hardcode_direct_absolute=no
  8613. hardcode_libdir_flag_spec=
  8614. hardcode_libdir_separator=
  8615. hardcode_minus_L=no
  8616. hardcode_shlibpath_var=unsupported
  8617. inherit_rpath=no
  8618. link_all_deplibs=unknown
  8619. module_cmds=
  8620. module_expsym_cmds=
  8621. old_archive_from_new_cmds=
  8622. old_archive_from_expsyms_cmds=
  8623. thread_safe_flag_spec=
  8624. whole_archive_flag_spec=
  8625. # include_expsyms should be a list of space-separated symbols to be *always*
  8626. # included in the symbol list
  8627. include_expsyms=
  8628. # exclude_expsyms can be an extended regexp of symbols to exclude
  8629. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  8630. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  8631. # as well as any symbol that contains 'd'.
  8632. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8633. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8634. # platforms (ab)use it in PIC code, but their linkers get confused if
  8635. # the symbol is explicitly referenced. Since portable code cannot
  8636. # rely on this symbol name, it's probably fine to never include it in
  8637. # preloaded symbol tables.
  8638. # Exclude shared library initialization/finalization symbols.
  8639. extract_expsyms_cmds=
  8640. case $host_os in
  8641. cygwin* | mingw* | pw32* | cegcc*)
  8642. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8643. # When not using gcc, we currently assume that we are using
  8644. # Microsoft Visual C++.
  8645. if test yes != "$GCC"; then
  8646. with_gnu_ld=no
  8647. fi
  8648. ;;
  8649. interix*)
  8650. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8651. with_gnu_ld=yes
  8652. ;;
  8653. openbsd* | bitrig*)
  8654. with_gnu_ld=no
  8655. ;;
  8656. esac
  8657. ld_shlibs=yes
  8658. # On some targets, GNU ld is compatible enough with the native linker
  8659. # that we're better off using the native interface for both.
  8660. lt_use_gnu_ld_interface=no
  8661. if test yes = "$with_gnu_ld"; then
  8662. case $host_os in
  8663. aix*)
  8664. # The AIX port of GNU ld has always aspired to compatibility
  8665. # with the native linker. However, as the warning in the GNU ld
  8666. # block says, versions before 2.19.5* couldn't really create working
  8667. # shared libraries, regardless of the interface used.
  8668. case `$LD -v 2>&1` in
  8669. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8670. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8671. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8672. *)
  8673. lt_use_gnu_ld_interface=yes
  8674. ;;
  8675. esac
  8676. ;;
  8677. *)
  8678. lt_use_gnu_ld_interface=yes
  8679. ;;
  8680. esac
  8681. fi
  8682. if test yes = "$lt_use_gnu_ld_interface"; then
  8683. # If archive_cmds runs LD, not CC, wlarc should be empty
  8684. wlarc='$wl'
  8685. # Set some defaults for GNU ld with shared library support. These
  8686. # are reset later if shared libraries are not supported. Putting them
  8687. # here allows them to be overridden if necessary.
  8688. runpath_var=LD_RUN_PATH
  8689. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8690. export_dynamic_flag_spec='$wl--export-dynamic'
  8691. # ancient GNU ld didn't support --whole-archive et. al.
  8692. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8693. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  8694. else
  8695. whole_archive_flag_spec=
  8696. fi
  8697. supports_anon_versioning=no
  8698. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  8699. *GNU\ gold*) supports_anon_versioning=yes ;;
  8700. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8701. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8702. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8703. *\ 2.11.*) ;; # other 2.11 versions
  8704. *) supports_anon_versioning=yes ;;
  8705. esac
  8706. # See if GNU ld supports shared libraries.
  8707. case $host_os in
  8708. aix[3-9]*)
  8709. # On AIX/PPC, the GNU linker is very broken
  8710. if test ia64 != "$host_cpu"; then
  8711. ld_shlibs=no
  8712. cat <<_LT_EOF 1>&2
  8713. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8714. *** to be unable to reliably create shared libraries on AIX.
  8715. *** Therefore, libtool is disabling shared libraries support. If you
  8716. *** really care for shared libraries, you may want to install binutils
  8717. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8718. *** You will then need to restart the configuration process.
  8719. _LT_EOF
  8720. fi
  8721. ;;
  8722. amigaos*)
  8723. case $host_cpu in
  8724. powerpc)
  8725. # see comment about AmigaOS4 .so support
  8726. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8727. archive_expsym_cmds=''
  8728. ;;
  8729. m68k)
  8730. 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)'
  8731. hardcode_libdir_flag_spec='-L$libdir'
  8732. hardcode_minus_L=yes
  8733. ;;
  8734. esac
  8735. ;;
  8736. beos*)
  8737. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8738. allow_undefined_flag=unsupported
  8739. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8740. # support --undefined. This deserves some investigation. FIXME
  8741. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8742. else
  8743. ld_shlibs=no
  8744. fi
  8745. ;;
  8746. cygwin* | mingw* | pw32* | cegcc*)
  8747. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8748. # as there is no search path for DLLs.
  8749. hardcode_libdir_flag_spec='-L$libdir'
  8750. export_dynamic_flag_spec='$wl--export-all-symbols'
  8751. allow_undefined_flag=unsupported
  8752. always_export_symbols=no
  8753. enable_shared_with_static_runtimes=yes
  8754. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8755. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8756. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8757. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8758. # If the export-symbols file already is a .def file, use it as
  8759. # is; otherwise, prepend EXPORTS...
  8760. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8761. cp $export_symbols $output_objdir/$soname.def;
  8762. else
  8763. echo EXPORTS > $output_objdir/$soname.def;
  8764. cat $export_symbols >> $output_objdir/$soname.def;
  8765. fi~
  8766. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8767. else
  8768. ld_shlibs=no
  8769. fi
  8770. ;;
  8771. haiku*)
  8772. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8773. link_all_deplibs=yes
  8774. ;;
  8775. os2*)
  8776. hardcode_libdir_flag_spec='-L$libdir'
  8777. hardcode_minus_L=yes
  8778. allow_undefined_flag=unsupported
  8779. shrext_cmds=.dll
  8780. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8781. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8782. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8783. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8784. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8785. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8786. emximp -o $lib $output_objdir/$libname.def'
  8787. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8788. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8789. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8790. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8791. prefix_cmds="$SED"~
  8792. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8793. prefix_cmds="$prefix_cmds -e 1d";
  8794. fi~
  8795. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8796. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8797. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8798. emximp -o $lib $output_objdir/$libname.def'
  8799. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8800. enable_shared_with_static_runtimes=yes
  8801. ;;
  8802. interix[3-9]*)
  8803. hardcode_direct=no
  8804. hardcode_shlibpath_var=no
  8805. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8806. export_dynamic_flag_spec='$wl-E'
  8807. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8808. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8809. # default) and relocated if they conflict, which is a slow very memory
  8810. # consuming and fragmenting process. To avoid this, we pick a random,
  8811. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8812. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8813. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8814. 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'
  8815. ;;
  8816. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8817. tmp_diet=no
  8818. if test linux-dietlibc = "$host_os"; then
  8819. case $cc_basename in
  8820. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8821. esac
  8822. fi
  8823. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8824. && test no = "$tmp_diet"
  8825. then
  8826. tmp_addflag=' $pic_flag'
  8827. tmp_sharedflag='-shared'
  8828. case $cc_basename,$host_cpu in
  8829. pgcc*) # Portland Group C compiler
  8830. 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'
  8831. tmp_addflag=' $pic_flag'
  8832. ;;
  8833. pgf77* | pgf90* | pgf95* | pgfortran*)
  8834. # Portland Group f77 and f90 compilers
  8835. 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'
  8836. tmp_addflag=' $pic_flag -Mnomain' ;;
  8837. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8838. tmp_addflag=' -i_dynamic' ;;
  8839. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8840. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8841. ifc* | ifort*) # Intel Fortran compiler
  8842. tmp_addflag=' -nofor_main' ;;
  8843. lf95*) # Lahey Fortran 8.1
  8844. whole_archive_flag_spec=
  8845. tmp_sharedflag='--shared' ;;
  8846. nagfor*) # NAGFOR 5.3
  8847. tmp_sharedflag='-Wl,-shared' ;;
  8848. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8849. tmp_sharedflag='-qmkshrobj'
  8850. tmp_addflag= ;;
  8851. nvcc*) # Cuda Compiler Driver 2.2
  8852. 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'
  8853. compiler_needs_object=yes
  8854. ;;
  8855. esac
  8856. case `$CC -V 2>&1 | sed 5q` in
  8857. *Sun\ C*) # Sun C 5.9
  8858. 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'
  8859. compiler_needs_object=yes
  8860. tmp_sharedflag='-G' ;;
  8861. *Sun\ F*) # Sun Fortran 8.3
  8862. tmp_sharedflag='-G' ;;
  8863. esac
  8864. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8865. if test yes = "$supports_anon_versioning"; then
  8866. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8867. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8868. echo "local: *; };" >> $output_objdir/$libname.ver~
  8869. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8870. fi
  8871. case $cc_basename in
  8872. tcc*)
  8873. export_dynamic_flag_spec='-rdynamic'
  8874. ;;
  8875. xlf* | bgf* | bgxlf* | mpixlf*)
  8876. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8877. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8878. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8879. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8880. if test yes = "$supports_anon_versioning"; then
  8881. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8882. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8883. echo "local: *; };" >> $output_objdir/$libname.ver~
  8884. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8885. fi
  8886. ;;
  8887. esac
  8888. else
  8889. ld_shlibs=no
  8890. fi
  8891. ;;
  8892. netbsd*)
  8893. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8894. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8895. wlarc=
  8896. else
  8897. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8898. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8899. fi
  8900. ;;
  8901. solaris*)
  8902. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8903. ld_shlibs=no
  8904. cat <<_LT_EOF 1>&2
  8905. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8906. *** create shared libraries on Solaris systems. Therefore, libtool
  8907. *** is disabling shared libraries support. We urge you to upgrade GNU
  8908. *** binutils to release 2.9.1 or newer. Another option is to modify
  8909. *** your PATH or compiler configuration so that the native linker is
  8910. *** used, and then restart.
  8911. _LT_EOF
  8912. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8913. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8914. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8915. else
  8916. ld_shlibs=no
  8917. fi
  8918. ;;
  8919. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8920. case `$LD -v 2>&1` in
  8921. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8922. ld_shlibs=no
  8923. cat <<_LT_EOF 1>&2
  8924. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8925. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8926. *** is disabling shared libraries support. We urge you to upgrade GNU
  8927. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8928. *** your PATH or compiler configuration so that the native linker is
  8929. *** used, and then restart.
  8930. _LT_EOF
  8931. ;;
  8932. *)
  8933. # For security reasons, it is highly recommended that you always
  8934. # use absolute paths for naming shared libraries, and exclude the
  8935. # DT_RUNPATH tag from executables and libraries. But doing so
  8936. # requires that you compile everything twice, which is a pain.
  8937. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8938. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8939. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8940. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8941. else
  8942. ld_shlibs=no
  8943. fi
  8944. ;;
  8945. esac
  8946. ;;
  8947. sunos4*)
  8948. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8949. wlarc=
  8950. hardcode_direct=yes
  8951. hardcode_shlibpath_var=no
  8952. ;;
  8953. *)
  8954. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8955. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8956. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8957. else
  8958. ld_shlibs=no
  8959. fi
  8960. ;;
  8961. esac
  8962. if test no = "$ld_shlibs"; then
  8963. runpath_var=
  8964. hardcode_libdir_flag_spec=
  8965. export_dynamic_flag_spec=
  8966. whole_archive_flag_spec=
  8967. fi
  8968. else
  8969. # PORTME fill in a description of your system's linker (not GNU ld)
  8970. case $host_os in
  8971. aix3*)
  8972. allow_undefined_flag=unsupported
  8973. always_export_symbols=yes
  8974. 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'
  8975. # Note: this linker hardcodes the directories in LIBPATH if there
  8976. # are no directories specified by -L.
  8977. hardcode_minus_L=yes
  8978. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8979. # Neither direct hardcoding nor static linking is supported with a
  8980. # broken collect2.
  8981. hardcode_direct=unsupported
  8982. fi
  8983. ;;
  8984. aix[4-9]*)
  8985. if test ia64 = "$host_cpu"; then
  8986. # On IA64, the linker does run time linking by default, so we don't
  8987. # have to do anything special.
  8988. aix_use_runtimelinking=no
  8989. exp_sym_flag='-Bexport'
  8990. no_entry_flag=
  8991. else
  8992. # If we're using GNU nm, then we don't want the "-C" option.
  8993. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8994. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8995. # weak defined symbols like other global defined symbols, whereas
  8996. # GNU nm marks them as "W".
  8997. # While the 'weak' keyword is ignored in the Export File, we need
  8998. # it in the Import File for the 'aix-soname' feature, so we have
  8999. # to replace the "-B" option with "-P" for AIX nm.
  9000. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9001. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  9002. else
  9003. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  9004. fi
  9005. aix_use_runtimelinking=no
  9006. # Test if we are trying to use run time linking or normal
  9007. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9008. # have runtime linking enabled, and use it for executables.
  9009. # For shared libraries, we enable/disable runtime linking
  9010. # depending on the kind of the shared library created -
  9011. # when "with_aix_soname,aix_use_runtimelinking" is:
  9012. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  9013. # "aix,yes" lib.so shared, rtl:yes, for executables
  9014. # lib.a static archive
  9015. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  9016. # lib.a(lib.so.V) shared, rtl:no, for executables
  9017. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  9018. # lib.a(lib.so.V) shared, rtl:no
  9019. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  9020. # lib.a static archive
  9021. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9022. for ld_flag in $LDFLAGS; do
  9023. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  9024. aix_use_runtimelinking=yes
  9025. break
  9026. fi
  9027. done
  9028. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  9029. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  9030. # so we don't have lib.a shared libs to link our executables.
  9031. # We have to force runtime linking in this case.
  9032. aix_use_runtimelinking=yes
  9033. LDFLAGS="$LDFLAGS -Wl,-brtl"
  9034. fi
  9035. ;;
  9036. esac
  9037. exp_sym_flag='-bexport'
  9038. no_entry_flag='-bnoentry'
  9039. fi
  9040. # When large executables or shared objects are built, AIX ld can
  9041. # have problems creating the table of contents. If linking a library
  9042. # or program results in "error TOC overflow" add -mminimal-toc to
  9043. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9044. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9045. archive_cmds=''
  9046. hardcode_direct=yes
  9047. hardcode_direct_absolute=yes
  9048. hardcode_libdir_separator=':'
  9049. link_all_deplibs=yes
  9050. file_list_spec='$wl-f,'
  9051. case $with_aix_soname,$aix_use_runtimelinking in
  9052. aix,*) ;; # traditional, no import file
  9053. svr4,* | *,yes) # use import file
  9054. # The Import File defines what to hardcode.
  9055. hardcode_direct=no
  9056. hardcode_direct_absolute=no
  9057. ;;
  9058. esac
  9059. if test yes = "$GCC"; then
  9060. case $host_os in aix4.[012]|aix4.[012].*)
  9061. # We only want to do this on AIX 4.2 and lower, the check
  9062. # below for broken collect2 doesn't work under 4.3+
  9063. collect2name=`$CC -print-prog-name=collect2`
  9064. if test -f "$collect2name" &&
  9065. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9066. then
  9067. # We have reworked collect2
  9068. :
  9069. else
  9070. # We have old collect2
  9071. hardcode_direct=unsupported
  9072. # It fails to find uninstalled libraries when the uninstalled
  9073. # path is not listed in the libpath. Setting hardcode_minus_L
  9074. # to unsupported forces relinking
  9075. hardcode_minus_L=yes
  9076. hardcode_libdir_flag_spec='-L$libdir'
  9077. hardcode_libdir_separator=
  9078. fi
  9079. ;;
  9080. esac
  9081. shared_flag='-shared'
  9082. if test yes = "$aix_use_runtimelinking"; then
  9083. shared_flag="$shared_flag "'$wl-G'
  9084. fi
  9085. # Need to ensure runtime linking is disabled for the traditional
  9086. # shared library, or the linker may eventually find shared libraries
  9087. # /with/ Import File - we do not want to mix them.
  9088. shared_flag_aix='-shared'
  9089. shared_flag_svr4='-shared $wl-G'
  9090. else
  9091. # not using gcc
  9092. if test ia64 = "$host_cpu"; then
  9093. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9094. # chokes on -Wl,-G. The following line is correct:
  9095. shared_flag='-G'
  9096. else
  9097. if test yes = "$aix_use_runtimelinking"; then
  9098. shared_flag='$wl-G'
  9099. else
  9100. shared_flag='$wl-bM:SRE'
  9101. fi
  9102. shared_flag_aix='$wl-bM:SRE'
  9103. shared_flag_svr4='$wl-G'
  9104. fi
  9105. fi
  9106. export_dynamic_flag_spec='$wl-bexpall'
  9107. # It seems that -bexpall does not export symbols beginning with
  9108. # underscore (_), so it is better to generate a list of symbols to export.
  9109. always_export_symbols=yes
  9110. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  9111. # Warning - without using the other runtime loading flags (-brtl),
  9112. # -berok will link without error, but may produce a broken library.
  9113. allow_undefined_flag='-berok'
  9114. # Determine the default libpath from the value encoded in an
  9115. # empty executable.
  9116. if test set = "${lt_cv_aix_libpath+set}"; then
  9117. aix_libpath=$lt_cv_aix_libpath
  9118. else
  9119. if ${lt_cv_aix_libpath_+:} false; then :
  9120. $as_echo_n "(cached) " >&6
  9121. else
  9122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9123. /* end confdefs.h. */
  9124. int
  9125. main ()
  9126. {
  9127. ;
  9128. return 0;
  9129. }
  9130. _ACEOF
  9131. if ac_fn_c_try_link "$LINENO"; then :
  9132. lt_aix_libpath_sed='
  9133. /Import File Strings/,/^$/ {
  9134. /^0/ {
  9135. s/^0 *\([^ ]*\) *$/\1/
  9136. p
  9137. }
  9138. }'
  9139. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9140. # Check for a 64-bit object if we didn't find anything.
  9141. if test -z "$lt_cv_aix_libpath_"; then
  9142. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9143. fi
  9144. fi
  9145. rm -f core conftest.err conftest.$ac_objext \
  9146. conftest$ac_exeext conftest.$ac_ext
  9147. if test -z "$lt_cv_aix_libpath_"; then
  9148. lt_cv_aix_libpath_=/usr/lib:/lib
  9149. fi
  9150. fi
  9151. aix_libpath=$lt_cv_aix_libpath_
  9152. fi
  9153. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9154. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  9155. else
  9156. if test ia64 = "$host_cpu"; then
  9157. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  9158. allow_undefined_flag="-z nodefs"
  9159. 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"
  9160. else
  9161. # Determine the default libpath from the value encoded in an
  9162. # empty executable.
  9163. if test set = "${lt_cv_aix_libpath+set}"; then
  9164. aix_libpath=$lt_cv_aix_libpath
  9165. else
  9166. if ${lt_cv_aix_libpath_+:} false; then :
  9167. $as_echo_n "(cached) " >&6
  9168. else
  9169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9170. /* end confdefs.h. */
  9171. int
  9172. main ()
  9173. {
  9174. ;
  9175. return 0;
  9176. }
  9177. _ACEOF
  9178. if ac_fn_c_try_link "$LINENO"; then :
  9179. lt_aix_libpath_sed='
  9180. /Import File Strings/,/^$/ {
  9181. /^0/ {
  9182. s/^0 *\([^ ]*\) *$/\1/
  9183. p
  9184. }
  9185. }'
  9186. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9187. # Check for a 64-bit object if we didn't find anything.
  9188. if test -z "$lt_cv_aix_libpath_"; then
  9189. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9190. fi
  9191. fi
  9192. rm -f core conftest.err conftest.$ac_objext \
  9193. conftest$ac_exeext conftest.$ac_ext
  9194. if test -z "$lt_cv_aix_libpath_"; then
  9195. lt_cv_aix_libpath_=/usr/lib:/lib
  9196. fi
  9197. fi
  9198. aix_libpath=$lt_cv_aix_libpath_
  9199. fi
  9200. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  9201. # Warning - without using the other run time loading flags,
  9202. # -berok will link without error, but may produce a broken library.
  9203. no_undefined_flag=' $wl-bernotok'
  9204. allow_undefined_flag=' $wl-berok'
  9205. if test yes = "$with_gnu_ld"; then
  9206. # We only use this code for GNU lds that support --whole-archive.
  9207. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  9208. else
  9209. # Exported symbols can be pulled into shared objects from archives
  9210. whole_archive_flag_spec='$convenience'
  9211. fi
  9212. archive_cmds_need_lc=yes
  9213. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  9214. # -brtl affects multiple linker settings, -berok does not and is overridden later
  9215. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  9216. if test svr4 != "$with_aix_soname"; then
  9217. # This is similar to how AIX traditionally builds its shared libraries.
  9218. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  9219. fi
  9220. if test aix != "$with_aix_soname"; then
  9221. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  9222. else
  9223. # used by -dlpreopen to get the symbols
  9224. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  9225. fi
  9226. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  9227. fi
  9228. fi
  9229. ;;
  9230. amigaos*)
  9231. case $host_cpu in
  9232. powerpc)
  9233. # see comment about AmigaOS4 .so support
  9234. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  9235. archive_expsym_cmds=''
  9236. ;;
  9237. m68k)
  9238. 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)'
  9239. hardcode_libdir_flag_spec='-L$libdir'
  9240. hardcode_minus_L=yes
  9241. ;;
  9242. esac
  9243. ;;
  9244. bsdi[45]*)
  9245. export_dynamic_flag_spec=-rdynamic
  9246. ;;
  9247. cygwin* | mingw* | pw32* | cegcc*)
  9248. # When not using gcc, we currently assume that we are using
  9249. # Microsoft Visual C++.
  9250. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9251. # no search path for DLLs.
  9252. case $cc_basename in
  9253. cl*)
  9254. # Native MSVC
  9255. hardcode_libdir_flag_spec=' '
  9256. allow_undefined_flag=unsupported
  9257. always_export_symbols=yes
  9258. file_list_spec='@'
  9259. # Tell ltmain to make .lib files, not .a files.
  9260. libext=lib
  9261. # Tell ltmain to make .dll files, not .so files.
  9262. shrext_cmds=.dll
  9263. # FIXME: Setting linknames here is a bad hack.
  9264. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  9265. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  9266. cp "$export_symbols" "$output_objdir/$soname.def";
  9267. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  9268. else
  9269. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  9270. fi~
  9271. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9272. linknames='
  9273. # The linker will not automatically build a static lib if we build a DLL.
  9274. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9275. enable_shared_with_static_runtimes=yes
  9276. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9277. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9278. # Don't use ranlib
  9279. old_postinstall_cmds='chmod 644 $oldlib'
  9280. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9281. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9282. case $lt_outputfile in
  9283. *.exe|*.EXE) ;;
  9284. *)
  9285. lt_outputfile=$lt_outputfile.exe
  9286. lt_tool_outputfile=$lt_tool_outputfile.exe
  9287. ;;
  9288. esac~
  9289. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  9290. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9291. $RM "$lt_outputfile.manifest";
  9292. fi'
  9293. ;;
  9294. *)
  9295. # Assume MSVC wrapper
  9296. hardcode_libdir_flag_spec=' '
  9297. allow_undefined_flag=unsupported
  9298. # Tell ltmain to make .lib files, not .a files.
  9299. libext=lib
  9300. # Tell ltmain to make .dll files, not .so files.
  9301. shrext_cmds=.dll
  9302. # FIXME: Setting linknames here is a bad hack.
  9303. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9304. # The linker will automatically build a .lib file if we build a DLL.
  9305. old_archive_from_new_cmds='true'
  9306. # FIXME: Should let the user specify the lib program.
  9307. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9308. enable_shared_with_static_runtimes=yes
  9309. ;;
  9310. esac
  9311. ;;
  9312. darwin* | rhapsody*)
  9313. archive_cmds_need_lc=no
  9314. hardcode_direct=no
  9315. hardcode_automatic=yes
  9316. hardcode_shlibpath_var=unsupported
  9317. if test yes = "$lt_cv_ld_force_load"; then
  9318. 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\"`'
  9319. else
  9320. whole_archive_flag_spec=''
  9321. fi
  9322. link_all_deplibs=yes
  9323. allow_undefined_flag=$_lt_dar_allow_undefined
  9324. case $cc_basename in
  9325. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  9326. *) _lt_dar_can_shared=$GCC ;;
  9327. esac
  9328. if test yes = "$_lt_dar_can_shared"; then
  9329. output_verbose_link_cmd=func_echo_all
  9330. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  9331. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  9332. 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"
  9333. 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"
  9334. else
  9335. ld_shlibs=no
  9336. fi
  9337. ;;
  9338. dgux*)
  9339. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9340. hardcode_libdir_flag_spec='-L$libdir'
  9341. hardcode_shlibpath_var=no
  9342. ;;
  9343. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9344. # support. Future versions do this automatically, but an explicit c++rt0.o
  9345. # does not break anything, and helps significantly (at the cost of a little
  9346. # extra space).
  9347. freebsd2.2*)
  9348. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9349. hardcode_libdir_flag_spec='-R$libdir'
  9350. hardcode_direct=yes
  9351. hardcode_shlibpath_var=no
  9352. ;;
  9353. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9354. freebsd2.*)
  9355. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9356. hardcode_direct=yes
  9357. hardcode_minus_L=yes
  9358. hardcode_shlibpath_var=no
  9359. ;;
  9360. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9361. freebsd* | dragonfly*)
  9362. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9363. hardcode_libdir_flag_spec='-R$libdir'
  9364. hardcode_direct=yes
  9365. hardcode_shlibpath_var=no
  9366. ;;
  9367. hpux9*)
  9368. if test yes = "$GCC"; then
  9369. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9370. else
  9371. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  9372. fi
  9373. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9374. hardcode_libdir_separator=:
  9375. hardcode_direct=yes
  9376. # hardcode_minus_L: Not really in the search PATH,
  9377. # but as the default location of the library.
  9378. hardcode_minus_L=yes
  9379. export_dynamic_flag_spec='$wl-E'
  9380. ;;
  9381. hpux10*)
  9382. if test yes,no = "$GCC,$with_gnu_ld"; then
  9383. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9384. else
  9385. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9386. fi
  9387. if test no = "$with_gnu_ld"; then
  9388. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9389. hardcode_libdir_separator=:
  9390. hardcode_direct=yes
  9391. hardcode_direct_absolute=yes
  9392. export_dynamic_flag_spec='$wl-E'
  9393. # hardcode_minus_L: Not really in the search PATH,
  9394. # but as the default location of the library.
  9395. hardcode_minus_L=yes
  9396. fi
  9397. ;;
  9398. hpux11*)
  9399. if test yes,no = "$GCC,$with_gnu_ld"; then
  9400. case $host_cpu in
  9401. hppa*64*)
  9402. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9403. ;;
  9404. ia64*)
  9405. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9406. ;;
  9407. *)
  9408. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9409. ;;
  9410. esac
  9411. else
  9412. case $host_cpu in
  9413. hppa*64*)
  9414. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9415. ;;
  9416. ia64*)
  9417. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9418. ;;
  9419. *)
  9420. # Older versions of the 11.00 compiler do not understand -b yet
  9421. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9423. $as_echo_n "checking if $CC understands -b... " >&6; }
  9424. if ${lt_cv_prog_compiler__b+:} false; then :
  9425. $as_echo_n "(cached) " >&6
  9426. else
  9427. lt_cv_prog_compiler__b=no
  9428. save_LDFLAGS=$LDFLAGS
  9429. LDFLAGS="$LDFLAGS -b"
  9430. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9431. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9432. # The linker can only warn and ignore the option if not recognized
  9433. # So say no if there are warnings
  9434. if test -s conftest.err; then
  9435. # Append any errors to the config.log.
  9436. cat conftest.err 1>&5
  9437. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9438. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9439. if diff conftest.exp conftest.er2 >/dev/null; then
  9440. lt_cv_prog_compiler__b=yes
  9441. fi
  9442. else
  9443. lt_cv_prog_compiler__b=yes
  9444. fi
  9445. fi
  9446. $RM -r conftest*
  9447. LDFLAGS=$save_LDFLAGS
  9448. fi
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9450. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9451. if test yes = "$lt_cv_prog_compiler__b"; then
  9452. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9453. else
  9454. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9455. fi
  9456. ;;
  9457. esac
  9458. fi
  9459. if test no = "$with_gnu_ld"; then
  9460. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  9461. hardcode_libdir_separator=:
  9462. case $host_cpu in
  9463. hppa*64*|ia64*)
  9464. hardcode_direct=no
  9465. hardcode_shlibpath_var=no
  9466. ;;
  9467. *)
  9468. hardcode_direct=yes
  9469. hardcode_direct_absolute=yes
  9470. export_dynamic_flag_spec='$wl-E'
  9471. # hardcode_minus_L: Not really in the search PATH,
  9472. # but as the default location of the library.
  9473. hardcode_minus_L=yes
  9474. ;;
  9475. esac
  9476. fi
  9477. ;;
  9478. irix5* | irix6* | nonstopux*)
  9479. if test yes = "$GCC"; then
  9480. archive_cmds='$CC -shared $pic_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'
  9481. # Try to use the -exported_symbol ld option, if it does not
  9482. # work, assume that -exports_file does not work either and
  9483. # implicitly export all symbols.
  9484. # This should be the same for all languages, so no per-tag cache variable.
  9485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9486. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9487. if ${lt_cv_irix_exported_symbol+:} false; then :
  9488. $as_echo_n "(cached) " >&6
  9489. else
  9490. save_LDFLAGS=$LDFLAGS
  9491. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  9492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9493. /* end confdefs.h. */
  9494. int foo (void) { return 0; }
  9495. _ACEOF
  9496. if ac_fn_c_try_link "$LINENO"; then :
  9497. lt_cv_irix_exported_symbol=yes
  9498. else
  9499. lt_cv_irix_exported_symbol=no
  9500. fi
  9501. rm -f core conftest.err conftest.$ac_objext \
  9502. conftest$ac_exeext conftest.$ac_ext
  9503. LDFLAGS=$save_LDFLAGS
  9504. fi
  9505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9506. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9507. if test yes = "$lt_cv_irix_exported_symbol"; then
  9508. archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
  9509. fi
  9510. else
  9511. 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'
  9512. 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'
  9513. fi
  9514. archive_cmds_need_lc='no'
  9515. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9516. hardcode_libdir_separator=:
  9517. inherit_rpath=yes
  9518. link_all_deplibs=yes
  9519. ;;
  9520. linux*)
  9521. case $cc_basename in
  9522. tcc*)
  9523. # Fabrice Bellard et al's Tiny C Compiler
  9524. ld_shlibs=yes
  9525. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9526. ;;
  9527. esac
  9528. ;;
  9529. netbsd*)
  9530. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9531. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9532. else
  9533. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9534. fi
  9535. hardcode_libdir_flag_spec='-R$libdir'
  9536. hardcode_direct=yes
  9537. hardcode_shlibpath_var=no
  9538. ;;
  9539. newsos6)
  9540. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9541. hardcode_direct=yes
  9542. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9543. hardcode_libdir_separator=:
  9544. hardcode_shlibpath_var=no
  9545. ;;
  9546. *nto* | *qnx*)
  9547. ;;
  9548. openbsd* | bitrig*)
  9549. if test -f /usr/libexec/ld.so; then
  9550. hardcode_direct=yes
  9551. hardcode_shlibpath_var=no
  9552. hardcode_direct_absolute=yes
  9553. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9554. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9555. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  9556. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9557. export_dynamic_flag_spec='$wl-E'
  9558. else
  9559. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9560. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  9561. fi
  9562. else
  9563. ld_shlibs=no
  9564. fi
  9565. ;;
  9566. os2*)
  9567. hardcode_libdir_flag_spec='-L$libdir'
  9568. hardcode_minus_L=yes
  9569. allow_undefined_flag=unsupported
  9570. shrext_cmds=.dll
  9571. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9572. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9573. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9574. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9575. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  9576. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9577. emximp -o $lib $output_objdir/$libname.def'
  9578. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  9579. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  9580. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  9581. $ECHO EXPORTS >> $output_objdir/$libname.def~
  9582. prefix_cmds="$SED"~
  9583. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  9584. prefix_cmds="$prefix_cmds -e 1d";
  9585. fi~
  9586. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  9587. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  9588. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  9589. emximp -o $lib $output_objdir/$libname.def'
  9590. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  9591. enable_shared_with_static_runtimes=yes
  9592. ;;
  9593. osf3*)
  9594. if test yes = "$GCC"; then
  9595. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9596. 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'
  9597. else
  9598. allow_undefined_flag=' -expect_unresolved \*'
  9599. 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'
  9600. fi
  9601. archive_cmds_need_lc='no'
  9602. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9603. hardcode_libdir_separator=:
  9604. ;;
  9605. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9606. if test yes = "$GCC"; then
  9607. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  9608. archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
  9609. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  9610. else
  9611. allow_undefined_flag=' -expect_unresolved \*'
  9612. 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'
  9613. 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~
  9614. $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'
  9615. # Both c and cxx compiler support -rpath directly
  9616. hardcode_libdir_flag_spec='-rpath $libdir'
  9617. fi
  9618. archive_cmds_need_lc='no'
  9619. hardcode_libdir_separator=:
  9620. ;;
  9621. solaris*)
  9622. no_undefined_flag=' -z defs'
  9623. if test yes = "$GCC"; then
  9624. wlarc='$wl'
  9625. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  9626. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9627. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9628. else
  9629. case `$CC -V 2>&1` in
  9630. *"Compilers 5.0"*)
  9631. wlarc=''
  9632. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9633. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9634. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9635. ;;
  9636. *)
  9637. wlarc='$wl'
  9638. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9639. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9640. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9641. ;;
  9642. esac
  9643. fi
  9644. hardcode_libdir_flag_spec='-R$libdir'
  9645. hardcode_shlibpath_var=no
  9646. case $host_os in
  9647. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9648. *)
  9649. # The compiler driver will combine and reorder linker options,
  9650. # but understands '-z linker_flag'. GCC discards it without '$wl',
  9651. # but is careful enough not to reorder.
  9652. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9653. if test yes = "$GCC"; then
  9654. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  9655. else
  9656. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9657. fi
  9658. ;;
  9659. esac
  9660. link_all_deplibs=yes
  9661. ;;
  9662. sunos4*)
  9663. if test sequent = "$host_vendor"; then
  9664. # Use $CC to link under sequent, because it throws in some extra .o
  9665. # files that make .init and .fini sections work.
  9666. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9667. else
  9668. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9669. fi
  9670. hardcode_libdir_flag_spec='-L$libdir'
  9671. hardcode_direct=yes
  9672. hardcode_minus_L=yes
  9673. hardcode_shlibpath_var=no
  9674. ;;
  9675. sysv4)
  9676. case $host_vendor in
  9677. sni)
  9678. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9679. hardcode_direct=yes # is this really true???
  9680. ;;
  9681. siemens)
  9682. ## LD is ld it makes a PLAMLIB
  9683. ## CC just makes a GrossModule.
  9684. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9685. reload_cmds='$CC -r -o $output$reload_objs'
  9686. hardcode_direct=no
  9687. ;;
  9688. motorola)
  9689. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9690. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9691. ;;
  9692. esac
  9693. runpath_var='LD_RUN_PATH'
  9694. hardcode_shlibpath_var=no
  9695. ;;
  9696. sysv4.3*)
  9697. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9698. hardcode_shlibpath_var=no
  9699. export_dynamic_flag_spec='-Bexport'
  9700. ;;
  9701. sysv4*MP*)
  9702. if test -d /usr/nec; then
  9703. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9704. hardcode_shlibpath_var=no
  9705. runpath_var=LD_RUN_PATH
  9706. hardcode_runpath_var=yes
  9707. ld_shlibs=yes
  9708. fi
  9709. ;;
  9710. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9711. no_undefined_flag='$wl-z,text'
  9712. archive_cmds_need_lc=no
  9713. hardcode_shlibpath_var=no
  9714. runpath_var='LD_RUN_PATH'
  9715. if test yes = "$GCC"; then
  9716. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9717. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9718. else
  9719. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9720. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9721. fi
  9722. ;;
  9723. sysv5* | sco3.2v5* | sco5v6*)
  9724. # Note: We CANNOT use -z defs as we might desire, because we do not
  9725. # link with -lc, and that would cause any symbols used from libc to
  9726. # always be unresolved, which means just about no library would
  9727. # ever link correctly. If we're not using GNU ld we use -z text
  9728. # though, which does catch some bad symbols but isn't as heavy-handed
  9729. # as -z defs.
  9730. no_undefined_flag='$wl-z,text'
  9731. allow_undefined_flag='$wl-z,nodefs'
  9732. archive_cmds_need_lc=no
  9733. hardcode_shlibpath_var=no
  9734. hardcode_libdir_flag_spec='$wl-R,$libdir'
  9735. hardcode_libdir_separator=':'
  9736. link_all_deplibs=yes
  9737. export_dynamic_flag_spec='$wl-Bexport'
  9738. runpath_var='LD_RUN_PATH'
  9739. if test yes = "$GCC"; then
  9740. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9741. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9742. else
  9743. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9744. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9745. fi
  9746. ;;
  9747. uts4*)
  9748. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9749. hardcode_libdir_flag_spec='-L$libdir'
  9750. hardcode_shlibpath_var=no
  9751. ;;
  9752. *)
  9753. ld_shlibs=no
  9754. ;;
  9755. esac
  9756. if test sni = "$host_vendor"; then
  9757. case $host in
  9758. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9759. export_dynamic_flag_spec='$wl-Blargedynsym'
  9760. ;;
  9761. esac
  9762. fi
  9763. fi
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9765. $as_echo "$ld_shlibs" >&6; }
  9766. test no = "$ld_shlibs" && can_build_shared=no
  9767. with_gnu_ld=$with_gnu_ld
  9768. #
  9769. # Do we need to explicitly link libc?
  9770. #
  9771. case "x$archive_cmds_need_lc" in
  9772. x|xyes)
  9773. # Assume -lc should be added
  9774. archive_cmds_need_lc=yes
  9775. if test yes,yes = "$GCC,$enable_shared"; then
  9776. case $archive_cmds in
  9777. *'~'*)
  9778. # FIXME: we may have to deal with multi-command sequences.
  9779. ;;
  9780. '$CC '*)
  9781. # Test whether the compiler implicitly links with -lc since on some
  9782. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9783. # to ld, don't add -lc before -lgcc.
  9784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9785. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9786. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9787. $as_echo_n "(cached) " >&6
  9788. else
  9789. $RM conftest*
  9790. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9791. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9792. (eval $ac_compile) 2>&5
  9793. ac_status=$?
  9794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9795. test $ac_status = 0; } 2>conftest.err; then
  9796. soname=conftest
  9797. lib=conftest
  9798. libobjs=conftest.$ac_objext
  9799. deplibs=
  9800. wl=$lt_prog_compiler_wl
  9801. pic_flag=$lt_prog_compiler_pic
  9802. compiler_flags=-v
  9803. linker_flags=-v
  9804. verstring=
  9805. output_objdir=.
  9806. libname=conftest
  9807. lt_save_allow_undefined_flag=$allow_undefined_flag
  9808. allow_undefined_flag=
  9809. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9810. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9811. ac_status=$?
  9812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9813. test $ac_status = 0; }
  9814. then
  9815. lt_cv_archive_cmds_need_lc=no
  9816. else
  9817. lt_cv_archive_cmds_need_lc=yes
  9818. fi
  9819. allow_undefined_flag=$lt_save_allow_undefined_flag
  9820. else
  9821. cat conftest.err 1>&5
  9822. fi
  9823. $RM conftest*
  9824. fi
  9825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9826. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9827. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9828. ;;
  9829. esac
  9830. fi
  9831. ;;
  9832. esac
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9834. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9835. if test yes = "$GCC"; then
  9836. case $host_os in
  9837. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9838. *) lt_awk_arg='/^libraries:/' ;;
  9839. esac
  9840. case $host_os in
  9841. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9842. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9843. esac
  9844. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9845. case $lt_search_path_spec in
  9846. *\;*)
  9847. # if the path contains ";" then we assume it to be the separator
  9848. # otherwise default to the standard path separator (i.e. ":") - it is
  9849. # assumed that no part of a normal pathname contains ";" but that should
  9850. # okay in the real world where ";" in dirpaths is itself problematic.
  9851. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9852. ;;
  9853. *)
  9854. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9855. ;;
  9856. esac
  9857. # Ok, now we have the path, separated by spaces, we can step through it
  9858. # and add multilib dir if necessary...
  9859. lt_tmp_lt_search_path_spec=
  9860. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9861. # ...but if some path component already ends with the multilib dir we assume
  9862. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9863. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9864. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9865. lt_multi_os_dir=
  9866. ;;
  9867. esac
  9868. for lt_sys_path in $lt_search_path_spec; do
  9869. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9870. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9871. elif test -n "$lt_multi_os_dir"; then
  9872. test -d "$lt_sys_path" && \
  9873. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9874. fi
  9875. done
  9876. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9877. BEGIN {RS = " "; FS = "/|\n";} {
  9878. lt_foo = "";
  9879. lt_count = 0;
  9880. for (lt_i = NF; lt_i > 0; lt_i--) {
  9881. if ($lt_i != "" && $lt_i != ".") {
  9882. if ($lt_i == "..") {
  9883. lt_count++;
  9884. } else {
  9885. if (lt_count == 0) {
  9886. lt_foo = "/" $lt_i lt_foo;
  9887. } else {
  9888. lt_count--;
  9889. }
  9890. }
  9891. }
  9892. }
  9893. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9894. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9895. }'`
  9896. # AWK program above erroneously prepends '/' to C:/dos/paths
  9897. # for these hosts.
  9898. case $host_os in
  9899. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9900. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9901. esac
  9902. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9903. else
  9904. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9905. fi
  9906. library_names_spec=
  9907. libname_spec='lib$name'
  9908. soname_spec=
  9909. shrext_cmds=.so
  9910. postinstall_cmds=
  9911. postuninstall_cmds=
  9912. finish_cmds=
  9913. finish_eval=
  9914. shlibpath_var=
  9915. shlibpath_overrides_runpath=unknown
  9916. version_type=none
  9917. dynamic_linker="$host_os ld.so"
  9918. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9919. need_lib_prefix=unknown
  9920. hardcode_into_libs=no
  9921. # when you set need_version to no, make sure it does not cause -set_version
  9922. # flags to be left without arguments
  9923. need_version=unknown
  9924. case $host_os in
  9925. aix3*)
  9926. version_type=linux # correct to gnu/linux during the next big refactor
  9927. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9928. shlibpath_var=LIBPATH
  9929. # AIX 3 has no versioning support, so we append a major version to the name.
  9930. soname_spec='$libname$release$shared_ext$major'
  9931. ;;
  9932. aix[4-9]*)
  9933. version_type=linux # correct to gnu/linux during the next big refactor
  9934. need_lib_prefix=no
  9935. need_version=no
  9936. hardcode_into_libs=yes
  9937. if test ia64 = "$host_cpu"; then
  9938. # AIX 5 supports IA64
  9939. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9940. shlibpath_var=LD_LIBRARY_PATH
  9941. else
  9942. # With GCC up to 2.95.x, collect2 would create an import file
  9943. # for dependence libraries. The import file would start with
  9944. # the line '#! .'. This would cause the generated library to
  9945. # depend on '.', always an invalid library. This was fixed in
  9946. # development snapshots of GCC prior to 3.0.
  9947. case $host_os in
  9948. aix4 | aix4.[01] | aix4.[01].*)
  9949. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9950. echo ' yes '
  9951. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9952. :
  9953. else
  9954. can_build_shared=no
  9955. fi
  9956. ;;
  9957. esac
  9958. # Using Import Files as archive members, it is possible to support
  9959. # filename-based versioning of shared library archives on AIX. While
  9960. # this would work for both with and without runtime linking, it will
  9961. # prevent static linking of such archives. So we do filename-based
  9962. # shared library versioning with .so extension only, which is used
  9963. # when both runtime linking and shared linking is enabled.
  9964. # Unfortunately, runtime linking may impact performance, so we do
  9965. # not want this to be the default eventually. Also, we use the
  9966. # versioned .so libs for executables only if there is the -brtl
  9967. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9968. # To allow for filename-based versioning support, we need to create
  9969. # libNAME.so.V as an archive file, containing:
  9970. # *) an Import File, referring to the versioned filename of the
  9971. # archive as well as the shared archive member, telling the
  9972. # bitwidth (32 or 64) of that shared object, and providing the
  9973. # list of exported symbols of that shared object, eventually
  9974. # decorated with the 'weak' keyword
  9975. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9976. # it being seen by the linker.
  9977. # At run time we better use the real file rather than another symlink,
  9978. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9979. case $with_aix_soname,$aix_use_runtimelinking in
  9980. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9981. # soname into executable. Probably we can add versioning support to
  9982. # collect2, so additional links can be useful in future.
  9983. aix,yes) # traditional libtool
  9984. dynamic_linker='AIX unversionable lib.so'
  9985. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9986. # instead of lib<name>.a to let people know that these are not
  9987. # typical AIX shared libraries.
  9988. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9989. ;;
  9990. aix,no) # traditional AIX only
  9991. dynamic_linker='AIX lib.a(lib.so.V)'
  9992. # We preserve .a as extension for shared libraries through AIX4.2
  9993. # and later when we are not doing run time linking.
  9994. library_names_spec='$libname$release.a $libname.a'
  9995. soname_spec='$libname$release$shared_ext$major'
  9996. ;;
  9997. svr4,*) # full svr4 only
  9998. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9999. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10000. # We do not specify a path in Import Files, so LIBPATH fires.
  10001. shlibpath_overrides_runpath=yes
  10002. ;;
  10003. *,yes) # both, prefer svr4
  10004. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  10005. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  10006. # unpreferred sharedlib libNAME.a needs extra handling
  10007. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  10008. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  10009. # We do not specify a path in Import Files, so LIBPATH fires.
  10010. shlibpath_overrides_runpath=yes
  10011. ;;
  10012. *,no) # both, prefer aix
  10013. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  10014. library_names_spec='$libname$release.a $libname.a'
  10015. soname_spec='$libname$release$shared_ext$major'
  10016. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  10017. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  10018. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  10019. ;;
  10020. esac
  10021. shlibpath_var=LIBPATH
  10022. fi
  10023. ;;
  10024. amigaos*)
  10025. case $host_cpu in
  10026. powerpc)
  10027. # Since July 2007 AmigaOS4 officially supports .so libraries.
  10028. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  10029. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10030. ;;
  10031. m68k)
  10032. library_names_spec='$libname.ixlibrary $libname.a'
  10033. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10034. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  10035. ;;
  10036. esac
  10037. ;;
  10038. beos*)
  10039. library_names_spec='$libname$shared_ext'
  10040. dynamic_linker="$host_os ld.so"
  10041. shlibpath_var=LIBRARY_PATH
  10042. ;;
  10043. bsdi[45]*)
  10044. version_type=linux # correct to gnu/linux during the next big refactor
  10045. need_version=no
  10046. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10047. soname_spec='$libname$release$shared_ext$major'
  10048. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10049. shlibpath_var=LD_LIBRARY_PATH
  10050. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10051. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10052. # the default ld.so.conf also contains /usr/contrib/lib and
  10053. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10054. # libtool to hard-code these into programs
  10055. ;;
  10056. cygwin* | mingw* | pw32* | cegcc*)
  10057. version_type=windows
  10058. shrext_cmds=.dll
  10059. need_version=no
  10060. need_lib_prefix=no
  10061. case $GCC,$cc_basename in
  10062. yes,*)
  10063. # gcc
  10064. library_names_spec='$libname.dll.a'
  10065. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10066. postinstall_cmds='base_file=`basename \$file`~
  10067. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10068. dldir=$destdir/`dirname \$dlpath`~
  10069. test -d \$dldir || mkdir -p \$dldir~
  10070. $install_prog $dir/$dlname \$dldir/$dlname~
  10071. chmod a+x \$dldir/$dlname~
  10072. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10073. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10074. fi'
  10075. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10076. dlpath=$dir/\$dldll~
  10077. $RM \$dlpath'
  10078. shlibpath_overrides_runpath=yes
  10079. case $host_os in
  10080. cygwin*)
  10081. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10082. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10083. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  10084. ;;
  10085. mingw* | cegcc*)
  10086. # MinGW DLLs use traditional 'lib' prefix
  10087. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10088. ;;
  10089. pw32*)
  10090. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10091. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10092. ;;
  10093. esac
  10094. dynamic_linker='Win32 ld.exe'
  10095. ;;
  10096. *,cl*)
  10097. # Native MSVC
  10098. libname_spec='$name'
  10099. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  10100. library_names_spec='$libname.dll.lib'
  10101. case $build_os in
  10102. mingw*)
  10103. sys_lib_search_path_spec=
  10104. lt_save_ifs=$IFS
  10105. IFS=';'
  10106. for lt_path in $LIB
  10107. do
  10108. IFS=$lt_save_ifs
  10109. # Let DOS variable expansion print the short 8.3 style file name.
  10110. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  10111. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  10112. done
  10113. IFS=$lt_save_ifs
  10114. # Convert to MSYS style.
  10115. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  10116. ;;
  10117. cygwin*)
  10118. # Convert to unix form, then to dos form, then back to unix form
  10119. # but this time dos style (no spaces!) so that the unix form looks
  10120. # like /cygdrive/c/PROGRA~1:/cygdr...
  10121. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10122. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10123. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10124. ;;
  10125. *)
  10126. sys_lib_search_path_spec=$LIB
  10127. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10128. # It is most probably a Windows format PATH.
  10129. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10130. else
  10131. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10132. fi
  10133. # FIXME: find the short name or the path components, as spaces are
  10134. # common. (e.g. "Program Files" -> "PROGRA~1")
  10135. ;;
  10136. esac
  10137. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10138. postinstall_cmds='base_file=`basename \$file`~
  10139. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  10140. dldir=$destdir/`dirname \$dlpath`~
  10141. test -d \$dldir || mkdir -p \$dldir~
  10142. $install_prog $dir/$dlname \$dldir/$dlname'
  10143. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10144. dlpath=$dir/\$dldll~
  10145. $RM \$dlpath'
  10146. shlibpath_overrides_runpath=yes
  10147. dynamic_linker='Win32 link.exe'
  10148. ;;
  10149. *)
  10150. # Assume MSVC wrapper
  10151. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  10152. dynamic_linker='Win32 ld.exe'
  10153. ;;
  10154. esac
  10155. # FIXME: first we should search . and the directory the executable is in
  10156. shlibpath_var=PATH
  10157. ;;
  10158. darwin* | rhapsody*)
  10159. dynamic_linker="$host_os dyld"
  10160. version_type=darwin
  10161. need_lib_prefix=no
  10162. need_version=no
  10163. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  10164. soname_spec='$libname$release$major$shared_ext'
  10165. shlibpath_overrides_runpath=yes
  10166. shlibpath_var=DYLD_LIBRARY_PATH
  10167. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10168. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10169. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10170. ;;
  10171. dgux*)
  10172. version_type=linux # correct to gnu/linux during the next big refactor
  10173. need_lib_prefix=no
  10174. need_version=no
  10175. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10176. soname_spec='$libname$release$shared_ext$major'
  10177. shlibpath_var=LD_LIBRARY_PATH
  10178. ;;
  10179. freebsd* | dragonfly*)
  10180. # DragonFly does not have aout. When/if they implement a new
  10181. # versioning mechanism, adjust this.
  10182. if test -x /usr/bin/objformat; then
  10183. objformat=`/usr/bin/objformat`
  10184. else
  10185. case $host_os in
  10186. freebsd[23].*) objformat=aout ;;
  10187. *) objformat=elf ;;
  10188. esac
  10189. fi
  10190. version_type=freebsd-$objformat
  10191. case $version_type in
  10192. freebsd-elf*)
  10193. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10194. soname_spec='$libname$release$shared_ext$major'
  10195. need_version=no
  10196. need_lib_prefix=no
  10197. ;;
  10198. freebsd-*)
  10199. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10200. need_version=yes
  10201. ;;
  10202. esac
  10203. shlibpath_var=LD_LIBRARY_PATH
  10204. case $host_os in
  10205. freebsd2.*)
  10206. shlibpath_overrides_runpath=yes
  10207. ;;
  10208. freebsd3.[01]* | freebsdelf3.[01]*)
  10209. shlibpath_overrides_runpath=yes
  10210. hardcode_into_libs=yes
  10211. ;;
  10212. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10213. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10214. shlibpath_overrides_runpath=no
  10215. hardcode_into_libs=yes
  10216. ;;
  10217. *) # from 4.6 on, and DragonFly
  10218. shlibpath_overrides_runpath=yes
  10219. hardcode_into_libs=yes
  10220. ;;
  10221. esac
  10222. ;;
  10223. haiku*)
  10224. version_type=linux # correct to gnu/linux during the next big refactor
  10225. need_lib_prefix=no
  10226. need_version=no
  10227. dynamic_linker="$host_os runtime_loader"
  10228. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10229. soname_spec='$libname$release$shared_ext$major'
  10230. shlibpath_var=LIBRARY_PATH
  10231. shlibpath_overrides_runpath=no
  10232. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10233. hardcode_into_libs=yes
  10234. ;;
  10235. hpux9* | hpux10* | hpux11*)
  10236. # Give a soname corresponding to the major version so that dld.sl refuses to
  10237. # link against other versions.
  10238. version_type=sunos
  10239. need_lib_prefix=no
  10240. need_version=no
  10241. case $host_cpu in
  10242. ia64*)
  10243. shrext_cmds='.so'
  10244. hardcode_into_libs=yes
  10245. dynamic_linker="$host_os dld.so"
  10246. shlibpath_var=LD_LIBRARY_PATH
  10247. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10248. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10249. soname_spec='$libname$release$shared_ext$major'
  10250. if test 32 = "$HPUX_IA64_MODE"; then
  10251. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10252. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  10253. else
  10254. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10255. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  10256. fi
  10257. ;;
  10258. hppa*64*)
  10259. shrext_cmds='.sl'
  10260. hardcode_into_libs=yes
  10261. dynamic_linker="$host_os dld.sl"
  10262. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10263. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10264. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10265. soname_spec='$libname$release$shared_ext$major'
  10266. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10267. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10268. ;;
  10269. *)
  10270. shrext_cmds='.sl'
  10271. dynamic_linker="$host_os dld.sl"
  10272. shlibpath_var=SHLIB_PATH
  10273. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10274. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10275. soname_spec='$libname$release$shared_ext$major'
  10276. ;;
  10277. esac
  10278. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10279. postinstall_cmds='chmod 555 $lib'
  10280. # or fails outright, so override atomically:
  10281. install_override_mode=555
  10282. ;;
  10283. interix[3-9]*)
  10284. version_type=linux # correct to gnu/linux during the next big refactor
  10285. need_lib_prefix=no
  10286. need_version=no
  10287. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10288. soname_spec='$libname$release$shared_ext$major'
  10289. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10290. shlibpath_var=LD_LIBRARY_PATH
  10291. shlibpath_overrides_runpath=no
  10292. hardcode_into_libs=yes
  10293. ;;
  10294. irix5* | irix6* | nonstopux*)
  10295. case $host_os in
  10296. nonstopux*) version_type=nonstopux ;;
  10297. *)
  10298. if test yes = "$lt_cv_prog_gnu_ld"; then
  10299. version_type=linux # correct to gnu/linux during the next big refactor
  10300. else
  10301. version_type=irix
  10302. fi ;;
  10303. esac
  10304. need_lib_prefix=no
  10305. need_version=no
  10306. soname_spec='$libname$release$shared_ext$major'
  10307. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  10308. case $host_os in
  10309. irix5* | nonstopux*)
  10310. libsuff= shlibsuff=
  10311. ;;
  10312. *)
  10313. case $LD in # libtool.m4 will add one of these switches to LD
  10314. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10315. libsuff= shlibsuff= libmagic=32-bit;;
  10316. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10317. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10318. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10319. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10320. *) libsuff= shlibsuff= libmagic=never-match;;
  10321. esac
  10322. ;;
  10323. esac
  10324. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10325. shlibpath_overrides_runpath=no
  10326. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  10327. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  10328. hardcode_into_libs=yes
  10329. ;;
  10330. # No shared lib support for Linux oldld, aout, or coff.
  10331. linux*oldld* | linux*aout* | linux*coff*)
  10332. dynamic_linker=no
  10333. ;;
  10334. linux*android*)
  10335. version_type=none # Android doesn't support versioned libraries.
  10336. need_lib_prefix=no
  10337. need_version=no
  10338. library_names_spec='$libname$release$shared_ext'
  10339. soname_spec='$libname$release$shared_ext'
  10340. finish_cmds=
  10341. shlibpath_var=LD_LIBRARY_PATH
  10342. shlibpath_overrides_runpath=yes
  10343. # This implies no fast_install, which is unacceptable.
  10344. # Some rework will be needed to allow for fast_install
  10345. # before this can be enabled.
  10346. hardcode_into_libs=yes
  10347. dynamic_linker='Android linker'
  10348. # Don't embed -rpath directories since the linker doesn't support them.
  10349. hardcode_libdir_flag_spec='-L$libdir'
  10350. ;;
  10351. # This must be glibc/ELF.
  10352. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10353. version_type=linux # correct to gnu/linux during the next big refactor
  10354. need_lib_prefix=no
  10355. need_version=no
  10356. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10357. soname_spec='$libname$release$shared_ext$major'
  10358. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10359. shlibpath_var=LD_LIBRARY_PATH
  10360. shlibpath_overrides_runpath=no
  10361. # Some binutils ld are patched to set DT_RUNPATH
  10362. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10363. $as_echo_n "(cached) " >&6
  10364. else
  10365. lt_cv_shlibpath_overrides_runpath=no
  10366. save_LDFLAGS=$LDFLAGS
  10367. save_libdir=$libdir
  10368. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10369. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10371. /* end confdefs.h. */
  10372. int
  10373. main ()
  10374. {
  10375. ;
  10376. return 0;
  10377. }
  10378. _ACEOF
  10379. if ac_fn_c_try_link "$LINENO"; then :
  10380. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10381. lt_cv_shlibpath_overrides_runpath=yes
  10382. fi
  10383. fi
  10384. rm -f core conftest.err conftest.$ac_objext \
  10385. conftest$ac_exeext conftest.$ac_ext
  10386. LDFLAGS=$save_LDFLAGS
  10387. libdir=$save_libdir
  10388. fi
  10389. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10390. # This implies no fast_install, which is unacceptable.
  10391. # Some rework will be needed to allow for fast_install
  10392. # before this can be enabled.
  10393. hardcode_into_libs=yes
  10394. # Ideally, we could use ldconfig to report *all* directores which are
  10395. # searched for libraries, however this is still not possible. Aside from not
  10396. # being certain /sbin/ldconfig is available, command
  10397. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  10398. # even though it is searched at run-time. Try to do the best guess by
  10399. # appending ld.so.conf contents (and includes) to the search path.
  10400. if test -f /etc/ld.so.conf; then
  10401. 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' ' '`
  10402. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10403. fi
  10404. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10405. # powerpc, because MkLinux only supported shared libraries with the
  10406. # GNU dynamic linker. Since this was broken with cross compilers,
  10407. # most powerpc-linux boxes support dynamic linking these days and
  10408. # people can always --disable-shared, the test was removed, and we
  10409. # assume the GNU/Linux dynamic linker is in use.
  10410. dynamic_linker='GNU/Linux ld.so'
  10411. ;;
  10412. netbsd*)
  10413. version_type=sunos
  10414. need_lib_prefix=no
  10415. need_version=no
  10416. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10417. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10418. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10419. dynamic_linker='NetBSD (a.out) ld.so'
  10420. else
  10421. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10422. soname_spec='$libname$release$shared_ext$major'
  10423. dynamic_linker='NetBSD ld.elf_so'
  10424. fi
  10425. shlibpath_var=LD_LIBRARY_PATH
  10426. shlibpath_overrides_runpath=yes
  10427. hardcode_into_libs=yes
  10428. ;;
  10429. newsos6)
  10430. version_type=linux # correct to gnu/linux during the next big refactor
  10431. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10432. shlibpath_var=LD_LIBRARY_PATH
  10433. shlibpath_overrides_runpath=yes
  10434. ;;
  10435. *nto* | *qnx*)
  10436. version_type=qnx
  10437. need_lib_prefix=no
  10438. need_version=no
  10439. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10440. soname_spec='$libname$release$shared_ext$major'
  10441. shlibpath_var=LD_LIBRARY_PATH
  10442. shlibpath_overrides_runpath=no
  10443. hardcode_into_libs=yes
  10444. dynamic_linker='ldqnx.so'
  10445. ;;
  10446. openbsd* | bitrig*)
  10447. version_type=sunos
  10448. sys_lib_dlsearch_path_spec=/usr/lib
  10449. need_lib_prefix=no
  10450. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  10451. need_version=no
  10452. else
  10453. need_version=yes
  10454. fi
  10455. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10456. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10457. shlibpath_var=LD_LIBRARY_PATH
  10458. shlibpath_overrides_runpath=yes
  10459. ;;
  10460. os2*)
  10461. libname_spec='$name'
  10462. version_type=windows
  10463. shrext_cmds=.dll
  10464. need_version=no
  10465. need_lib_prefix=no
  10466. # OS/2 can only load a DLL with a base name of 8 characters or less.
  10467. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  10468. v=$($ECHO $release$versuffix | tr -d .-);
  10469. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  10470. $ECHO $n$v`$shared_ext'
  10471. library_names_spec='${libname}_dll.$libext'
  10472. dynamic_linker='OS/2 ld.exe'
  10473. shlibpath_var=BEGINLIBPATH
  10474. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10475. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10476. postinstall_cmds='base_file=`basename \$file`~
  10477. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  10478. dldir=$destdir/`dirname \$dlpath`~
  10479. test -d \$dldir || mkdir -p \$dldir~
  10480. $install_prog $dir/$dlname \$dldir/$dlname~
  10481. chmod a+x \$dldir/$dlname~
  10482. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  10483. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  10484. fi'
  10485. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  10486. dlpath=$dir/\$dldll~
  10487. $RM \$dlpath'
  10488. ;;
  10489. osf3* | osf4* | osf5*)
  10490. version_type=osf
  10491. need_lib_prefix=no
  10492. need_version=no
  10493. soname_spec='$libname$release$shared_ext$major'
  10494. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10495. shlibpath_var=LD_LIBRARY_PATH
  10496. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10497. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10498. ;;
  10499. rdos*)
  10500. dynamic_linker=no
  10501. ;;
  10502. solaris*)
  10503. version_type=linux # correct to gnu/linux during the next big refactor
  10504. need_lib_prefix=no
  10505. need_version=no
  10506. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10507. soname_spec='$libname$release$shared_ext$major'
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. shlibpath_overrides_runpath=yes
  10510. hardcode_into_libs=yes
  10511. # ldd complains unless libraries are executable
  10512. postinstall_cmds='chmod +x $lib'
  10513. ;;
  10514. sunos4*)
  10515. version_type=sunos
  10516. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  10517. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10518. shlibpath_var=LD_LIBRARY_PATH
  10519. shlibpath_overrides_runpath=yes
  10520. if test yes = "$with_gnu_ld"; then
  10521. need_lib_prefix=no
  10522. fi
  10523. need_version=yes
  10524. ;;
  10525. sysv4 | sysv4.3*)
  10526. version_type=linux # correct to gnu/linux during the next big refactor
  10527. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10528. soname_spec='$libname$release$shared_ext$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. case $host_vendor in
  10531. sni)
  10532. shlibpath_overrides_runpath=no
  10533. need_lib_prefix=no
  10534. runpath_var=LD_RUN_PATH
  10535. ;;
  10536. siemens)
  10537. need_lib_prefix=no
  10538. ;;
  10539. motorola)
  10540. need_lib_prefix=no
  10541. need_version=no
  10542. shlibpath_overrides_runpath=no
  10543. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10544. ;;
  10545. esac
  10546. ;;
  10547. sysv4*MP*)
  10548. if test -d /usr/nec; then
  10549. version_type=linux # correct to gnu/linux during the next big refactor
  10550. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  10551. soname_spec='$libname$shared_ext.$major'
  10552. shlibpath_var=LD_LIBRARY_PATH
  10553. fi
  10554. ;;
  10555. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10556. version_type=sco
  10557. need_lib_prefix=no
  10558. need_version=no
  10559. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  10560. soname_spec='$libname$release$shared_ext$major'
  10561. shlibpath_var=LD_LIBRARY_PATH
  10562. shlibpath_overrides_runpath=yes
  10563. hardcode_into_libs=yes
  10564. if test yes = "$with_gnu_ld"; then
  10565. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10566. else
  10567. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10568. case $host_os in
  10569. sco3.2v5*)
  10570. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10571. ;;
  10572. esac
  10573. fi
  10574. sys_lib_dlsearch_path_spec='/usr/lib'
  10575. ;;
  10576. tpf*)
  10577. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10578. version_type=linux # correct to gnu/linux during the next big refactor
  10579. need_lib_prefix=no
  10580. need_version=no
  10581. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10582. shlibpath_var=LD_LIBRARY_PATH
  10583. shlibpath_overrides_runpath=no
  10584. hardcode_into_libs=yes
  10585. ;;
  10586. uts4*)
  10587. version_type=linux # correct to gnu/linux during the next big refactor
  10588. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  10589. soname_spec='$libname$release$shared_ext$major'
  10590. shlibpath_var=LD_LIBRARY_PATH
  10591. ;;
  10592. *)
  10593. dynamic_linker=no
  10594. ;;
  10595. esac
  10596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10597. $as_echo "$dynamic_linker" >&6; }
  10598. test no = "$dynamic_linker" && can_build_shared=no
  10599. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10600. if test yes = "$GCC"; then
  10601. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10602. fi
  10603. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  10604. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  10605. fi
  10606. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  10607. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  10608. fi
  10609. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  10610. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  10611. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  10612. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  10613. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  10614. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  10615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10616. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10617. hardcode_action=
  10618. if test -n "$hardcode_libdir_flag_spec" ||
  10619. test -n "$runpath_var" ||
  10620. test yes = "$hardcode_automatic"; then
  10621. # We can hardcode non-existent directories.
  10622. if test no != "$hardcode_direct" &&
  10623. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10624. # have to relink, otherwise we might link with an installed library
  10625. # when we should be linking with a yet-to-be-installed one
  10626. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  10627. test no != "$hardcode_minus_L"; then
  10628. # Linking always hardcodes the temporary library directory.
  10629. hardcode_action=relink
  10630. else
  10631. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10632. hardcode_action=immediate
  10633. fi
  10634. else
  10635. # We cannot hardcode anything, or else we can only hardcode existing
  10636. # directories.
  10637. hardcode_action=unsupported
  10638. fi
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10640. $as_echo "$hardcode_action" >&6; }
  10641. if test relink = "$hardcode_action" ||
  10642. test yes = "$inherit_rpath"; then
  10643. # Fast installation is not supported
  10644. enable_fast_install=no
  10645. elif test yes = "$shlibpath_overrides_runpath" ||
  10646. test no = "$enable_shared"; then
  10647. # Fast installation is not necessary
  10648. enable_fast_install=needless
  10649. fi
  10650. if test yes != "$enable_dlopen"; then
  10651. enable_dlopen=unknown
  10652. enable_dlopen_self=unknown
  10653. enable_dlopen_self_static=unknown
  10654. else
  10655. lt_cv_dlopen=no
  10656. lt_cv_dlopen_libs=
  10657. case $host_os in
  10658. beos*)
  10659. lt_cv_dlopen=load_add_on
  10660. lt_cv_dlopen_libs=
  10661. lt_cv_dlopen_self=yes
  10662. ;;
  10663. mingw* | pw32* | cegcc*)
  10664. lt_cv_dlopen=LoadLibrary
  10665. lt_cv_dlopen_libs=
  10666. ;;
  10667. cygwin*)
  10668. lt_cv_dlopen=dlopen
  10669. lt_cv_dlopen_libs=
  10670. ;;
  10671. darwin*)
  10672. # if libdl is installed we need to link against it
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10674. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10675. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10676. $as_echo_n "(cached) " >&6
  10677. else
  10678. ac_check_lib_save_LIBS=$LIBS
  10679. LIBS="-ldl $LIBS"
  10680. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10681. /* end confdefs.h. */
  10682. /* Override any GCC internal prototype to avoid an error.
  10683. Use char because int might match the return type of a GCC
  10684. builtin and then its argument prototype would still apply. */
  10685. #ifdef __cplusplus
  10686. extern "C"
  10687. #endif
  10688. char dlopen ();
  10689. int
  10690. main ()
  10691. {
  10692. return dlopen ();
  10693. ;
  10694. return 0;
  10695. }
  10696. _ACEOF
  10697. if ac_fn_c_try_link "$LINENO"; then :
  10698. ac_cv_lib_dl_dlopen=yes
  10699. else
  10700. ac_cv_lib_dl_dlopen=no
  10701. fi
  10702. rm -f core conftest.err conftest.$ac_objext \
  10703. conftest$ac_exeext conftest.$ac_ext
  10704. LIBS=$ac_check_lib_save_LIBS
  10705. fi
  10706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10707. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10708. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10709. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10710. else
  10711. lt_cv_dlopen=dyld
  10712. lt_cv_dlopen_libs=
  10713. lt_cv_dlopen_self=yes
  10714. fi
  10715. ;;
  10716. tpf*)
  10717. # Don't try to run any link tests for TPF. We know it's impossible
  10718. # because TPF is a cross-compiler, and we know how we open DSOs.
  10719. lt_cv_dlopen=dlopen
  10720. lt_cv_dlopen_libs=
  10721. lt_cv_dlopen_self=no
  10722. ;;
  10723. *)
  10724. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10725. if test "x$ac_cv_func_shl_load" = xyes; then :
  10726. lt_cv_dlopen=shl_load
  10727. else
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10729. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10730. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10731. $as_echo_n "(cached) " >&6
  10732. else
  10733. ac_check_lib_save_LIBS=$LIBS
  10734. LIBS="-ldld $LIBS"
  10735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10736. /* end confdefs.h. */
  10737. /* Override any GCC internal prototype to avoid an error.
  10738. Use char because int might match the return type of a GCC
  10739. builtin and then its argument prototype would still apply. */
  10740. #ifdef __cplusplus
  10741. extern "C"
  10742. #endif
  10743. char shl_load ();
  10744. int
  10745. main ()
  10746. {
  10747. return shl_load ();
  10748. ;
  10749. return 0;
  10750. }
  10751. _ACEOF
  10752. if ac_fn_c_try_link "$LINENO"; then :
  10753. ac_cv_lib_dld_shl_load=yes
  10754. else
  10755. ac_cv_lib_dld_shl_load=no
  10756. fi
  10757. rm -f core conftest.err conftest.$ac_objext \
  10758. conftest$ac_exeext conftest.$ac_ext
  10759. LIBS=$ac_check_lib_save_LIBS
  10760. fi
  10761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10762. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10763. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10764. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  10765. else
  10766. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10767. if test "x$ac_cv_func_dlopen" = xyes; then :
  10768. lt_cv_dlopen=dlopen
  10769. else
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10771. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10772. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10773. $as_echo_n "(cached) " >&6
  10774. else
  10775. ac_check_lib_save_LIBS=$LIBS
  10776. LIBS="-ldl $LIBS"
  10777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10778. /* end confdefs.h. */
  10779. /* Override any GCC internal prototype to avoid an error.
  10780. Use char because int might match the return type of a GCC
  10781. builtin and then its argument prototype would still apply. */
  10782. #ifdef __cplusplus
  10783. extern "C"
  10784. #endif
  10785. char dlopen ();
  10786. int
  10787. main ()
  10788. {
  10789. return dlopen ();
  10790. ;
  10791. return 0;
  10792. }
  10793. _ACEOF
  10794. if ac_fn_c_try_link "$LINENO"; then :
  10795. ac_cv_lib_dl_dlopen=yes
  10796. else
  10797. ac_cv_lib_dl_dlopen=no
  10798. fi
  10799. rm -f core conftest.err conftest.$ac_objext \
  10800. conftest$ac_exeext conftest.$ac_ext
  10801. LIBS=$ac_check_lib_save_LIBS
  10802. fi
  10803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10804. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10805. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10806. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  10807. else
  10808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10809. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10810. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10811. $as_echo_n "(cached) " >&6
  10812. else
  10813. ac_check_lib_save_LIBS=$LIBS
  10814. LIBS="-lsvld $LIBS"
  10815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10816. /* end confdefs.h. */
  10817. /* Override any GCC internal prototype to avoid an error.
  10818. Use char because int might match the return type of a GCC
  10819. builtin and then its argument prototype would still apply. */
  10820. #ifdef __cplusplus
  10821. extern "C"
  10822. #endif
  10823. char dlopen ();
  10824. int
  10825. main ()
  10826. {
  10827. return dlopen ();
  10828. ;
  10829. return 0;
  10830. }
  10831. _ACEOF
  10832. if ac_fn_c_try_link "$LINENO"; then :
  10833. ac_cv_lib_svld_dlopen=yes
  10834. else
  10835. ac_cv_lib_svld_dlopen=no
  10836. fi
  10837. rm -f core conftest.err conftest.$ac_objext \
  10838. conftest$ac_exeext conftest.$ac_ext
  10839. LIBS=$ac_check_lib_save_LIBS
  10840. fi
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10842. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10843. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10844. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10845. else
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10847. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10848. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10849. $as_echo_n "(cached) " >&6
  10850. else
  10851. ac_check_lib_save_LIBS=$LIBS
  10852. LIBS="-ldld $LIBS"
  10853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10854. /* end confdefs.h. */
  10855. /* Override any GCC internal prototype to avoid an error.
  10856. Use char because int might match the return type of a GCC
  10857. builtin and then its argument prototype would still apply. */
  10858. #ifdef __cplusplus
  10859. extern "C"
  10860. #endif
  10861. char dld_link ();
  10862. int
  10863. main ()
  10864. {
  10865. return dld_link ();
  10866. ;
  10867. return 0;
  10868. }
  10869. _ACEOF
  10870. if ac_fn_c_try_link "$LINENO"; then :
  10871. ac_cv_lib_dld_dld_link=yes
  10872. else
  10873. ac_cv_lib_dld_dld_link=no
  10874. fi
  10875. rm -f core conftest.err conftest.$ac_objext \
  10876. conftest$ac_exeext conftest.$ac_ext
  10877. LIBS=$ac_check_lib_save_LIBS
  10878. fi
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10880. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10881. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10882. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10883. fi
  10884. fi
  10885. fi
  10886. fi
  10887. fi
  10888. fi
  10889. ;;
  10890. esac
  10891. if test no = "$lt_cv_dlopen"; then
  10892. enable_dlopen=no
  10893. else
  10894. enable_dlopen=yes
  10895. fi
  10896. case $lt_cv_dlopen in
  10897. dlopen)
  10898. save_CPPFLAGS=$CPPFLAGS
  10899. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10900. save_LDFLAGS=$LDFLAGS
  10901. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10902. save_LIBS=$LIBS
  10903. LIBS="$lt_cv_dlopen_libs $LIBS"
  10904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10905. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10906. if ${lt_cv_dlopen_self+:} false; then :
  10907. $as_echo_n "(cached) " >&6
  10908. else
  10909. if test yes = "$cross_compiling"; then :
  10910. lt_cv_dlopen_self=cross
  10911. else
  10912. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10913. lt_status=$lt_dlunknown
  10914. cat > conftest.$ac_ext <<_LT_EOF
  10915. #line $LINENO "configure"
  10916. #include "confdefs.h"
  10917. #if HAVE_DLFCN_H
  10918. #include <dlfcn.h>
  10919. #endif
  10920. #include <stdio.h>
  10921. #ifdef RTLD_GLOBAL
  10922. # define LT_DLGLOBAL RTLD_GLOBAL
  10923. #else
  10924. # ifdef DL_GLOBAL
  10925. # define LT_DLGLOBAL DL_GLOBAL
  10926. # else
  10927. # define LT_DLGLOBAL 0
  10928. # endif
  10929. #endif
  10930. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10931. find out it does not work in some platform. */
  10932. #ifndef LT_DLLAZY_OR_NOW
  10933. # ifdef RTLD_LAZY
  10934. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10935. # else
  10936. # ifdef DL_LAZY
  10937. # define LT_DLLAZY_OR_NOW DL_LAZY
  10938. # else
  10939. # ifdef RTLD_NOW
  10940. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10941. # else
  10942. # ifdef DL_NOW
  10943. # define LT_DLLAZY_OR_NOW DL_NOW
  10944. # else
  10945. # define LT_DLLAZY_OR_NOW 0
  10946. # endif
  10947. # endif
  10948. # endif
  10949. # endif
  10950. #endif
  10951. /* When -fvisibility=hidden is used, assume the code has been annotated
  10952. correspondingly for the symbols needed. */
  10953. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10954. int fnord () __attribute__((visibility("default")));
  10955. #endif
  10956. int fnord () { return 42; }
  10957. int main ()
  10958. {
  10959. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10960. int status = $lt_dlunknown;
  10961. if (self)
  10962. {
  10963. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10964. else
  10965. {
  10966. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10967. else puts (dlerror ());
  10968. }
  10969. /* dlclose (self); */
  10970. }
  10971. else
  10972. puts (dlerror ());
  10973. return status;
  10974. }
  10975. _LT_EOF
  10976. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10977. (eval $ac_link) 2>&5
  10978. ac_status=$?
  10979. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10980. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10981. (./conftest; exit; ) >&5 2>/dev/null
  10982. lt_status=$?
  10983. case x$lt_status in
  10984. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10985. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10986. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10987. esac
  10988. else :
  10989. # compilation failed
  10990. lt_cv_dlopen_self=no
  10991. fi
  10992. fi
  10993. rm -fr conftest*
  10994. fi
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10996. $as_echo "$lt_cv_dlopen_self" >&6; }
  10997. if test yes = "$lt_cv_dlopen_self"; then
  10998. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11000. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11001. if ${lt_cv_dlopen_self_static+:} false; then :
  11002. $as_echo_n "(cached) " >&6
  11003. else
  11004. if test yes = "$cross_compiling"; then :
  11005. lt_cv_dlopen_self_static=cross
  11006. else
  11007. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11008. lt_status=$lt_dlunknown
  11009. cat > conftest.$ac_ext <<_LT_EOF
  11010. #line $LINENO "configure"
  11011. #include "confdefs.h"
  11012. #if HAVE_DLFCN_H
  11013. #include <dlfcn.h>
  11014. #endif
  11015. #include <stdio.h>
  11016. #ifdef RTLD_GLOBAL
  11017. # define LT_DLGLOBAL RTLD_GLOBAL
  11018. #else
  11019. # ifdef DL_GLOBAL
  11020. # define LT_DLGLOBAL DL_GLOBAL
  11021. # else
  11022. # define LT_DLGLOBAL 0
  11023. # endif
  11024. #endif
  11025. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11026. find out it does not work in some platform. */
  11027. #ifndef LT_DLLAZY_OR_NOW
  11028. # ifdef RTLD_LAZY
  11029. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11030. # else
  11031. # ifdef DL_LAZY
  11032. # define LT_DLLAZY_OR_NOW DL_LAZY
  11033. # else
  11034. # ifdef RTLD_NOW
  11035. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11036. # else
  11037. # ifdef DL_NOW
  11038. # define LT_DLLAZY_OR_NOW DL_NOW
  11039. # else
  11040. # define LT_DLLAZY_OR_NOW 0
  11041. # endif
  11042. # endif
  11043. # endif
  11044. # endif
  11045. #endif
  11046. /* When -fvisibility=hidden is used, assume the code has been annotated
  11047. correspondingly for the symbols needed. */
  11048. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  11049. int fnord () __attribute__((visibility("default")));
  11050. #endif
  11051. int fnord () { return 42; }
  11052. int main ()
  11053. {
  11054. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11055. int status = $lt_dlunknown;
  11056. if (self)
  11057. {
  11058. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11059. else
  11060. {
  11061. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11062. else puts (dlerror ());
  11063. }
  11064. /* dlclose (self); */
  11065. }
  11066. else
  11067. puts (dlerror ());
  11068. return status;
  11069. }
  11070. _LT_EOF
  11071. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11072. (eval $ac_link) 2>&5
  11073. ac_status=$?
  11074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11075. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  11076. (./conftest; exit; ) >&5 2>/dev/null
  11077. lt_status=$?
  11078. case x$lt_status in
  11079. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11080. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11081. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11082. esac
  11083. else :
  11084. # compilation failed
  11085. lt_cv_dlopen_self_static=no
  11086. fi
  11087. fi
  11088. rm -fr conftest*
  11089. fi
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11091. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11092. fi
  11093. CPPFLAGS=$save_CPPFLAGS
  11094. LDFLAGS=$save_LDFLAGS
  11095. LIBS=$save_LIBS
  11096. ;;
  11097. esac
  11098. case $lt_cv_dlopen_self in
  11099. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11100. *) enable_dlopen_self=unknown ;;
  11101. esac
  11102. case $lt_cv_dlopen_self_static in
  11103. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11104. *) enable_dlopen_self_static=unknown ;;
  11105. esac
  11106. fi
  11107. striplib=
  11108. old_striplib=
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  11110. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11111. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11112. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11113. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11115. $as_echo "yes" >&6; }
  11116. else
  11117. # FIXME - insert some real tests, host_os isn't really good enough
  11118. case $host_os in
  11119. darwin*)
  11120. if test -n "$STRIP"; then
  11121. striplib="$STRIP -x"
  11122. old_striplib="$STRIP -S"
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11124. $as_echo "yes" >&6; }
  11125. else
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11127. $as_echo "no" >&6; }
  11128. fi
  11129. ;;
  11130. *)
  11131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11132. $as_echo "no" >&6; }
  11133. ;;
  11134. esac
  11135. fi
  11136. # Report what library types will actually be built
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11138. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11140. $as_echo "$can_build_shared" >&6; }
  11141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11142. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11143. test no = "$can_build_shared" && enable_shared=no
  11144. # On AIX, shared libraries and static libraries use the same namespace, and
  11145. # are all built from PIC.
  11146. case $host_os in
  11147. aix3*)
  11148. test yes = "$enable_shared" && enable_static=no
  11149. if test -n "$RANLIB"; then
  11150. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11151. postinstall_cmds='$RANLIB $lib'
  11152. fi
  11153. ;;
  11154. aix[4-9]*)
  11155. if test ia64 != "$host_cpu"; then
  11156. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  11157. yes,aix,yes) ;; # shared object as lib.so file only
  11158. yes,svr4,*) ;; # shared object as lib.so archive member only
  11159. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  11160. esac
  11161. fi
  11162. ;;
  11163. esac
  11164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11165. $as_echo "$enable_shared" >&6; }
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11167. $as_echo_n "checking whether to build static libraries... " >&6; }
  11168. # Make sure either enable_shared or enable_static is yes.
  11169. test yes = "$enable_shared" || enable_static=yes
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11171. $as_echo "$enable_static" >&6; }
  11172. fi
  11173. ac_ext=c
  11174. ac_cpp='$CPP $CPPFLAGS'
  11175. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11176. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11177. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11178. CC=$lt_save_CC
  11179. ac_config_commands="$ac_config_commands libtool"
  11180. # Only expand once:
  11181. CFLAG_VISIBILITY=
  11182. HAVE_VISIBILITY=0
  11183. if test -n "$GCC"; then
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  11185. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  11186. if ${gl_cv_cc_vis_werror+:} false; then :
  11187. $as_echo_n "(cached) " >&6
  11188. else
  11189. gl_save_CFLAGS="$CFLAGS"
  11190. CFLAGS="$CFLAGS -Werror"
  11191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11192. /* end confdefs.h. */
  11193. int
  11194. main ()
  11195. {
  11196. ;
  11197. return 0;
  11198. }
  11199. _ACEOF
  11200. if ac_fn_c_try_compile "$LINENO"; then :
  11201. gl_cv_cc_vis_werror=yes
  11202. else
  11203. gl_cv_cc_vis_werror=no
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11206. CFLAGS="$gl_save_CFLAGS"
  11207. fi
  11208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  11209. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  11211. $as_echo_n "checking for simple visibility declarations... " >&6; }
  11212. if ${gl_cv_cc_visibility+:} false; then :
  11213. $as_echo_n "(cached) " >&6
  11214. else
  11215. gl_save_CFLAGS="$CFLAGS"
  11216. CFLAGS="$CFLAGS -fvisibility=hidden"
  11217. if test $gl_cv_cc_vis_werror = yes; then
  11218. CFLAGS="$CFLAGS -Werror"
  11219. fi
  11220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11221. /* end confdefs.h. */
  11222. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  11223. extern __attribute__((__visibility__("default"))) int exportedvar;
  11224. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  11225. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  11226. void dummyfunc (void) {}
  11227. int
  11228. main ()
  11229. {
  11230. ;
  11231. return 0;
  11232. }
  11233. _ACEOF
  11234. if ac_fn_c_try_compile "$LINENO"; then :
  11235. gl_cv_cc_visibility=yes
  11236. else
  11237. gl_cv_cc_visibility=no
  11238. fi
  11239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11240. CFLAGS="$gl_save_CFLAGS"
  11241. fi
  11242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  11243. $as_echo "$gl_cv_cc_visibility" >&6; }
  11244. if test $gl_cv_cc_visibility = yes; then
  11245. CFLAG_VISIBILITY="-fvisibility=hidden"
  11246. HAVE_VISIBILITY=1
  11247. fi
  11248. fi
  11249. cat >>confdefs.h <<_ACEOF
  11250. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  11251. _ACEOF
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11253. $as_echo_n "checking for ANSI C header files... " >&6; }
  11254. if ${ac_cv_header_stdc+:} false; then :
  11255. $as_echo_n "(cached) " >&6
  11256. else
  11257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11258. /* end confdefs.h. */
  11259. #include <stdlib.h>
  11260. #include <stdarg.h>
  11261. #include <string.h>
  11262. #include <float.h>
  11263. int
  11264. main ()
  11265. {
  11266. ;
  11267. return 0;
  11268. }
  11269. _ACEOF
  11270. if ac_fn_c_try_compile "$LINENO"; then :
  11271. ac_cv_header_stdc=yes
  11272. else
  11273. ac_cv_header_stdc=no
  11274. fi
  11275. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11276. if test $ac_cv_header_stdc = yes; then
  11277. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11279. /* end confdefs.h. */
  11280. #include <string.h>
  11281. _ACEOF
  11282. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11283. $EGREP "memchr" >/dev/null 2>&1; then :
  11284. else
  11285. ac_cv_header_stdc=no
  11286. fi
  11287. rm -f conftest*
  11288. fi
  11289. if test $ac_cv_header_stdc = yes; then
  11290. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11292. /* end confdefs.h. */
  11293. #include <stdlib.h>
  11294. _ACEOF
  11295. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11296. $EGREP "free" >/dev/null 2>&1; then :
  11297. else
  11298. ac_cv_header_stdc=no
  11299. fi
  11300. rm -f conftest*
  11301. fi
  11302. if test $ac_cv_header_stdc = yes; then
  11303. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11304. if test "$cross_compiling" = yes; then :
  11305. :
  11306. else
  11307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11308. /* end confdefs.h. */
  11309. #include <ctype.h>
  11310. #include <stdlib.h>
  11311. #if ((' ' & 0x0FF) == 0x020)
  11312. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11313. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11314. #else
  11315. # define ISLOWER(c) \
  11316. (('a' <= (c) && (c) <= 'i') \
  11317. || ('j' <= (c) && (c) <= 'r') \
  11318. || ('s' <= (c) && (c) <= 'z'))
  11319. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11320. #endif
  11321. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11322. int
  11323. main ()
  11324. {
  11325. int i;
  11326. for (i = 0; i < 256; i++)
  11327. if (XOR (islower (i), ISLOWER (i))
  11328. || toupper (i) != TOUPPER (i))
  11329. return 2;
  11330. return 0;
  11331. }
  11332. _ACEOF
  11333. if ac_fn_c_try_run "$LINENO"; then :
  11334. else
  11335. ac_cv_header_stdc=no
  11336. fi
  11337. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11338. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11339. fi
  11340. fi
  11341. fi
  11342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11343. $as_echo "$ac_cv_header_stdc" >&6; }
  11344. if test $ac_cv_header_stdc = yes; then
  11345. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11346. fi
  11347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  11348. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  11349. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  11350. $as_echo_n "(cached) " >&6
  11351. else
  11352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11353. /* end confdefs.h. */
  11354. #include <sys/types.h>
  11355. int
  11356. main ()
  11357. {
  11358. return makedev(0, 0);
  11359. ;
  11360. return 0;
  11361. }
  11362. _ACEOF
  11363. if ac_fn_c_try_link "$LINENO"; then :
  11364. ac_cv_header_sys_types_h_makedev=yes
  11365. else
  11366. ac_cv_header_sys_types_h_makedev=no
  11367. fi
  11368. rm -f core conftest.err conftest.$ac_objext \
  11369. conftest$ac_exeext conftest.$ac_ext
  11370. fi
  11371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  11372. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  11373. if test $ac_cv_header_sys_types_h_makedev = no; then
  11374. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  11375. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  11376. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  11377. fi
  11378. if test $ac_cv_header_sys_mkdev_h = no; then
  11379. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  11380. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  11381. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  11382. fi
  11383. fi
  11384. fi
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  11386. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  11387. if ${ac_cv_header_sys_wait_h+:} false; then :
  11388. $as_echo_n "(cached) " >&6
  11389. else
  11390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11391. /* end confdefs.h. */
  11392. #include <sys/types.h>
  11393. #include <sys/wait.h>
  11394. #ifndef WEXITSTATUS
  11395. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  11396. #endif
  11397. #ifndef WIFEXITED
  11398. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  11399. #endif
  11400. int
  11401. main ()
  11402. {
  11403. int s;
  11404. wait (&s);
  11405. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  11406. ;
  11407. return 0;
  11408. }
  11409. _ACEOF
  11410. if ac_fn_c_try_compile "$LINENO"; then :
  11411. ac_cv_header_sys_wait_h=yes
  11412. else
  11413. ac_cv_header_sys_wait_h=no
  11414. fi
  11415. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11416. fi
  11417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  11418. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  11419. if test $ac_cv_header_sys_wait_h = yes; then
  11420. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  11421. fi
  11422. for ac_header in stdint.h fcntl.h inttypes.h unistd.h
  11423. do :
  11424. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11425. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11426. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11427. cat >>confdefs.h <<_ACEOF
  11428. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11429. _ACEOF
  11430. fi
  11431. done
  11432. for ac_header in utime.h wchar.h wctype.h
  11433. do :
  11434. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11435. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11436. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11437. cat >>confdefs.h <<_ACEOF
  11438. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11439. _ACEOF
  11440. fi
  11441. done
  11442. for ac_header in getopt.h err.h xlocale.h
  11443. do :
  11444. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11445. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11446. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11447. cat >>confdefs.h <<_ACEOF
  11448. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11449. _ACEOF
  11450. fi
  11451. done
  11452. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
  11453. do :
  11454. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11455. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11456. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11457. cat >>confdefs.h <<_ACEOF
  11458. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11459. _ACEOF
  11460. fi
  11461. done
  11462. if test "$enable_zlib" != "no"; then
  11463. for ac_header in zlib.h
  11464. do :
  11465. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  11466. if test "x$ac_cv_header_zlib_h" = xyes; then :
  11467. cat >>confdefs.h <<_ACEOF
  11468. #define HAVE_ZLIB_H 1
  11469. _ACEOF
  11470. fi
  11471. done
  11472. fi
  11473. if test "$enable_bzlib" != "no"; then
  11474. for ac_header in bzlib.h
  11475. do :
  11476. ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
  11477. if test "x$ac_cv_header_bzlib_h" = xyes; then :
  11478. cat >>confdefs.h <<_ACEOF
  11479. #define HAVE_BZLIB_H 1
  11480. _ACEOF
  11481. fi
  11482. done
  11483. fi
  11484. if test "$enable_xzlib" != "no"; then
  11485. for ac_header in lzma.h
  11486. do :
  11487. ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
  11488. if test "x$ac_cv_header_lzma_h" = xyes; then :
  11489. cat >>confdefs.h <<_ACEOF
  11490. #define HAVE_LZMA_H 1
  11491. _ACEOF
  11492. fi
  11493. done
  11494. fi
  11495. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  11496. "
  11497. if test "x$ac_cv_type_sig_t" = xyes; then :
  11498. $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
  11499. fi
  11500. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11501. if test "x$ac_cv_type_off_t" = xyes; then :
  11502. else
  11503. cat >>confdefs.h <<_ACEOF
  11504. #define off_t long int
  11505. _ACEOF
  11506. fi
  11507. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11508. if test "x$ac_cv_type_size_t" = xyes; then :
  11509. else
  11510. cat >>confdefs.h <<_ACEOF
  11511. #define size_t unsigned int
  11512. _ACEOF
  11513. fi
  11514. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11515. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11516. cat >>confdefs.h <<_ACEOF
  11517. #define HAVE_STRUCT_STAT_ST_RDEV 1
  11518. _ACEOF
  11519. fi
  11520. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11521. "
  11522. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11523. cat >>confdefs.h <<_ACEOF
  11524. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  11525. _ACEOF
  11526. fi
  11527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11528. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11529. if ${ac_cv_struct_tm+:} false; then :
  11530. $as_echo_n "(cached) " >&6
  11531. else
  11532. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11533. /* end confdefs.h. */
  11534. #include <sys/types.h>
  11535. #include <time.h>
  11536. int
  11537. main ()
  11538. {
  11539. struct tm tm;
  11540. int *p = &tm.tm_sec;
  11541. return !p;
  11542. ;
  11543. return 0;
  11544. }
  11545. _ACEOF
  11546. if ac_fn_c_try_compile "$LINENO"; then :
  11547. ac_cv_struct_tm=time.h
  11548. else
  11549. ac_cv_struct_tm=sys/time.h
  11550. fi
  11551. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11552. fi
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11554. $as_echo "$ac_cv_struct_tm" >&6; }
  11555. if test $ac_cv_struct_tm = sys/time.h; then
  11556. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11557. fi
  11558. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11559. #include <$ac_cv_struct_tm>
  11560. "
  11561. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11562. cat >>confdefs.h <<_ACEOF
  11563. #define HAVE_STRUCT_TM_TM_ZONE 1
  11564. _ACEOF
  11565. fi
  11566. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11567. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11568. else
  11569. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11570. "
  11571. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11572. ac_have_decl=1
  11573. else
  11574. ac_have_decl=0
  11575. fi
  11576. cat >>confdefs.h <<_ACEOF
  11577. #define HAVE_DECL_TZNAME $ac_have_decl
  11578. _ACEOF
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11580. $as_echo_n "checking for tzname... " >&6; }
  11581. if ${ac_cv_var_tzname+:} false; then :
  11582. $as_echo_n "(cached) " >&6
  11583. else
  11584. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11585. /* end confdefs.h. */
  11586. #include <time.h>
  11587. #if !HAVE_DECL_TZNAME
  11588. extern char *tzname[];
  11589. #endif
  11590. int
  11591. main ()
  11592. {
  11593. return tzname[0][0];
  11594. ;
  11595. return 0;
  11596. }
  11597. _ACEOF
  11598. if ac_fn_c_try_link "$LINENO"; then :
  11599. ac_cv_var_tzname=yes
  11600. else
  11601. ac_cv_var_tzname=no
  11602. fi
  11603. rm -f core conftest.err conftest.$ac_objext \
  11604. conftest$ac_exeext conftest.$ac_ext
  11605. fi
  11606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11607. $as_echo "$ac_cv_var_tzname" >&6; }
  11608. if test $ac_cv_var_tzname = yes; then
  11609. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11610. fi
  11611. fi
  11612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11613. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11614. if ${ac_cv_struct_tm_zone+:} false; then :
  11615. $as_echo_n "(cached) " >&6
  11616. else
  11617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11618. /* end confdefs.h. */
  11619. #include <sys/types.h>
  11620. #include <$ac_cv_struct_tm>
  11621. int
  11622. main ()
  11623. {
  11624. struct tm tm; tm.tm_zone;
  11625. ;
  11626. return 0;
  11627. }
  11628. _ACEOF
  11629. if ac_fn_c_try_compile "$LINENO"; then :
  11630. ac_cv_struct_tm_zone=yes
  11631. else
  11632. ac_cv_struct_tm_zone=no
  11633. fi
  11634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11635. fi
  11636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11637. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11638. if test "$ac_cv_struct_tm_zone" = yes; then
  11639. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11640. fi
  11641. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11642. # consider it declared and we won't give our own extern.
  11643. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11644. "
  11645. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11646. ac_have_decl=1
  11647. else
  11648. ac_have_decl=0
  11649. fi
  11650. cat >>confdefs.h <<_ACEOF
  11651. #define HAVE_DECL_TZNAME $ac_have_decl
  11652. _ACEOF
  11653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11654. $as_echo_n "checking for tzname... " >&6; }
  11655. if ${ac_cv_var_tzname+:} false; then :
  11656. $as_echo_n "(cached) " >&6
  11657. else
  11658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11659. /* end confdefs.h. */
  11660. #include <time.h>
  11661. #if !HAVE_DECL_TZNAME
  11662. extern char *tzname[];
  11663. #endif
  11664. int
  11665. main ()
  11666. {
  11667. return tzname[0][0];
  11668. ;
  11669. return 0;
  11670. }
  11671. _ACEOF
  11672. if ac_fn_c_try_link "$LINENO"; then :
  11673. ac_cv_var_tzname=yes
  11674. else
  11675. ac_cv_var_tzname=no
  11676. fi
  11677. rm -f core conftest.err conftest.$ac_objext \
  11678. conftest$ac_exeext conftest.$ac_ext
  11679. fi
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11681. $as_echo "$ac_cv_var_tzname" >&6; }
  11682. if test $ac_cv_var_tzname = yes; then
  11683. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11684. fi
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11686. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11687. if ${ac_cv_struct_tm_isdst+:} false; then :
  11688. $as_echo_n "(cached) " >&6
  11689. else
  11690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11691. /* end confdefs.h. */
  11692. #include <sys/types.h>
  11693. #include <$ac_cv_struct_tm>
  11694. int
  11695. main ()
  11696. {
  11697. struct tm tm; tm.tm_isdst;
  11698. ;
  11699. return 0;
  11700. }
  11701. _ACEOF
  11702. if ac_fn_c_try_compile "$LINENO"; then :
  11703. ac_cv_struct_tm_isdst=yes
  11704. else
  11705. ac_cv_struct_tm_isdst=no
  11706. fi
  11707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11708. fi
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11710. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11711. if test "$ac_cv_struct_tm_isdst" = yes; then
  11712. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  11713. fi
  11714. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11715. "
  11716. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11717. ac_have_decl=1
  11718. else
  11719. ac_have_decl=0
  11720. fi
  11721. cat >>confdefs.h <<_ACEOF
  11722. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  11723. _ACEOF
  11724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11725. $as_echo_n "checking for daylight... " >&6; }
  11726. if ${ac_cv_var_daylight+:} false; then :
  11727. $as_echo_n "(cached) " >&6
  11728. else
  11729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11730. /* end confdefs.h. */
  11731. #include <time.h>
  11732. #if !HAVE_DECL_DAYLIGHT
  11733. extern int daylight;
  11734. #endif
  11735. int
  11736. main ()
  11737. {
  11738. atoi(daylight);
  11739. ;
  11740. return 0;
  11741. }
  11742. _ACEOF
  11743. if ac_fn_c_try_link "$LINENO"; then :
  11744. ac_cv_var_daylight=yes
  11745. else
  11746. ac_cv_var_daylight=no
  11747. fi
  11748. rm -f core conftest.err conftest.$ac_objext \
  11749. conftest$ac_exeext conftest.$ac_ext
  11750. fi
  11751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11752. $as_echo "$ac_cv_var_daylight" >&6; }
  11753. if test $ac_cv_var_daylight = yes; then
  11754. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  11755. fi
  11756. # Check whether --enable-largefile was given.
  11757. if test "${enable_largefile+set}" = set; then :
  11758. enableval=$enable_largefile;
  11759. fi
  11760. if test "$enable_largefile" != no; then
  11761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11762. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11763. if ${ac_cv_sys_largefile_CC+:} false; then :
  11764. $as_echo_n "(cached) " >&6
  11765. else
  11766. ac_cv_sys_largefile_CC=no
  11767. if test "$GCC" != yes; then
  11768. ac_save_CC=$CC
  11769. while :; do
  11770. # IRIX 6.2 and later do not support large files by default,
  11771. # so use the C compiler's -n32 option if that helps.
  11772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11773. /* end confdefs.h. */
  11774. #include <sys/types.h>
  11775. /* Check that off_t can represent 2**63 - 1 correctly.
  11776. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11777. since some C++ compilers masquerading as C compilers
  11778. incorrectly reject 9223372036854775807. */
  11779. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11780. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11781. && LARGE_OFF_T % 2147483647 == 1)
  11782. ? 1 : -1];
  11783. int
  11784. main ()
  11785. {
  11786. ;
  11787. return 0;
  11788. }
  11789. _ACEOF
  11790. if ac_fn_c_try_compile "$LINENO"; then :
  11791. break
  11792. fi
  11793. rm -f core conftest.err conftest.$ac_objext
  11794. CC="$CC -n32"
  11795. if ac_fn_c_try_compile "$LINENO"; then :
  11796. ac_cv_sys_largefile_CC=' -n32'; break
  11797. fi
  11798. rm -f core conftest.err conftest.$ac_objext
  11799. break
  11800. done
  11801. CC=$ac_save_CC
  11802. rm -f conftest.$ac_ext
  11803. fi
  11804. fi
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11806. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11807. if test "$ac_cv_sys_largefile_CC" != no; then
  11808. CC=$CC$ac_cv_sys_largefile_CC
  11809. fi
  11810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11811. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11812. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11813. $as_echo_n "(cached) " >&6
  11814. else
  11815. while :; do
  11816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11817. /* end confdefs.h. */
  11818. #include <sys/types.h>
  11819. /* Check that off_t can represent 2**63 - 1 correctly.
  11820. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11821. since some C++ compilers masquerading as C compilers
  11822. incorrectly reject 9223372036854775807. */
  11823. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11824. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11825. && LARGE_OFF_T % 2147483647 == 1)
  11826. ? 1 : -1];
  11827. int
  11828. main ()
  11829. {
  11830. ;
  11831. return 0;
  11832. }
  11833. _ACEOF
  11834. if ac_fn_c_try_compile "$LINENO"; then :
  11835. ac_cv_sys_file_offset_bits=no; break
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11839. /* end confdefs.h. */
  11840. #define _FILE_OFFSET_BITS 64
  11841. #include <sys/types.h>
  11842. /* Check that off_t can represent 2**63 - 1 correctly.
  11843. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11844. since some C++ compilers masquerading as C compilers
  11845. incorrectly reject 9223372036854775807. */
  11846. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11847. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11848. && LARGE_OFF_T % 2147483647 == 1)
  11849. ? 1 : -1];
  11850. int
  11851. main ()
  11852. {
  11853. ;
  11854. return 0;
  11855. }
  11856. _ACEOF
  11857. if ac_fn_c_try_compile "$LINENO"; then :
  11858. ac_cv_sys_file_offset_bits=64; break
  11859. fi
  11860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11861. ac_cv_sys_file_offset_bits=unknown
  11862. break
  11863. done
  11864. fi
  11865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11866. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11867. case $ac_cv_sys_file_offset_bits in #(
  11868. no | unknown) ;;
  11869. *)
  11870. cat >>confdefs.h <<_ACEOF
  11871. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11872. _ACEOF
  11873. ;;
  11874. esac
  11875. rm -rf conftest*
  11876. if test $ac_cv_sys_file_offset_bits = unknown; then
  11877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11878. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11879. if ${ac_cv_sys_large_files+:} false; then :
  11880. $as_echo_n "(cached) " >&6
  11881. else
  11882. while :; do
  11883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11884. /* end confdefs.h. */
  11885. #include <sys/types.h>
  11886. /* Check that off_t can represent 2**63 - 1 correctly.
  11887. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11888. since some C++ compilers masquerading as C compilers
  11889. incorrectly reject 9223372036854775807. */
  11890. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11891. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11892. && LARGE_OFF_T % 2147483647 == 1)
  11893. ? 1 : -1];
  11894. int
  11895. main ()
  11896. {
  11897. ;
  11898. return 0;
  11899. }
  11900. _ACEOF
  11901. if ac_fn_c_try_compile "$LINENO"; then :
  11902. ac_cv_sys_large_files=no; break
  11903. fi
  11904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11906. /* end confdefs.h. */
  11907. #define _LARGE_FILES 1
  11908. #include <sys/types.h>
  11909. /* Check that off_t can represent 2**63 - 1 correctly.
  11910. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11911. since some C++ compilers masquerading as C compilers
  11912. incorrectly reject 9223372036854775807. */
  11913. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11914. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11915. && LARGE_OFF_T % 2147483647 == 1)
  11916. ? 1 : -1];
  11917. int
  11918. main ()
  11919. {
  11920. ;
  11921. return 0;
  11922. }
  11923. _ACEOF
  11924. if ac_fn_c_try_compile "$LINENO"; then :
  11925. ac_cv_sys_large_files=1; break
  11926. fi
  11927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11928. ac_cv_sys_large_files=unknown
  11929. break
  11930. done
  11931. fi
  11932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11933. $as_echo "$ac_cv_sys_large_files" >&6; }
  11934. case $ac_cv_sys_large_files in #(
  11935. no | unknown) ;;
  11936. *)
  11937. cat >>confdefs.h <<_ACEOF
  11938. #define _LARGE_FILES $ac_cv_sys_large_files
  11939. _ACEOF
  11940. ;;
  11941. esac
  11942. rm -rf conftest*
  11943. fi
  11944. fi
  11945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11946. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11947. if ${ac_cv_sys_largefile_source+:} false; then :
  11948. $as_echo_n "(cached) " >&6
  11949. else
  11950. while :; do
  11951. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11952. /* end confdefs.h. */
  11953. #include <sys/types.h> /* for off_t */
  11954. #include <stdio.h>
  11955. int
  11956. main ()
  11957. {
  11958. int (*fp) (FILE *, off_t, int) = fseeko;
  11959. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11960. ;
  11961. return 0;
  11962. }
  11963. _ACEOF
  11964. if ac_fn_c_try_link "$LINENO"; then :
  11965. ac_cv_sys_largefile_source=no; break
  11966. fi
  11967. rm -f core conftest.err conftest.$ac_objext \
  11968. conftest$ac_exeext conftest.$ac_ext
  11969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11970. /* end confdefs.h. */
  11971. #define _LARGEFILE_SOURCE 1
  11972. #include <sys/types.h> /* for off_t */
  11973. #include <stdio.h>
  11974. int
  11975. main ()
  11976. {
  11977. int (*fp) (FILE *, off_t, int) = fseeko;
  11978. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11979. ;
  11980. return 0;
  11981. }
  11982. _ACEOF
  11983. if ac_fn_c_try_link "$LINENO"; then :
  11984. ac_cv_sys_largefile_source=1; break
  11985. fi
  11986. rm -f core conftest.err conftest.$ac_objext \
  11987. conftest$ac_exeext conftest.$ac_ext
  11988. ac_cv_sys_largefile_source=unknown
  11989. break
  11990. done
  11991. fi
  11992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11993. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11994. case $ac_cv_sys_largefile_source in #(
  11995. no | unknown) ;;
  11996. *)
  11997. cat >>confdefs.h <<_ACEOF
  11998. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11999. _ACEOF
  12000. ;;
  12001. esac
  12002. rm -rf conftest*
  12003. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  12004. # in glibc 2.1.3, but that breaks too many other things.
  12005. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  12006. if test $ac_cv_sys_largefile_source != unknown; then
  12007. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  12008. fi
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  12010. $as_echo_n "checking for mbstate_t... " >&6; }
  12011. if ${ac_cv_type_mbstate_t+:} false; then :
  12012. $as_echo_n "(cached) " >&6
  12013. else
  12014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12015. /* end confdefs.h. */
  12016. $ac_includes_default
  12017. # include <wchar.h>
  12018. int
  12019. main ()
  12020. {
  12021. mbstate_t x; return sizeof x;
  12022. ;
  12023. return 0;
  12024. }
  12025. _ACEOF
  12026. if ac_fn_c_try_compile "$LINENO"; then :
  12027. ac_cv_type_mbstate_t=yes
  12028. else
  12029. ac_cv_type_mbstate_t=no
  12030. fi
  12031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12032. fi
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  12034. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  12035. if test $ac_cv_type_mbstate_t = yes; then
  12036. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  12037. else
  12038. $as_echo "#define mbstate_t int" >>confdefs.h
  12039. fi
  12040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  12041. $as_echo_n "checking for struct option in getopt... " >&6; }
  12042. if ${ac_cv_struct_option_getopt_h+:} false; then :
  12043. $as_echo_n "(cached) " >&6
  12044. else
  12045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12046. /* end confdefs.h. */
  12047. #include <getopt.h>
  12048. int
  12049. main ()
  12050. {
  12051. struct option op; op.name;
  12052. ;
  12053. return 0;
  12054. }
  12055. _ACEOF
  12056. if ac_fn_c_try_compile "$LINENO"; then :
  12057. ac_cv_struct_option_getopt_h=yes
  12058. else
  12059. ac_cv_struct_option_getopt_h=no
  12060. fi
  12061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12062. fi
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  12064. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  12065. if test "$ac_cv_struct_option_getopt_h" = yes; then
  12066. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  12067. fi
  12068. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  12069. if test "x$ac_cv_type_pid_t" = xyes; then :
  12070. else
  12071. cat >>confdefs.h <<_ACEOF
  12072. #define pid_t int
  12073. _ACEOF
  12074. fi
  12075. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  12076. case $ac_cv_c_uint8_t in #(
  12077. no|yes) ;; #(
  12078. *)
  12079. $as_echo "#define _UINT8_T 1" >>confdefs.h
  12080. cat >>confdefs.h <<_ACEOF
  12081. #define uint8_t $ac_cv_c_uint8_t
  12082. _ACEOF
  12083. ;;
  12084. esac
  12085. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  12086. case $ac_cv_c_uint16_t in #(
  12087. no|yes) ;; #(
  12088. *)
  12089. cat >>confdefs.h <<_ACEOF
  12090. #define uint16_t $ac_cv_c_uint16_t
  12091. _ACEOF
  12092. ;;
  12093. esac
  12094. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  12095. case $ac_cv_c_uint32_t in #(
  12096. no|yes) ;; #(
  12097. *)
  12098. $as_echo "#define _UINT32_T 1" >>confdefs.h
  12099. cat >>confdefs.h <<_ACEOF
  12100. #define uint32_t $ac_cv_c_uint32_t
  12101. _ACEOF
  12102. ;;
  12103. esac
  12104. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  12105. case $ac_cv_c_int32_t in #(
  12106. no|yes) ;; #(
  12107. *)
  12108. cat >>confdefs.h <<_ACEOF
  12109. #define int32_t $ac_cv_c_int32_t
  12110. _ACEOF
  12111. ;;
  12112. esac
  12113. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  12114. case $ac_cv_c_uint64_t in #(
  12115. no|yes) ;; #(
  12116. *)
  12117. $as_echo "#define _UINT64_T 1" >>confdefs.h
  12118. cat >>confdefs.h <<_ACEOF
  12119. #define uint64_t $ac_cv_c_uint64_t
  12120. _ACEOF
  12121. ;;
  12122. esac
  12123. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  12124. case $ac_cv_c_int64_t in #(
  12125. no|yes) ;; #(
  12126. *)
  12127. cat >>confdefs.h <<_ACEOF
  12128. #define int64_t $ac_cv_c_int64_t
  12129. _ACEOF
  12130. ;;
  12131. esac
  12132. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  12133. if test "x$ac_cv_type_intptr_t" = xyes; then :
  12134. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  12135. else
  12136. for ac_type in 'int' 'long int' 'long long int'; do
  12137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12138. /* end confdefs.h. */
  12139. $ac_includes_default
  12140. int
  12141. main ()
  12142. {
  12143. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12144. test_array [0] = 0;
  12145. return test_array [0];
  12146. ;
  12147. return 0;
  12148. }
  12149. _ACEOF
  12150. if ac_fn_c_try_compile "$LINENO"; then :
  12151. cat >>confdefs.h <<_ACEOF
  12152. #define intptr_t $ac_type
  12153. _ACEOF
  12154. ac_type=
  12155. fi
  12156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12157. test -z "$ac_type" && break
  12158. done
  12159. fi
  12160. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12161. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  12162. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  12163. else
  12164. for ac_type in 'unsigned int' 'unsigned long int' \
  12165. 'unsigned long long int'; do
  12166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12167. /* end confdefs.h. */
  12168. $ac_includes_default
  12169. int
  12170. main ()
  12171. {
  12172. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  12173. test_array [0] = 0;
  12174. return test_array [0];
  12175. ;
  12176. return 0;
  12177. }
  12178. _ACEOF
  12179. if ac_fn_c_try_compile "$LINENO"; then :
  12180. cat >>confdefs.h <<_ACEOF
  12181. #define uintptr_t $ac_type
  12182. _ACEOF
  12183. ac_type=
  12184. fi
  12185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12186. test -z "$ac_type" && break
  12187. done
  12188. fi
  12189. for ac_header in $ac_header_list
  12190. do :
  12191. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12192. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  12193. "
  12194. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  12195. cat >>confdefs.h <<_ACEOF
  12196. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12197. _ACEOF
  12198. fi
  12199. done
  12200. for ac_func in getpagesize
  12201. do :
  12202. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  12203. if test "x$ac_cv_func_getpagesize" = xyes; then :
  12204. cat >>confdefs.h <<_ACEOF
  12205. #define HAVE_GETPAGESIZE 1
  12206. _ACEOF
  12207. fi
  12208. done
  12209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  12210. $as_echo_n "checking for working mmap... " >&6; }
  12211. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  12212. $as_echo_n "(cached) " >&6
  12213. else
  12214. if test "$cross_compiling" = yes; then :
  12215. ac_cv_func_mmap_fixed_mapped=no
  12216. else
  12217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12218. /* end confdefs.h. */
  12219. $ac_includes_default
  12220. /* malloc might have been renamed as rpl_malloc. */
  12221. #undef malloc
  12222. /* Thanks to Mike Haertel and Jim Avera for this test.
  12223. Here is a matrix of mmap possibilities:
  12224. mmap private not fixed
  12225. mmap private fixed at somewhere currently unmapped
  12226. mmap private fixed at somewhere already mapped
  12227. mmap shared not fixed
  12228. mmap shared fixed at somewhere currently unmapped
  12229. mmap shared fixed at somewhere already mapped
  12230. For private mappings, we should verify that changes cannot be read()
  12231. back from the file, nor mmap's back from the file at a different
  12232. address. (There have been systems where private was not correctly
  12233. implemented like the infamous i386 svr4.0, and systems where the
  12234. VM page cache was not coherent with the file system buffer cache
  12235. like early versions of FreeBSD and possibly contemporary NetBSD.)
  12236. For shared mappings, we should conversely verify that changes get
  12237. propagated back to all the places they're supposed to be.
  12238. Grep wants private fixed already mapped.
  12239. The main things grep needs to know about mmap are:
  12240. * does it exist and is it safe to write into the mmap'd area
  12241. * how to use it (BSD variants) */
  12242. #include <fcntl.h>
  12243. #include <sys/mman.h>
  12244. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  12245. char *malloc ();
  12246. #endif
  12247. /* This mess was copied from the GNU getpagesize.h. */
  12248. #ifndef HAVE_GETPAGESIZE
  12249. # ifdef _SC_PAGESIZE
  12250. # define getpagesize() sysconf(_SC_PAGESIZE)
  12251. # else /* no _SC_PAGESIZE */
  12252. # ifdef HAVE_SYS_PARAM_H
  12253. # include <sys/param.h>
  12254. # ifdef EXEC_PAGESIZE
  12255. # define getpagesize() EXEC_PAGESIZE
  12256. # else /* no EXEC_PAGESIZE */
  12257. # ifdef NBPG
  12258. # define getpagesize() NBPG * CLSIZE
  12259. # ifndef CLSIZE
  12260. # define CLSIZE 1
  12261. # endif /* no CLSIZE */
  12262. # else /* no NBPG */
  12263. # ifdef NBPC
  12264. # define getpagesize() NBPC
  12265. # else /* no NBPC */
  12266. # ifdef PAGESIZE
  12267. # define getpagesize() PAGESIZE
  12268. # endif /* PAGESIZE */
  12269. # endif /* no NBPC */
  12270. # endif /* no NBPG */
  12271. # endif /* no EXEC_PAGESIZE */
  12272. # else /* no HAVE_SYS_PARAM_H */
  12273. # define getpagesize() 8192 /* punt totally */
  12274. # endif /* no HAVE_SYS_PARAM_H */
  12275. # endif /* no _SC_PAGESIZE */
  12276. #endif /* no HAVE_GETPAGESIZE */
  12277. int
  12278. main ()
  12279. {
  12280. char *data, *data2, *data3;
  12281. const char *cdata2;
  12282. int i, pagesize;
  12283. int fd, fd2;
  12284. pagesize = getpagesize ();
  12285. /* First, make a file with some known garbage in it. */
  12286. data = (char *) malloc (pagesize);
  12287. if (!data)
  12288. return 1;
  12289. for (i = 0; i < pagesize; ++i)
  12290. *(data + i) = rand ();
  12291. umask (0);
  12292. fd = creat ("conftest.mmap", 0600);
  12293. if (fd < 0)
  12294. return 2;
  12295. if (write (fd, data, pagesize) != pagesize)
  12296. return 3;
  12297. close (fd);
  12298. /* Next, check that the tail of a page is zero-filled. File must have
  12299. non-zero length, otherwise we risk SIGBUS for entire page. */
  12300. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  12301. if (fd2 < 0)
  12302. return 4;
  12303. cdata2 = "";
  12304. if (write (fd2, cdata2, 1) != 1)
  12305. return 5;
  12306. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  12307. if (data2 == MAP_FAILED)
  12308. return 6;
  12309. for (i = 0; i < pagesize; ++i)
  12310. if (*(data2 + i))
  12311. return 7;
  12312. close (fd2);
  12313. if (munmap (data2, pagesize))
  12314. return 8;
  12315. /* Next, try to mmap the file at a fixed address which already has
  12316. something else allocated at it. If we can, also make sure that
  12317. we see the same garbage. */
  12318. fd = open ("conftest.mmap", O_RDWR);
  12319. if (fd < 0)
  12320. return 9;
  12321. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  12322. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  12323. return 10;
  12324. for (i = 0; i < pagesize; ++i)
  12325. if (*(data + i) != *(data2 + i))
  12326. return 11;
  12327. /* Finally, make sure that changes to the mapped area do not
  12328. percolate back to the file as seen by read(). (This is a bug on
  12329. some variants of i386 svr4.0.) */
  12330. for (i = 0; i < pagesize; ++i)
  12331. *(data2 + i) = *(data2 + i) + 1;
  12332. data3 = (char *) malloc (pagesize);
  12333. if (!data3)
  12334. return 12;
  12335. if (read (fd, data3, pagesize) != pagesize)
  12336. return 13;
  12337. for (i = 0; i < pagesize; ++i)
  12338. if (*(data + i) != *(data3 + i))
  12339. return 14;
  12340. close (fd);
  12341. return 0;
  12342. }
  12343. _ACEOF
  12344. if ac_fn_c_try_run "$LINENO"; then :
  12345. ac_cv_func_mmap_fixed_mapped=yes
  12346. else
  12347. ac_cv_func_mmap_fixed_mapped=no
  12348. fi
  12349. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12350. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12351. fi
  12352. fi
  12353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  12354. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  12355. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  12356. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  12357. fi
  12358. rm -f conftest.mmap conftest.txt
  12359. for ac_header in vfork.h
  12360. do :
  12361. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  12362. if test "x$ac_cv_header_vfork_h" = xyes; then :
  12363. cat >>confdefs.h <<_ACEOF
  12364. #define HAVE_VFORK_H 1
  12365. _ACEOF
  12366. fi
  12367. done
  12368. for ac_func in fork vfork
  12369. do :
  12370. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12371. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12372. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12373. cat >>confdefs.h <<_ACEOF
  12374. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12375. _ACEOF
  12376. fi
  12377. done
  12378. if test "x$ac_cv_func_fork" = xyes; then
  12379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  12380. $as_echo_n "checking for working fork... " >&6; }
  12381. if ${ac_cv_func_fork_works+:} false; then :
  12382. $as_echo_n "(cached) " >&6
  12383. else
  12384. if test "$cross_compiling" = yes; then :
  12385. ac_cv_func_fork_works=cross
  12386. else
  12387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12388. /* end confdefs.h. */
  12389. $ac_includes_default
  12390. int
  12391. main ()
  12392. {
  12393. /* By Ruediger Kuhlmann. */
  12394. return fork () < 0;
  12395. ;
  12396. return 0;
  12397. }
  12398. _ACEOF
  12399. if ac_fn_c_try_run "$LINENO"; then :
  12400. ac_cv_func_fork_works=yes
  12401. else
  12402. ac_cv_func_fork_works=no
  12403. fi
  12404. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12405. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12406. fi
  12407. fi
  12408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  12409. $as_echo "$ac_cv_func_fork_works" >&6; }
  12410. else
  12411. ac_cv_func_fork_works=$ac_cv_func_fork
  12412. fi
  12413. if test "x$ac_cv_func_fork_works" = xcross; then
  12414. case $host in
  12415. *-*-amigaos* | *-*-msdosdjgpp*)
  12416. # Override, as these systems have only a dummy fork() stub
  12417. ac_cv_func_fork_works=no
  12418. ;;
  12419. *)
  12420. ac_cv_func_fork_works=yes
  12421. ;;
  12422. esac
  12423. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12424. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12425. fi
  12426. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12427. if test "x$ac_cv_func_vfork" = xyes; then
  12428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12429. $as_echo_n "checking for working vfork... " >&6; }
  12430. if ${ac_cv_func_vfork_works+:} false; then :
  12431. $as_echo_n "(cached) " >&6
  12432. else
  12433. if test "$cross_compiling" = yes; then :
  12434. ac_cv_func_vfork_works=cross
  12435. else
  12436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12437. /* end confdefs.h. */
  12438. /* Thanks to Paul Eggert for this test. */
  12439. $ac_includes_default
  12440. #include <sys/wait.h>
  12441. #ifdef HAVE_VFORK_H
  12442. # include <vfork.h>
  12443. #endif
  12444. /* On some sparc systems, changes by the child to local and incoming
  12445. argument registers are propagated back to the parent. The compiler
  12446. is told about this with #include <vfork.h>, but some compilers
  12447. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12448. static variable whose address is put into a register that is
  12449. clobbered by the vfork. */
  12450. static void
  12451. #ifdef __cplusplus
  12452. sparc_address_test (int arg)
  12453. # else
  12454. sparc_address_test (arg) int arg;
  12455. #endif
  12456. {
  12457. static pid_t child;
  12458. if (!child) {
  12459. child = vfork ();
  12460. if (child < 0) {
  12461. perror ("vfork");
  12462. _exit(2);
  12463. }
  12464. if (!child) {
  12465. arg = getpid();
  12466. write(-1, "", 0);
  12467. _exit (arg);
  12468. }
  12469. }
  12470. }
  12471. int
  12472. main ()
  12473. {
  12474. pid_t parent = getpid ();
  12475. pid_t child;
  12476. sparc_address_test (0);
  12477. child = vfork ();
  12478. if (child == 0) {
  12479. /* Here is another test for sparc vfork register problems. This
  12480. test uses lots of local variables, at least as many local
  12481. variables as main has allocated so far including compiler
  12482. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12483. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12484. reuse the register of parent for one of the local variables,
  12485. since it will think that parent can't possibly be used any more
  12486. in this routine. Assigning to the local variable will thus
  12487. munge parent in the parent process. */
  12488. pid_t
  12489. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12490. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12491. /* Convince the compiler that p..p7 are live; otherwise, it might
  12492. use the same hardware register for all 8 local variables. */
  12493. if (p != p1 || p != p2 || p != p3 || p != p4
  12494. || p != p5 || p != p6 || p != p7)
  12495. _exit(1);
  12496. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12497. from child file descriptors. If the child closes a descriptor
  12498. before it execs or exits, this munges the parent's descriptor
  12499. as well. Test for this by closing stdout in the child. */
  12500. _exit(close(fileno(stdout)) != 0);
  12501. } else {
  12502. int status;
  12503. struct stat st;
  12504. while (wait(&status) != child)
  12505. ;
  12506. return (
  12507. /* Was there some problem with vforking? */
  12508. child < 0
  12509. /* Did the child fail? (This shouldn't happen.) */
  12510. || status
  12511. /* Did the vfork/compiler bug occur? */
  12512. || parent != getpid()
  12513. /* Did the file descriptor bug occur? */
  12514. || fstat(fileno(stdout), &st) != 0
  12515. );
  12516. }
  12517. }
  12518. _ACEOF
  12519. if ac_fn_c_try_run "$LINENO"; then :
  12520. ac_cv_func_vfork_works=yes
  12521. else
  12522. ac_cv_func_vfork_works=no
  12523. fi
  12524. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12525. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12526. fi
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12529. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12530. fi;
  12531. if test "x$ac_cv_func_fork_works" = xcross; then
  12532. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12534. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12535. fi
  12536. if test "x$ac_cv_func_vfork_works" = xyes; then
  12537. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12538. else
  12539. $as_echo "#define vfork fork" >>confdefs.h
  12540. fi
  12541. if test "x$ac_cv_func_fork_works" = xyes; then
  12542. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12543. fi
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12545. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12546. if ${ac_cv_func_mbrtowc+:} false; then :
  12547. $as_echo_n "(cached) " >&6
  12548. else
  12549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12550. /* end confdefs.h. */
  12551. #include <wchar.h>
  12552. int
  12553. main ()
  12554. {
  12555. wchar_t wc;
  12556. char const s[] = "";
  12557. size_t n = 1;
  12558. mbstate_t state;
  12559. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12560. ;
  12561. return 0;
  12562. }
  12563. _ACEOF
  12564. if ac_fn_c_try_link "$LINENO"; then :
  12565. ac_cv_func_mbrtowc=yes
  12566. else
  12567. ac_cv_func_mbrtowc=no
  12568. fi
  12569. rm -f core conftest.err conftest.$ac_objext \
  12570. conftest$ac_exeext conftest.$ac_ext
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12573. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12574. if test $ac_cv_func_mbrtowc = yes; then
  12575. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  12576. fi
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12578. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12579. # Check whether --enable-warnings was given.
  12580. if test "${enable_warnings+set}" = set; then :
  12581. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12583. $as_echo "no" >&6; }
  12584. WARNINGS=
  12585. else
  12586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12587. $as_echo "yes" >&6; }
  12588. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12589. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12590. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12591. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12592. fi
  12593. else
  12594. if test "$GCC" = yes; then
  12595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12596. $as_echo "yes" >&6; }
  12597. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12598. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12599. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12600. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12601. else
  12602. WARNINGS=
  12603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12604. $as_echo "no" >&6; }
  12605. fi
  12606. fi
  12607. for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
  12608. do :
  12609. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12610. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12611. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12612. cat >>confdefs.h <<_ACEOF
  12613. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12614. _ACEOF
  12615. fi
  12616. done
  12617. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12618. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12619. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12620. else
  12621. case " $LIBOBJS " in
  12622. *" getopt_long.$ac_objext "* ) ;;
  12623. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  12624. ;;
  12625. esac
  12626. fi
  12627. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12628. if test "x$ac_cv_func_asprintf" = xyes; then :
  12629. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  12630. else
  12631. case " $LIBOBJS " in
  12632. *" asprintf.$ac_objext "* ) ;;
  12633. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  12634. ;;
  12635. esac
  12636. fi
  12637. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12638. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12639. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  12640. else
  12641. case " $LIBOBJS " in
  12642. *" vasprintf.$ac_objext "* ) ;;
  12643. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  12644. ;;
  12645. esac
  12646. fi
  12647. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12648. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12649. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  12650. else
  12651. case " $LIBOBJS " in
  12652. *" strlcpy.$ac_objext "* ) ;;
  12653. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  12654. ;;
  12655. esac
  12656. fi
  12657. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12658. if test "x$ac_cv_func_strlcat" = xyes; then :
  12659. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  12660. else
  12661. case " $LIBOBJS " in
  12662. *" strlcat.$ac_objext "* ) ;;
  12663. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  12664. ;;
  12665. esac
  12666. fi
  12667. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12668. if test "x$ac_cv_func_getline" = xyes; then :
  12669. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  12670. else
  12671. case " $LIBOBJS " in
  12672. *" getline.$ac_objext "* ) ;;
  12673. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  12674. ;;
  12675. esac
  12676. fi
  12677. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12678. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12679. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  12680. else
  12681. case " $LIBOBJS " in
  12682. *" ctime_r.$ac_objext "* ) ;;
  12683. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  12684. ;;
  12685. esac
  12686. fi
  12687. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12688. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12689. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  12690. else
  12691. case " $LIBOBJS " in
  12692. *" asctime_r.$ac_objext "* ) ;;
  12693. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  12694. ;;
  12695. esac
  12696. fi
  12697. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12698. if test "x$ac_cv_func_localtime_r" = xyes; then :
  12699. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  12700. else
  12701. case " $LIBOBJS " in
  12702. *" localtime_r.$ac_objext "* ) ;;
  12703. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  12704. ;;
  12705. esac
  12706. fi
  12707. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  12708. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  12709. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  12710. else
  12711. case " $LIBOBJS " in
  12712. *" gmtime_r.$ac_objext "* ) ;;
  12713. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  12714. ;;
  12715. esac
  12716. fi
  12717. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12718. if test "x$ac_cv_func_pread" = xyes; then :
  12719. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  12720. else
  12721. case " $LIBOBJS " in
  12722. *" pread.$ac_objext "* ) ;;
  12723. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  12724. ;;
  12725. esac
  12726. fi
  12727. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12728. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12729. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  12730. else
  12731. case " $LIBOBJS " in
  12732. *" strcasestr.$ac_objext "* ) ;;
  12733. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  12734. ;;
  12735. esac
  12736. fi
  12737. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12738. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12739. $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
  12740. else
  12741. case " $LIBOBJS " in
  12742. *" fmtcheck.$ac_objext "* ) ;;
  12743. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  12744. ;;
  12745. esac
  12746. fi
  12747. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  12748. if test "x$ac_cv_func_dprintf" = xyes; then :
  12749. $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
  12750. else
  12751. case " $LIBOBJS " in
  12752. *" dprintf.$ac_objext "* ) ;;
  12753. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  12754. ;;
  12755. esac
  12756. fi
  12757. if test "$enable_zlib" != "no"; then
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12759. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12760. if ${ac_cv_lib_z_gzopen+:} false; then :
  12761. $as_echo_n "(cached) " >&6
  12762. else
  12763. ac_check_lib_save_LIBS=$LIBS
  12764. LIBS="-lz $LIBS"
  12765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12766. /* end confdefs.h. */
  12767. /* Override any GCC internal prototype to avoid an error.
  12768. Use char because int might match the return type of a GCC
  12769. builtin and then its argument prototype would still apply. */
  12770. #ifdef __cplusplus
  12771. extern "C"
  12772. #endif
  12773. char gzopen ();
  12774. int
  12775. main ()
  12776. {
  12777. return gzopen ();
  12778. ;
  12779. return 0;
  12780. }
  12781. _ACEOF
  12782. if ac_fn_c_try_link "$LINENO"; then :
  12783. ac_cv_lib_z_gzopen=yes
  12784. else
  12785. ac_cv_lib_z_gzopen=no
  12786. fi
  12787. rm -f core conftest.err conftest.$ac_objext \
  12788. conftest$ac_exeext conftest.$ac_ext
  12789. LIBS=$ac_check_lib_save_LIBS
  12790. fi
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12792. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12793. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12794. cat >>confdefs.h <<_ACEOF
  12795. #define HAVE_LIBZ 1
  12796. _ACEOF
  12797. LIBS="-lz $LIBS"
  12798. fi
  12799. fi
  12800. if test "$enable_bzlib" != "no"; then
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
  12802. $as_echo_n "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
  12803. if ${ac_cv_lib_bz2_BZ2_bzCompressInit+:} false; then :
  12804. $as_echo_n "(cached) " >&6
  12805. else
  12806. ac_check_lib_save_LIBS=$LIBS
  12807. LIBS="-lbz2 $LIBS"
  12808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12809. /* end confdefs.h. */
  12810. /* Override any GCC internal prototype to avoid an error.
  12811. Use char because int might match the return type of a GCC
  12812. builtin and then its argument prototype would still apply. */
  12813. #ifdef __cplusplus
  12814. extern "C"
  12815. #endif
  12816. char BZ2_bzCompressInit ();
  12817. int
  12818. main ()
  12819. {
  12820. return BZ2_bzCompressInit ();
  12821. ;
  12822. return 0;
  12823. }
  12824. _ACEOF
  12825. if ac_fn_c_try_link "$LINENO"; then :
  12826. ac_cv_lib_bz2_BZ2_bzCompressInit=yes
  12827. else
  12828. ac_cv_lib_bz2_BZ2_bzCompressInit=no
  12829. fi
  12830. rm -f core conftest.err conftest.$ac_objext \
  12831. conftest$ac_exeext conftest.$ac_ext
  12832. LIBS=$ac_check_lib_save_LIBS
  12833. fi
  12834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
  12835. $as_echo "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
  12836. if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes; then :
  12837. cat >>confdefs.h <<_ACEOF
  12838. #define HAVE_LIBBZ2 1
  12839. _ACEOF
  12840. LIBS="-lbz2 $LIBS"
  12841. fi
  12842. fi
  12843. if test "$enable_xzlib" != "no"; then
  12844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
  12845. $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
  12846. if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
  12847. $as_echo_n "(cached) " >&6
  12848. else
  12849. ac_check_lib_save_LIBS=$LIBS
  12850. LIBS="-llzma $LIBS"
  12851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12852. /* end confdefs.h. */
  12853. /* Override any GCC internal prototype to avoid an error.
  12854. Use char because int might match the return type of a GCC
  12855. builtin and then its argument prototype would still apply. */
  12856. #ifdef __cplusplus
  12857. extern "C"
  12858. #endif
  12859. char lzma_stream_decoder ();
  12860. int
  12861. main ()
  12862. {
  12863. return lzma_stream_decoder ();
  12864. ;
  12865. return 0;
  12866. }
  12867. _ACEOF
  12868. if ac_fn_c_try_link "$LINENO"; then :
  12869. ac_cv_lib_lzma_lzma_stream_decoder=yes
  12870. else
  12871. ac_cv_lib_lzma_lzma_stream_decoder=no
  12872. fi
  12873. rm -f core conftest.err conftest.$ac_objext \
  12874. conftest$ac_exeext conftest.$ac_ext
  12875. LIBS=$ac_check_lib_save_LIBS
  12876. fi
  12877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
  12878. $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
  12879. if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
  12880. cat >>confdefs.h <<_ACEOF
  12881. #define HAVE_LIBLZMA 1
  12882. _ACEOF
  12883. LIBS="-llzma $LIBS"
  12884. fi
  12885. fi
  12886. if test "$enable_libseccomp" != "no"; then
  12887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  12888. $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
  12889. if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
  12890. $as_echo_n "(cached) " >&6
  12891. else
  12892. ac_check_lib_save_LIBS=$LIBS
  12893. LIBS="-lseccomp $LIBS"
  12894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12895. /* end confdefs.h. */
  12896. /* Override any GCC internal prototype to avoid an error.
  12897. Use char because int might match the return type of a GCC
  12898. builtin and then its argument prototype would still apply. */
  12899. #ifdef __cplusplus
  12900. extern "C"
  12901. #endif
  12902. char seccomp_init ();
  12903. int
  12904. main ()
  12905. {
  12906. return seccomp_init ();
  12907. ;
  12908. return 0;
  12909. }
  12910. _ACEOF
  12911. if ac_fn_c_try_link "$LINENO"; then :
  12912. ac_cv_lib_seccomp_seccomp_init=yes
  12913. else
  12914. ac_cv_lib_seccomp_seccomp_init=no
  12915. fi
  12916. rm -f core conftest.err conftest.$ac_objext \
  12917. conftest$ac_exeext conftest.$ac_ext
  12918. LIBS=$ac_check_lib_save_LIBS
  12919. fi
  12920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  12921. $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  12922. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
  12923. cat >>confdefs.h <<_ACEOF
  12924. #define HAVE_LIBSECCOMP 1
  12925. _ACEOF
  12926. LIBS="-lseccomp $LIBS"
  12927. fi
  12928. fi
  12929. if test "$MINGW" = 1; then
  12930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12931. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12932. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12933. $as_echo_n "(cached) " >&6
  12934. else
  12935. ac_check_lib_save_LIBS=$LIBS
  12936. LIBS="-lgnurx $LIBS"
  12937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12938. /* end confdefs.h. */
  12939. /* Override any GCC internal prototype to avoid an error.
  12940. Use char because int might match the return type of a GCC
  12941. builtin and then its argument prototype would still apply. */
  12942. #ifdef __cplusplus
  12943. extern "C"
  12944. #endif
  12945. char regexec ();
  12946. int
  12947. main ()
  12948. {
  12949. return regexec ();
  12950. ;
  12951. return 0;
  12952. }
  12953. _ACEOF
  12954. if ac_fn_c_try_link "$LINENO"; then :
  12955. ac_cv_lib_gnurx_regexec=yes
  12956. else
  12957. ac_cv_lib_gnurx_regexec=no
  12958. fi
  12959. rm -f core conftest.err conftest.$ac_objext \
  12960. conftest$ac_exeext conftest.$ac_ext
  12961. LIBS=$ac_check_lib_save_LIBS
  12962. fi
  12963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12964. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12965. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12966. cat >>confdefs.h <<_ACEOF
  12967. #define HAVE_LIBGNURX 1
  12968. _ACEOF
  12969. LIBS="-lgnurx $LIBS"
  12970. else
  12971. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12972. fi
  12973. fi
  12974. if test "$cross_compiling" = yes; then
  12975. IS_CROSS_COMPILE_TRUE=
  12976. IS_CROSS_COMPILE_FALSE='#'
  12977. else
  12978. IS_CROSS_COMPILE_TRUE='#'
  12979. IS_CROSS_COMPILE_FALSE=
  12980. fi
  12981. if test "$enable_zlib" = "yes"; then
  12982. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  12983. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  12984. fi
  12985. fi
  12986. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  12987. $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
  12988. fi
  12989. if test "$enable_bzlib" = "yes"; then
  12990. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
  12991. as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
  12992. fi
  12993. fi
  12994. if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
  12995. $as_echo "#define BZLIBSUPPORT 1" >>confdefs.h
  12996. fi
  12997. if test "$enable_xzlib" = "yes"; then
  12998. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
  12999. as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
  13000. fi
  13001. fi
  13002. if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
  13003. $as_echo "#define XZLIBSUPPORT 1" >>confdefs.h
  13004. fi
  13005. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
  13006. cat >confcache <<\_ACEOF
  13007. # This file is a shell script that caches the results of configure
  13008. # tests run on this system so they can be shared between configure
  13009. # scripts and configure runs, see configure's option --config-cache.
  13010. # It is not useful on other systems. If it contains results you don't
  13011. # want to keep, you may remove or edit it.
  13012. #
  13013. # config.status only pays attention to the cache file if you give it
  13014. # the --recheck option to rerun configure.
  13015. #
  13016. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13017. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13018. # following values.
  13019. _ACEOF
  13020. # The following way of writing the cache mishandles newlines in values,
  13021. # but we know of no workaround that is simple, portable, and efficient.
  13022. # So, we kill variables containing newlines.
  13023. # Ultrix sh set writes to stderr and can't be redirected directly,
  13024. # and sets the high bit in the cache file unless we assign to the vars.
  13025. (
  13026. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13027. eval ac_val=\$$ac_var
  13028. case $ac_val in #(
  13029. *${as_nl}*)
  13030. case $ac_var in #(
  13031. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13032. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13033. esac
  13034. case $ac_var in #(
  13035. _ | IFS | as_nl) ;; #(
  13036. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13037. *) { eval $ac_var=; unset $ac_var;} ;;
  13038. esac ;;
  13039. esac
  13040. done
  13041. (set) 2>&1 |
  13042. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13043. *${as_nl}ac_space=\ *)
  13044. # `set' does not quote correctly, so add quotes: double-quote
  13045. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13046. sed -n \
  13047. "s/'/'\\\\''/g;
  13048. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13049. ;; #(
  13050. *)
  13051. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13052. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13053. ;;
  13054. esac |
  13055. sort
  13056. ) |
  13057. sed '
  13058. /^ac_cv_env_/b end
  13059. t clear
  13060. :clear
  13061. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13062. t end
  13063. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13064. :end' >>confcache
  13065. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13066. if test -w "$cache_file"; then
  13067. if test "x$cache_file" != "x/dev/null"; then
  13068. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13069. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13070. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13071. cat confcache >"$cache_file"
  13072. else
  13073. case $cache_file in #(
  13074. */* | ?:*)
  13075. mv -f confcache "$cache_file"$$ &&
  13076. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13077. *)
  13078. mv -f confcache "$cache_file" ;;
  13079. esac
  13080. fi
  13081. fi
  13082. else
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13084. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13085. fi
  13086. fi
  13087. rm -f confcache
  13088. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13089. # Let make expand exec_prefix.
  13090. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13091. DEFS=-DHAVE_CONFIG_H
  13092. ac_libobjs=
  13093. ac_ltlibobjs=
  13094. U=
  13095. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13096. # 1. Remove the extension, and $U if already installed.
  13097. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13098. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13099. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13100. # will be set to the directory where LIBOBJS objects are built.
  13101. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13102. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13103. done
  13104. LIBOBJS=$ac_libobjs
  13105. LTLIBOBJS=$ac_ltlibobjs
  13106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  13107. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  13108. if test -n "$am_sleep_pid"; then
  13109. # Hide warnings about reused PIDs.
  13110. wait $am_sleep_pid 2>/dev/null
  13111. fi
  13112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  13113. $as_echo "done" >&6; }
  13114. if test -n "$EXEEXT"; then
  13115. am__EXEEXT_TRUE=
  13116. am__EXEEXT_FALSE='#'
  13117. else
  13118. am__EXEEXT_TRUE='#'
  13119. am__EXEEXT_FALSE=
  13120. fi
  13121. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  13122. as_fn_error $? "conditional \"MINGW\" was never defined.
  13123. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13124. fi
  13125. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  13126. as_fn_error $? "conditional \"FSECT5\" was never defined.
  13127. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13128. fi
  13129. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13130. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13131. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13132. fi
  13133. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13134. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13135. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13136. fi
  13137. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  13138. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  13139. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13140. fi
  13141. : "${CONFIG_STATUS=./config.status}"
  13142. ac_write_fail=0
  13143. ac_clean_files_save=$ac_clean_files
  13144. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13146. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13147. as_write_fail=0
  13148. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13149. #! $SHELL
  13150. # Generated by $as_me.
  13151. # Run this file to recreate the current configuration.
  13152. # Compiler output produced by configure, useful for debugging
  13153. # configure, is in config.log if it exists.
  13154. debug=false
  13155. ac_cs_recheck=false
  13156. ac_cs_silent=false
  13157. SHELL=\${CONFIG_SHELL-$SHELL}
  13158. export SHELL
  13159. _ASEOF
  13160. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13161. ## -------------------- ##
  13162. ## M4sh Initialization. ##
  13163. ## -------------------- ##
  13164. # Be more Bourne compatible
  13165. DUALCASE=1; export DUALCASE # for MKS sh
  13166. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13167. emulate sh
  13168. NULLCMD=:
  13169. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13170. # is contrary to our usage. Disable this feature.
  13171. alias -g '${1+"$@"}'='"$@"'
  13172. setopt NO_GLOB_SUBST
  13173. else
  13174. case `(set -o) 2>/dev/null` in #(
  13175. *posix*) :
  13176. set -o posix ;; #(
  13177. *) :
  13178. ;;
  13179. esac
  13180. fi
  13181. as_nl='
  13182. '
  13183. export as_nl
  13184. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13185. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13186. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13187. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13188. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13189. # but without wasting forks for bash or zsh.
  13190. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13191. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13192. as_echo='print -r --'
  13193. as_echo_n='print -rn --'
  13194. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13195. as_echo='printf %s\n'
  13196. as_echo_n='printf %s'
  13197. else
  13198. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13199. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13200. as_echo_n='/usr/ucb/echo -n'
  13201. else
  13202. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13203. as_echo_n_body='eval
  13204. arg=$1;
  13205. case $arg in #(
  13206. *"$as_nl"*)
  13207. expr "X$arg" : "X\\(.*\\)$as_nl";
  13208. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13209. esac;
  13210. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13211. '
  13212. export as_echo_n_body
  13213. as_echo_n='sh -c $as_echo_n_body as_echo'
  13214. fi
  13215. export as_echo_body
  13216. as_echo='sh -c $as_echo_body as_echo'
  13217. fi
  13218. # The user is always right.
  13219. if test "${PATH_SEPARATOR+set}" != set; then
  13220. PATH_SEPARATOR=:
  13221. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13222. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13223. PATH_SEPARATOR=';'
  13224. }
  13225. fi
  13226. # IFS
  13227. # We need space, tab and new line, in precisely that order. Quoting is
  13228. # there to prevent editors from complaining about space-tab.
  13229. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13230. # splitting by setting IFS to empty value.)
  13231. IFS=" "" $as_nl"
  13232. # Find who we are. Look in the path if we contain no directory separator.
  13233. as_myself=
  13234. case $0 in #((
  13235. *[\\/]* ) as_myself=$0 ;;
  13236. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13237. for as_dir in $PATH
  13238. do
  13239. IFS=$as_save_IFS
  13240. test -z "$as_dir" && as_dir=.
  13241. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13242. done
  13243. IFS=$as_save_IFS
  13244. ;;
  13245. esac
  13246. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13247. # in which case we are not to be found in the path.
  13248. if test "x$as_myself" = x; then
  13249. as_myself=$0
  13250. fi
  13251. if test ! -f "$as_myself"; then
  13252. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13253. exit 1
  13254. fi
  13255. # Unset variables that we do not need and which cause bugs (e.g. in
  13256. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13257. # suppresses any "Segmentation fault" message there. '((' could
  13258. # trigger a bug in pdksh 5.2.14.
  13259. for as_var in BASH_ENV ENV MAIL MAILPATH
  13260. do eval test x\${$as_var+set} = xset \
  13261. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13262. done
  13263. PS1='$ '
  13264. PS2='> '
  13265. PS4='+ '
  13266. # NLS nuisances.
  13267. LC_ALL=C
  13268. export LC_ALL
  13269. LANGUAGE=C
  13270. export LANGUAGE
  13271. # CDPATH.
  13272. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13273. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13274. # ----------------------------------------
  13275. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13276. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13277. # script with STATUS, using 1 if that was 0.
  13278. as_fn_error ()
  13279. {
  13280. as_status=$1; test $as_status -eq 0 && as_status=1
  13281. if test "$4"; then
  13282. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13283. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13284. fi
  13285. $as_echo "$as_me: error: $2" >&2
  13286. as_fn_exit $as_status
  13287. } # as_fn_error
  13288. # as_fn_set_status STATUS
  13289. # -----------------------
  13290. # Set $? to STATUS, without forking.
  13291. as_fn_set_status ()
  13292. {
  13293. return $1
  13294. } # as_fn_set_status
  13295. # as_fn_exit STATUS
  13296. # -----------------
  13297. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13298. as_fn_exit ()
  13299. {
  13300. set +e
  13301. as_fn_set_status $1
  13302. exit $1
  13303. } # as_fn_exit
  13304. # as_fn_unset VAR
  13305. # ---------------
  13306. # Portably unset VAR.
  13307. as_fn_unset ()
  13308. {
  13309. { eval $1=; unset $1;}
  13310. }
  13311. as_unset=as_fn_unset
  13312. # as_fn_append VAR VALUE
  13313. # ----------------------
  13314. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13315. # advantage of any shell optimizations that allow amortized linear growth over
  13316. # repeated appends, instead of the typical quadratic growth present in naive
  13317. # implementations.
  13318. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13319. eval 'as_fn_append ()
  13320. {
  13321. eval $1+=\$2
  13322. }'
  13323. else
  13324. as_fn_append ()
  13325. {
  13326. eval $1=\$$1\$2
  13327. }
  13328. fi # as_fn_append
  13329. # as_fn_arith ARG...
  13330. # ------------------
  13331. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13332. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13333. # must be portable across $(()) and expr.
  13334. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13335. eval 'as_fn_arith ()
  13336. {
  13337. as_val=$(( $* ))
  13338. }'
  13339. else
  13340. as_fn_arith ()
  13341. {
  13342. as_val=`expr "$@" || test $? -eq 1`
  13343. }
  13344. fi # as_fn_arith
  13345. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13346. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13347. as_expr=expr
  13348. else
  13349. as_expr=false
  13350. fi
  13351. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13352. as_basename=basename
  13353. else
  13354. as_basename=false
  13355. fi
  13356. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13357. as_dirname=dirname
  13358. else
  13359. as_dirname=false
  13360. fi
  13361. as_me=`$as_basename -- "$0" ||
  13362. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13363. X"$0" : 'X\(//\)$' \| \
  13364. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13365. $as_echo X/"$0" |
  13366. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13367. s//\1/
  13368. q
  13369. }
  13370. /^X\/\(\/\/\)$/{
  13371. s//\1/
  13372. q
  13373. }
  13374. /^X\/\(\/\).*/{
  13375. s//\1/
  13376. q
  13377. }
  13378. s/.*/./; q'`
  13379. # Avoid depending upon Character Ranges.
  13380. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13381. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13382. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13383. as_cr_digits='0123456789'
  13384. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13385. ECHO_C= ECHO_N= ECHO_T=
  13386. case `echo -n x` in #(((((
  13387. -n*)
  13388. case `echo 'xy\c'` in
  13389. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13390. xy) ECHO_C='\c';;
  13391. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13392. ECHO_T=' ';;
  13393. esac;;
  13394. *)
  13395. ECHO_N='-n';;
  13396. esac
  13397. rm -f conf$$ conf$$.exe conf$$.file
  13398. if test -d conf$$.dir; then
  13399. rm -f conf$$.dir/conf$$.file
  13400. else
  13401. rm -f conf$$.dir
  13402. mkdir conf$$.dir 2>/dev/null
  13403. fi
  13404. if (echo >conf$$.file) 2>/dev/null; then
  13405. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13406. as_ln_s='ln -s'
  13407. # ... but there are two gotchas:
  13408. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13409. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13410. # In both cases, we have to default to `cp -pR'.
  13411. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13412. as_ln_s='cp -pR'
  13413. elif ln conf$$.file conf$$ 2>/dev/null; then
  13414. as_ln_s=ln
  13415. else
  13416. as_ln_s='cp -pR'
  13417. fi
  13418. else
  13419. as_ln_s='cp -pR'
  13420. fi
  13421. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13422. rmdir conf$$.dir 2>/dev/null
  13423. # as_fn_mkdir_p
  13424. # -------------
  13425. # Create "$as_dir" as a directory, including parents if necessary.
  13426. as_fn_mkdir_p ()
  13427. {
  13428. case $as_dir in #(
  13429. -*) as_dir=./$as_dir;;
  13430. esac
  13431. test -d "$as_dir" || eval $as_mkdir_p || {
  13432. as_dirs=
  13433. while :; do
  13434. case $as_dir in #(
  13435. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13436. *) as_qdir=$as_dir;;
  13437. esac
  13438. as_dirs="'$as_qdir' $as_dirs"
  13439. as_dir=`$as_dirname -- "$as_dir" ||
  13440. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13441. X"$as_dir" : 'X\(//\)[^/]' \| \
  13442. X"$as_dir" : 'X\(//\)$' \| \
  13443. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13444. $as_echo X"$as_dir" |
  13445. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13446. s//\1/
  13447. q
  13448. }
  13449. /^X\(\/\/\)[^/].*/{
  13450. s//\1/
  13451. q
  13452. }
  13453. /^X\(\/\/\)$/{
  13454. s//\1/
  13455. q
  13456. }
  13457. /^X\(\/\).*/{
  13458. s//\1/
  13459. q
  13460. }
  13461. s/.*/./; q'`
  13462. test -d "$as_dir" && break
  13463. done
  13464. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13465. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13466. } # as_fn_mkdir_p
  13467. if mkdir -p . 2>/dev/null; then
  13468. as_mkdir_p='mkdir -p "$as_dir"'
  13469. else
  13470. test -d ./-p && rmdir ./-p
  13471. as_mkdir_p=false
  13472. fi
  13473. # as_fn_executable_p FILE
  13474. # -----------------------
  13475. # Test if FILE is an executable regular file.
  13476. as_fn_executable_p ()
  13477. {
  13478. test -f "$1" && test -x "$1"
  13479. } # as_fn_executable_p
  13480. as_test_x='test -x'
  13481. as_executable_p=as_fn_executable_p
  13482. # Sed expression to map a string onto a valid CPP name.
  13483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13484. # Sed expression to map a string onto a valid variable name.
  13485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13486. exec 6>&1
  13487. ## ----------------------------------- ##
  13488. ## Main body of $CONFIG_STATUS script. ##
  13489. ## ----------------------------------- ##
  13490. _ASEOF
  13491. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13492. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13493. # Save the log message, to keep $0 and so on meaningful, and to
  13494. # report actual input values of CONFIG_FILES etc. instead of their
  13495. # values after options handling.
  13496. ac_log="
  13497. This file was extended by file $as_me 5.39, which was
  13498. generated by GNU Autoconf 2.69. Invocation command line was
  13499. CONFIG_FILES = $CONFIG_FILES
  13500. CONFIG_HEADERS = $CONFIG_HEADERS
  13501. CONFIG_LINKS = $CONFIG_LINKS
  13502. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13503. $ $0 $@
  13504. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13505. "
  13506. _ACEOF
  13507. case $ac_config_files in *"
  13508. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13509. esac
  13510. case $ac_config_headers in *"
  13511. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13512. esac
  13513. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13514. # Files that config.status was made for.
  13515. config_files="$ac_config_files"
  13516. config_headers="$ac_config_headers"
  13517. config_commands="$ac_config_commands"
  13518. _ACEOF
  13519. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13520. ac_cs_usage="\
  13521. \`$as_me' instantiates files and other configuration actions
  13522. from templates according to the current configuration. Unless the files
  13523. and actions are specified as TAGs, all are instantiated by default.
  13524. Usage: $0 [OPTION]... [TAG]...
  13525. -h, --help print this help, then exit
  13526. -V, --version print version number and configuration settings, then exit
  13527. --config print configuration, then exit
  13528. -q, --quiet, --silent
  13529. do not print progress messages
  13530. -d, --debug don't remove temporary files
  13531. --recheck update $as_me by reconfiguring in the same conditions
  13532. --file=FILE[:TEMPLATE]
  13533. instantiate the configuration file FILE
  13534. --header=FILE[:TEMPLATE]
  13535. instantiate the configuration header FILE
  13536. Configuration files:
  13537. $config_files
  13538. Configuration headers:
  13539. $config_headers
  13540. Configuration commands:
  13541. $config_commands
  13542. Report bugs to <christos@astron.com>."
  13543. _ACEOF
  13544. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13545. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13546. ac_cs_version="\\
  13547. file config.status 5.39
  13548. configured by $0, generated by GNU Autoconf 2.69,
  13549. with options \\"\$ac_cs_config\\"
  13550. Copyright (C) 2012 Free Software Foundation, Inc.
  13551. This config.status script is free software; the Free Software Foundation
  13552. gives unlimited permission to copy, distribute and modify it."
  13553. ac_pwd='$ac_pwd'
  13554. srcdir='$srcdir'
  13555. INSTALL='$INSTALL'
  13556. MKDIR_P='$MKDIR_P'
  13557. AWK='$AWK'
  13558. test -n "\$AWK" || AWK=awk
  13559. _ACEOF
  13560. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13561. # The default lists apply if the user does not specify any file.
  13562. ac_need_defaults=:
  13563. while test $# != 0
  13564. do
  13565. case $1 in
  13566. --*=?*)
  13567. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13568. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13569. ac_shift=:
  13570. ;;
  13571. --*=)
  13572. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13573. ac_optarg=
  13574. ac_shift=:
  13575. ;;
  13576. *)
  13577. ac_option=$1
  13578. ac_optarg=$2
  13579. ac_shift=shift
  13580. ;;
  13581. esac
  13582. case $ac_option in
  13583. # Handling of the options.
  13584. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13585. ac_cs_recheck=: ;;
  13586. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13587. $as_echo "$ac_cs_version"; exit ;;
  13588. --config | --confi | --conf | --con | --co | --c )
  13589. $as_echo "$ac_cs_config"; exit ;;
  13590. --debug | --debu | --deb | --de | --d | -d )
  13591. debug=: ;;
  13592. --file | --fil | --fi | --f )
  13593. $ac_shift
  13594. case $ac_optarg in
  13595. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13596. '') as_fn_error $? "missing file argument" ;;
  13597. esac
  13598. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13599. ac_need_defaults=false;;
  13600. --header | --heade | --head | --hea )
  13601. $ac_shift
  13602. case $ac_optarg in
  13603. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13604. esac
  13605. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13606. ac_need_defaults=false;;
  13607. --he | --h)
  13608. # Conflict between --help and --header
  13609. as_fn_error $? "ambiguous option: \`$1'
  13610. Try \`$0 --help' for more information.";;
  13611. --help | --hel | -h )
  13612. $as_echo "$ac_cs_usage"; exit ;;
  13613. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13614. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13615. ac_cs_silent=: ;;
  13616. # This is an error.
  13617. -*) as_fn_error $? "unrecognized option: \`$1'
  13618. Try \`$0 --help' for more information." ;;
  13619. *) as_fn_append ac_config_targets " $1"
  13620. ac_need_defaults=false ;;
  13621. esac
  13622. shift
  13623. done
  13624. ac_configure_extra_args=
  13625. if $ac_cs_silent; then
  13626. exec 6>/dev/null
  13627. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13628. fi
  13629. _ACEOF
  13630. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13631. if \$ac_cs_recheck; then
  13632. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13633. shift
  13634. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13635. CONFIG_SHELL='$SHELL'
  13636. export CONFIG_SHELL
  13637. exec "\$@"
  13638. fi
  13639. _ACEOF
  13640. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13641. exec 5>>config.log
  13642. {
  13643. echo
  13644. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13645. ## Running $as_me. ##
  13646. _ASBOX
  13647. $as_echo "$ac_log"
  13648. } >&5
  13649. _ACEOF
  13650. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13651. #
  13652. # INIT-COMMANDS
  13653. #
  13654. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  13655. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13656. # if CDPATH is set.
  13657. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13658. sed_quote_subst='$sed_quote_subst'
  13659. double_quote_subst='$double_quote_subst'
  13660. delay_variable_subst='$delay_variable_subst'
  13661. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13662. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13663. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13664. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13665. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13666. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13667. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  13668. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13669. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13670. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13671. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13672. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13673. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13674. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13675. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13676. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13677. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13678. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13679. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13680. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13681. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13682. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13683. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13684. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13685. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13686. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13687. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13688. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13689. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13690. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13691. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13692. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13693. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13694. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13695. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13696. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13697. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13698. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13699. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13700. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13701. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13702. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13703. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13704. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13705. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13706. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13707. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13708. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13709. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13710. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13711. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13712. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13713. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13714. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13715. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13716. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13717. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  13718. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13719. 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"`'
  13720. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  13721. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13722. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13723. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  13724. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13725. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13726. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13727. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13728. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13729. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13730. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13731. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13732. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13733. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13734. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13735. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13736. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13737. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13738. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13739. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13740. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13741. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13742. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13743. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13744. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13745. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13746. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13747. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13748. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13749. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13750. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13751. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13752. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13753. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13754. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13755. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13756. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13757. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13758. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13759. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13760. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13761. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13762. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13763. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13764. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13765. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13766. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13767. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13768. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13769. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13770. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13771. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13772. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13773. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13774. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13775. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13776. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13777. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13778. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13779. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13780. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13781. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13782. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13783. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13784. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13785. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13786. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13787. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13788. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  13789. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  13790. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13791. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13792. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13793. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13794. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13795. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13796. LTCC='$LTCC'
  13797. LTCFLAGS='$LTCFLAGS'
  13798. compiler='$compiler_DEFAULT'
  13799. # A function that is used when there is no print builtin or printf.
  13800. func_fallback_echo ()
  13801. {
  13802. eval 'cat <<_LTECHO_EOF
  13803. \$1
  13804. _LTECHO_EOF'
  13805. }
  13806. # Quote evaled strings.
  13807. for var in SHELL \
  13808. ECHO \
  13809. PATH_SEPARATOR \
  13810. SED \
  13811. GREP \
  13812. EGREP \
  13813. FGREP \
  13814. LD \
  13815. NM \
  13816. LN_S \
  13817. lt_SP2NL \
  13818. lt_NL2SP \
  13819. reload_flag \
  13820. OBJDUMP \
  13821. deplibs_check_method \
  13822. file_magic_cmd \
  13823. file_magic_glob \
  13824. want_nocaseglob \
  13825. DLLTOOL \
  13826. sharedlib_from_linklib_cmd \
  13827. AR \
  13828. AR_FLAGS \
  13829. archiver_list_spec \
  13830. STRIP \
  13831. RANLIB \
  13832. CC \
  13833. CFLAGS \
  13834. compiler \
  13835. lt_cv_sys_global_symbol_pipe \
  13836. lt_cv_sys_global_symbol_to_cdecl \
  13837. lt_cv_sys_global_symbol_to_import \
  13838. lt_cv_sys_global_symbol_to_c_name_address \
  13839. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13840. lt_cv_nm_interface \
  13841. nm_file_list_spec \
  13842. lt_cv_truncate_bin \
  13843. lt_prog_compiler_no_builtin_flag \
  13844. lt_prog_compiler_pic \
  13845. lt_prog_compiler_wl \
  13846. lt_prog_compiler_static \
  13847. lt_cv_prog_compiler_c_o \
  13848. need_locks \
  13849. MANIFEST_TOOL \
  13850. DSYMUTIL \
  13851. NMEDIT \
  13852. LIPO \
  13853. OTOOL \
  13854. OTOOL64 \
  13855. shrext_cmds \
  13856. export_dynamic_flag_spec \
  13857. whole_archive_flag_spec \
  13858. compiler_needs_object \
  13859. with_gnu_ld \
  13860. allow_undefined_flag \
  13861. no_undefined_flag \
  13862. hardcode_libdir_flag_spec \
  13863. hardcode_libdir_separator \
  13864. exclude_expsyms \
  13865. include_expsyms \
  13866. file_list_spec \
  13867. variables_saved_for_relink \
  13868. libname_spec \
  13869. library_names_spec \
  13870. soname_spec \
  13871. install_override_mode \
  13872. finish_eval \
  13873. old_striplib \
  13874. striplib; do
  13875. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13876. *[\\\\\\\`\\"\\\$]*)
  13877. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13878. ;;
  13879. *)
  13880. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13881. ;;
  13882. esac
  13883. done
  13884. # Double-quote double-evaled strings.
  13885. for var in reload_cmds \
  13886. old_postinstall_cmds \
  13887. old_postuninstall_cmds \
  13888. old_archive_cmds \
  13889. extract_expsyms_cmds \
  13890. old_archive_from_new_cmds \
  13891. old_archive_from_expsyms_cmds \
  13892. archive_cmds \
  13893. archive_expsym_cmds \
  13894. module_cmds \
  13895. module_expsym_cmds \
  13896. export_symbols_cmds \
  13897. prelink_cmds \
  13898. postlink_cmds \
  13899. postinstall_cmds \
  13900. postuninstall_cmds \
  13901. finish_cmds \
  13902. sys_lib_search_path_spec \
  13903. configure_time_dlsearch_path \
  13904. configure_time_lt_sys_library_path; do
  13905. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13906. *[\\\\\\\`\\"\\\$]*)
  13907. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  13908. ;;
  13909. *)
  13910. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13911. ;;
  13912. esac
  13913. done
  13914. ac_aux_dir='$ac_aux_dir'
  13915. # See if we are running on zsh, and set the options that allow our
  13916. # commands through without removal of \ escapes INIT.
  13917. if test -n "\${ZSH_VERSION+set}"; then
  13918. setopt NO_GLOB_SUBST
  13919. fi
  13920. PACKAGE='$PACKAGE'
  13921. VERSION='$VERSION'
  13922. RM='$RM'
  13923. ofile='$ofile'
  13924. _ACEOF
  13925. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13926. # Handling of arguments.
  13927. for ac_config_target in $ac_config_targets
  13928. do
  13929. case $ac_config_target in
  13930. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13931. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13932. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13933. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13934. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13935. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13936. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13937. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13938. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13939. "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
  13940. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13941. esac
  13942. done
  13943. # If the user did not use the arguments to specify the items to instantiate,
  13944. # then the envvar interface is used. Set only those that are not.
  13945. # We use the long form for the default assignment because of an extremely
  13946. # bizarre bug on SunOS 4.1.3.
  13947. if $ac_need_defaults; then
  13948. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13949. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13950. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13951. fi
  13952. # Have a temporary directory for convenience. Make it in the build tree
  13953. # simply because there is no reason against having it here, and in addition,
  13954. # creating and moving files from /tmp can sometimes cause problems.
  13955. # Hook for its removal unless debugging.
  13956. # Note that there is a small window in which the directory will not be cleaned:
  13957. # after its creation but before its name has been assigned to `$tmp'.
  13958. $debug ||
  13959. {
  13960. tmp= ac_tmp=
  13961. trap 'exit_status=$?
  13962. : "${ac_tmp:=$tmp}"
  13963. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13964. ' 0
  13965. trap 'as_fn_exit 1' 1 2 13 15
  13966. }
  13967. # Create a (secure) tmp directory for tmp files.
  13968. {
  13969. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13970. test -d "$tmp"
  13971. } ||
  13972. {
  13973. tmp=./conf$$-$RANDOM
  13974. (umask 077 && mkdir "$tmp")
  13975. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13976. ac_tmp=$tmp
  13977. # Set up the scripts for CONFIG_FILES section.
  13978. # No need to generate them if there are no CONFIG_FILES.
  13979. # This happens for instance with `./config.status config.h'.
  13980. if test -n "$CONFIG_FILES"; then
  13981. ac_cr=`echo X | tr X '\015'`
  13982. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13983. # But we know of no other shell where ac_cr would be empty at this
  13984. # point, so we can use a bashism as a fallback.
  13985. if test "x$ac_cr" = x; then
  13986. eval ac_cr=\$\'\\r\'
  13987. fi
  13988. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13989. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13990. ac_cs_awk_cr='\\r'
  13991. else
  13992. ac_cs_awk_cr=$ac_cr
  13993. fi
  13994. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13995. _ACEOF
  13996. {
  13997. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13998. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13999. echo "_ACEOF"
  14000. } >conf$$subs.sh ||
  14001. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14002. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  14003. ac_delim='%!_!# '
  14004. for ac_last_try in false false false false false :; do
  14005. . ./conf$$subs.sh ||
  14006. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14007. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14008. if test $ac_delim_n = $ac_delim_num; then
  14009. break
  14010. elif $ac_last_try; then
  14011. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  14012. else
  14013. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14014. fi
  14015. done
  14016. rm -f conf$$subs.sh
  14017. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14018. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  14019. _ACEOF
  14020. sed -n '
  14021. h
  14022. s/^/S["/; s/!.*/"]=/
  14023. p
  14024. g
  14025. s/^[^!]*!//
  14026. :repl
  14027. t repl
  14028. s/'"$ac_delim"'$//
  14029. t delim
  14030. :nl
  14031. h
  14032. s/\(.\{148\}\)..*/\1/
  14033. t more1
  14034. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14035. p
  14036. n
  14037. b repl
  14038. :more1
  14039. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14040. p
  14041. g
  14042. s/.\{148\}//
  14043. t nl
  14044. :delim
  14045. h
  14046. s/\(.\{148\}\)..*/\1/
  14047. t more2
  14048. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14049. p
  14050. b
  14051. :more2
  14052. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14053. p
  14054. g
  14055. s/.\{148\}//
  14056. t delim
  14057. ' <conf$$subs.awk | sed '
  14058. /^[^""]/{
  14059. N
  14060. s/\n//
  14061. }
  14062. ' >>$CONFIG_STATUS || ac_write_fail=1
  14063. rm -f conf$$subs.awk
  14064. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14065. _ACAWK
  14066. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  14067. for (key in S) S_is_set[key] = 1
  14068. FS = ""
  14069. }
  14070. {
  14071. line = $ 0
  14072. nfields = split(line, field, "@")
  14073. substed = 0
  14074. len = length(field[1])
  14075. for (i = 2; i < nfields; i++) {
  14076. key = field[i]
  14077. keylen = length(key)
  14078. if (S_is_set[key]) {
  14079. value = S[key]
  14080. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14081. len += length(value) + length(field[++i])
  14082. substed = 1
  14083. } else
  14084. len += 1 + keylen
  14085. }
  14086. print line
  14087. }
  14088. _ACAWK
  14089. _ACEOF
  14090. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14091. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14092. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14093. else
  14094. cat
  14095. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  14096. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  14097. _ACEOF
  14098. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  14099. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  14100. # trailing colons and then remove the whole line if VPATH becomes empty
  14101. # (actually we leave an empty line to preserve line numbers).
  14102. if test "x$srcdir" = x.; then
  14103. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  14104. h
  14105. s///
  14106. s/^/:/
  14107. s/[ ]*$/:/
  14108. s/:\$(srcdir):/:/g
  14109. s/:\${srcdir}:/:/g
  14110. s/:@srcdir@:/:/g
  14111. s/^:*//
  14112. s/:*$//
  14113. x
  14114. s/\(=[ ]*\).*/\1/
  14115. G
  14116. s/\n//
  14117. s/^[^=]*=[ ]*$//
  14118. }'
  14119. fi
  14120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14121. fi # test -n "$CONFIG_FILES"
  14122. # Set up the scripts for CONFIG_HEADERS section.
  14123. # No need to generate them if there are no CONFIG_HEADERS.
  14124. # This happens for instance with `./config.status Makefile'.
  14125. if test -n "$CONFIG_HEADERS"; then
  14126. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  14127. BEGIN {
  14128. _ACEOF
  14129. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14130. # here-document in config.status, that substitutes the proper values into
  14131. # config.h.in to produce config.h.
  14132. # Create a delimiter string that does not exist in confdefs.h, to ease
  14133. # handling of long lines.
  14134. ac_delim='%!_!# '
  14135. for ac_last_try in false false :; do
  14136. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  14137. if test -z "$ac_tt"; then
  14138. break
  14139. elif $ac_last_try; then
  14140. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  14141. else
  14142. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14143. fi
  14144. done
  14145. # For the awk script, D is an array of macro values keyed by name,
  14146. # likewise P contains macro parameters if any. Preserve backslash
  14147. # newline sequences.
  14148. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14149. sed -n '
  14150. s/.\{148\}/&'"$ac_delim"'/g
  14151. t rset
  14152. :rset
  14153. s/^[ ]*#[ ]*define[ ][ ]*/ /
  14154. t def
  14155. d
  14156. :def
  14157. s/\\$//
  14158. t bsnl
  14159. s/["\\]/\\&/g
  14160. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14161. D["\1"]=" \3"/p
  14162. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14163. d
  14164. :bsnl
  14165. s/["\\]/\\&/g
  14166. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14167. D["\1"]=" \3\\\\\\n"\\/p
  14168. t cont
  14169. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14170. t cont
  14171. d
  14172. :cont
  14173. n
  14174. s/.\{148\}/&'"$ac_delim"'/g
  14175. t clear
  14176. :clear
  14177. s/\\$//
  14178. t bsnlc
  14179. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14180. d
  14181. :bsnlc
  14182. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14183. b cont
  14184. ' <confdefs.h | sed '
  14185. s/'"$ac_delim"'/"\\\
  14186. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14188. for (key in D) D_is_set[key] = 1
  14189. FS = ""
  14190. }
  14191. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14192. line = \$ 0
  14193. split(line, arg, " ")
  14194. if (arg[1] == "#") {
  14195. defundef = arg[2]
  14196. mac1 = arg[3]
  14197. } else {
  14198. defundef = substr(arg[1], 2)
  14199. mac1 = arg[2]
  14200. }
  14201. split(mac1, mac2, "(") #)
  14202. macro = mac2[1]
  14203. prefix = substr(line, 1, index(line, defundef) - 1)
  14204. if (D_is_set[macro]) {
  14205. # Preserve the white space surrounding the "#".
  14206. print prefix "define", macro P[macro] D[macro]
  14207. next
  14208. } else {
  14209. # Replace #undef with comments. This is necessary, for example,
  14210. # in the case of _POSIX_SOURCE, which is predefined and required
  14211. # on some systems where configure will not decide to define it.
  14212. if (defundef == "undef") {
  14213. print "/*", prefix defundef, macro, "*/"
  14214. next
  14215. }
  14216. }
  14217. }
  14218. { print }
  14219. _ACAWK
  14220. _ACEOF
  14221. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14222. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  14223. fi # test -n "$CONFIG_HEADERS"
  14224. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14225. shift
  14226. for ac_tag
  14227. do
  14228. case $ac_tag in
  14229. :[FHLC]) ac_mode=$ac_tag; continue;;
  14230. esac
  14231. case $ac_mode$ac_tag in
  14232. :[FHL]*:*);;
  14233. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14234. :[FH]-) ac_tag=-:-;;
  14235. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14236. esac
  14237. ac_save_IFS=$IFS
  14238. IFS=:
  14239. set x $ac_tag
  14240. IFS=$ac_save_IFS
  14241. shift
  14242. ac_file=$1
  14243. shift
  14244. case $ac_mode in
  14245. :L) ac_source=$1;;
  14246. :[FH])
  14247. ac_file_inputs=
  14248. for ac_f
  14249. do
  14250. case $ac_f in
  14251. -) ac_f="$ac_tmp/stdin";;
  14252. *) # Look for the file first in the build tree, then in the source tree
  14253. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14254. # because $ac_f cannot contain `:'.
  14255. test -f "$ac_f" ||
  14256. case $ac_f in
  14257. [\\/$]*) false;;
  14258. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14259. esac ||
  14260. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14261. esac
  14262. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14263. as_fn_append ac_file_inputs " '$ac_f'"
  14264. done
  14265. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14266. # use $as_me), people would be surprised to read:
  14267. # /* config.h. Generated by config.status. */
  14268. configure_input='Generated from '`
  14269. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14270. `' by configure.'
  14271. if test x"$ac_file" != x-; then
  14272. configure_input="$ac_file. $configure_input"
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14274. $as_echo "$as_me: creating $ac_file" >&6;}
  14275. fi
  14276. # Neutralize special characters interpreted by sed in replacement strings.
  14277. case $configure_input in #(
  14278. *\&* | *\|* | *\\* )
  14279. ac_sed_conf_input=`$as_echo "$configure_input" |
  14280. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14281. *) ac_sed_conf_input=$configure_input;;
  14282. esac
  14283. case $ac_tag in
  14284. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  14285. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  14286. esac
  14287. ;;
  14288. esac
  14289. ac_dir=`$as_dirname -- "$ac_file" ||
  14290. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14291. X"$ac_file" : 'X\(//\)[^/]' \| \
  14292. X"$ac_file" : 'X\(//\)$' \| \
  14293. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14294. $as_echo X"$ac_file" |
  14295. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14296. s//\1/
  14297. q
  14298. }
  14299. /^X\(\/\/\)[^/].*/{
  14300. s//\1/
  14301. q
  14302. }
  14303. /^X\(\/\/\)$/{
  14304. s//\1/
  14305. q
  14306. }
  14307. /^X\(\/\).*/{
  14308. s//\1/
  14309. q
  14310. }
  14311. s/.*/./; q'`
  14312. as_dir="$ac_dir"; as_fn_mkdir_p
  14313. ac_builddir=.
  14314. case "$ac_dir" in
  14315. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14316. *)
  14317. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14318. # A ".." for each directory in $ac_dir_suffix.
  14319. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14320. case $ac_top_builddir_sub in
  14321. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14322. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14323. esac ;;
  14324. esac
  14325. ac_abs_top_builddir=$ac_pwd
  14326. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14327. # for backward compatibility:
  14328. ac_top_builddir=$ac_top_build_prefix
  14329. case $srcdir in
  14330. .) # We are building in place.
  14331. ac_srcdir=.
  14332. ac_top_srcdir=$ac_top_builddir_sub
  14333. ac_abs_top_srcdir=$ac_pwd ;;
  14334. [\\/]* | ?:[\\/]* ) # Absolute name.
  14335. ac_srcdir=$srcdir$ac_dir_suffix;
  14336. ac_top_srcdir=$srcdir
  14337. ac_abs_top_srcdir=$srcdir ;;
  14338. *) # Relative name.
  14339. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14340. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14341. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14342. esac
  14343. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14344. case $ac_mode in
  14345. :F)
  14346. #
  14347. # CONFIG_FILE
  14348. #
  14349. case $INSTALL in
  14350. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14351. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14352. esac
  14353. ac_MKDIR_P=$MKDIR_P
  14354. case $MKDIR_P in
  14355. [\\/$]* | ?:[\\/]* ) ;;
  14356. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14357. esac
  14358. _ACEOF
  14359. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14360. # If the template does not know about datarootdir, expand it.
  14361. # FIXME: This hack should be removed a few years after 2.60.
  14362. ac_datarootdir_hack=; ac_datarootdir_seen=
  14363. ac_sed_dataroot='
  14364. /datarootdir/ {
  14365. p
  14366. q
  14367. }
  14368. /@datadir@/p
  14369. /@docdir@/p
  14370. /@infodir@/p
  14371. /@localedir@/p
  14372. /@mandir@/p'
  14373. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14374. *datarootdir*) ac_datarootdir_seen=yes;;
  14375. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14377. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14378. _ACEOF
  14379. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14380. ac_datarootdir_hack='
  14381. s&@datadir@&$datadir&g
  14382. s&@docdir@&$docdir&g
  14383. s&@infodir@&$infodir&g
  14384. s&@localedir@&$localedir&g
  14385. s&@mandir@&$mandir&g
  14386. s&\\\${datarootdir}&$datarootdir&g' ;;
  14387. esac
  14388. _ACEOF
  14389. # Neutralize VPATH when `$srcdir' = `.'.
  14390. # Shell code in configure.ac might set extrasub.
  14391. # FIXME: do we really want to maintain this feature?
  14392. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14393. ac_sed_extra="$ac_vpsub
  14394. $extrasub
  14395. _ACEOF
  14396. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14397. :t
  14398. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14399. s|@configure_input@|$ac_sed_conf_input|;t t
  14400. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14401. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14402. s&@srcdir@&$ac_srcdir&;t t
  14403. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14404. s&@top_srcdir@&$ac_top_srcdir&;t t
  14405. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14406. s&@builddir@&$ac_builddir&;t t
  14407. s&@abs_builddir@&$ac_abs_builddir&;t t
  14408. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14409. s&@INSTALL@&$ac_INSTALL&;t t
  14410. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14411. $ac_datarootdir_hack
  14412. "
  14413. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  14414. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14415. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14416. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  14417. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  14418. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  14419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14420. which seems to be undefined. Please make sure it is defined" >&5
  14421. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14422. which seems to be undefined. Please make sure it is defined" >&2;}
  14423. rm -f "$ac_tmp/stdin"
  14424. case $ac_file in
  14425. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  14426. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  14427. esac \
  14428. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14429. ;;
  14430. :H)
  14431. #
  14432. # CONFIG_HEADER
  14433. #
  14434. if test x"$ac_file" != x-; then
  14435. {
  14436. $as_echo "/* $configure_input */" \
  14437. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  14438. } >"$ac_tmp/config.h" \
  14439. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14440. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14442. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14443. else
  14444. rm -f "$ac_file"
  14445. mv "$ac_tmp/config.h" "$ac_file" \
  14446. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  14447. fi
  14448. else
  14449. $as_echo "/* $configure_input */" \
  14450. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  14451. || as_fn_error $? "could not create -" "$LINENO" 5
  14452. fi
  14453. # Compute "$ac_file"'s index in $config_headers.
  14454. _am_arg="$ac_file"
  14455. _am_stamp_count=1
  14456. for _am_header in $config_headers :; do
  14457. case $_am_header in
  14458. $_am_arg | $_am_arg:* )
  14459. break ;;
  14460. * )
  14461. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14462. esac
  14463. done
  14464. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14465. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14466. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14467. X"$_am_arg" : 'X\(//\)$' \| \
  14468. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14469. $as_echo X"$_am_arg" |
  14470. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14471. s//\1/
  14472. q
  14473. }
  14474. /^X\(\/\/\)[^/].*/{
  14475. s//\1/
  14476. q
  14477. }
  14478. /^X\(\/\/\)$/{
  14479. s//\1/
  14480. q
  14481. }
  14482. /^X\(\/\).*/{
  14483. s//\1/
  14484. q
  14485. }
  14486. s/.*/./; q'`/stamp-h$_am_stamp_count
  14487. ;;
  14488. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14489. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14490. ;;
  14491. esac
  14492. case $ac_file$ac_mode in
  14493. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14494. # Older Autoconf quotes --file arguments for eval, but not when files
  14495. # are listed without --file. Let's play safe and only enable the eval
  14496. # if we detect the quoting.
  14497. # TODO: see whether this extra hack can be removed once we start
  14498. # requiring Autoconf 2.70 or later.
  14499. case $CONFIG_FILES in #(
  14500. *\'*) :
  14501. eval set x "$CONFIG_FILES" ;; #(
  14502. *) :
  14503. set x $CONFIG_FILES ;; #(
  14504. *) :
  14505. ;;
  14506. esac
  14507. shift
  14508. # Used to flag and report bootstrapping failures.
  14509. am_rc=0
  14510. for am_mf
  14511. do
  14512. # Strip MF so we end up with the name of the file.
  14513. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  14514. # Check whether this is an Automake generated Makefile which includes
  14515. # dependency-tracking related rules and includes.
  14516. # Grep'ing the whole file directly is not great: AIX grep has a line
  14517. # limit of 2048, but all sed's we know have understand at least 4000.
  14518. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  14519. || continue
  14520. am_dirpart=`$as_dirname -- "$am_mf" ||
  14521. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14522. X"$am_mf" : 'X\(//\)[^/]' \| \
  14523. X"$am_mf" : 'X\(//\)$' \| \
  14524. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14525. $as_echo X"$am_mf" |
  14526. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14527. s//\1/
  14528. q
  14529. }
  14530. /^X\(\/\/\)[^/].*/{
  14531. s//\1/
  14532. q
  14533. }
  14534. /^X\(\/\/\)$/{
  14535. s//\1/
  14536. q
  14537. }
  14538. /^X\(\/\).*/{
  14539. s//\1/
  14540. q
  14541. }
  14542. s/.*/./; q'`
  14543. am_filepart=`$as_basename -- "$am_mf" ||
  14544. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  14545. X"$am_mf" : 'X\(//\)$' \| \
  14546. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  14547. $as_echo X/"$am_mf" |
  14548. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14549. s//\1/
  14550. q
  14551. }
  14552. /^X\/\(\/\/\)$/{
  14553. s//\1/
  14554. q
  14555. }
  14556. /^X\/\(\/\).*/{
  14557. s//\1/
  14558. q
  14559. }
  14560. s/.*/./; q'`
  14561. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  14562. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14563. | $MAKE -f - am--depfiles" >&5
  14564. (cd "$am_dirpart" \
  14565. && sed -e '/# am--include-marker/d' "$am_filepart" \
  14566. | $MAKE -f - am--depfiles) >&5 2>&5
  14567. ac_status=$?
  14568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14569. (exit $ac_status); } || am_rc=$?
  14570. done
  14571. if test $am_rc -ne 0; then
  14572. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14573. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14574. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  14575. for automatic dependency tracking. Try re-running configure with the
  14576. '--disable-dependency-tracking' option to at least be able to build
  14577. the package (albeit without support for automatic dependency tracking).
  14578. See \`config.log' for more details" "$LINENO" 5; }
  14579. fi
  14580. { am_dirpart=; unset am_dirpart;}
  14581. { am_filepart=; unset am_filepart;}
  14582. { am_mf=; unset am_mf;}
  14583. { am_rc=; unset am_rc;}
  14584. rm -f conftest-deps.mk
  14585. }
  14586. ;;
  14587. "libtool":C)
  14588. # See if we are running on zsh, and set the options that allow our
  14589. # commands through without removal of \ escapes.
  14590. if test -n "${ZSH_VERSION+set}"; then
  14591. setopt NO_GLOB_SUBST
  14592. fi
  14593. cfgfile=${ofile}T
  14594. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14595. $RM "$cfgfile"
  14596. cat <<_LT_EOF >> "$cfgfile"
  14597. #! $SHELL
  14598. # Generated automatically by $as_me ($PACKAGE) $VERSION
  14599. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14600. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14601. # Provide generalized library-building support services.
  14602. # Written by Gordon Matzigkeit, 1996
  14603. # Copyright (C) 2014 Free Software Foundation, Inc.
  14604. # This is free software; see the source for copying conditions. There is NO
  14605. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14606. # GNU Libtool is free software; you can redistribute it and/or modify
  14607. # it under the terms of the GNU General Public License as published by
  14608. # the Free Software Foundation; either version 2 of of the License, or
  14609. # (at your option) any later version.
  14610. #
  14611. # As a special exception to the GNU General Public License, if you
  14612. # distribute this file as part of a program or library that is built
  14613. # using GNU Libtool, you may include this file under the same
  14614. # distribution terms that you use for the rest of that program.
  14615. #
  14616. # GNU Libtool is distributed in the hope that it will be useful, but
  14617. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14618. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14619. # GNU General Public License for more details.
  14620. #
  14621. # You should have received a copy of the GNU General Public License
  14622. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14623. # The names of the tagged configurations supported by this script.
  14624. available_tags=''
  14625. # Configured defaults for sys_lib_dlsearch_path munging.
  14626. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  14627. # ### BEGIN LIBTOOL CONFIG
  14628. # Which release of libtool.m4 was used?
  14629. macro_version=$macro_version
  14630. macro_revision=$macro_revision
  14631. # Whether or not to build static libraries.
  14632. build_old_libs=$enable_static
  14633. # What type of objects to build.
  14634. pic_mode=$pic_mode
  14635. # Whether or not to build shared libraries.
  14636. build_libtool_libs=$enable_shared
  14637. # Whether or not to optimize for fast installation.
  14638. fast_install=$enable_fast_install
  14639. # Shared archive member basename,for filename based shared library versioning on AIX.
  14640. shared_archive_member_spec=$shared_archive_member_spec
  14641. # Shell to use when invoking shell scripts.
  14642. SHELL=$lt_SHELL
  14643. # An echo program that protects backslashes.
  14644. ECHO=$lt_ECHO
  14645. # The PATH separator for the build system.
  14646. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14647. # The host system.
  14648. host_alias=$host_alias
  14649. host=$host
  14650. host_os=$host_os
  14651. # The build system.
  14652. build_alias=$build_alias
  14653. build=$build
  14654. build_os=$build_os
  14655. # A sed program that does not truncate output.
  14656. SED=$lt_SED
  14657. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14658. Xsed="\$SED -e 1s/^X//"
  14659. # A grep program that handles long lines.
  14660. GREP=$lt_GREP
  14661. # An ERE matcher.
  14662. EGREP=$lt_EGREP
  14663. # A literal string matcher.
  14664. FGREP=$lt_FGREP
  14665. # A BSD- or MS-compatible name lister.
  14666. NM=$lt_NM
  14667. # Whether we need soft or hard links.
  14668. LN_S=$lt_LN_S
  14669. # What is the maximum length of a command?
  14670. max_cmd_len=$max_cmd_len
  14671. # Object file suffix (normally "o").
  14672. objext=$ac_objext
  14673. # Executable file suffix (normally "").
  14674. exeext=$exeext
  14675. # whether the shell understands "unset".
  14676. lt_unset=$lt_unset
  14677. # turn spaces into newlines.
  14678. SP2NL=$lt_lt_SP2NL
  14679. # turn newlines into spaces.
  14680. NL2SP=$lt_lt_NL2SP
  14681. # convert \$build file names to \$host format.
  14682. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14683. # convert \$build files to toolchain format.
  14684. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14685. # An object symbol dumper.
  14686. OBJDUMP=$lt_OBJDUMP
  14687. # Method to check whether dependent libraries are shared objects.
  14688. deplibs_check_method=$lt_deplibs_check_method
  14689. # Command to use when deplibs_check_method = "file_magic".
  14690. file_magic_cmd=$lt_file_magic_cmd
  14691. # How to find potential files when deplibs_check_method = "file_magic".
  14692. file_magic_glob=$lt_file_magic_glob
  14693. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14694. want_nocaseglob=$lt_want_nocaseglob
  14695. # DLL creation program.
  14696. DLLTOOL=$lt_DLLTOOL
  14697. # Command to associate shared and link libraries.
  14698. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14699. # The archiver.
  14700. AR=$lt_AR
  14701. # Flags to create an archive.
  14702. AR_FLAGS=$lt_AR_FLAGS
  14703. # How to feed a file listing to the archiver.
  14704. archiver_list_spec=$lt_archiver_list_spec
  14705. # A symbol stripping program.
  14706. STRIP=$lt_STRIP
  14707. # Commands used to install an old-style archive.
  14708. RANLIB=$lt_RANLIB
  14709. old_postinstall_cmds=$lt_old_postinstall_cmds
  14710. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14711. # Whether to use a lock for old archive extraction.
  14712. lock_old_archive_extraction=$lock_old_archive_extraction
  14713. # A C compiler.
  14714. LTCC=$lt_CC
  14715. # LTCC compiler flags.
  14716. LTCFLAGS=$lt_CFLAGS
  14717. # Take the output of nm and produce a listing of raw symbols and C names.
  14718. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14719. # Transform the output of nm in a proper C declaration.
  14720. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14721. # Transform the output of nm into a list of symbols to manually relocate.
  14722. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  14723. # Transform the output of nm in a C name address pair.
  14724. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14725. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14726. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14727. # The name lister interface.
  14728. nm_interface=$lt_lt_cv_nm_interface
  14729. # Specify filename containing input files for \$NM.
  14730. nm_file_list_spec=$lt_nm_file_list_spec
  14731. # The root where to search for dependent libraries,and where our libraries should be installed.
  14732. lt_sysroot=$lt_sysroot
  14733. # Command to truncate a binary pipe.
  14734. lt_truncate_bin=$lt_lt_cv_truncate_bin
  14735. # The name of the directory that contains temporary libtool files.
  14736. objdir=$objdir
  14737. # Used to examine libraries when file_magic_cmd begins with "file".
  14738. MAGIC_CMD=$MAGIC_CMD
  14739. # Must we lock files when doing compilation?
  14740. need_locks=$lt_need_locks
  14741. # Manifest tool.
  14742. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14743. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14744. DSYMUTIL=$lt_DSYMUTIL
  14745. # Tool to change global to local symbols on Mac OS X.
  14746. NMEDIT=$lt_NMEDIT
  14747. # Tool to manipulate fat objects and archives on Mac OS X.
  14748. LIPO=$lt_LIPO
  14749. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14750. OTOOL=$lt_OTOOL
  14751. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14752. OTOOL64=$lt_OTOOL64
  14753. # Old archive suffix (normally "a").
  14754. libext=$libext
  14755. # Shared library suffix (normally ".so").
  14756. shrext_cmds=$lt_shrext_cmds
  14757. # The commands to extract the exported symbol list from a shared archive.
  14758. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14759. # Variables whose values should be saved in libtool wrapper scripts and
  14760. # restored at link time.
  14761. variables_saved_for_relink=$lt_variables_saved_for_relink
  14762. # Do we need the "lib" prefix for modules?
  14763. need_lib_prefix=$need_lib_prefix
  14764. # Do we need a version for libraries?
  14765. need_version=$need_version
  14766. # Library versioning type.
  14767. version_type=$version_type
  14768. # Shared library runtime path variable.
  14769. runpath_var=$runpath_var
  14770. # Shared library path variable.
  14771. shlibpath_var=$shlibpath_var
  14772. # Is shlibpath searched before the hard-coded library search path?
  14773. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14774. # Format of library name prefix.
  14775. libname_spec=$lt_libname_spec
  14776. # List of archive names. First name is the real one, the rest are links.
  14777. # The last name is the one that the linker finds with -lNAME
  14778. library_names_spec=$lt_library_names_spec
  14779. # The coded name of the library, if different from the real name.
  14780. soname_spec=$lt_soname_spec
  14781. # Permission mode override for installation of shared libraries.
  14782. install_override_mode=$lt_install_override_mode
  14783. # Command to use after installation of a shared archive.
  14784. postinstall_cmds=$lt_postinstall_cmds
  14785. # Command to use after uninstallation of a shared archive.
  14786. postuninstall_cmds=$lt_postuninstall_cmds
  14787. # Commands used to finish a libtool library installation in a directory.
  14788. finish_cmds=$lt_finish_cmds
  14789. # As "finish_cmds", except a single script fragment to be evaled but
  14790. # not shown.
  14791. finish_eval=$lt_finish_eval
  14792. # Whether we should hardcode library paths into libraries.
  14793. hardcode_into_libs=$hardcode_into_libs
  14794. # Compile-time system search path for libraries.
  14795. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14796. # Detected run-time system search path for libraries.
  14797. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  14798. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  14799. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  14800. # Whether dlopen is supported.
  14801. dlopen_support=$enable_dlopen
  14802. # Whether dlopen of programs is supported.
  14803. dlopen_self=$enable_dlopen_self
  14804. # Whether dlopen of statically linked programs is supported.
  14805. dlopen_self_static=$enable_dlopen_self_static
  14806. # Commands to strip libraries.
  14807. old_striplib=$lt_old_striplib
  14808. striplib=$lt_striplib
  14809. # The linker used to build libraries.
  14810. LD=$lt_LD
  14811. # How to create reloadable object files.
  14812. reload_flag=$lt_reload_flag
  14813. reload_cmds=$lt_reload_cmds
  14814. # Commands used to build an old-style archive.
  14815. old_archive_cmds=$lt_old_archive_cmds
  14816. # A language specific compiler.
  14817. CC=$lt_compiler
  14818. # Is the compiler the GNU compiler?
  14819. with_gcc=$GCC
  14820. # Compiler flag to turn off builtin functions.
  14821. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14822. # Additional compiler flags for building library objects.
  14823. pic_flag=$lt_lt_prog_compiler_pic
  14824. # How to pass a linker flag through the compiler.
  14825. wl=$lt_lt_prog_compiler_wl
  14826. # Compiler flag to prevent dynamic linking.
  14827. link_static_flag=$lt_lt_prog_compiler_static
  14828. # Does compiler simultaneously support -c and -o options?
  14829. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14830. # Whether or not to add -lc for building shared libraries.
  14831. build_libtool_need_lc=$archive_cmds_need_lc
  14832. # Whether or not to disallow shared libs when runtime libs are static.
  14833. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14834. # Compiler flag to allow reflexive dlopens.
  14835. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14836. # Compiler flag to generate shared objects directly from archives.
  14837. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14838. # Whether the compiler copes with passing no objects directly.
  14839. compiler_needs_object=$lt_compiler_needs_object
  14840. # Create an old-style archive from a shared archive.
  14841. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14842. # Create a temporary old-style archive to link instead of a shared archive.
  14843. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14844. # Commands used to build a shared archive.
  14845. archive_cmds=$lt_archive_cmds
  14846. archive_expsym_cmds=$lt_archive_expsym_cmds
  14847. # Commands used to build a loadable module if different from building
  14848. # a shared archive.
  14849. module_cmds=$lt_module_cmds
  14850. module_expsym_cmds=$lt_module_expsym_cmds
  14851. # Whether we are building with GNU ld or not.
  14852. with_gnu_ld=$lt_with_gnu_ld
  14853. # Flag that allows shared libraries with undefined symbols to be built.
  14854. allow_undefined_flag=$lt_allow_undefined_flag
  14855. # Flag that enforces no undefined symbols.
  14856. no_undefined_flag=$lt_no_undefined_flag
  14857. # Flag to hardcode \$libdir into a binary during linking.
  14858. # This must work even if \$libdir does not exist
  14859. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14860. # Whether we need a single "-rpath" flag with a separated argument.
  14861. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14862. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14863. # DIR into the resulting binary.
  14864. hardcode_direct=$hardcode_direct
  14865. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  14866. # DIR into the resulting binary and the resulting library dependency is
  14867. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  14868. # library is relocated.
  14869. hardcode_direct_absolute=$hardcode_direct_absolute
  14870. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14871. # into the resulting binary.
  14872. hardcode_minus_L=$hardcode_minus_L
  14873. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14874. # into the resulting binary.
  14875. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14876. # Set to "yes" if building a shared library automatically hardcodes DIR
  14877. # into the library and all subsequent libraries and executables linked
  14878. # against it.
  14879. hardcode_automatic=$hardcode_automatic
  14880. # Set to yes if linker adds runtime paths of dependent libraries
  14881. # to runtime path list.
  14882. inherit_rpath=$inherit_rpath
  14883. # Whether libtool must link a program against all its dependency libraries.
  14884. link_all_deplibs=$link_all_deplibs
  14885. # Set to "yes" if exported symbols are required.
  14886. always_export_symbols=$always_export_symbols
  14887. # The commands to list exported symbols.
  14888. export_symbols_cmds=$lt_export_symbols_cmds
  14889. # Symbols that should not be listed in the preloaded symbols.
  14890. exclude_expsyms=$lt_exclude_expsyms
  14891. # Symbols that must always be exported.
  14892. include_expsyms=$lt_include_expsyms
  14893. # Commands necessary for linking programs (against libraries) with templates.
  14894. prelink_cmds=$lt_prelink_cmds
  14895. # Commands necessary for finishing linking programs.
  14896. postlink_cmds=$lt_postlink_cmds
  14897. # Specify filename containing input files.
  14898. file_list_spec=$lt_file_list_spec
  14899. # How to hardcode a shared library path into an executable.
  14900. hardcode_action=$hardcode_action
  14901. # ### END LIBTOOL CONFIG
  14902. _LT_EOF
  14903. cat <<'_LT_EOF' >> "$cfgfile"
  14904. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  14905. # func_munge_path_list VARIABLE PATH
  14906. # -----------------------------------
  14907. # VARIABLE is name of variable containing _space_ separated list of
  14908. # directories to be munged by the contents of PATH, which is string
  14909. # having a format:
  14910. # "DIR[:DIR]:"
  14911. # string "DIR[ DIR]" will be prepended to VARIABLE
  14912. # ":DIR[:DIR]"
  14913. # string "DIR[ DIR]" will be appended to VARIABLE
  14914. # "DIRP[:DIRP]::[DIRA:]DIRA"
  14915. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  14916. # "DIRA[ DIRA]" will be appended to VARIABLE
  14917. # "DIR[:DIR]"
  14918. # VARIABLE will be replaced by "DIR[ DIR]"
  14919. func_munge_path_list ()
  14920. {
  14921. case x$2 in
  14922. x)
  14923. ;;
  14924. *:)
  14925. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  14926. ;;
  14927. x:*)
  14928. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  14929. ;;
  14930. *::*)
  14931. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  14932. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  14933. ;;
  14934. *)
  14935. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  14936. ;;
  14937. esac
  14938. }
  14939. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  14940. func_cc_basename ()
  14941. {
  14942. for cc_temp in $*""; do
  14943. case $cc_temp in
  14944. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14945. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14946. \-*) ;;
  14947. *) break;;
  14948. esac
  14949. done
  14950. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  14951. }
  14952. # ### END FUNCTIONS SHARED WITH CONFIGURE
  14953. _LT_EOF
  14954. case $host_os in
  14955. aix3*)
  14956. cat <<\_LT_EOF >> "$cfgfile"
  14957. # AIX sometimes has problems with the GCC collect2 program. For some
  14958. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14959. # vanish in a puff of smoke.
  14960. if test set != "${COLLECT_NAMES+set}"; then
  14961. COLLECT_NAMES=
  14962. export COLLECT_NAMES
  14963. fi
  14964. _LT_EOF
  14965. ;;
  14966. esac
  14967. ltmain=$ac_aux_dir/ltmain.sh
  14968. # We use sed instead of cat because bash on DJGPP gets confused if
  14969. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14970. # text mode, it properly converts lines to CR/LF. This bash problem
  14971. # is reportedly fixed, but why not run on old versions too?
  14972. sed '$q' "$ltmain" >> "$cfgfile" \
  14973. || (rm -f "$cfgfile"; exit 1)
  14974. mv -f "$cfgfile" "$ofile" ||
  14975. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14976. chmod +x "$ofile"
  14977. ;;
  14978. esac
  14979. done # for ac_tag
  14980. as_fn_exit 0
  14981. _ACEOF
  14982. ac_clean_files=$ac_clean_files_save
  14983. test $ac_write_fail = 0 ||
  14984. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14985. # configure is writing to config.log, and then calls config.status.
  14986. # config.status does its own redirection, appending to config.log.
  14987. # Unfortunately, on DOS this fails, as config.log is still kept open
  14988. # by configure, so config.status won't be able to write to it; its
  14989. # output is simply discarded. So we exec the FD to /dev/null,
  14990. # effectively closing config.log, so it can be properly (re)opened and
  14991. # appended to by config.status. When coming back to configure, we
  14992. # need to make the FD available again.
  14993. if test "$no_create" != yes; then
  14994. ac_cs_success=:
  14995. ac_config_status_args=
  14996. test "$silent" = yes &&
  14997. ac_config_status_args="$ac_config_status_args --quiet"
  14998. exec 5>/dev/null
  14999. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15000. exec 5>>config.log
  15001. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15002. # would make configure fail if this is the last instruction.
  15003. $ac_cs_success || as_fn_exit 1
  15004. fi
  15005. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15007. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15008. fi