configure 481 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.37.
  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.37'
  544. PACKAGE_STRING='file 5.37'
  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. OTOOL64
  592. OTOOL
  593. LIPO
  594. NMEDIT
  595. DSYMUTIL
  596. MANIFEST_TOOL
  597. RANLIB
  598. ac_ct_AR
  599. AR
  600. DLLTOOL
  601. OBJDUMP
  602. NM
  603. ac_ct_DUMPBIN
  604. DUMPBIN
  605. LD
  606. FGREP
  607. SED
  608. LIBTOOL
  609. LN_S
  610. EGREP
  611. GREP
  612. CPP
  613. am__fastdepCC_FALSE
  614. am__fastdepCC_TRUE
  615. CCDEPMODE
  616. am__nodep
  617. AMDEPBACKSLASH
  618. AMDEP_FALSE
  619. AMDEP_TRUE
  620. am__quote
  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. ac_subst_files=''
  712. ac_user_opts='
  713. enable_option_checking
  714. enable_silent_rules
  715. enable_elf
  716. enable_elf_core
  717. enable_zlib
  718. enable_libseccomp
  719. enable_fsect_man5
  720. enable_dependency_tracking
  721. enable_static
  722. with_pic
  723. enable_shared
  724. enable_fast_install
  725. with_gnu_ld
  726. with_sysroot
  727. enable_libtool_lock
  728. enable_largefile
  729. enable_warnings
  730. '
  731. ac_precious_vars='build_alias
  732. host_alias
  733. target_alias
  734. CC
  735. CFLAGS
  736. LDFLAGS
  737. LIBS
  738. CPPFLAGS
  739. CPP'
  740. # Initialize some variables set by options.
  741. ac_init_help=
  742. ac_init_version=false
  743. ac_unrecognized_opts=
  744. ac_unrecognized_sep=
  745. # The variables have the same names as the options, with
  746. # dashes changed to underlines.
  747. cache_file=/dev/null
  748. exec_prefix=NONE
  749. no_create=
  750. no_recursion=
  751. prefix=NONE
  752. program_prefix=NONE
  753. program_suffix=NONE
  754. program_transform_name=s,x,x,
  755. silent=
  756. site=
  757. srcdir=
  758. verbose=
  759. x_includes=NONE
  760. x_libraries=NONE
  761. # Installation directory options.
  762. # These are left unexpanded so users can "make install exec_prefix=/foo"
  763. # and all the variables that are supposed to be based on exec_prefix
  764. # by default will actually change.
  765. # Use braces instead of parens because sh, perl, etc. also accept them.
  766. # (The list follows the same order as the GNU Coding Standards.)
  767. bindir='${exec_prefix}/bin'
  768. sbindir='${exec_prefix}/sbin'
  769. libexecdir='${exec_prefix}/libexec'
  770. datarootdir='${prefix}/share'
  771. datadir='${datarootdir}'
  772. sysconfdir='${prefix}/etc'
  773. sharedstatedir='${prefix}/com'
  774. localstatedir='${prefix}/var'
  775. includedir='${prefix}/include'
  776. oldincludedir='/usr/include'
  777. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  778. infodir='${datarootdir}/info'
  779. htmldir='${docdir}'
  780. dvidir='${docdir}'
  781. pdfdir='${docdir}'
  782. psdir='${docdir}'
  783. libdir='${exec_prefix}/lib'
  784. localedir='${datarootdir}/locale'
  785. mandir='${datarootdir}/man'
  786. ac_prev=
  787. ac_dashdash=
  788. for ac_option
  789. do
  790. # If the previous option needs an argument, assign it.
  791. if test -n "$ac_prev"; then
  792. eval $ac_prev=\$ac_option
  793. ac_prev=
  794. continue
  795. fi
  796. case $ac_option in
  797. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  798. *=) ac_optarg= ;;
  799. *) ac_optarg=yes ;;
  800. esac
  801. # Accept the important Cygnus configure options, so we can diagnose typos.
  802. case $ac_dashdash$ac_option in
  803. --)
  804. ac_dashdash=yes ;;
  805. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  806. ac_prev=bindir ;;
  807. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  808. bindir=$ac_optarg ;;
  809. -build | --build | --buil | --bui | --bu)
  810. ac_prev=build_alias ;;
  811. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  812. build_alias=$ac_optarg ;;
  813. -cache-file | --cache-file | --cache-fil | --cache-fi \
  814. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  815. ac_prev=cache_file ;;
  816. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  817. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  818. cache_file=$ac_optarg ;;
  819. --config-cache | -C)
  820. cache_file=config.cache ;;
  821. -datadir | --datadir | --datadi | --datad)
  822. ac_prev=datadir ;;
  823. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  824. datadir=$ac_optarg ;;
  825. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  826. | --dataroo | --dataro | --datar)
  827. ac_prev=datarootdir ;;
  828. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  829. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  830. datarootdir=$ac_optarg ;;
  831. -disable-* | --disable-*)
  832. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  833. # Reject names that are not valid shell variable names.
  834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  835. as_fn_error $? "invalid feature name: $ac_useropt"
  836. ac_useropt_orig=$ac_useropt
  837. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  838. case $ac_user_opts in
  839. *"
  840. "enable_$ac_useropt"
  841. "*) ;;
  842. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  843. ac_unrecognized_sep=', ';;
  844. esac
  845. eval enable_$ac_useropt=no ;;
  846. -docdir | --docdir | --docdi | --doc | --do)
  847. ac_prev=docdir ;;
  848. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  849. docdir=$ac_optarg ;;
  850. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  851. ac_prev=dvidir ;;
  852. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  853. dvidir=$ac_optarg ;;
  854. -enable-* | --enable-*)
  855. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  856. # Reject names that are not valid shell variable names.
  857. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  858. as_fn_error $? "invalid feature name: $ac_useropt"
  859. ac_useropt_orig=$ac_useropt
  860. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  861. case $ac_user_opts in
  862. *"
  863. "enable_$ac_useropt"
  864. "*) ;;
  865. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  866. ac_unrecognized_sep=', ';;
  867. esac
  868. eval enable_$ac_useropt=\$ac_optarg ;;
  869. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  870. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  871. | --exec | --exe | --ex)
  872. ac_prev=exec_prefix ;;
  873. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  874. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  875. | --exec=* | --exe=* | --ex=*)
  876. exec_prefix=$ac_optarg ;;
  877. -gas | --gas | --ga | --g)
  878. # Obsolete; use --with-gas.
  879. with_gas=yes ;;
  880. -help | --help | --hel | --he | -h)
  881. ac_init_help=long ;;
  882. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  883. ac_init_help=recursive ;;
  884. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  885. ac_init_help=short ;;
  886. -host | --host | --hos | --ho)
  887. ac_prev=host_alias ;;
  888. -host=* | --host=* | --hos=* | --ho=*)
  889. host_alias=$ac_optarg ;;
  890. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  891. ac_prev=htmldir ;;
  892. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  893. | --ht=*)
  894. htmldir=$ac_optarg ;;
  895. -includedir | --includedir | --includedi | --included | --include \
  896. | --includ | --inclu | --incl | --inc)
  897. ac_prev=includedir ;;
  898. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  899. | --includ=* | --inclu=* | --incl=* | --inc=*)
  900. includedir=$ac_optarg ;;
  901. -infodir | --infodir | --infodi | --infod | --info | --inf)
  902. ac_prev=infodir ;;
  903. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  904. infodir=$ac_optarg ;;
  905. -libdir | --libdir | --libdi | --libd)
  906. ac_prev=libdir ;;
  907. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  908. libdir=$ac_optarg ;;
  909. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  910. | --libexe | --libex | --libe)
  911. ac_prev=libexecdir ;;
  912. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  913. | --libexe=* | --libex=* | --libe=*)
  914. libexecdir=$ac_optarg ;;
  915. -localedir | --localedir | --localedi | --localed | --locale)
  916. ac_prev=localedir ;;
  917. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  918. localedir=$ac_optarg ;;
  919. -localstatedir | --localstatedir | --localstatedi | --localstated \
  920. | --localstate | --localstat | --localsta | --localst | --locals)
  921. ac_prev=localstatedir ;;
  922. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  923. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  924. localstatedir=$ac_optarg ;;
  925. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  926. ac_prev=mandir ;;
  927. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  928. mandir=$ac_optarg ;;
  929. -nfp | --nfp | --nf)
  930. # Obsolete; use --without-fp.
  931. with_fp=no ;;
  932. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  933. | --no-cr | --no-c | -n)
  934. no_create=yes ;;
  935. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  936. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  937. no_recursion=yes ;;
  938. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  939. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  940. | --oldin | --oldi | --old | --ol | --o)
  941. ac_prev=oldincludedir ;;
  942. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  943. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  944. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  945. oldincludedir=$ac_optarg ;;
  946. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  947. ac_prev=prefix ;;
  948. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  949. prefix=$ac_optarg ;;
  950. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  951. | --program-pre | --program-pr | --program-p)
  952. ac_prev=program_prefix ;;
  953. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  954. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  955. program_prefix=$ac_optarg ;;
  956. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  957. | --program-suf | --program-su | --program-s)
  958. ac_prev=program_suffix ;;
  959. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  960. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  961. program_suffix=$ac_optarg ;;
  962. -program-transform-name | --program-transform-name \
  963. | --program-transform-nam | --program-transform-na \
  964. | --program-transform-n | --program-transform- \
  965. | --program-transform | --program-transfor \
  966. | --program-transfo | --program-transf \
  967. | --program-trans | --program-tran \
  968. | --progr-tra | --program-tr | --program-t)
  969. ac_prev=program_transform_name ;;
  970. -program-transform-name=* | --program-transform-name=* \
  971. | --program-transform-nam=* | --program-transform-na=* \
  972. | --program-transform-n=* | --program-transform-=* \
  973. | --program-transform=* | --program-transfor=* \
  974. | --program-transfo=* | --program-transf=* \
  975. | --program-trans=* | --program-tran=* \
  976. | --progr-tra=* | --program-tr=* | --program-t=*)
  977. program_transform_name=$ac_optarg ;;
  978. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  979. ac_prev=pdfdir ;;
  980. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  981. pdfdir=$ac_optarg ;;
  982. -psdir | --psdir | --psdi | --psd | --ps)
  983. ac_prev=psdir ;;
  984. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  985. psdir=$ac_optarg ;;
  986. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  987. | -silent | --silent | --silen | --sile | --sil)
  988. silent=yes ;;
  989. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  990. ac_prev=sbindir ;;
  991. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  992. | --sbi=* | --sb=*)
  993. sbindir=$ac_optarg ;;
  994. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  995. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  996. | --sharedst | --shareds | --shared | --share | --shar \
  997. | --sha | --sh)
  998. ac_prev=sharedstatedir ;;
  999. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1000. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1001. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1002. | --sha=* | --sh=*)
  1003. sharedstatedir=$ac_optarg ;;
  1004. -site | --site | --sit)
  1005. ac_prev=site ;;
  1006. -site=* | --site=* | --sit=*)
  1007. site=$ac_optarg ;;
  1008. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1009. ac_prev=srcdir ;;
  1010. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1011. srcdir=$ac_optarg ;;
  1012. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1013. | --syscon | --sysco | --sysc | --sys | --sy)
  1014. ac_prev=sysconfdir ;;
  1015. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1016. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1017. sysconfdir=$ac_optarg ;;
  1018. -target | --target | --targe | --targ | --tar | --ta | --t)
  1019. ac_prev=target_alias ;;
  1020. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1021. target_alias=$ac_optarg ;;
  1022. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1023. verbose=yes ;;
  1024. -version | --version | --versio | --versi | --vers | -V)
  1025. ac_init_version=: ;;
  1026. -with-* | --with-*)
  1027. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1030. as_fn_error $? "invalid package name: $ac_useropt"
  1031. ac_useropt_orig=$ac_useropt
  1032. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1033. case $ac_user_opts in
  1034. *"
  1035. "with_$ac_useropt"
  1036. "*) ;;
  1037. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1038. ac_unrecognized_sep=', ';;
  1039. esac
  1040. eval with_$ac_useropt=\$ac_optarg ;;
  1041. -without-* | --without-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error $? "invalid package name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "with_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval with_$ac_useropt=no ;;
  1056. --x)
  1057. # Obsolete; use --with-x.
  1058. with_x=yes ;;
  1059. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1060. | --x-incl | --x-inc | --x-in | --x-i)
  1061. ac_prev=x_includes ;;
  1062. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1063. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1064. x_includes=$ac_optarg ;;
  1065. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1066. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1067. ac_prev=x_libraries ;;
  1068. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1069. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1070. x_libraries=$ac_optarg ;;
  1071. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1072. Try \`$0 --help' for more information"
  1073. ;;
  1074. *=*)
  1075. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1076. # Reject names that are not valid shell variable names.
  1077. case $ac_envvar in #(
  1078. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1079. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1080. esac
  1081. eval $ac_envvar=\$ac_optarg
  1082. export $ac_envvar ;;
  1083. *)
  1084. # FIXME: should be removed in autoconf 3.0.
  1085. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1086. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1087. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1088. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1089. ;;
  1090. esac
  1091. done
  1092. if test -n "$ac_prev"; then
  1093. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1094. as_fn_error $? "missing argument to $ac_option"
  1095. fi
  1096. if test -n "$ac_unrecognized_opts"; then
  1097. case $enable_option_checking in
  1098. no) ;;
  1099. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1100. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1101. esac
  1102. fi
  1103. # Check all directory arguments for consistency.
  1104. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1105. datadir sysconfdir sharedstatedir localstatedir includedir \
  1106. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1107. libdir localedir mandir
  1108. do
  1109. eval ac_val=\$$ac_var
  1110. # Remove trailing slashes.
  1111. case $ac_val in
  1112. */ )
  1113. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1114. eval $ac_var=\$ac_val;;
  1115. esac
  1116. # Be sure to have absolute directory names.
  1117. case $ac_val in
  1118. [\\/$]* | ?:[\\/]* ) continue;;
  1119. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1120. esac
  1121. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1122. done
  1123. # There might be people who depend on the old broken behavior: `$host'
  1124. # used to hold the argument of --host etc.
  1125. # FIXME: To remove some day.
  1126. build=$build_alias
  1127. host=$host_alias
  1128. target=$target_alias
  1129. # FIXME: To remove some day.
  1130. if test "x$host_alias" != x; then
  1131. if test "x$build_alias" = x; then
  1132. cross_compiling=maybe
  1133. elif test "x$build_alias" != "x$host_alias"; then
  1134. cross_compiling=yes
  1135. fi
  1136. fi
  1137. ac_tool_prefix=
  1138. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1139. test "$silent" = yes && exec 6>/dev/null
  1140. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1141. ac_ls_di=`ls -di .` &&
  1142. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1143. as_fn_error $? "working directory cannot be determined"
  1144. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1145. as_fn_error $? "pwd does not report name of working directory"
  1146. # Find the source files, if location was not specified.
  1147. if test -z "$srcdir"; then
  1148. ac_srcdir_defaulted=yes
  1149. # Try the directory containing this script, then the parent directory.
  1150. ac_confdir=`$as_dirname -- "$as_myself" ||
  1151. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1152. X"$as_myself" : 'X\(//\)[^/]' \| \
  1153. X"$as_myself" : 'X\(//\)$' \| \
  1154. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1155. $as_echo X"$as_myself" |
  1156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1157. s//\1/
  1158. q
  1159. }
  1160. /^X\(\/\/\)[^/].*/{
  1161. s//\1/
  1162. q
  1163. }
  1164. /^X\(\/\/\)$/{
  1165. s//\1/
  1166. q
  1167. }
  1168. /^X\(\/\).*/{
  1169. s//\1/
  1170. q
  1171. }
  1172. s/.*/./; q'`
  1173. srcdir=$ac_confdir
  1174. if test ! -r "$srcdir/$ac_unique_file"; then
  1175. srcdir=..
  1176. fi
  1177. else
  1178. ac_srcdir_defaulted=no
  1179. fi
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1182. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1183. fi
  1184. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1185. ac_abs_confdir=`(
  1186. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1187. pwd)`
  1188. # When building in place, set srcdir=.
  1189. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1190. srcdir=.
  1191. fi
  1192. # Remove unnecessary trailing slashes from srcdir.
  1193. # Double slashes in file names in object file debugging info
  1194. # mess up M-x gdb in Emacs.
  1195. case $srcdir in
  1196. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1197. esac
  1198. for ac_var in $ac_precious_vars; do
  1199. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_env_${ac_var}_value=\$${ac_var}
  1201. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1202. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1203. done
  1204. #
  1205. # Report the --help message.
  1206. #
  1207. if test "$ac_init_help" = "long"; then
  1208. # Omit some internal or obsolete options to make the list less imposing.
  1209. # This message is too long to be a string in the A/UX 3.1 sh.
  1210. cat <<_ACEOF
  1211. \`configure' configures file 5.37 to adapt to many kinds of systems.
  1212. Usage: $0 [OPTION]... [VAR=VALUE]...
  1213. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1214. VAR=VALUE. See below for descriptions of some of the useful variables.
  1215. Defaults for the options are specified in brackets.
  1216. Configuration:
  1217. -h, --help display this help and exit
  1218. --help=short display options specific to this package
  1219. --help=recursive display the short help of all the included packages
  1220. -V, --version display version information and exit
  1221. -q, --quiet, --silent do not print \`checking ...' messages
  1222. --cache-file=FILE cache test results in FILE [disabled]
  1223. -C, --config-cache alias for \`--cache-file=config.cache'
  1224. -n, --no-create do not create output files
  1225. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1226. Installation directories:
  1227. --prefix=PREFIX install architecture-independent files in PREFIX
  1228. [$ac_default_prefix]
  1229. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1230. [PREFIX]
  1231. By default, \`make install' will install all the files in
  1232. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1233. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1234. for instance \`--prefix=\$HOME'.
  1235. For better control, use the options below.
  1236. Fine tuning of the installation directories:
  1237. --bindir=DIR user executables [EPREFIX/bin]
  1238. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1239. --libexecdir=DIR program executables [EPREFIX/libexec]
  1240. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1241. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1242. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1243. --libdir=DIR object code libraries [EPREFIX/lib]
  1244. --includedir=DIR C header files [PREFIX/include]
  1245. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1246. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1247. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1248. --infodir=DIR info documentation [DATAROOTDIR/info]
  1249. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1250. --mandir=DIR man documentation [DATAROOTDIR/man]
  1251. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1252. --htmldir=DIR html documentation [DOCDIR]
  1253. --dvidir=DIR dvi documentation [DOCDIR]
  1254. --pdfdir=DIR pdf documentation [DOCDIR]
  1255. --psdir=DIR ps documentation [DOCDIR]
  1256. _ACEOF
  1257. cat <<\_ACEOF
  1258. Program names:
  1259. --program-prefix=PREFIX prepend PREFIX to installed program names
  1260. --program-suffix=SUFFIX append SUFFIX to installed program names
  1261. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1262. System types:
  1263. --build=BUILD configure for building on BUILD [guessed]
  1264. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1265. _ACEOF
  1266. fi
  1267. if test -n "$ac_init_help"; then
  1268. case $ac_init_help in
  1269. short | recursive ) echo "Configuration of file 5.37:";;
  1270. esac
  1271. cat <<\_ACEOF
  1272. Optional Features:
  1273. --disable-option-checking ignore unrecognized --enable/--with options
  1274. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1275. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1276. --enable-silent-rules less verbose build output (undo: "make V=1")
  1277. --disable-silent-rules verbose build output (undo: "make V=0")
  1278. --disable-elf disable builtin ELF support
  1279. --disable-elf-core disable ELF core file support
  1280. --disable-zlib disable zlib compression support [default=auto]
  1281. --disable-libseccomp disable libseccomp sandboxing [default=auto]
  1282. --enable-fsect-man5 enable file formats in man section 5
  1283. --enable-dependency-tracking
  1284. do not reject slow dependency extractors
  1285. --disable-dependency-tracking
  1286. speeds up one-time build
  1287. --enable-static[=PKGS] build static libraries [default=no]
  1288. --enable-shared[=PKGS] build shared libraries [default=yes]
  1289. --enable-fast-install[=PKGS]
  1290. optimize for fast installation [default=yes]
  1291. --disable-libtool-lock avoid locking (might break parallel builds)
  1292. --disable-largefile omit support for large files
  1293. --disable-warnings disable compiler warnings
  1294. Optional Packages:
  1295. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1296. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1297. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1298. both]
  1299. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1300. --with-sysroot=DIR Search for dependent libraries within DIR
  1301. (or the compiler's sysroot if not specified).
  1302. Some influential environment variables:
  1303. CC C compiler command
  1304. CFLAGS C compiler flags
  1305. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1306. nonstandard directory <lib dir>
  1307. LIBS libraries to pass to the linker, e.g. -l<library>
  1308. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1309. you have headers in a nonstandard directory <include dir>
  1310. CPP C preprocessor
  1311. Use these variables to override the choices made by `configure' or to help
  1312. it to find libraries and programs with nonstandard names/locations.
  1313. Report bugs to <christos@astron.com>.
  1314. _ACEOF
  1315. ac_status=$?
  1316. fi
  1317. if test "$ac_init_help" = "recursive"; then
  1318. # If there are subdirs, report their specific --help.
  1319. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1320. test -d "$ac_dir" ||
  1321. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1322. continue
  1323. ac_builddir=.
  1324. case "$ac_dir" in
  1325. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *)
  1327. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1328. # A ".." for each directory in $ac_dir_suffix.
  1329. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1330. case $ac_top_builddir_sub in
  1331. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1332. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1333. esac ;;
  1334. esac
  1335. ac_abs_top_builddir=$ac_pwd
  1336. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1337. # for backward compatibility:
  1338. ac_top_builddir=$ac_top_build_prefix
  1339. case $srcdir in
  1340. .) # We are building in place.
  1341. ac_srcdir=.
  1342. ac_top_srcdir=$ac_top_builddir_sub
  1343. ac_abs_top_srcdir=$ac_pwd ;;
  1344. [\\/]* | ?:[\\/]* ) # Absolute name.
  1345. ac_srcdir=$srcdir$ac_dir_suffix;
  1346. ac_top_srcdir=$srcdir
  1347. ac_abs_top_srcdir=$srcdir ;;
  1348. *) # Relative name.
  1349. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1350. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1351. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1352. esac
  1353. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1354. cd "$ac_dir" || { ac_status=$?; continue; }
  1355. # Check for guested configure.
  1356. if test -f "$ac_srcdir/configure.gnu"; then
  1357. echo &&
  1358. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1359. elif test -f "$ac_srcdir/configure"; then
  1360. echo &&
  1361. $SHELL "$ac_srcdir/configure" --help=recursive
  1362. else
  1363. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1364. fi || ac_status=$?
  1365. cd "$ac_pwd" || { ac_status=$?; break; }
  1366. done
  1367. fi
  1368. test -n "$ac_init_help" && exit $ac_status
  1369. if $ac_init_version; then
  1370. cat <<\_ACEOF
  1371. file configure 5.37
  1372. generated by GNU Autoconf 2.69
  1373. Copyright (C) 2012 Free Software Foundation, Inc.
  1374. This configure script is free software; the Free Software Foundation
  1375. gives unlimited permission to copy, distribute and modify it.
  1376. _ACEOF
  1377. exit
  1378. fi
  1379. ## ------------------------ ##
  1380. ## Autoconf initialization. ##
  1381. ## ------------------------ ##
  1382. # ac_fn_c_try_compile LINENO
  1383. # --------------------------
  1384. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1385. ac_fn_c_try_compile ()
  1386. {
  1387. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1388. rm -f conftest.$ac_objext
  1389. if { { ac_try="$ac_compile"
  1390. case "(($ac_try" in
  1391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1392. *) ac_try_echo=$ac_try;;
  1393. esac
  1394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1395. $as_echo "$ac_try_echo"; } >&5
  1396. (eval "$ac_compile") 2>conftest.err
  1397. ac_status=$?
  1398. if test -s conftest.err; then
  1399. grep -v '^ *+' conftest.err >conftest.er1
  1400. cat conftest.er1 >&5
  1401. mv -f conftest.er1 conftest.err
  1402. fi
  1403. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1404. test $ac_status = 0; } && {
  1405. test -z "$ac_c_werror_flag" ||
  1406. test ! -s conftest.err
  1407. } && test -s conftest.$ac_objext; then :
  1408. ac_retval=0
  1409. else
  1410. $as_echo "$as_me: failed program was:" >&5
  1411. sed 's/^/| /' conftest.$ac_ext >&5
  1412. ac_retval=1
  1413. fi
  1414. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1415. as_fn_set_status $ac_retval
  1416. } # ac_fn_c_try_compile
  1417. # ac_fn_c_try_cpp LINENO
  1418. # ----------------------
  1419. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1420. ac_fn_c_try_cpp ()
  1421. {
  1422. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1423. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1424. case "(($ac_try" in
  1425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1426. *) ac_try_echo=$ac_try;;
  1427. esac
  1428. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1429. $as_echo "$ac_try_echo"; } >&5
  1430. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1431. ac_status=$?
  1432. if test -s conftest.err; then
  1433. grep -v '^ *+' conftest.err >conftest.er1
  1434. cat conftest.er1 >&5
  1435. mv -f conftest.er1 conftest.err
  1436. fi
  1437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1438. test $ac_status = 0; } > conftest.i && {
  1439. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1440. test ! -s conftest.err
  1441. }; then :
  1442. ac_retval=0
  1443. else
  1444. $as_echo "$as_me: failed program was:" >&5
  1445. sed 's/^/| /' conftest.$ac_ext >&5
  1446. ac_retval=1
  1447. fi
  1448. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1449. as_fn_set_status $ac_retval
  1450. } # ac_fn_c_try_cpp
  1451. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1452. # -------------------------------------------------------
  1453. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1454. # the include files in INCLUDES and setting the cache variable VAR
  1455. # accordingly.
  1456. ac_fn_c_check_header_mongrel ()
  1457. {
  1458. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1459. if eval \${$3+:} false; then :
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1461. $as_echo_n "checking for $2... " >&6; }
  1462. if eval \${$3+:} false; then :
  1463. $as_echo_n "(cached) " >&6
  1464. fi
  1465. eval ac_res=\$$3
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1467. $as_echo "$ac_res" >&6; }
  1468. else
  1469. # Is the header compilable?
  1470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1471. $as_echo_n "checking $2 usability... " >&6; }
  1472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1473. /* end confdefs.h. */
  1474. $4
  1475. #include <$2>
  1476. _ACEOF
  1477. if ac_fn_c_try_compile "$LINENO"; then :
  1478. ac_header_compiler=yes
  1479. else
  1480. ac_header_compiler=no
  1481. fi
  1482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1484. $as_echo "$ac_header_compiler" >&6; }
  1485. # Is the header present?
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1487. $as_echo_n "checking $2 presence... " >&6; }
  1488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1489. /* end confdefs.h. */
  1490. #include <$2>
  1491. _ACEOF
  1492. if ac_fn_c_try_cpp "$LINENO"; then :
  1493. ac_header_preproc=yes
  1494. else
  1495. ac_header_preproc=no
  1496. fi
  1497. rm -f conftest.err conftest.i conftest.$ac_ext
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1499. $as_echo "$ac_header_preproc" >&6; }
  1500. # So? What about this header?
  1501. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1502. yes:no: )
  1503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1504. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1506. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1507. ;;
  1508. no:yes:* )
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1510. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1512. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1514. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1516. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1518. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1519. ( $as_echo "## ---------------------------------- ##
  1520. ## Report this to christos@astron.com ##
  1521. ## ---------------------------------- ##"
  1522. ) | sed "s/^/$as_me: WARNING: /" >&2
  1523. ;;
  1524. esac
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1526. $as_echo_n "checking for $2... " >&6; }
  1527. if eval \${$3+:} false; then :
  1528. $as_echo_n "(cached) " >&6
  1529. else
  1530. eval "$3=\$ac_header_compiler"
  1531. fi
  1532. eval ac_res=\$$3
  1533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1534. $as_echo "$ac_res" >&6; }
  1535. fi
  1536. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1537. } # ac_fn_c_check_header_mongrel
  1538. # ac_fn_c_try_run LINENO
  1539. # ----------------------
  1540. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1541. # that executables *can* be run.
  1542. ac_fn_c_try_run ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. if { { ac_try="$ac_link"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_link") 2>&5
  1553. ac_status=$?
  1554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1555. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1556. { { case "(($ac_try" in
  1557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1558. *) ac_try_echo=$ac_try;;
  1559. esac
  1560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1561. $as_echo "$ac_try_echo"; } >&5
  1562. (eval "$ac_try") 2>&5
  1563. ac_status=$?
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; }; }; then :
  1566. ac_retval=0
  1567. else
  1568. $as_echo "$as_me: program exited with status $ac_status" >&5
  1569. $as_echo "$as_me: failed program was:" >&5
  1570. sed 's/^/| /' conftest.$ac_ext >&5
  1571. ac_retval=$ac_status
  1572. fi
  1573. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1574. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1575. as_fn_set_status $ac_retval
  1576. } # ac_fn_c_try_run
  1577. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1578. # -------------------------------------------------------
  1579. # Tests whether HEADER exists and can be compiled using the include files in
  1580. # INCLUDES, setting the cache variable VAR accordingly.
  1581. ac_fn_c_check_header_compile ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1585. $as_echo_n "checking for $2... " >&6; }
  1586. if eval \${$3+:} false; then :
  1587. $as_echo_n "(cached) " >&6
  1588. else
  1589. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1590. /* end confdefs.h. */
  1591. $4
  1592. #include <$2>
  1593. _ACEOF
  1594. if ac_fn_c_try_compile "$LINENO"; then :
  1595. eval "$3=yes"
  1596. else
  1597. eval "$3=no"
  1598. fi
  1599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1600. fi
  1601. eval ac_res=\$$3
  1602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1603. $as_echo "$ac_res" >&6; }
  1604. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1605. } # ac_fn_c_check_header_compile
  1606. # ac_fn_c_try_link LINENO
  1607. # -----------------------
  1608. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1609. ac_fn_c_try_link ()
  1610. {
  1611. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1612. rm -f conftest.$ac_objext conftest$ac_exeext
  1613. if { { ac_try="$ac_link"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_link") 2>conftest.err
  1621. ac_status=$?
  1622. if test -s conftest.err; then
  1623. grep -v '^ *+' conftest.err >conftest.er1
  1624. cat conftest.er1 >&5
  1625. mv -f conftest.er1 conftest.err
  1626. fi
  1627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1628. test $ac_status = 0; } && {
  1629. test -z "$ac_c_werror_flag" ||
  1630. test ! -s conftest.err
  1631. } && test -s conftest$ac_exeext && {
  1632. test "$cross_compiling" = yes ||
  1633. test -x conftest$ac_exeext
  1634. }; then :
  1635. ac_retval=0
  1636. else
  1637. $as_echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. ac_retval=1
  1640. fi
  1641. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1642. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1643. # interfere with the next link command; also delete a directory that is
  1644. # left behind by Apple's compiler. We do this before executing the actions.
  1645. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1646. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1647. as_fn_set_status $ac_retval
  1648. } # ac_fn_c_try_link
  1649. # ac_fn_c_check_func LINENO FUNC VAR
  1650. # ----------------------------------
  1651. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1652. ac_fn_c_check_func ()
  1653. {
  1654. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1656. $as_echo_n "checking for $2... " >&6; }
  1657. if eval \${$3+:} false; then :
  1658. $as_echo_n "(cached) " >&6
  1659. else
  1660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1661. /* end confdefs.h. */
  1662. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1663. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1664. #define $2 innocuous_$2
  1665. /* System header to define __stub macros and hopefully few prototypes,
  1666. which can conflict with char $2 (); below.
  1667. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1668. <limits.h> exists even on freestanding compilers. */
  1669. #ifdef __STDC__
  1670. # include <limits.h>
  1671. #else
  1672. # include <assert.h>
  1673. #endif
  1674. #undef $2
  1675. /* Override any GCC internal prototype to avoid an error.
  1676. Use char because int might match the return type of a GCC
  1677. builtin and then its argument prototype would still apply. */
  1678. #ifdef __cplusplus
  1679. extern "C"
  1680. #endif
  1681. char $2 ();
  1682. /* The GNU C library defines this for functions which it implements
  1683. to always fail with ENOSYS. Some functions are actually named
  1684. something starting with __ and the normal name is an alias. */
  1685. #if defined __stub_$2 || defined __stub___$2
  1686. choke me
  1687. #endif
  1688. int
  1689. main ()
  1690. {
  1691. return $2 ();
  1692. ;
  1693. return 0;
  1694. }
  1695. _ACEOF
  1696. if ac_fn_c_try_link "$LINENO"; then :
  1697. eval "$3=yes"
  1698. else
  1699. eval "$3=no"
  1700. fi
  1701. rm -f core conftest.err conftest.$ac_objext \
  1702. conftest$ac_exeext conftest.$ac_ext
  1703. fi
  1704. eval ac_res=\$$3
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1706. $as_echo "$ac_res" >&6; }
  1707. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1708. } # ac_fn_c_check_func
  1709. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1710. # -------------------------------------------
  1711. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1712. # variable VAR accordingly.
  1713. ac_fn_c_check_type ()
  1714. {
  1715. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1717. $as_echo_n "checking for $2... " >&6; }
  1718. if eval \${$3+:} false; then :
  1719. $as_echo_n "(cached) " >&6
  1720. else
  1721. eval "$3=no"
  1722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1723. /* end confdefs.h. */
  1724. $4
  1725. int
  1726. main ()
  1727. {
  1728. if (sizeof ($2))
  1729. return 0;
  1730. ;
  1731. return 0;
  1732. }
  1733. _ACEOF
  1734. if ac_fn_c_try_compile "$LINENO"; then :
  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. else
  1749. eval "$3=yes"
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1752. fi
  1753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. fi
  1755. eval ac_res=\$$3
  1756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1757. $as_echo "$ac_res" >&6; }
  1758. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1759. } # ac_fn_c_check_type
  1760. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1761. # ----------------------------------------------------
  1762. # Tries to find if the field MEMBER exists in type AGGR, after including
  1763. # INCLUDES, setting cache variable VAR accordingly.
  1764. ac_fn_c_check_member ()
  1765. {
  1766. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1768. $as_echo_n "checking for $2.$3... " >&6; }
  1769. if eval \${$4+:} false; then :
  1770. $as_echo_n "(cached) " >&6
  1771. else
  1772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1773. /* end confdefs.h. */
  1774. $5
  1775. int
  1776. main ()
  1777. {
  1778. static $2 ac_aggr;
  1779. if (ac_aggr.$3)
  1780. return 0;
  1781. ;
  1782. return 0;
  1783. }
  1784. _ACEOF
  1785. if ac_fn_c_try_compile "$LINENO"; then :
  1786. eval "$4=yes"
  1787. else
  1788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1789. /* end confdefs.h. */
  1790. $5
  1791. int
  1792. main ()
  1793. {
  1794. static $2 ac_aggr;
  1795. if (sizeof ac_aggr.$3)
  1796. return 0;
  1797. ;
  1798. return 0;
  1799. }
  1800. _ACEOF
  1801. if ac_fn_c_try_compile "$LINENO"; then :
  1802. eval "$4=yes"
  1803. else
  1804. eval "$4=no"
  1805. fi
  1806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1807. fi
  1808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1809. fi
  1810. eval ac_res=\$$4
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1812. $as_echo "$ac_res" >&6; }
  1813. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1814. } # ac_fn_c_check_member
  1815. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1816. # ---------------------------------------------
  1817. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1818. # accordingly.
  1819. ac_fn_c_check_decl ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1823. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1825. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1826. if eval \${$3+:} false; then :
  1827. $as_echo_n "(cached) " >&6
  1828. else
  1829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1830. /* end confdefs.h. */
  1831. $4
  1832. int
  1833. main ()
  1834. {
  1835. #ifndef $as_decl_name
  1836. #ifdef __cplusplus
  1837. (void) $as_decl_use;
  1838. #else
  1839. (void) $as_decl_name;
  1840. #endif
  1841. #endif
  1842. ;
  1843. return 0;
  1844. }
  1845. _ACEOF
  1846. if ac_fn_c_try_compile "$LINENO"; then :
  1847. eval "$3=yes"
  1848. else
  1849. eval "$3=no"
  1850. fi
  1851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1852. fi
  1853. eval ac_res=\$$3
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1855. $as_echo "$ac_res" >&6; }
  1856. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1857. } # ac_fn_c_check_decl
  1858. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1859. # ------------------------------------
  1860. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1861. # accordingly.
  1862. ac_fn_c_find_uintX_t ()
  1863. {
  1864. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1866. $as_echo_n "checking for uint$2_t... " >&6; }
  1867. if eval \${$3+:} false; then :
  1868. $as_echo_n "(cached) " >&6
  1869. else
  1870. eval "$3=no"
  1871. # Order is important - never check a type that is potentially smaller
  1872. # than half of the expected target width.
  1873. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1874. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1876. /* end confdefs.h. */
  1877. $ac_includes_default
  1878. int
  1879. main ()
  1880. {
  1881. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1882. test_array [0] = 0;
  1883. return test_array [0];
  1884. ;
  1885. return 0;
  1886. }
  1887. _ACEOF
  1888. if ac_fn_c_try_compile "$LINENO"; then :
  1889. case $ac_type in #(
  1890. uint$2_t) :
  1891. eval "$3=yes" ;; #(
  1892. *) :
  1893. eval "$3=\$ac_type" ;;
  1894. esac
  1895. fi
  1896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1897. if eval test \"x\$"$3"\" = x"no"; then :
  1898. else
  1899. break
  1900. fi
  1901. done
  1902. fi
  1903. eval ac_res=\$$3
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1905. $as_echo "$ac_res" >&6; }
  1906. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1907. } # ac_fn_c_find_uintX_t
  1908. # ac_fn_c_find_intX_t LINENO BITS VAR
  1909. # -----------------------------------
  1910. # Finds a signed integer type with width BITS, setting cache variable VAR
  1911. # accordingly.
  1912. ac_fn_c_find_intX_t ()
  1913. {
  1914. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1916. $as_echo_n "checking for int$2_t... " >&6; }
  1917. if eval \${$3+:} false; then :
  1918. $as_echo_n "(cached) " >&6
  1919. else
  1920. eval "$3=no"
  1921. # Order is important - never check a type that is potentially smaller
  1922. # than half of the expected target width.
  1923. for ac_type in int$2_t 'int' 'long int' \
  1924. 'long long int' 'short int' 'signed char'; do
  1925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1926. /* end confdefs.h. */
  1927. $ac_includes_default
  1928. enum { N = $2 / 2 - 1 };
  1929. int
  1930. main ()
  1931. {
  1932. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1933. test_array [0] = 0;
  1934. return test_array [0];
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. if ac_fn_c_try_compile "$LINENO"; then :
  1940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1941. /* end confdefs.h. */
  1942. $ac_includes_default
  1943. enum { N = $2 / 2 - 1 };
  1944. int
  1945. main ()
  1946. {
  1947. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1948. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1949. test_array [0] = 0;
  1950. return test_array [0];
  1951. ;
  1952. return 0;
  1953. }
  1954. _ACEOF
  1955. if ac_fn_c_try_compile "$LINENO"; then :
  1956. else
  1957. case $ac_type in #(
  1958. int$2_t) :
  1959. eval "$3=yes" ;; #(
  1960. *) :
  1961. eval "$3=\$ac_type" ;;
  1962. esac
  1963. fi
  1964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1965. fi
  1966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. if eval test \"x\$"$3"\" = x"no"; then :
  1968. else
  1969. break
  1970. fi
  1971. done
  1972. fi
  1973. eval ac_res=\$$3
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1975. $as_echo "$ac_res" >&6; }
  1976. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1977. } # ac_fn_c_find_intX_t
  1978. cat >config.log <<_ACEOF
  1979. This file contains any messages produced by compilers while
  1980. running configure, to aid debugging if configure makes a mistake.
  1981. It was created by file $as_me 5.37, which was
  1982. generated by GNU Autoconf 2.69. Invocation command line was
  1983. $ $0 $@
  1984. _ACEOF
  1985. exec 5>>config.log
  1986. {
  1987. cat <<_ASUNAME
  1988. ## --------- ##
  1989. ## Platform. ##
  1990. ## --------- ##
  1991. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1992. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1993. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1994. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1995. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1996. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1997. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1998. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1999. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2000. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2001. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2002. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2003. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2004. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2005. _ASUNAME
  2006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2007. for as_dir in $PATH
  2008. do
  2009. IFS=$as_save_IFS
  2010. test -z "$as_dir" && as_dir=.
  2011. $as_echo "PATH: $as_dir"
  2012. done
  2013. IFS=$as_save_IFS
  2014. } >&5
  2015. cat >&5 <<_ACEOF
  2016. ## ----------- ##
  2017. ## Core tests. ##
  2018. ## ----------- ##
  2019. _ACEOF
  2020. # Keep a trace of the command line.
  2021. # Strip out --no-create and --no-recursion so they do not pile up.
  2022. # Strip out --silent because we don't want to record it for future runs.
  2023. # Also quote any args containing shell meta-characters.
  2024. # Make two passes to allow for proper duplicate-argument suppression.
  2025. ac_configure_args=
  2026. ac_configure_args0=
  2027. ac_configure_args1=
  2028. ac_must_keep_next=false
  2029. for ac_pass in 1 2
  2030. do
  2031. for ac_arg
  2032. do
  2033. case $ac_arg in
  2034. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2035. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2036. | -silent | --silent | --silen | --sile | --sil)
  2037. continue ;;
  2038. *\'*)
  2039. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2040. esac
  2041. case $ac_pass in
  2042. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2043. 2)
  2044. as_fn_append ac_configure_args1 " '$ac_arg'"
  2045. if test $ac_must_keep_next = true; then
  2046. ac_must_keep_next=false # Got value, back to normal.
  2047. else
  2048. case $ac_arg in
  2049. *=* | --config-cache | -C | -disable-* | --disable-* \
  2050. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2051. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2052. | -with-* | --with-* | -without-* | --without-* | --x)
  2053. case "$ac_configure_args0 " in
  2054. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2055. esac
  2056. ;;
  2057. -* ) ac_must_keep_next=true ;;
  2058. esac
  2059. fi
  2060. as_fn_append ac_configure_args " '$ac_arg'"
  2061. ;;
  2062. esac
  2063. done
  2064. done
  2065. { ac_configure_args0=; unset ac_configure_args0;}
  2066. { ac_configure_args1=; unset ac_configure_args1;}
  2067. # When interrupted or exit'd, cleanup temporary files, and complete
  2068. # config.log. We remove comments because anyway the quotes in there
  2069. # would cause problems or look ugly.
  2070. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2071. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2072. trap 'exit_status=$?
  2073. # Save into config.log some information that might help in debugging.
  2074. {
  2075. echo
  2076. $as_echo "## ---------------- ##
  2077. ## Cache variables. ##
  2078. ## ---------------- ##"
  2079. echo
  2080. # The following way of writing the cache mishandles newlines in values,
  2081. (
  2082. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2083. eval ac_val=\$$ac_var
  2084. case $ac_val in #(
  2085. *${as_nl}*)
  2086. case $ac_var in #(
  2087. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2088. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2089. esac
  2090. case $ac_var in #(
  2091. _ | IFS | as_nl) ;; #(
  2092. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2093. *) { eval $ac_var=; unset $ac_var;} ;;
  2094. esac ;;
  2095. esac
  2096. done
  2097. (set) 2>&1 |
  2098. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2099. *${as_nl}ac_space=\ *)
  2100. sed -n \
  2101. "s/'\''/'\''\\\\'\'''\''/g;
  2102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2103. ;; #(
  2104. *)
  2105. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2106. ;;
  2107. esac |
  2108. sort
  2109. )
  2110. echo
  2111. $as_echo "## ----------------- ##
  2112. ## Output variables. ##
  2113. ## ----------------- ##"
  2114. echo
  2115. for ac_var in $ac_subst_vars
  2116. do
  2117. eval ac_val=\$$ac_var
  2118. case $ac_val in
  2119. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2120. esac
  2121. $as_echo "$ac_var='\''$ac_val'\''"
  2122. done | sort
  2123. echo
  2124. if test -n "$ac_subst_files"; then
  2125. $as_echo "## ------------------- ##
  2126. ## File substitutions. ##
  2127. ## ------------------- ##"
  2128. echo
  2129. for ac_var in $ac_subst_files
  2130. do
  2131. eval ac_val=\$$ac_var
  2132. case $ac_val in
  2133. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2134. esac
  2135. $as_echo "$ac_var='\''$ac_val'\''"
  2136. done | sort
  2137. echo
  2138. fi
  2139. if test -s confdefs.h; then
  2140. $as_echo "## ----------- ##
  2141. ## confdefs.h. ##
  2142. ## ----------- ##"
  2143. echo
  2144. cat confdefs.h
  2145. echo
  2146. fi
  2147. test "$ac_signal" != 0 &&
  2148. $as_echo "$as_me: caught signal $ac_signal"
  2149. $as_echo "$as_me: exit $exit_status"
  2150. } >&5
  2151. rm -f core *.core core.conftest.* &&
  2152. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2153. exit $exit_status
  2154. ' 0
  2155. for ac_signal in 1 2 13 15; do
  2156. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2157. done
  2158. ac_signal=0
  2159. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2160. rm -f -r conftest* confdefs.h
  2161. $as_echo "/* confdefs.h */" > confdefs.h
  2162. # Predefined preprocessor variables.
  2163. cat >>confdefs.h <<_ACEOF
  2164. #define PACKAGE_NAME "$PACKAGE_NAME"
  2165. _ACEOF
  2166. cat >>confdefs.h <<_ACEOF
  2167. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2168. _ACEOF
  2169. cat >>confdefs.h <<_ACEOF
  2170. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2171. _ACEOF
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_STRING "$PACKAGE_STRING"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_URL "$PACKAGE_URL"
  2180. _ACEOF
  2181. # Let the site file select an alternate cache file if it wants to.
  2182. # Prefer an explicitly selected file to automatically selected ones.
  2183. ac_site_file1=NONE
  2184. ac_site_file2=NONE
  2185. if test -n "$CONFIG_SITE"; then
  2186. # We do not want a PATH search for config.site.
  2187. case $CONFIG_SITE in #((
  2188. -*) ac_site_file1=./$CONFIG_SITE;;
  2189. */*) ac_site_file1=$CONFIG_SITE;;
  2190. *) ac_site_file1=./$CONFIG_SITE;;
  2191. esac
  2192. elif test "x$prefix" != xNONE; then
  2193. ac_site_file1=$prefix/share/config.site
  2194. ac_site_file2=$prefix/etc/config.site
  2195. else
  2196. ac_site_file1=$ac_default_prefix/share/config.site
  2197. ac_site_file2=$ac_default_prefix/etc/config.site
  2198. fi
  2199. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2200. do
  2201. test "x$ac_site_file" = xNONE && continue
  2202. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2204. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2205. sed 's/^/| /' "$ac_site_file" >&5
  2206. . "$ac_site_file" \
  2207. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2208. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2209. as_fn_error $? "failed to load site script $ac_site_file
  2210. See \`config.log' for more details" "$LINENO" 5; }
  2211. fi
  2212. done
  2213. if test -r "$cache_file"; then
  2214. # Some versions of bash will fail to source /dev/null (special files
  2215. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2216. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2218. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2219. case $cache_file in
  2220. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2221. *) . "./$cache_file";;
  2222. esac
  2223. fi
  2224. else
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2226. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2227. >$cache_file
  2228. fi
  2229. as_fn_append ac_header_list " stdlib.h"
  2230. as_fn_append ac_header_list " unistd.h"
  2231. as_fn_append ac_header_list " sys/param.h"
  2232. # Check that the precious variables saved in the cache have kept the same
  2233. # value.
  2234. ac_cache_corrupted=false
  2235. for ac_var in $ac_precious_vars; do
  2236. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2237. eval ac_new_set=\$ac_env_${ac_var}_set
  2238. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2239. eval ac_new_val=\$ac_env_${ac_var}_value
  2240. case $ac_old_set,$ac_new_set in
  2241. set,)
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2244. ac_cache_corrupted=: ;;
  2245. ,set)
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2247. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2248. ac_cache_corrupted=: ;;
  2249. ,);;
  2250. *)
  2251. if test "x$ac_old_val" != "x$ac_new_val"; then
  2252. # differences in whitespace do not lead to failure.
  2253. ac_old_val_w=`echo x $ac_old_val`
  2254. ac_new_val_w=`echo x $ac_new_val`
  2255. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2257. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2258. ac_cache_corrupted=:
  2259. else
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2261. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2262. eval $ac_var=\$ac_old_val
  2263. fi
  2264. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2265. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2267. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2268. fi;;
  2269. esac
  2270. # Pass precious variables to config.status.
  2271. if test "$ac_new_set" = set; then
  2272. case $ac_new_val in
  2273. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2274. *) ac_arg=$ac_var=$ac_new_val ;;
  2275. esac
  2276. case " $ac_configure_args " in
  2277. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2278. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2279. esac
  2280. fi
  2281. done
  2282. if $ac_cache_corrupted; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2284. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2286. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2287. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2288. fi
  2289. ## -------------------- ##
  2290. ## Main body of script. ##
  2291. ## -------------------- ##
  2292. ac_ext=c
  2293. ac_cpp='$CPP $CPPFLAGS'
  2294. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2295. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2296. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2297. am__api_version='1.15'
  2298. ac_aux_dir=
  2299. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2300. if test -f "$ac_dir/install-sh"; then
  2301. ac_aux_dir=$ac_dir
  2302. ac_install_sh="$ac_aux_dir/install-sh -c"
  2303. break
  2304. elif test -f "$ac_dir/install.sh"; then
  2305. ac_aux_dir=$ac_dir
  2306. ac_install_sh="$ac_aux_dir/install.sh -c"
  2307. break
  2308. elif test -f "$ac_dir/shtool"; then
  2309. ac_aux_dir=$ac_dir
  2310. ac_install_sh="$ac_aux_dir/shtool install -c"
  2311. break
  2312. fi
  2313. done
  2314. if test -z "$ac_aux_dir"; then
  2315. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2316. fi
  2317. # These three variables are undocumented and unsupported,
  2318. # and are intended to be withdrawn in a future Autoconf release.
  2319. # They can cause serious problems if a builder's source tree is in a directory
  2320. # whose full name contains unusual characters.
  2321. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2322. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2323. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2324. # Find a good install program. We prefer a C program (faster),
  2325. # so one script is as good as another. But avoid the broken or
  2326. # incompatible versions:
  2327. # SysV /etc/install, /usr/sbin/install
  2328. # SunOS /usr/etc/install
  2329. # IRIX /sbin/install
  2330. # AIX /bin/install
  2331. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2332. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2333. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2334. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2335. # OS/2's system install, which has a completely different semantic
  2336. # ./install, which can be erroneously created by make from ./install.sh.
  2337. # Reject install programs that cannot install multiple files.
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2339. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2340. if test -z "$INSTALL"; then
  2341. if ${ac_cv_path_install+:} false; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2345. for as_dir in $PATH
  2346. do
  2347. IFS=$as_save_IFS
  2348. test -z "$as_dir" && as_dir=.
  2349. # Account for people who put trailing slashes in PATH elements.
  2350. case $as_dir/ in #((
  2351. ./ | .// | /[cC]/* | \
  2352. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2353. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2354. /usr/ucb/* ) ;;
  2355. *)
  2356. # OSF1 and SCO ODT 3.0 have their own names for install.
  2357. # Don't use installbsd from OSF since it installs stuff as root
  2358. # by default.
  2359. for ac_prog in ginstall scoinst install; do
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2362. if test $ac_prog = install &&
  2363. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2364. # AIX install. It has an incompatible calling convention.
  2365. :
  2366. elif test $ac_prog = install &&
  2367. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2368. # program-specific install script used by HP pwplus--don't use.
  2369. :
  2370. else
  2371. rm -rf conftest.one conftest.two conftest.dir
  2372. echo one > conftest.one
  2373. echo two > conftest.two
  2374. mkdir conftest.dir
  2375. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2376. test -s conftest.one && test -s conftest.two &&
  2377. test -s conftest.dir/conftest.one &&
  2378. test -s conftest.dir/conftest.two
  2379. then
  2380. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2381. break 3
  2382. fi
  2383. fi
  2384. fi
  2385. done
  2386. done
  2387. ;;
  2388. esac
  2389. done
  2390. IFS=$as_save_IFS
  2391. rm -rf conftest.one conftest.two conftest.dir
  2392. fi
  2393. if test "${ac_cv_path_install+set}" = set; then
  2394. INSTALL=$ac_cv_path_install
  2395. else
  2396. # As a last resort, use the slow shell script. Don't cache a
  2397. # value for INSTALL within a source directory, because that will
  2398. # break other packages using the cache if that directory is
  2399. # removed, or if the value is a relative name.
  2400. INSTALL=$ac_install_sh
  2401. fi
  2402. fi
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2404. $as_echo "$INSTALL" >&6; }
  2405. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2406. # It thinks the first close brace ends the variable substitution.
  2407. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2408. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2409. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2411. $as_echo_n "checking whether build environment is sane... " >&6; }
  2412. # Reject unsafe characters in $srcdir or the absolute working directory
  2413. # name. Accept space and tab only in the latter.
  2414. am_lf='
  2415. '
  2416. case `pwd` in
  2417. *[\\\"\#\$\&\'\`$am_lf]*)
  2418. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2419. esac
  2420. case $srcdir in
  2421. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2422. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2423. esac
  2424. # Do 'set' in a subshell so we don't clobber the current shell's
  2425. # arguments. Must try -L first in case configure is actually a
  2426. # symlink; some systems play weird games with the mod time of symlinks
  2427. # (eg FreeBSD returns the mod time of the symlink's containing
  2428. # directory).
  2429. if (
  2430. am_has_slept=no
  2431. for am_try in 1 2; do
  2432. echo "timestamp, slept: $am_has_slept" > conftest.file
  2433. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2434. if test "$*" = "X"; then
  2435. # -L didn't work.
  2436. set X `ls -t "$srcdir/configure" conftest.file`
  2437. fi
  2438. if test "$*" != "X $srcdir/configure conftest.file" \
  2439. && test "$*" != "X conftest.file $srcdir/configure"; then
  2440. # If neither matched, then we have a broken ls. This can happen
  2441. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2442. # broken ls alias from the environment. This has actually
  2443. # happened. Such a system could not be considered "sane".
  2444. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2445. alias in your environment" "$LINENO" 5
  2446. fi
  2447. if test "$2" = conftest.file || test $am_try -eq 2; then
  2448. break
  2449. fi
  2450. # Just in case.
  2451. sleep 1
  2452. am_has_slept=yes
  2453. done
  2454. test "$2" = conftest.file
  2455. )
  2456. then
  2457. # Ok.
  2458. :
  2459. else
  2460. as_fn_error $? "newly created file is older than distributed files!
  2461. Check your system clock" "$LINENO" 5
  2462. fi
  2463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2464. $as_echo "yes" >&6; }
  2465. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2466. # generated files are strictly newer.
  2467. am_sleep_pid=
  2468. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2469. ( sleep 1 ) &
  2470. am_sleep_pid=$!
  2471. fi
  2472. rm -f conftest.file
  2473. test "$program_prefix" != NONE &&
  2474. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2475. # Use a double $ so make ignores it.
  2476. test "$program_suffix" != NONE &&
  2477. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2478. # Double any \ or $.
  2479. # By default was `s,x,x', remove it if useless.
  2480. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2481. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2482. # Expand $ac_aux_dir to an absolute path.
  2483. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2484. if test x"${MISSING+set}" != xset; then
  2485. case $am_aux_dir in
  2486. *\ * | *\ *)
  2487. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2488. *)
  2489. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2490. esac
  2491. fi
  2492. # Use eval to expand $SHELL
  2493. if eval "$MISSING --is-lightweight"; then
  2494. am_missing_run="$MISSING "
  2495. else
  2496. am_missing_run=
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2498. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2499. fi
  2500. if test x"${install_sh+set}" != xset; then
  2501. case $am_aux_dir in
  2502. *\ * | *\ *)
  2503. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2504. *)
  2505. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2506. esac
  2507. fi
  2508. # Installed binaries are usually stripped using 'strip' when the user
  2509. # run "make install-strip". However 'strip' might not be the right
  2510. # tool to use in cross-compilation environments, therefore Automake
  2511. # will honor the 'STRIP' environment variable to overrule this program.
  2512. if test "$cross_compiling" != no; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2515. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2517. $as_echo_n "checking for $ac_word... " >&6; }
  2518. if ${ac_cv_prog_STRIP+:} false; then :
  2519. $as_echo_n "(cached) " >&6
  2520. else
  2521. if test -n "$STRIP"; then
  2522. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2523. else
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2531. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2533. break 2
  2534. fi
  2535. done
  2536. done
  2537. IFS=$as_save_IFS
  2538. fi
  2539. fi
  2540. STRIP=$ac_cv_prog_STRIP
  2541. if test -n "$STRIP"; then
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2543. $as_echo "$STRIP" >&6; }
  2544. else
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2546. $as_echo "no" >&6; }
  2547. fi
  2548. fi
  2549. if test -z "$ac_cv_prog_STRIP"; then
  2550. ac_ct_STRIP=$STRIP
  2551. # Extract the first word of "strip", so it can be a program name with args.
  2552. set dummy strip; ac_word=$2
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2554. $as_echo_n "checking for $ac_word... " >&6; }
  2555. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2556. $as_echo_n "(cached) " >&6
  2557. else
  2558. if test -n "$ac_ct_STRIP"; then
  2559. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2560. else
  2561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2562. for as_dir in $PATH
  2563. do
  2564. IFS=$as_save_IFS
  2565. test -z "$as_dir" && as_dir=.
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2568. ac_cv_prog_ac_ct_STRIP="strip"
  2569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2570. break 2
  2571. fi
  2572. done
  2573. done
  2574. IFS=$as_save_IFS
  2575. fi
  2576. fi
  2577. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2578. if test -n "$ac_ct_STRIP"; then
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2580. $as_echo "$ac_ct_STRIP" >&6; }
  2581. else
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2583. $as_echo "no" >&6; }
  2584. fi
  2585. if test "x$ac_ct_STRIP" = x; then
  2586. STRIP=":"
  2587. else
  2588. case $cross_compiling:$ac_tool_warned in
  2589. yes:)
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2592. ac_tool_warned=yes ;;
  2593. esac
  2594. STRIP=$ac_ct_STRIP
  2595. fi
  2596. else
  2597. STRIP="$ac_cv_prog_STRIP"
  2598. fi
  2599. fi
  2600. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2602. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2603. if test -z "$MKDIR_P"; then
  2604. if ${ac_cv_path_mkdir+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_prog in mkdir gmkdir; do
  2613. for ac_exec_ext in '' $ac_executable_extensions; do
  2614. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2615. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2616. 'mkdir (GNU coreutils) '* | \
  2617. 'mkdir (coreutils) '* | \
  2618. 'mkdir (fileutils) '4.1*)
  2619. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2620. break 3;;
  2621. esac
  2622. done
  2623. done
  2624. done
  2625. IFS=$as_save_IFS
  2626. fi
  2627. test -d ./--version && rmdir ./--version
  2628. if test "${ac_cv_path_mkdir+set}" = set; then
  2629. MKDIR_P="$ac_cv_path_mkdir -p"
  2630. else
  2631. # As a last resort, use the slow shell script. Don't cache a
  2632. # value for MKDIR_P within a source directory, because that will
  2633. # break other packages using the cache if that directory is
  2634. # removed, or if the value is a relative name.
  2635. MKDIR_P="$ac_install_sh -d"
  2636. fi
  2637. fi
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2639. $as_echo "$MKDIR_P" >&6; }
  2640. for ac_prog in gawk mawk nawk awk
  2641. do
  2642. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2643. set dummy $ac_prog; ac_word=$2
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2645. $as_echo_n "checking for $ac_word... " >&6; }
  2646. if ${ac_cv_prog_AWK+:} false; then :
  2647. $as_echo_n "(cached) " >&6
  2648. else
  2649. if test -n "$AWK"; then
  2650. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2651. else
  2652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2653. for as_dir in $PATH
  2654. do
  2655. IFS=$as_save_IFS
  2656. test -z "$as_dir" && as_dir=.
  2657. for ac_exec_ext in '' $ac_executable_extensions; do
  2658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2659. ac_cv_prog_AWK="$ac_prog"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. fi
  2668. AWK=$ac_cv_prog_AWK
  2669. if test -n "$AWK"; then
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2671. $as_echo "$AWK" >&6; }
  2672. else
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2674. $as_echo "no" >&6; }
  2675. fi
  2676. test -n "$AWK" && break
  2677. done
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2679. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2680. set x ${MAKE-make}
  2681. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2682. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. cat >conftest.make <<\_ACEOF
  2686. SHELL = /bin/sh
  2687. all:
  2688. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2689. _ACEOF
  2690. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2691. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2692. *@@@%%%=?*=@@@%%%*)
  2693. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2694. *)
  2695. eval ac_cv_prog_make_${ac_make}_set=no;;
  2696. esac
  2697. rm -f conftest.make
  2698. fi
  2699. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2701. $as_echo "yes" >&6; }
  2702. SET_MAKE=
  2703. else
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2705. $as_echo "no" >&6; }
  2706. SET_MAKE="MAKE=${MAKE-make}"
  2707. fi
  2708. rm -rf .tst 2>/dev/null
  2709. mkdir .tst 2>/dev/null
  2710. if test -d .tst; then
  2711. am__leading_dot=.
  2712. else
  2713. am__leading_dot=_
  2714. fi
  2715. rmdir .tst 2>/dev/null
  2716. # Check whether --enable-silent-rules was given.
  2717. if test "${enable_silent_rules+set}" = set; then :
  2718. enableval=$enable_silent_rules;
  2719. fi
  2720. case $enable_silent_rules in # (((
  2721. yes) AM_DEFAULT_VERBOSITY=0;;
  2722. no) AM_DEFAULT_VERBOSITY=1;;
  2723. *) AM_DEFAULT_VERBOSITY=1;;
  2724. esac
  2725. am_make=${MAKE-make}
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2727. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2728. if ${am_cv_make_support_nested_variables+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if $as_echo 'TRUE=$(BAR$(V))
  2732. BAR0=false
  2733. BAR1=true
  2734. V=1
  2735. am__doit:
  2736. @$(TRUE)
  2737. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2738. am_cv_make_support_nested_variables=yes
  2739. else
  2740. am_cv_make_support_nested_variables=no
  2741. fi
  2742. fi
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2744. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2745. if test $am_cv_make_support_nested_variables = yes; then
  2746. AM_V='$(V)'
  2747. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2748. else
  2749. AM_V=$AM_DEFAULT_VERBOSITY
  2750. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2751. fi
  2752. AM_BACKSLASH='\'
  2753. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2754. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2755. # is not polluted with repeated "-I."
  2756. am__isrc=' -I$(srcdir)'
  2757. # test to see if srcdir already configured
  2758. if test -f $srcdir/config.status; then
  2759. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2760. fi
  2761. fi
  2762. # test whether we have cygpath
  2763. if test -z "$CYGPATH_W"; then
  2764. if (cygpath --version) >/dev/null 2>/dev/null; then
  2765. CYGPATH_W='cygpath -w'
  2766. else
  2767. CYGPATH_W=echo
  2768. fi
  2769. fi
  2770. # Define the identity of the package.
  2771. PACKAGE='file'
  2772. VERSION='5.37'
  2773. cat >>confdefs.h <<_ACEOF
  2774. #define PACKAGE "$PACKAGE"
  2775. _ACEOF
  2776. cat >>confdefs.h <<_ACEOF
  2777. #define VERSION "$VERSION"
  2778. _ACEOF
  2779. # Some tools Automake needs.
  2780. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2781. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2782. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2783. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2784. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2785. # For better backward compatibility. To be removed once Automake 1.9.x
  2786. # dies out for good. For more background, see:
  2787. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2788. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2789. mkdir_p='$(MKDIR_P)'
  2790. # We need awk for the "check" target (and possibly the TAP driver). The
  2791. # system "awk" is bad on some platforms.
  2792. # Always define AMTAR for backward compatibility. Yes, it's still used
  2793. # in the wild :-( We should find a proper way to deprecate it ...
  2794. AMTAR='$${TAR-tar}'
  2795. # We'll loop over all known methods to create a tar archive until one works.
  2796. _am_tools='gnutar pax cpio none'
  2797. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2798. # POSIX will say in a future version that running "rm -f" with no argument
  2799. # is OK; and we want to be able to make that assumption in our Makefile
  2800. # recipes. So use an aggressive probe to check that the usage we want is
  2801. # actually supported "in the wild" to an acceptable degree.
  2802. # See automake bug#10828.
  2803. # To make any issue more visible, cause the running configure to be aborted
  2804. # by default if the 'rm' program in use doesn't match our expectations; the
  2805. # user can still override this though.
  2806. if rm -f && rm -fr && rm -rf; then : OK; else
  2807. cat >&2 <<'END'
  2808. Oops!
  2809. Your 'rm' program seems unable to run without file operands specified
  2810. on the command line, even when the '-f' option is present. This is contrary
  2811. to the behaviour of most rm programs out there, and not conforming with
  2812. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2813. Please tell bug-automake@gnu.org about your system, including the value
  2814. of your $PATH and any error possibly output before this message. This
  2815. can help us improve future automake versions.
  2816. END
  2817. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2818. echo 'Configuration will proceed anyway, since you have set the' >&2
  2819. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2820. echo >&2
  2821. else
  2822. cat >&2 <<'END'
  2823. Aborting the configuration process, to ensure you take notice of the issue.
  2824. You can download and install GNU coreutils to get an 'rm' implementation
  2825. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2826. If you want to complete the configuration process using your problematic
  2827. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2828. to "yes", and re-run configure.
  2829. END
  2830. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2831. fi
  2832. fi
  2833. # Check whether --enable-silent-rules was given.
  2834. if test "${enable_silent_rules+set}" = set; then :
  2835. enableval=$enable_silent_rules;
  2836. fi
  2837. case $enable_silent_rules in # (((
  2838. yes) AM_DEFAULT_VERBOSITY=0;;
  2839. no) AM_DEFAULT_VERBOSITY=1;;
  2840. *) AM_DEFAULT_VERBOSITY=0;;
  2841. esac
  2842. am_make=${MAKE-make}
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2844. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2845. if ${am_cv_make_support_nested_variables+:} false; then :
  2846. $as_echo_n "(cached) " >&6
  2847. else
  2848. if $as_echo 'TRUE=$(BAR$(V))
  2849. BAR0=false
  2850. BAR1=true
  2851. V=1
  2852. am__doit:
  2853. @$(TRUE)
  2854. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2855. am_cv_make_support_nested_variables=yes
  2856. else
  2857. am_cv_make_support_nested_variables=no
  2858. fi
  2859. fi
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2861. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2862. if test $am_cv_make_support_nested_variables = yes; then
  2863. AM_V='$(V)'
  2864. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2865. else
  2866. AM_V=$AM_DEFAULT_VERBOSITY
  2867. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2868. fi
  2869. AM_BACKSLASH='\'
  2870. ac_config_headers="$ac_config_headers config.h"
  2871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2872. $as_echo_n "checking for builtin ELF support... " >&6; }
  2873. # Check whether --enable-elf was given.
  2874. if test "${enable_elf+set}" = set; then :
  2875. enableval=$enable_elf; if test "${enableval}" = yes; then
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2877. $as_echo "yes" >&6; }
  2878. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2879. else
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2881. $as_echo "no" >&6; }
  2882. fi
  2883. else
  2884. # enable by default
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2886. $as_echo "yes" >&6; }
  2887. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2888. fi
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2890. $as_echo_n "checking for ELF core file support... " >&6; }
  2891. # Check whether --enable-elf-core was given.
  2892. if test "${enable_elf_core+set}" = set; then :
  2893. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2895. $as_echo "yes" >&6; }
  2896. $as_echo "#define ELFCORE 1" >>confdefs.h
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. else
  2902. # enable by default
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2904. $as_echo "yes" >&6; }
  2905. $as_echo "#define ELFCORE 1" >>confdefs.h
  2906. fi
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
  2908. $as_echo_n "checking for zlib support... " >&6; }
  2909. # Check whether --enable-zlib was given.
  2910. if test "${enable_zlib+set}" = set; then :
  2911. enableval=$enable_zlib;
  2912. fi
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
  2914. $as_echo "$enable_zlib" >&6; }
  2915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
  2916. $as_echo_n "checking for libseccomp support... " >&6; }
  2917. # Check whether --enable-libseccomp was given.
  2918. if test "${enable_libseccomp+set}" = set; then :
  2919. enableval=$enable_libseccomp;
  2920. fi
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
  2922. $as_echo "$enable_libseccomp" >&6; }
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2924. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2925. # Check whether --enable-fsect-man5 was given.
  2926. if test "${enable_fsect_man5+set}" = set; then :
  2927. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2929. $as_echo "yes" >&6; }
  2930. fsect=5
  2931. else
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2933. $as_echo "no" >&6; }
  2934. fsect=4
  2935. fi
  2936. else
  2937. # disable by default
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2939. $as_echo "no" >&6; }
  2940. fsect=4
  2941. fi
  2942. # Make sure we can run config.sub.
  2943. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2944. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2946. $as_echo_n "checking build system type... " >&6; }
  2947. if ${ac_cv_build+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. ac_build_alias=$build_alias
  2951. test "x$ac_build_alias" = x &&
  2952. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2953. test "x$ac_build_alias" = x &&
  2954. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2955. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2956. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2959. $as_echo "$ac_cv_build" >&6; }
  2960. case $ac_cv_build in
  2961. *-*-*) ;;
  2962. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2963. esac
  2964. build=$ac_cv_build
  2965. ac_save_IFS=$IFS; IFS='-'
  2966. set x $ac_cv_build
  2967. shift
  2968. build_cpu=$1
  2969. build_vendor=$2
  2970. shift; shift
  2971. # Remember, the first character of IFS is used to create $*,
  2972. # except with old shells:
  2973. build_os=$*
  2974. IFS=$ac_save_IFS
  2975. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2977. $as_echo_n "checking host system type... " >&6; }
  2978. if ${ac_cv_host+:} false; then :
  2979. $as_echo_n "(cached) " >&6
  2980. else
  2981. if test "x$host_alias" = x; then
  2982. ac_cv_host=$ac_cv_build
  2983. else
  2984. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2985. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2986. fi
  2987. fi
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2989. $as_echo "$ac_cv_host" >&6; }
  2990. case $ac_cv_host in
  2991. *-*-*) ;;
  2992. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2993. esac
  2994. host=$ac_cv_host
  2995. ac_save_IFS=$IFS; IFS='-'
  2996. set x $ac_cv_host
  2997. shift
  2998. host_cpu=$1
  2999. host_vendor=$2
  3000. shift; shift
  3001. # Remember, the first character of IFS is used to create $*,
  3002. # except with old shells:
  3003. host_os=$*
  3004. IFS=$ac_save_IFS
  3005. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3006. case "$host_os" in
  3007. mingw32*)
  3008. MINGW=1
  3009. ;;
  3010. *)
  3011. MINGW=0
  3012. ;;
  3013. esac
  3014. if test "$MINGW" = 1; then
  3015. MINGW_TRUE=
  3016. MINGW_FALSE='#'
  3017. else
  3018. MINGW_TRUE='#'
  3019. MINGW_FALSE=
  3020. fi
  3021. pkgdatadir='$(datadir)/misc'
  3022. if test x$fsect = x5; then
  3023. FSECT5_TRUE=
  3024. FSECT5_FALSE='#'
  3025. else
  3026. FSECT5_TRUE='#'
  3027. FSECT5_FALSE=
  3028. fi
  3029. DEPDIR="${am__leading_dot}deps"
  3030. ac_config_commands="$ac_config_commands depfiles"
  3031. am_make=${MAKE-make}
  3032. cat > confinc << 'END'
  3033. am__doit:
  3034. @echo this is the am__doit target
  3035. .PHONY: am__doit
  3036. END
  3037. # If we don't find an include directive, just comment out the code.
  3038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3039. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3040. am__include="#"
  3041. am__quote=
  3042. _am_result=none
  3043. # First try GNU make style include.
  3044. echo "include confinc" > confmf
  3045. # Ignore all kinds of additional output from 'make'.
  3046. case `$am_make -s -f confmf 2> /dev/null` in #(
  3047. *the\ am__doit\ target*)
  3048. am__include=include
  3049. am__quote=
  3050. _am_result=GNU
  3051. ;;
  3052. esac
  3053. # Now try BSD make style include.
  3054. if test "$am__include" = "#"; then
  3055. echo '.include "confinc"' > confmf
  3056. case `$am_make -s -f confmf 2> /dev/null` in #(
  3057. *the\ am__doit\ target*)
  3058. am__include=.include
  3059. am__quote="\""
  3060. _am_result=BSD
  3061. ;;
  3062. esac
  3063. fi
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3065. $as_echo "$_am_result" >&6; }
  3066. rm -f confinc confmf
  3067. # Check whether --enable-dependency-tracking was given.
  3068. if test "${enable_dependency_tracking+set}" = set; then :
  3069. enableval=$enable_dependency_tracking;
  3070. fi
  3071. if test "x$enable_dependency_tracking" != xno; then
  3072. am_depcomp="$ac_aux_dir/depcomp"
  3073. AMDEPBACKSLASH='\'
  3074. am__nodep='_no'
  3075. fi
  3076. if test "x$enable_dependency_tracking" != xno; then
  3077. AMDEP_TRUE=
  3078. AMDEP_FALSE='#'
  3079. else
  3080. AMDEP_TRUE='#'
  3081. AMDEP_FALSE=
  3082. fi
  3083. ac_ext=c
  3084. ac_cpp='$CPP $CPPFLAGS'
  3085. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3086. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3087. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3088. if test -n "$ac_tool_prefix"; then
  3089. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3090. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3092. $as_echo_n "checking for $ac_word... " >&6; }
  3093. if ${ac_cv_prog_CC+:} false; then :
  3094. $as_echo_n "(cached) " >&6
  3095. else
  3096. if test -n "$CC"; then
  3097. ac_cv_prog_CC="$CC" # Let the user override the test.
  3098. else
  3099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3100. for as_dir in $PATH
  3101. do
  3102. IFS=$as_save_IFS
  3103. test -z "$as_dir" && as_dir=.
  3104. for ac_exec_ext in '' $ac_executable_extensions; do
  3105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3106. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3108. break 2
  3109. fi
  3110. done
  3111. done
  3112. IFS=$as_save_IFS
  3113. fi
  3114. fi
  3115. CC=$ac_cv_prog_CC
  3116. if test -n "$CC"; then
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3118. $as_echo "$CC" >&6; }
  3119. else
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3121. $as_echo "no" >&6; }
  3122. fi
  3123. fi
  3124. if test -z "$ac_cv_prog_CC"; then
  3125. ac_ct_CC=$CC
  3126. # Extract the first word of "gcc", so it can be a program name with args.
  3127. set dummy gcc; ac_word=$2
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3129. $as_echo_n "checking for $ac_word... " >&6; }
  3130. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3131. $as_echo_n "(cached) " >&6
  3132. else
  3133. if test -n "$ac_ct_CC"; then
  3134. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3135. else
  3136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3137. for as_dir in $PATH
  3138. do
  3139. IFS=$as_save_IFS
  3140. test -z "$as_dir" && as_dir=.
  3141. for ac_exec_ext in '' $ac_executable_extensions; do
  3142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3143. ac_cv_prog_ac_ct_CC="gcc"
  3144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3145. break 2
  3146. fi
  3147. done
  3148. done
  3149. IFS=$as_save_IFS
  3150. fi
  3151. fi
  3152. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3153. if test -n "$ac_ct_CC"; then
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3155. $as_echo "$ac_ct_CC" >&6; }
  3156. else
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3158. $as_echo "no" >&6; }
  3159. fi
  3160. if test "x$ac_ct_CC" = x; then
  3161. CC=""
  3162. else
  3163. case $cross_compiling:$ac_tool_warned in
  3164. yes:)
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3166. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3167. ac_tool_warned=yes ;;
  3168. esac
  3169. CC=$ac_ct_CC
  3170. fi
  3171. else
  3172. CC="$ac_cv_prog_CC"
  3173. fi
  3174. if test -z "$CC"; then
  3175. if test -n "$ac_tool_prefix"; then
  3176. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3177. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. if ${ac_cv_prog_CC+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. if test -n "$CC"; then
  3184. ac_cv_prog_CC="$CC" # Let the user override the test.
  3185. else
  3186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3187. for as_dir in $PATH
  3188. do
  3189. IFS=$as_save_IFS
  3190. test -z "$as_dir" && as_dir=.
  3191. for ac_exec_ext in '' $ac_executable_extensions; do
  3192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3193. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3195. break 2
  3196. fi
  3197. done
  3198. done
  3199. IFS=$as_save_IFS
  3200. fi
  3201. fi
  3202. CC=$ac_cv_prog_CC
  3203. if test -n "$CC"; then
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3205. $as_echo "$CC" >&6; }
  3206. else
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3208. $as_echo "no" >&6; }
  3209. fi
  3210. fi
  3211. fi
  3212. if test -z "$CC"; then
  3213. # Extract the first word of "cc", so it can be a program name with args.
  3214. set dummy cc; ac_word=$2
  3215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3216. $as_echo_n "checking for $ac_word... " >&6; }
  3217. if ${ac_cv_prog_CC+:} false; then :
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. if test -n "$CC"; then
  3221. ac_cv_prog_CC="$CC" # Let the user override the test.
  3222. else
  3223. ac_prog_rejected=no
  3224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3225. for as_dir in $PATH
  3226. do
  3227. IFS=$as_save_IFS
  3228. test -z "$as_dir" && as_dir=.
  3229. for ac_exec_ext in '' $ac_executable_extensions; do
  3230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3231. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3232. ac_prog_rejected=yes
  3233. continue
  3234. fi
  3235. ac_cv_prog_CC="cc"
  3236. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3237. break 2
  3238. fi
  3239. done
  3240. done
  3241. IFS=$as_save_IFS
  3242. if test $ac_prog_rejected = yes; then
  3243. # We found a bogon in the path, so make sure we never use it.
  3244. set dummy $ac_cv_prog_CC
  3245. shift
  3246. if test $# != 0; then
  3247. # We chose a different compiler from the bogus one.
  3248. # However, it has the same basename, so the bogon will be chosen
  3249. # first if we set CC to just the basename; use the full file name.
  3250. shift
  3251. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3252. fi
  3253. fi
  3254. fi
  3255. fi
  3256. CC=$ac_cv_prog_CC
  3257. if test -n "$CC"; then
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3259. $as_echo "$CC" >&6; }
  3260. else
  3261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3262. $as_echo "no" >&6; }
  3263. fi
  3264. fi
  3265. if test -z "$CC"; then
  3266. if test -n "$ac_tool_prefix"; then
  3267. for ac_prog in cl.exe
  3268. do
  3269. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3270. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3272. $as_echo_n "checking for $ac_word... " >&6; }
  3273. if ${ac_cv_prog_CC+:} false; then :
  3274. $as_echo_n "(cached) " >&6
  3275. else
  3276. if test -n "$CC"; then
  3277. ac_cv_prog_CC="$CC" # Let the user override the test.
  3278. else
  3279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3280. for as_dir in $PATH
  3281. do
  3282. IFS=$as_save_IFS
  3283. test -z "$as_dir" && as_dir=.
  3284. for ac_exec_ext in '' $ac_executable_extensions; do
  3285. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3286. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3287. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3288. break 2
  3289. fi
  3290. done
  3291. done
  3292. IFS=$as_save_IFS
  3293. fi
  3294. fi
  3295. CC=$ac_cv_prog_CC
  3296. if test -n "$CC"; then
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3298. $as_echo "$CC" >&6; }
  3299. else
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3301. $as_echo "no" >&6; }
  3302. fi
  3303. test -n "$CC" && break
  3304. done
  3305. fi
  3306. if test -z "$CC"; then
  3307. ac_ct_CC=$CC
  3308. for ac_prog in cl.exe
  3309. do
  3310. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3311. set dummy $ac_prog; ac_word=$2
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3313. $as_echo_n "checking for $ac_word... " >&6; }
  3314. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3315. $as_echo_n "(cached) " >&6
  3316. else
  3317. if test -n "$ac_ct_CC"; then
  3318. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3319. else
  3320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3321. for as_dir in $PATH
  3322. do
  3323. IFS=$as_save_IFS
  3324. test -z "$as_dir" && as_dir=.
  3325. for ac_exec_ext in '' $ac_executable_extensions; do
  3326. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3327. ac_cv_prog_ac_ct_CC="$ac_prog"
  3328. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3329. break 2
  3330. fi
  3331. done
  3332. done
  3333. IFS=$as_save_IFS
  3334. fi
  3335. fi
  3336. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3337. if test -n "$ac_ct_CC"; then
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3339. $as_echo "$ac_ct_CC" >&6; }
  3340. else
  3341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3342. $as_echo "no" >&6; }
  3343. fi
  3344. test -n "$ac_ct_CC" && break
  3345. done
  3346. if test "x$ac_ct_CC" = x; then
  3347. CC=""
  3348. else
  3349. case $cross_compiling:$ac_tool_warned in
  3350. yes:)
  3351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3353. ac_tool_warned=yes ;;
  3354. esac
  3355. CC=$ac_ct_CC
  3356. fi
  3357. fi
  3358. fi
  3359. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3360. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3361. as_fn_error $? "no acceptable C compiler found in \$PATH
  3362. See \`config.log' for more details" "$LINENO" 5; }
  3363. # Provide some information about the compiler.
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3365. set X $ac_compile
  3366. ac_compiler=$2
  3367. for ac_option in --version -v -V -qversion; do
  3368. { { ac_try="$ac_compiler $ac_option >&5"
  3369. case "(($ac_try" in
  3370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3371. *) ac_try_echo=$ac_try;;
  3372. esac
  3373. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3374. $as_echo "$ac_try_echo"; } >&5
  3375. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3376. ac_status=$?
  3377. if test -s conftest.err; then
  3378. sed '10a\
  3379. ... rest of stderr output deleted ...
  3380. 10q' conftest.err >conftest.er1
  3381. cat conftest.er1 >&5
  3382. fi
  3383. rm -f conftest.er1 conftest.err
  3384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3385. test $ac_status = 0; }
  3386. done
  3387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3388. /* end confdefs.h. */
  3389. int
  3390. main ()
  3391. {
  3392. ;
  3393. return 0;
  3394. }
  3395. _ACEOF
  3396. ac_clean_files_save=$ac_clean_files
  3397. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3398. # Try to create an executable without -o first, disregard a.out.
  3399. # It will help us diagnose broken compilers, and finding out an intuition
  3400. # of exeext.
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3402. $as_echo_n "checking whether the C compiler works... " >&6; }
  3403. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3404. # The possible output files:
  3405. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3406. ac_rmfiles=
  3407. for ac_file in $ac_files
  3408. do
  3409. case $ac_file in
  3410. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3411. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3412. esac
  3413. done
  3414. rm -f $ac_rmfiles
  3415. if { { ac_try="$ac_link_default"
  3416. case "(($ac_try" in
  3417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3418. *) ac_try_echo=$ac_try;;
  3419. esac
  3420. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3421. $as_echo "$ac_try_echo"; } >&5
  3422. (eval "$ac_link_default") 2>&5
  3423. ac_status=$?
  3424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3425. test $ac_status = 0; }; then :
  3426. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3427. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3428. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3429. # so that the user can short-circuit this test for compilers unknown to
  3430. # Autoconf.
  3431. for ac_file in $ac_files ''
  3432. do
  3433. test -f "$ac_file" || continue
  3434. case $ac_file in
  3435. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3436. ;;
  3437. [ab].out )
  3438. # We found the default executable, but exeext='' is most
  3439. # certainly right.
  3440. break;;
  3441. *.* )
  3442. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3443. then :; else
  3444. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3445. fi
  3446. # We set ac_cv_exeext here because the later test for it is not
  3447. # safe: cross compilers may not add the suffix if given an `-o'
  3448. # argument, so we may need to know it at that point already.
  3449. # Even if this section looks crufty: it has the advantage of
  3450. # actually working.
  3451. break;;
  3452. * )
  3453. break;;
  3454. esac
  3455. done
  3456. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3457. else
  3458. ac_file=''
  3459. fi
  3460. if test -z "$ac_file"; then :
  3461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3462. $as_echo "no" >&6; }
  3463. $as_echo "$as_me: failed program was:" >&5
  3464. sed 's/^/| /' conftest.$ac_ext >&5
  3465. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3466. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3467. as_fn_error 77 "C compiler cannot create executables
  3468. See \`config.log' for more details" "$LINENO" 5; }
  3469. else
  3470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3471. $as_echo "yes" >&6; }
  3472. fi
  3473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3474. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3476. $as_echo "$ac_file" >&6; }
  3477. ac_exeext=$ac_cv_exeext
  3478. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3479. ac_clean_files=$ac_clean_files_save
  3480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3481. $as_echo_n "checking for suffix of executables... " >&6; }
  3482. if { { ac_try="$ac_link"
  3483. case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3488. $as_echo "$ac_try_echo"; } >&5
  3489. (eval "$ac_link") 2>&5
  3490. ac_status=$?
  3491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3492. test $ac_status = 0; }; then :
  3493. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3494. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3495. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3496. # `rm'.
  3497. for ac_file in conftest.exe conftest conftest.*; do
  3498. test -f "$ac_file" || continue
  3499. case $ac_file in
  3500. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3501. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3502. break;;
  3503. * ) break;;
  3504. esac
  3505. done
  3506. else
  3507. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3508. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3509. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3510. See \`config.log' for more details" "$LINENO" 5; }
  3511. fi
  3512. rm -f conftest conftest$ac_cv_exeext
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3514. $as_echo "$ac_cv_exeext" >&6; }
  3515. rm -f conftest.$ac_ext
  3516. EXEEXT=$ac_cv_exeext
  3517. ac_exeext=$EXEEXT
  3518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3519. /* end confdefs.h. */
  3520. #include <stdio.h>
  3521. int
  3522. main ()
  3523. {
  3524. FILE *f = fopen ("conftest.out", "w");
  3525. return ferror (f) || fclose (f) != 0;
  3526. ;
  3527. return 0;
  3528. }
  3529. _ACEOF
  3530. ac_clean_files="$ac_clean_files conftest.out"
  3531. # Check that the compiler produces executables we can run. If not, either
  3532. # the compiler is broken, or we cross compile.
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3534. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3535. if test "$cross_compiling" != yes; then
  3536. { { ac_try="$ac_link"
  3537. case "(($ac_try" in
  3538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3539. *) ac_try_echo=$ac_try;;
  3540. esac
  3541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3542. $as_echo "$ac_try_echo"; } >&5
  3543. (eval "$ac_link") 2>&5
  3544. ac_status=$?
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3546. test $ac_status = 0; }
  3547. if { ac_try='./conftest$ac_cv_exeext'
  3548. { { case "(($ac_try" in
  3549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3550. *) ac_try_echo=$ac_try;;
  3551. esac
  3552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3553. $as_echo "$ac_try_echo"; } >&5
  3554. (eval "$ac_try") 2>&5
  3555. ac_status=$?
  3556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3557. test $ac_status = 0; }; }; then
  3558. cross_compiling=no
  3559. else
  3560. if test "$cross_compiling" = maybe; then
  3561. cross_compiling=yes
  3562. else
  3563. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3564. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3565. as_fn_error $? "cannot run C compiled programs.
  3566. If you meant to cross compile, use \`--host'.
  3567. See \`config.log' for more details" "$LINENO" 5; }
  3568. fi
  3569. fi
  3570. fi
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3572. $as_echo "$cross_compiling" >&6; }
  3573. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3574. ac_clean_files=$ac_clean_files_save
  3575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3576. $as_echo_n "checking for suffix of object files... " >&6; }
  3577. if ${ac_cv_objext+:} false; then :
  3578. $as_echo_n "(cached) " >&6
  3579. else
  3580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3581. /* end confdefs.h. */
  3582. int
  3583. main ()
  3584. {
  3585. ;
  3586. return 0;
  3587. }
  3588. _ACEOF
  3589. rm -f conftest.o conftest.obj
  3590. if { { ac_try="$ac_compile"
  3591. case "(($ac_try" in
  3592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3593. *) ac_try_echo=$ac_try;;
  3594. esac
  3595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3596. $as_echo "$ac_try_echo"; } >&5
  3597. (eval "$ac_compile") 2>&5
  3598. ac_status=$?
  3599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3600. test $ac_status = 0; }; then :
  3601. for ac_file in conftest.o conftest.obj conftest.*; do
  3602. test -f "$ac_file" || continue;
  3603. case $ac_file in
  3604. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3605. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3606. break;;
  3607. esac
  3608. done
  3609. else
  3610. $as_echo "$as_me: failed program was:" >&5
  3611. sed 's/^/| /' conftest.$ac_ext >&5
  3612. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3613. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3614. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3615. See \`config.log' for more details" "$LINENO" 5; }
  3616. fi
  3617. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3618. fi
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3620. $as_echo "$ac_cv_objext" >&6; }
  3621. OBJEXT=$ac_cv_objext
  3622. ac_objext=$OBJEXT
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3624. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3625. if ${ac_cv_c_compiler_gnu+:} false; then :
  3626. $as_echo_n "(cached) " >&6
  3627. else
  3628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3629. /* end confdefs.h. */
  3630. int
  3631. main ()
  3632. {
  3633. #ifndef __GNUC__
  3634. choke me
  3635. #endif
  3636. ;
  3637. return 0;
  3638. }
  3639. _ACEOF
  3640. if ac_fn_c_try_compile "$LINENO"; then :
  3641. ac_compiler_gnu=yes
  3642. else
  3643. ac_compiler_gnu=no
  3644. fi
  3645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3646. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3647. fi
  3648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3649. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3650. if test $ac_compiler_gnu = yes; then
  3651. GCC=yes
  3652. else
  3653. GCC=
  3654. fi
  3655. ac_test_CFLAGS=${CFLAGS+set}
  3656. ac_save_CFLAGS=$CFLAGS
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3658. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3659. if ${ac_cv_prog_cc_g+:} false; then :
  3660. $as_echo_n "(cached) " >&6
  3661. else
  3662. ac_save_c_werror_flag=$ac_c_werror_flag
  3663. ac_c_werror_flag=yes
  3664. ac_cv_prog_cc_g=no
  3665. CFLAGS="-g"
  3666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3667. /* end confdefs.h. */
  3668. int
  3669. main ()
  3670. {
  3671. ;
  3672. return 0;
  3673. }
  3674. _ACEOF
  3675. if ac_fn_c_try_compile "$LINENO"; then :
  3676. ac_cv_prog_cc_g=yes
  3677. else
  3678. CFLAGS=""
  3679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3680. /* end confdefs.h. */
  3681. int
  3682. main ()
  3683. {
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. if ac_fn_c_try_compile "$LINENO"; then :
  3689. else
  3690. ac_c_werror_flag=$ac_save_c_werror_flag
  3691. CFLAGS="-g"
  3692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3693. /* end confdefs.h. */
  3694. int
  3695. main ()
  3696. {
  3697. ;
  3698. return 0;
  3699. }
  3700. _ACEOF
  3701. if ac_fn_c_try_compile "$LINENO"; then :
  3702. ac_cv_prog_cc_g=yes
  3703. fi
  3704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3705. fi
  3706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3707. fi
  3708. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3709. ac_c_werror_flag=$ac_save_c_werror_flag
  3710. fi
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3712. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3713. if test "$ac_test_CFLAGS" = set; then
  3714. CFLAGS=$ac_save_CFLAGS
  3715. elif test $ac_cv_prog_cc_g = yes; then
  3716. if test "$GCC" = yes; then
  3717. CFLAGS="-g -O2"
  3718. else
  3719. CFLAGS="-g"
  3720. fi
  3721. else
  3722. if test "$GCC" = yes; then
  3723. CFLAGS="-O2"
  3724. else
  3725. CFLAGS=
  3726. fi
  3727. fi
  3728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3729. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3730. if ${ac_cv_prog_cc_c89+:} false; then :
  3731. $as_echo_n "(cached) " >&6
  3732. else
  3733. ac_cv_prog_cc_c89=no
  3734. ac_save_CC=$CC
  3735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3736. /* end confdefs.h. */
  3737. #include <stdarg.h>
  3738. #include <stdio.h>
  3739. struct stat;
  3740. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3741. struct buf { int x; };
  3742. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3743. static char *e (p, i)
  3744. char **p;
  3745. int i;
  3746. {
  3747. return p[i];
  3748. }
  3749. static char *f (char * (*g) (char **, int), char **p, ...)
  3750. {
  3751. char *s;
  3752. va_list v;
  3753. va_start (v,p);
  3754. s = g (p, va_arg (v,int));
  3755. va_end (v);
  3756. return s;
  3757. }
  3758. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3759. function prototypes and stuff, but not '\xHH' hex character constants.
  3760. These don't provoke an error unfortunately, instead are silently treated
  3761. as 'x'. The following induces an error, until -std is added to get
  3762. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3763. array size at least. It's necessary to write '\x00'==0 to get something
  3764. that's true only with -std. */
  3765. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3766. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3767. inside strings and character constants. */
  3768. #define FOO(x) 'x'
  3769. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3770. int test (int i, double x);
  3771. struct s1 {int (*f) (int a);};
  3772. struct s2 {int (*f) (double a);};
  3773. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3774. int argc;
  3775. char **argv;
  3776. int
  3777. main ()
  3778. {
  3779. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3780. ;
  3781. return 0;
  3782. }
  3783. _ACEOF
  3784. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3785. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3786. do
  3787. CC="$ac_save_CC $ac_arg"
  3788. if ac_fn_c_try_compile "$LINENO"; then :
  3789. ac_cv_prog_cc_c89=$ac_arg
  3790. fi
  3791. rm -f core conftest.err conftest.$ac_objext
  3792. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3793. done
  3794. rm -f conftest.$ac_ext
  3795. CC=$ac_save_CC
  3796. fi
  3797. # AC_CACHE_VAL
  3798. case "x$ac_cv_prog_cc_c89" in
  3799. x)
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3801. $as_echo "none needed" >&6; } ;;
  3802. xno)
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3804. $as_echo "unsupported" >&6; } ;;
  3805. *)
  3806. CC="$CC $ac_cv_prog_cc_c89"
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3808. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3809. esac
  3810. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3811. fi
  3812. ac_ext=c
  3813. ac_cpp='$CPP $CPPFLAGS'
  3814. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3815. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3816. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3817. ac_ext=c
  3818. ac_cpp='$CPP $CPPFLAGS'
  3819. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3820. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3821. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3823. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3824. if ${am_cv_prog_cc_c_o+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3828. /* end confdefs.h. */
  3829. int
  3830. main ()
  3831. {
  3832. ;
  3833. return 0;
  3834. }
  3835. _ACEOF
  3836. # Make sure it works both with $CC and with simple cc.
  3837. # Following AC_PROG_CC_C_O, we do the test twice because some
  3838. # compilers refuse to overwrite an existing .o file with -o,
  3839. # though they will create one.
  3840. am_cv_prog_cc_c_o=yes
  3841. for am_i in 1 2; do
  3842. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3843. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3844. ac_status=$?
  3845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); } \
  3847. && test -f conftest2.$ac_objext; then
  3848. : OK
  3849. else
  3850. am_cv_prog_cc_c_o=no
  3851. break
  3852. fi
  3853. done
  3854. rm -f core conftest*
  3855. unset am_i
  3856. fi
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3858. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3859. if test "$am_cv_prog_cc_c_o" != yes; then
  3860. # Losing compiler, so override with the script.
  3861. # FIXME: It is wrong to rewrite CC.
  3862. # But if we don't then we get into trouble of one sort or another.
  3863. # A longer-term fix would be to have automake use am__CC in this case,
  3864. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3865. CC="$am_aux_dir/compile $CC"
  3866. fi
  3867. ac_ext=c
  3868. ac_cpp='$CPP $CPPFLAGS'
  3869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3872. depcc="$CC" am_compiler_list=
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3874. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3875. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3879. # We make a subdir and do the tests there. Otherwise we can end up
  3880. # making bogus files that we don't know about and never remove. For
  3881. # instance it was reported that on HP-UX the gcc test will end up
  3882. # making a dummy file named 'D' -- because '-MD' means "put the output
  3883. # in D".
  3884. rm -rf conftest.dir
  3885. mkdir conftest.dir
  3886. # Copy depcomp to subdir because otherwise we won't find it if we're
  3887. # using a relative directory.
  3888. cp "$am_depcomp" conftest.dir
  3889. cd conftest.dir
  3890. # We will build objects and dependencies in a subdirectory because
  3891. # it helps to detect inapplicable dependency modes. For instance
  3892. # both Tru64's cc and ICC support -MD to output dependencies as a
  3893. # side effect of compilation, but ICC will put the dependencies in
  3894. # the current directory while Tru64 will put them in the object
  3895. # directory.
  3896. mkdir sub
  3897. am_cv_CC_dependencies_compiler_type=none
  3898. if test "$am_compiler_list" = ""; then
  3899. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3900. fi
  3901. am__universal=false
  3902. case " $depcc " in #(
  3903. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3904. esac
  3905. for depmode in $am_compiler_list; do
  3906. # Setup a source with many dependencies, because some compilers
  3907. # like to wrap large dependency lists on column 80 (with \), and
  3908. # we should not choose a depcomp mode which is confused by this.
  3909. #
  3910. # We need to recreate these files for each test, as the compiler may
  3911. # overwrite some of them when testing with obscure command lines.
  3912. # This happens at least with the AIX C compiler.
  3913. : > sub/conftest.c
  3914. for i in 1 2 3 4 5 6; do
  3915. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3916. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3917. # Solaris 10 /bin/sh.
  3918. echo '/* dummy */' > sub/conftst$i.h
  3919. done
  3920. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3921. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3922. # mode. It turns out that the SunPro C++ compiler does not properly
  3923. # handle '-M -o', and we need to detect this. Also, some Intel
  3924. # versions had trouble with output in subdirs.
  3925. am__obj=sub/conftest.${OBJEXT-o}
  3926. am__minus_obj="-o $am__obj"
  3927. case $depmode in
  3928. gcc)
  3929. # This depmode causes a compiler race in universal mode.
  3930. test "$am__universal" = false || continue
  3931. ;;
  3932. nosideeffect)
  3933. # After this tag, mechanisms are not by side-effect, so they'll
  3934. # only be used when explicitly requested.
  3935. if test "x$enable_dependency_tracking" = xyes; then
  3936. continue
  3937. else
  3938. break
  3939. fi
  3940. ;;
  3941. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3942. # This compiler won't grok '-c -o', but also, the minuso test has
  3943. # not run yet. These depmodes are late enough in the game, and
  3944. # so weak that their functioning should not be impacted.
  3945. am__obj=conftest.${OBJEXT-o}
  3946. am__minus_obj=
  3947. ;;
  3948. none) break ;;
  3949. esac
  3950. if depmode=$depmode \
  3951. source=sub/conftest.c object=$am__obj \
  3952. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3953. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3954. >/dev/null 2>conftest.err &&
  3955. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3956. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3957. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3958. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3959. # icc doesn't choke on unknown options, it will just issue warnings
  3960. # or remarks (even with -Werror). So we grep stderr for any message
  3961. # that says an option was ignored or not supported.
  3962. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3963. # icc: Command line warning: ignoring option '-M'; no argument required
  3964. # The diagnosis changed in icc 8.0:
  3965. # icc: Command line remark: option '-MP' not supported
  3966. if (grep 'ignoring option' conftest.err ||
  3967. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3968. am_cv_CC_dependencies_compiler_type=$depmode
  3969. break
  3970. fi
  3971. fi
  3972. done
  3973. cd ..
  3974. rm -rf conftest.dir
  3975. else
  3976. am_cv_CC_dependencies_compiler_type=none
  3977. fi
  3978. fi
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3980. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3981. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3982. if
  3983. test "x$enable_dependency_tracking" != xno \
  3984. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3985. am__fastdepCC_TRUE=
  3986. am__fastdepCC_FALSE='#'
  3987. else
  3988. am__fastdepCC_TRUE='#'
  3989. am__fastdepCC_FALSE=
  3990. fi
  3991. case $ac_cv_prog_cc_stdc in #(
  3992. no) :
  3993. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3994. *) :
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3996. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3997. if ${ac_cv_prog_cc_c99+:} false; then :
  3998. $as_echo_n "(cached) " >&6
  3999. else
  4000. ac_cv_prog_cc_c99=no
  4001. ac_save_CC=$CC
  4002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4003. /* end confdefs.h. */
  4004. #include <stdarg.h>
  4005. #include <stdbool.h>
  4006. #include <stdlib.h>
  4007. #include <wchar.h>
  4008. #include <stdio.h>
  4009. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4010. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4011. #define showlist(...) puts (#__VA_ARGS__)
  4012. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4013. static void
  4014. test_varargs_macros (void)
  4015. {
  4016. int x = 1234;
  4017. int y = 5678;
  4018. debug ("Flag");
  4019. debug ("X = %d\n", x);
  4020. showlist (The first, second, and third items.);
  4021. report (x>y, "x is %d but y is %d", x, y);
  4022. }
  4023. // Check long long types.
  4024. #define BIG64 18446744073709551615ull
  4025. #define BIG32 4294967295ul
  4026. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4027. #if !BIG_OK
  4028. your preprocessor is broken;
  4029. #endif
  4030. #if BIG_OK
  4031. #else
  4032. your preprocessor is broken;
  4033. #endif
  4034. static long long int bignum = -9223372036854775807LL;
  4035. static unsigned long long int ubignum = BIG64;
  4036. struct incomplete_array
  4037. {
  4038. int datasize;
  4039. double data[];
  4040. };
  4041. struct named_init {
  4042. int number;
  4043. const wchar_t *name;
  4044. double average;
  4045. };
  4046. typedef const char *ccp;
  4047. static inline int
  4048. test_restrict (ccp restrict text)
  4049. {
  4050. // See if C++-style comments work.
  4051. // Iterate through items via the restricted pointer.
  4052. // Also check for declarations in for loops.
  4053. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4054. continue;
  4055. return 0;
  4056. }
  4057. // Check varargs and va_copy.
  4058. static void
  4059. test_varargs (const char *format, ...)
  4060. {
  4061. va_list args;
  4062. va_start (args, format);
  4063. va_list args_copy;
  4064. va_copy (args_copy, args);
  4065. const char *str;
  4066. int number;
  4067. float fnumber;
  4068. while (*format)
  4069. {
  4070. switch (*format++)
  4071. {
  4072. case 's': // string
  4073. str = va_arg (args_copy, const char *);
  4074. break;
  4075. case 'd': // int
  4076. number = va_arg (args_copy, int);
  4077. break;
  4078. case 'f': // float
  4079. fnumber = va_arg (args_copy, double);
  4080. break;
  4081. default:
  4082. break;
  4083. }
  4084. }
  4085. va_end (args_copy);
  4086. va_end (args);
  4087. }
  4088. int
  4089. main ()
  4090. {
  4091. // Check bool.
  4092. _Bool success = false;
  4093. // Check restrict.
  4094. if (test_restrict ("String literal") == 0)
  4095. success = true;
  4096. char *restrict newvar = "Another string";
  4097. // Check varargs.
  4098. test_varargs ("s, d' f .", "string", 65, 34.234);
  4099. test_varargs_macros ();
  4100. // Check flexible array members.
  4101. struct incomplete_array *ia =
  4102. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4103. ia->datasize = 10;
  4104. for (int i = 0; i < ia->datasize; ++i)
  4105. ia->data[i] = i * 1.234;
  4106. // Check named initializers.
  4107. struct named_init ni = {
  4108. .number = 34,
  4109. .name = L"Test wide string",
  4110. .average = 543.34343,
  4111. };
  4112. ni.number = 58;
  4113. int dynamic_array[ni.number];
  4114. dynamic_array[ni.number - 1] = 543;
  4115. // work around unused variable warnings
  4116. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4117. || dynamic_array[ni.number - 1] != 543);
  4118. ;
  4119. return 0;
  4120. }
  4121. _ACEOF
  4122. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4123. do
  4124. CC="$ac_save_CC $ac_arg"
  4125. if ac_fn_c_try_compile "$LINENO"; then :
  4126. ac_cv_prog_cc_c99=$ac_arg
  4127. fi
  4128. rm -f core conftest.err conftest.$ac_objext
  4129. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4130. done
  4131. rm -f conftest.$ac_ext
  4132. CC=$ac_save_CC
  4133. fi
  4134. # AC_CACHE_VAL
  4135. case "x$ac_cv_prog_cc_c99" in
  4136. x)
  4137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4138. $as_echo "none needed" >&6; } ;;
  4139. xno)
  4140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4141. $as_echo "unsupported" >&6; } ;;
  4142. *)
  4143. CC="$CC $ac_cv_prog_cc_c99"
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4145. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4146. esac
  4147. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4148. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4149. else
  4150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4151. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4152. if ${ac_cv_prog_cc_c89+:} false; then :
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. ac_cv_prog_cc_c89=no
  4156. ac_save_CC=$CC
  4157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4158. /* end confdefs.h. */
  4159. #include <stdarg.h>
  4160. #include <stdio.h>
  4161. struct stat;
  4162. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4163. struct buf { int x; };
  4164. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4165. static char *e (p, i)
  4166. char **p;
  4167. int i;
  4168. {
  4169. return p[i];
  4170. }
  4171. static char *f (char * (*g) (char **, int), char **p, ...)
  4172. {
  4173. char *s;
  4174. va_list v;
  4175. va_start (v,p);
  4176. s = g (p, va_arg (v,int));
  4177. va_end (v);
  4178. return s;
  4179. }
  4180. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4181. function prototypes and stuff, but not '\xHH' hex character constants.
  4182. These don't provoke an error unfortunately, instead are silently treated
  4183. as 'x'. The following induces an error, until -std is added to get
  4184. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4185. array size at least. It's necessary to write '\x00'==0 to get something
  4186. that's true only with -std. */
  4187. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4188. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4189. inside strings and character constants. */
  4190. #define FOO(x) 'x'
  4191. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4192. int test (int i, double x);
  4193. struct s1 {int (*f) (int a);};
  4194. struct s2 {int (*f) (double a);};
  4195. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4196. int argc;
  4197. char **argv;
  4198. int
  4199. main ()
  4200. {
  4201. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4202. ;
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4207. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4208. do
  4209. CC="$ac_save_CC $ac_arg"
  4210. if ac_fn_c_try_compile "$LINENO"; then :
  4211. ac_cv_prog_cc_c89=$ac_arg
  4212. fi
  4213. rm -f core conftest.err conftest.$ac_objext
  4214. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4215. done
  4216. rm -f conftest.$ac_ext
  4217. CC=$ac_save_CC
  4218. fi
  4219. # AC_CACHE_VAL
  4220. case "x$ac_cv_prog_cc_c89" in
  4221. x)
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4223. $as_echo "none needed" >&6; } ;;
  4224. xno)
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4226. $as_echo "unsupported" >&6; } ;;
  4227. *)
  4228. CC="$CC $ac_cv_prog_cc_c89"
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4230. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4231. esac
  4232. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4233. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4234. else
  4235. ac_cv_prog_cc_stdc=no
  4236. fi
  4237. fi
  4238. ;;
  4239. esac
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4241. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4242. if ${ac_cv_prog_cc_stdc+:} false; then :
  4243. $as_echo_n "(cached) " >&6
  4244. fi
  4245. case $ac_cv_prog_cc_stdc in #(
  4246. no) :
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4248. $as_echo "unsupported" >&6; } ;; #(
  4249. '') :
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4251. $as_echo "none needed" >&6; } ;; #(
  4252. *) :
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4254. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4255. esac
  4256. ac_ext=c
  4257. ac_cpp='$CPP $CPPFLAGS'
  4258. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4259. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4260. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4262. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4263. # On Suns, sometimes $CPP names a directory.
  4264. if test -n "$CPP" && test -d "$CPP"; then
  4265. CPP=
  4266. fi
  4267. if test -z "$CPP"; then
  4268. if ${ac_cv_prog_CPP+:} false; then :
  4269. $as_echo_n "(cached) " >&6
  4270. else
  4271. # Double quotes because CPP needs to be expanded
  4272. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4273. do
  4274. ac_preproc_ok=false
  4275. for ac_c_preproc_warn_flag in '' yes
  4276. do
  4277. # Use a header file that comes with gcc, so configuring glibc
  4278. # with a fresh cross-compiler works.
  4279. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4280. # <limits.h> exists even on freestanding compilers.
  4281. # On the NeXT, cc -E runs the code through the compiler's parser,
  4282. # not just through cpp. "Syntax error" is here to catch this case.
  4283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4284. /* end confdefs.h. */
  4285. #ifdef __STDC__
  4286. # include <limits.h>
  4287. #else
  4288. # include <assert.h>
  4289. #endif
  4290. Syntax error
  4291. _ACEOF
  4292. if ac_fn_c_try_cpp "$LINENO"; then :
  4293. else
  4294. # Broken: fails on valid input.
  4295. continue
  4296. fi
  4297. rm -f conftest.err conftest.i conftest.$ac_ext
  4298. # OK, works on sane cases. Now check whether nonexistent headers
  4299. # can be detected and how.
  4300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4301. /* end confdefs.h. */
  4302. #include <ac_nonexistent.h>
  4303. _ACEOF
  4304. if ac_fn_c_try_cpp "$LINENO"; then :
  4305. # Broken: success on invalid input.
  4306. continue
  4307. else
  4308. # Passes both tests.
  4309. ac_preproc_ok=:
  4310. break
  4311. fi
  4312. rm -f conftest.err conftest.i conftest.$ac_ext
  4313. done
  4314. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4315. rm -f conftest.i conftest.err conftest.$ac_ext
  4316. if $ac_preproc_ok; then :
  4317. break
  4318. fi
  4319. done
  4320. ac_cv_prog_CPP=$CPP
  4321. fi
  4322. CPP=$ac_cv_prog_CPP
  4323. else
  4324. ac_cv_prog_CPP=$CPP
  4325. fi
  4326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4327. $as_echo "$CPP" >&6; }
  4328. ac_preproc_ok=false
  4329. for ac_c_preproc_warn_flag in '' yes
  4330. do
  4331. # Use a header file that comes with gcc, so configuring glibc
  4332. # with a fresh cross-compiler works.
  4333. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4334. # <limits.h> exists even on freestanding compilers.
  4335. # On the NeXT, cc -E runs the code through the compiler's parser,
  4336. # not just through cpp. "Syntax error" is here to catch this case.
  4337. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4338. /* end confdefs.h. */
  4339. #ifdef __STDC__
  4340. # include <limits.h>
  4341. #else
  4342. # include <assert.h>
  4343. #endif
  4344. Syntax error
  4345. _ACEOF
  4346. if ac_fn_c_try_cpp "$LINENO"; then :
  4347. else
  4348. # Broken: fails on valid input.
  4349. continue
  4350. fi
  4351. rm -f conftest.err conftest.i conftest.$ac_ext
  4352. # OK, works on sane cases. Now check whether nonexistent headers
  4353. # can be detected and how.
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. #include <ac_nonexistent.h>
  4357. _ACEOF
  4358. if ac_fn_c_try_cpp "$LINENO"; then :
  4359. # Broken: success on invalid input.
  4360. continue
  4361. else
  4362. # Passes both tests.
  4363. ac_preproc_ok=:
  4364. break
  4365. fi
  4366. rm -f conftest.err conftest.i conftest.$ac_ext
  4367. done
  4368. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4369. rm -f conftest.i conftest.err conftest.$ac_ext
  4370. if $ac_preproc_ok; then :
  4371. else
  4372. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4373. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4374. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4375. See \`config.log' for more details" "$LINENO" 5; }
  4376. fi
  4377. ac_ext=c
  4378. ac_cpp='$CPP $CPPFLAGS'
  4379. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4380. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4381. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4383. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4384. if ${ac_cv_path_GREP+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. if test -z "$GREP"; then
  4388. ac_path_GREP_found=false
  4389. # Loop through the user's path and test for each of PROGNAME-LIST
  4390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4391. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4392. do
  4393. IFS=$as_save_IFS
  4394. test -z "$as_dir" && as_dir=.
  4395. for ac_prog in grep ggrep; do
  4396. for ac_exec_ext in '' $ac_executable_extensions; do
  4397. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4398. as_fn_executable_p "$ac_path_GREP" || continue
  4399. # Check for GNU ac_path_GREP and select it if it is found.
  4400. # Check for GNU $ac_path_GREP
  4401. case `"$ac_path_GREP" --version 2>&1` in
  4402. *GNU*)
  4403. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4404. *)
  4405. ac_count=0
  4406. $as_echo_n 0123456789 >"conftest.in"
  4407. while :
  4408. do
  4409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4410. mv "conftest.tmp" "conftest.in"
  4411. cp "conftest.in" "conftest.nl"
  4412. $as_echo 'GREP' >> "conftest.nl"
  4413. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4416. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4417. # Best one so far, save it but keep looking for a better one
  4418. ac_cv_path_GREP="$ac_path_GREP"
  4419. ac_path_GREP_max=$ac_count
  4420. fi
  4421. # 10*(2^10) chars as input seems more than enough
  4422. test $ac_count -gt 10 && break
  4423. done
  4424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4425. esac
  4426. $ac_path_GREP_found && break 3
  4427. done
  4428. done
  4429. done
  4430. IFS=$as_save_IFS
  4431. if test -z "$ac_cv_path_GREP"; then
  4432. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4433. fi
  4434. else
  4435. ac_cv_path_GREP=$GREP
  4436. fi
  4437. fi
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4439. $as_echo "$ac_cv_path_GREP" >&6; }
  4440. GREP="$ac_cv_path_GREP"
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4442. $as_echo_n "checking for egrep... " >&6; }
  4443. if ${ac_cv_path_EGREP+:} false; then :
  4444. $as_echo_n "(cached) " >&6
  4445. else
  4446. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4447. then ac_cv_path_EGREP="$GREP -E"
  4448. else
  4449. if test -z "$EGREP"; then
  4450. ac_path_EGREP_found=false
  4451. # Loop through the user's path and test for each of PROGNAME-LIST
  4452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4453. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4454. do
  4455. IFS=$as_save_IFS
  4456. test -z "$as_dir" && as_dir=.
  4457. for ac_prog in egrep; do
  4458. for ac_exec_ext in '' $ac_executable_extensions; do
  4459. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4460. as_fn_executable_p "$ac_path_EGREP" || continue
  4461. # Check for GNU ac_path_EGREP and select it if it is found.
  4462. # Check for GNU $ac_path_EGREP
  4463. case `"$ac_path_EGREP" --version 2>&1` in
  4464. *GNU*)
  4465. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4466. *)
  4467. ac_count=0
  4468. $as_echo_n 0123456789 >"conftest.in"
  4469. while :
  4470. do
  4471. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4472. mv "conftest.tmp" "conftest.in"
  4473. cp "conftest.in" "conftest.nl"
  4474. $as_echo 'EGREP' >> "conftest.nl"
  4475. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4476. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4477. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4478. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4479. # Best one so far, save it but keep looking for a better one
  4480. ac_cv_path_EGREP="$ac_path_EGREP"
  4481. ac_path_EGREP_max=$ac_count
  4482. fi
  4483. # 10*(2^10) chars as input seems more than enough
  4484. test $ac_count -gt 10 && break
  4485. done
  4486. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4487. esac
  4488. $ac_path_EGREP_found && break 3
  4489. done
  4490. done
  4491. done
  4492. IFS=$as_save_IFS
  4493. if test -z "$ac_cv_path_EGREP"; then
  4494. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4495. fi
  4496. else
  4497. ac_cv_path_EGREP=$EGREP
  4498. fi
  4499. fi
  4500. fi
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4502. $as_echo "$ac_cv_path_EGREP" >&6; }
  4503. EGREP="$ac_cv_path_EGREP"
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4505. $as_echo_n "checking for ANSI C header files... " >&6; }
  4506. if ${ac_cv_header_stdc+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4510. /* end confdefs.h. */
  4511. #include <stdlib.h>
  4512. #include <stdarg.h>
  4513. #include <string.h>
  4514. #include <float.h>
  4515. int
  4516. main ()
  4517. {
  4518. ;
  4519. return 0;
  4520. }
  4521. _ACEOF
  4522. if ac_fn_c_try_compile "$LINENO"; then :
  4523. ac_cv_header_stdc=yes
  4524. else
  4525. ac_cv_header_stdc=no
  4526. fi
  4527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4528. if test $ac_cv_header_stdc = yes; then
  4529. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4531. /* end confdefs.h. */
  4532. #include <string.h>
  4533. _ACEOF
  4534. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4535. $EGREP "memchr" >/dev/null 2>&1; then :
  4536. else
  4537. ac_cv_header_stdc=no
  4538. fi
  4539. rm -f conftest*
  4540. fi
  4541. if test $ac_cv_header_stdc = yes; then
  4542. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4544. /* end confdefs.h. */
  4545. #include <stdlib.h>
  4546. _ACEOF
  4547. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4548. $EGREP "free" >/dev/null 2>&1; then :
  4549. else
  4550. ac_cv_header_stdc=no
  4551. fi
  4552. rm -f conftest*
  4553. fi
  4554. if test $ac_cv_header_stdc = yes; then
  4555. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4556. if test "$cross_compiling" = yes; then :
  4557. :
  4558. else
  4559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end confdefs.h. */
  4561. #include <ctype.h>
  4562. #include <stdlib.h>
  4563. #if ((' ' & 0x0FF) == 0x020)
  4564. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4565. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4566. #else
  4567. # define ISLOWER(c) \
  4568. (('a' <= (c) && (c) <= 'i') \
  4569. || ('j' <= (c) && (c) <= 'r') \
  4570. || ('s' <= (c) && (c) <= 'z'))
  4571. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4572. #endif
  4573. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4574. int
  4575. main ()
  4576. {
  4577. int i;
  4578. for (i = 0; i < 256; i++)
  4579. if (XOR (islower (i), ISLOWER (i))
  4580. || toupper (i) != TOUPPER (i))
  4581. return 2;
  4582. return 0;
  4583. }
  4584. _ACEOF
  4585. if ac_fn_c_try_run "$LINENO"; then :
  4586. else
  4587. ac_cv_header_stdc=no
  4588. fi
  4589. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4590. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4591. fi
  4592. fi
  4593. fi
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4595. $as_echo "$ac_cv_header_stdc" >&6; }
  4596. if test $ac_cv_header_stdc = yes; then
  4597. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4598. fi
  4599. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4600. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4601. inttypes.h stdint.h unistd.h
  4602. do :
  4603. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4604. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4605. "
  4606. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4607. cat >>confdefs.h <<_ACEOF
  4608. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4609. _ACEOF
  4610. fi
  4611. done
  4612. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4613. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4614. MINIX=yes
  4615. else
  4616. MINIX=
  4617. fi
  4618. if test "$MINIX" = yes; then
  4619. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4620. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4621. $as_echo "#define _MINIX 1" >>confdefs.h
  4622. fi
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4624. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4625. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4626. $as_echo_n "(cached) " >&6
  4627. else
  4628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4629. /* end confdefs.h. */
  4630. # define __EXTENSIONS__ 1
  4631. $ac_includes_default
  4632. int
  4633. main ()
  4634. {
  4635. ;
  4636. return 0;
  4637. }
  4638. _ACEOF
  4639. if ac_fn_c_try_compile "$LINENO"; then :
  4640. ac_cv_safe_to_define___extensions__=yes
  4641. else
  4642. ac_cv_safe_to_define___extensions__=no
  4643. fi
  4644. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4645. fi
  4646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4647. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4648. test $ac_cv_safe_to_define___extensions__ = yes &&
  4649. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4650. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4651. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4652. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4653. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4655. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4656. if ${ac_cv_c_bigendian+:} false; then :
  4657. $as_echo_n "(cached) " >&6
  4658. else
  4659. ac_cv_c_bigendian=unknown
  4660. # See if we're dealing with a universal compiler.
  4661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4662. /* end confdefs.h. */
  4663. #ifndef __APPLE_CC__
  4664. not a universal capable compiler
  4665. #endif
  4666. typedef int dummy;
  4667. _ACEOF
  4668. if ac_fn_c_try_compile "$LINENO"; then :
  4669. # Check for potential -arch flags. It is not universal unless
  4670. # there are at least two -arch flags with different values.
  4671. ac_arch=
  4672. ac_prev=
  4673. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4674. if test -n "$ac_prev"; then
  4675. case $ac_word in
  4676. i?86 | x86_64 | ppc | ppc64)
  4677. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4678. ac_arch=$ac_word
  4679. else
  4680. ac_cv_c_bigendian=universal
  4681. break
  4682. fi
  4683. ;;
  4684. esac
  4685. ac_prev=
  4686. elif test "x$ac_word" = "x-arch"; then
  4687. ac_prev=arch
  4688. fi
  4689. done
  4690. fi
  4691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4692. if test $ac_cv_c_bigendian = unknown; then
  4693. # See if sys/param.h defines the BYTE_ORDER macro.
  4694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4695. /* end confdefs.h. */
  4696. #include <sys/types.h>
  4697. #include <sys/param.h>
  4698. int
  4699. main ()
  4700. {
  4701. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4702. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4703. && LITTLE_ENDIAN)
  4704. bogus endian macros
  4705. #endif
  4706. ;
  4707. return 0;
  4708. }
  4709. _ACEOF
  4710. if ac_fn_c_try_compile "$LINENO"; then :
  4711. # It does; now see whether it defined to BIG_ENDIAN or not.
  4712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4713. /* end confdefs.h. */
  4714. #include <sys/types.h>
  4715. #include <sys/param.h>
  4716. int
  4717. main ()
  4718. {
  4719. #if BYTE_ORDER != BIG_ENDIAN
  4720. not big endian
  4721. #endif
  4722. ;
  4723. return 0;
  4724. }
  4725. _ACEOF
  4726. if ac_fn_c_try_compile "$LINENO"; then :
  4727. ac_cv_c_bigendian=yes
  4728. else
  4729. ac_cv_c_bigendian=no
  4730. fi
  4731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4732. fi
  4733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4734. fi
  4735. if test $ac_cv_c_bigendian = unknown; then
  4736. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4738. /* end confdefs.h. */
  4739. #include <limits.h>
  4740. int
  4741. main ()
  4742. {
  4743. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4744. bogus endian macros
  4745. #endif
  4746. ;
  4747. return 0;
  4748. }
  4749. _ACEOF
  4750. if ac_fn_c_try_compile "$LINENO"; then :
  4751. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4753. /* end confdefs.h. */
  4754. #include <limits.h>
  4755. int
  4756. main ()
  4757. {
  4758. #ifndef _BIG_ENDIAN
  4759. not big endian
  4760. #endif
  4761. ;
  4762. return 0;
  4763. }
  4764. _ACEOF
  4765. if ac_fn_c_try_compile "$LINENO"; then :
  4766. ac_cv_c_bigendian=yes
  4767. else
  4768. ac_cv_c_bigendian=no
  4769. fi
  4770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4771. fi
  4772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4773. fi
  4774. if test $ac_cv_c_bigendian = unknown; then
  4775. # Compile a test program.
  4776. if test "$cross_compiling" = yes; then :
  4777. # Try to guess by grepping values from an object file.
  4778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4779. /* end confdefs.h. */
  4780. short int ascii_mm[] =
  4781. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4782. short int ascii_ii[] =
  4783. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4784. int use_ascii (int i) {
  4785. return ascii_mm[i] + ascii_ii[i];
  4786. }
  4787. short int ebcdic_ii[] =
  4788. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4789. short int ebcdic_mm[] =
  4790. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4791. int use_ebcdic (int i) {
  4792. return ebcdic_mm[i] + ebcdic_ii[i];
  4793. }
  4794. extern int foo;
  4795. int
  4796. main ()
  4797. {
  4798. return use_ascii (foo) == use_ebcdic (foo);
  4799. ;
  4800. return 0;
  4801. }
  4802. _ACEOF
  4803. if ac_fn_c_try_compile "$LINENO"; then :
  4804. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4805. ac_cv_c_bigendian=yes
  4806. fi
  4807. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4808. if test "$ac_cv_c_bigendian" = unknown; then
  4809. ac_cv_c_bigendian=no
  4810. else
  4811. # finding both strings is unlikely to happen, but who knows?
  4812. ac_cv_c_bigendian=unknown
  4813. fi
  4814. fi
  4815. fi
  4816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4817. else
  4818. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4819. /* end confdefs.h. */
  4820. $ac_includes_default
  4821. int
  4822. main ()
  4823. {
  4824. /* Are we little or big endian? From Harbison&Steele. */
  4825. union
  4826. {
  4827. long int l;
  4828. char c[sizeof (long int)];
  4829. } u;
  4830. u.l = 1;
  4831. return u.c[sizeof (long int) - 1] == 1;
  4832. ;
  4833. return 0;
  4834. }
  4835. _ACEOF
  4836. if ac_fn_c_try_run "$LINENO"; then :
  4837. ac_cv_c_bigendian=no
  4838. else
  4839. ac_cv_c_bigendian=yes
  4840. fi
  4841. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4842. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4843. fi
  4844. fi
  4845. fi
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4847. $as_echo "$ac_cv_c_bigendian" >&6; }
  4848. case $ac_cv_c_bigendian in #(
  4849. yes)
  4850. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4851. ;; #(
  4852. no)
  4853. ;; #(
  4854. universal)
  4855. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4856. ;; #(
  4857. *)
  4858. as_fn_error $? "unknown endianness
  4859. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4860. esac
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4862. $as_echo_n "checking whether ln -s works... " >&6; }
  4863. LN_S=$as_ln_s
  4864. if test "$LN_S" = "ln -s"; then
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4866. $as_echo "yes" >&6; }
  4867. else
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4869. $as_echo "no, using $LN_S" >&6; }
  4870. fi
  4871. case `pwd` in
  4872. *\ * | *\ *)
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4874. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4875. esac
  4876. macro_version='2.4.2'
  4877. macro_revision='1.3337'
  4878. ltmain="$ac_aux_dir/ltmain.sh"
  4879. # Backslashify metacharacters that are still active within
  4880. # double-quoted strings.
  4881. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4882. # Same as above, but do not quote variable references.
  4883. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4884. # Sed substitution to delay expansion of an escaped shell variable in a
  4885. # double_quote_subst'ed string.
  4886. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4887. # Sed substitution to delay expansion of an escaped single quote.
  4888. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4889. # Sed substitution to avoid accidental globbing in evaled expressions
  4890. no_glob_subst='s/\*/\\\*/g'
  4891. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4892. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4893. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4895. $as_echo_n "checking how to print strings... " >&6; }
  4896. # Test print first, because it will be a builtin if present.
  4897. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4898. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4899. ECHO='print -r --'
  4900. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4901. ECHO='printf %s\n'
  4902. else
  4903. # Use this function as a fallback that always works.
  4904. func_fallback_echo ()
  4905. {
  4906. eval 'cat <<_LTECHO_EOF
  4907. $1
  4908. _LTECHO_EOF'
  4909. }
  4910. ECHO='func_fallback_echo'
  4911. fi
  4912. # func_echo_all arg...
  4913. # Invoke $ECHO with all args, space-separated.
  4914. func_echo_all ()
  4915. {
  4916. $ECHO ""
  4917. }
  4918. case "$ECHO" in
  4919. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4920. $as_echo "printf" >&6; } ;;
  4921. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4922. $as_echo "print -r" >&6; } ;;
  4923. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4924. $as_echo "cat" >&6; } ;;
  4925. esac
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4927. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4928. if ${ac_cv_path_SED+:} false; then :
  4929. $as_echo_n "(cached) " >&6
  4930. else
  4931. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4932. for ac_i in 1 2 3 4 5 6 7; do
  4933. ac_script="$ac_script$as_nl$ac_script"
  4934. done
  4935. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4936. { ac_script=; unset ac_script;}
  4937. if test -z "$SED"; then
  4938. ac_path_SED_found=false
  4939. # Loop through the user's path and test for each of PROGNAME-LIST
  4940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4941. for as_dir in $PATH
  4942. do
  4943. IFS=$as_save_IFS
  4944. test -z "$as_dir" && as_dir=.
  4945. for ac_prog in sed gsed; do
  4946. for ac_exec_ext in '' $ac_executable_extensions; do
  4947. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4948. as_fn_executable_p "$ac_path_SED" || continue
  4949. # Check for GNU ac_path_SED and select it if it is found.
  4950. # Check for GNU $ac_path_SED
  4951. case `"$ac_path_SED" --version 2>&1` in
  4952. *GNU*)
  4953. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4954. *)
  4955. ac_count=0
  4956. $as_echo_n 0123456789 >"conftest.in"
  4957. while :
  4958. do
  4959. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4960. mv "conftest.tmp" "conftest.in"
  4961. cp "conftest.in" "conftest.nl"
  4962. $as_echo '' >> "conftest.nl"
  4963. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4964. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4965. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4966. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4967. # Best one so far, save it but keep looking for a better one
  4968. ac_cv_path_SED="$ac_path_SED"
  4969. ac_path_SED_max=$ac_count
  4970. fi
  4971. # 10*(2^10) chars as input seems more than enough
  4972. test $ac_count -gt 10 && break
  4973. done
  4974. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4975. esac
  4976. $ac_path_SED_found && break 3
  4977. done
  4978. done
  4979. done
  4980. IFS=$as_save_IFS
  4981. if test -z "$ac_cv_path_SED"; then
  4982. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4983. fi
  4984. else
  4985. ac_cv_path_SED=$SED
  4986. fi
  4987. fi
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4989. $as_echo "$ac_cv_path_SED" >&6; }
  4990. SED="$ac_cv_path_SED"
  4991. rm -f conftest.sed
  4992. test -z "$SED" && SED=sed
  4993. Xsed="$SED -e 1s/^X//"
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4995. $as_echo_n "checking for fgrep... " >&6; }
  4996. if ${ac_cv_path_FGREP+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5000. then ac_cv_path_FGREP="$GREP -F"
  5001. else
  5002. if test -z "$FGREP"; then
  5003. ac_path_FGREP_found=false
  5004. # Loop through the user's path and test for each of PROGNAME-LIST
  5005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5006. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5007. do
  5008. IFS=$as_save_IFS
  5009. test -z "$as_dir" && as_dir=.
  5010. for ac_prog in fgrep; do
  5011. for ac_exec_ext in '' $ac_executable_extensions; do
  5012. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5013. as_fn_executable_p "$ac_path_FGREP" || continue
  5014. # Check for GNU ac_path_FGREP and select it if it is found.
  5015. # Check for GNU $ac_path_FGREP
  5016. case `"$ac_path_FGREP" --version 2>&1` in
  5017. *GNU*)
  5018. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5019. *)
  5020. ac_count=0
  5021. $as_echo_n 0123456789 >"conftest.in"
  5022. while :
  5023. do
  5024. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5025. mv "conftest.tmp" "conftest.in"
  5026. cp "conftest.in" "conftest.nl"
  5027. $as_echo 'FGREP' >> "conftest.nl"
  5028. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5029. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5030. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5031. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5032. # Best one so far, save it but keep looking for a better one
  5033. ac_cv_path_FGREP="$ac_path_FGREP"
  5034. ac_path_FGREP_max=$ac_count
  5035. fi
  5036. # 10*(2^10) chars as input seems more than enough
  5037. test $ac_count -gt 10 && break
  5038. done
  5039. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5040. esac
  5041. $ac_path_FGREP_found && break 3
  5042. done
  5043. done
  5044. done
  5045. IFS=$as_save_IFS
  5046. if test -z "$ac_cv_path_FGREP"; then
  5047. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5048. fi
  5049. else
  5050. ac_cv_path_FGREP=$FGREP
  5051. fi
  5052. fi
  5053. fi
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5055. $as_echo "$ac_cv_path_FGREP" >&6; }
  5056. FGREP="$ac_cv_path_FGREP"
  5057. test -z "$GREP" && GREP=grep
  5058. # Check whether --with-gnu-ld was given.
  5059. if test "${with_gnu_ld+set}" = set; then :
  5060. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5061. else
  5062. with_gnu_ld=no
  5063. fi
  5064. ac_prog=ld
  5065. if test "$GCC" = yes; then
  5066. # Check if gcc -print-prog-name=ld gives a path.
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5068. $as_echo_n "checking for ld used by $CC... " >&6; }
  5069. case $host in
  5070. *-*-mingw*)
  5071. # gcc leaves a trailing carriage return which upsets mingw
  5072. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5073. *)
  5074. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5075. esac
  5076. case $ac_prog in
  5077. # Accept absolute paths.
  5078. [\\/]* | ?:[\\/]*)
  5079. re_direlt='/[^/][^/]*/\.\./'
  5080. # Canonicalize the pathname of ld
  5081. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5082. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5083. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5084. done
  5085. test -z "$LD" && LD="$ac_prog"
  5086. ;;
  5087. "")
  5088. # If it fails, then pretend we aren't using GCC.
  5089. ac_prog=ld
  5090. ;;
  5091. *)
  5092. # If it is relative, then search for the first ld in PATH.
  5093. with_gnu_ld=unknown
  5094. ;;
  5095. esac
  5096. elif test "$with_gnu_ld" = yes; then
  5097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5098. $as_echo_n "checking for GNU ld... " >&6; }
  5099. else
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5101. $as_echo_n "checking for non-GNU ld... " >&6; }
  5102. fi
  5103. if ${lt_cv_path_LD+:} false; then :
  5104. $as_echo_n "(cached) " >&6
  5105. else
  5106. if test -z "$LD"; then
  5107. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5108. for ac_dir in $PATH; do
  5109. IFS="$lt_save_ifs"
  5110. test -z "$ac_dir" && ac_dir=.
  5111. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5112. lt_cv_path_LD="$ac_dir/$ac_prog"
  5113. # Check to see if the program is GNU ld. I'd rather use --version,
  5114. # but apparently some variants of GNU ld only accept -v.
  5115. # Break only if it was the GNU/non-GNU ld that we prefer.
  5116. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5117. *GNU* | *'with BFD'*)
  5118. test "$with_gnu_ld" != no && break
  5119. ;;
  5120. *)
  5121. test "$with_gnu_ld" != yes && break
  5122. ;;
  5123. esac
  5124. fi
  5125. done
  5126. IFS="$lt_save_ifs"
  5127. else
  5128. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5129. fi
  5130. fi
  5131. LD="$lt_cv_path_LD"
  5132. if test -n "$LD"; then
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5134. $as_echo "$LD" >&6; }
  5135. else
  5136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5137. $as_echo "no" >&6; }
  5138. fi
  5139. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5141. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5142. if ${lt_cv_prog_gnu_ld+:} false; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5146. case `$LD -v 2>&1 </dev/null` in
  5147. *GNU* | *'with BFD'*)
  5148. lt_cv_prog_gnu_ld=yes
  5149. ;;
  5150. *)
  5151. lt_cv_prog_gnu_ld=no
  5152. ;;
  5153. esac
  5154. fi
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5156. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5157. with_gnu_ld=$lt_cv_prog_gnu_ld
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5159. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5160. if ${lt_cv_path_NM+:} false; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. if test -n "$NM"; then
  5164. # Let the user override the test.
  5165. lt_cv_path_NM="$NM"
  5166. else
  5167. lt_nm_to_check="${ac_tool_prefix}nm"
  5168. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5169. lt_nm_to_check="$lt_nm_to_check nm"
  5170. fi
  5171. for lt_tmp_nm in $lt_nm_to_check; do
  5172. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5173. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5174. IFS="$lt_save_ifs"
  5175. test -z "$ac_dir" && ac_dir=.
  5176. tmp_nm="$ac_dir/$lt_tmp_nm"
  5177. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5178. # Check to see if the nm accepts a BSD-compat flag.
  5179. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5180. # nm: unknown option "B" ignored
  5181. # Tru64's nm complains that /dev/null is an invalid object file
  5182. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5183. */dev/null* | *'Invalid file or object type'*)
  5184. lt_cv_path_NM="$tmp_nm -B"
  5185. break
  5186. ;;
  5187. *)
  5188. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5189. */dev/null*)
  5190. lt_cv_path_NM="$tmp_nm -p"
  5191. break
  5192. ;;
  5193. *)
  5194. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5195. continue # so that we can try to find one that supports BSD flags
  5196. ;;
  5197. esac
  5198. ;;
  5199. esac
  5200. fi
  5201. done
  5202. IFS="$lt_save_ifs"
  5203. done
  5204. : ${lt_cv_path_NM=no}
  5205. fi
  5206. fi
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5208. $as_echo "$lt_cv_path_NM" >&6; }
  5209. if test "$lt_cv_path_NM" != "no"; then
  5210. NM="$lt_cv_path_NM"
  5211. else
  5212. # Didn't find any BSD compatible name lister, look for dumpbin.
  5213. if test -n "$DUMPBIN"; then :
  5214. # Let the user override the test.
  5215. else
  5216. if test -n "$ac_tool_prefix"; then
  5217. for ac_prog in dumpbin "link -dump"
  5218. do
  5219. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5220. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5222. $as_echo_n "checking for $ac_word... " >&6; }
  5223. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5224. $as_echo_n "(cached) " >&6
  5225. else
  5226. if test -n "$DUMPBIN"; then
  5227. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5228. else
  5229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5230. for as_dir in $PATH
  5231. do
  5232. IFS=$as_save_IFS
  5233. test -z "$as_dir" && as_dir=.
  5234. for ac_exec_ext in '' $ac_executable_extensions; do
  5235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5236. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5238. break 2
  5239. fi
  5240. done
  5241. done
  5242. IFS=$as_save_IFS
  5243. fi
  5244. fi
  5245. DUMPBIN=$ac_cv_prog_DUMPBIN
  5246. if test -n "$DUMPBIN"; then
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5248. $as_echo "$DUMPBIN" >&6; }
  5249. else
  5250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5251. $as_echo "no" >&6; }
  5252. fi
  5253. test -n "$DUMPBIN" && break
  5254. done
  5255. fi
  5256. if test -z "$DUMPBIN"; then
  5257. ac_ct_DUMPBIN=$DUMPBIN
  5258. for ac_prog in dumpbin "link -dump"
  5259. do
  5260. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5261. set dummy $ac_prog; ac_word=$2
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5263. $as_echo_n "checking for $ac_word... " >&6; }
  5264. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. if test -n "$ac_ct_DUMPBIN"; then
  5268. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5269. else
  5270. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5271. for as_dir in $PATH
  5272. do
  5273. IFS=$as_save_IFS
  5274. test -z "$as_dir" && as_dir=.
  5275. for ac_exec_ext in '' $ac_executable_extensions; do
  5276. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5277. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5278. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5279. break 2
  5280. fi
  5281. done
  5282. done
  5283. IFS=$as_save_IFS
  5284. fi
  5285. fi
  5286. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5287. if test -n "$ac_ct_DUMPBIN"; then
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5289. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5290. else
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5292. $as_echo "no" >&6; }
  5293. fi
  5294. test -n "$ac_ct_DUMPBIN" && break
  5295. done
  5296. if test "x$ac_ct_DUMPBIN" = x; then
  5297. DUMPBIN=":"
  5298. else
  5299. case $cross_compiling:$ac_tool_warned in
  5300. yes:)
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5302. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5303. ac_tool_warned=yes ;;
  5304. esac
  5305. DUMPBIN=$ac_ct_DUMPBIN
  5306. fi
  5307. fi
  5308. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5309. *COFF*)
  5310. DUMPBIN="$DUMPBIN -symbols"
  5311. ;;
  5312. *)
  5313. DUMPBIN=:
  5314. ;;
  5315. esac
  5316. fi
  5317. if test "$DUMPBIN" != ":"; then
  5318. NM="$DUMPBIN"
  5319. fi
  5320. fi
  5321. test -z "$NM" && NM=nm
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5323. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5324. if ${lt_cv_nm_interface+:} false; then :
  5325. $as_echo_n "(cached) " >&6
  5326. else
  5327. lt_cv_nm_interface="BSD nm"
  5328. echo "int some_variable = 0;" > conftest.$ac_ext
  5329. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5330. (eval "$ac_compile" 2>conftest.err)
  5331. cat conftest.err >&5
  5332. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5333. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5334. cat conftest.err >&5
  5335. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5336. cat conftest.out >&5
  5337. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5338. lt_cv_nm_interface="MS dumpbin"
  5339. fi
  5340. rm -f conftest*
  5341. fi
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5343. $as_echo "$lt_cv_nm_interface" >&6; }
  5344. # find the maximum length of command line arguments
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5346. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5347. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. i=0
  5351. teststring="ABCD"
  5352. case $build_os in
  5353. msdosdjgpp*)
  5354. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5355. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5356. # during glob expansion). Even if it were fixed, the result of this
  5357. # check would be larger than it should be.
  5358. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5359. ;;
  5360. gnu*)
  5361. # Under GNU Hurd, this test is not required because there is
  5362. # no limit to the length of command line arguments.
  5363. # Libtool will interpret -1 as no limit whatsoever
  5364. lt_cv_sys_max_cmd_len=-1;
  5365. ;;
  5366. cygwin* | mingw* | cegcc*)
  5367. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5368. # about 5 minutes as the teststring grows exponentially.
  5369. # Worse, since 9x/ME are not pre-emptively multitasking,
  5370. # you end up with a "frozen" computer, even though with patience
  5371. # the test eventually succeeds (with a max line length of 256k).
  5372. # Instead, let's just punt: use the minimum linelength reported by
  5373. # all of the supported platforms: 8192 (on NT/2K/XP).
  5374. lt_cv_sys_max_cmd_len=8192;
  5375. ;;
  5376. mint*)
  5377. # On MiNT this can take a long time and run out of memory.
  5378. lt_cv_sys_max_cmd_len=8192;
  5379. ;;
  5380. amigaos*)
  5381. # On AmigaOS with pdksh, this test takes hours, literally.
  5382. # So we just punt and use a minimum line length of 8192.
  5383. lt_cv_sys_max_cmd_len=8192;
  5384. ;;
  5385. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5386. # This has been around since 386BSD, at least. Likely further.
  5387. if test -x /sbin/sysctl; then
  5388. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5389. elif test -x /usr/sbin/sysctl; then
  5390. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5391. else
  5392. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5393. fi
  5394. # And add a safety zone
  5395. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5396. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5397. ;;
  5398. interix*)
  5399. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5400. lt_cv_sys_max_cmd_len=196608
  5401. ;;
  5402. os2*)
  5403. # The test takes a long time on OS/2.
  5404. lt_cv_sys_max_cmd_len=8192
  5405. ;;
  5406. osf*)
  5407. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5408. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5409. # nice to cause kernel panics so lets avoid the loop below.
  5410. # First set a reasonable default.
  5411. lt_cv_sys_max_cmd_len=16384
  5412. #
  5413. if test -x /sbin/sysconfig; then
  5414. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5415. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5416. esac
  5417. fi
  5418. ;;
  5419. sco3.2v5*)
  5420. lt_cv_sys_max_cmd_len=102400
  5421. ;;
  5422. sysv5* | sco5v6* | sysv4.2uw2*)
  5423. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5424. if test -n "$kargmax"; then
  5425. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5426. else
  5427. lt_cv_sys_max_cmd_len=32768
  5428. fi
  5429. ;;
  5430. *)
  5431. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5432. if test -n "$lt_cv_sys_max_cmd_len"; then
  5433. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5434. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5435. else
  5436. # Make teststring a little bigger before we do anything with it.
  5437. # a 1K string should be a reasonable start.
  5438. for i in 1 2 3 4 5 6 7 8 ; do
  5439. teststring=$teststring$teststring
  5440. done
  5441. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5442. # If test is not a shell built-in, we'll probably end up computing a
  5443. # maximum length that is only half of the actual maximum length, but
  5444. # we can't tell.
  5445. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5446. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5447. test $i != 17 # 1/2 MB should be enough
  5448. do
  5449. i=`expr $i + 1`
  5450. teststring=$teststring$teststring
  5451. done
  5452. # Only check the string length outside the loop.
  5453. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5454. teststring=
  5455. # Add a significant safety factor because C++ compilers can tack on
  5456. # massive amounts of additional arguments before passing them to the
  5457. # linker. It appears as though 1/2 is a usable value.
  5458. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5459. fi
  5460. ;;
  5461. esac
  5462. fi
  5463. if test -n $lt_cv_sys_max_cmd_len ; then
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5465. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5466. else
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5468. $as_echo "none" >&6; }
  5469. fi
  5470. max_cmd_len=$lt_cv_sys_max_cmd_len
  5471. : ${CP="cp -f"}
  5472. : ${MV="mv -f"}
  5473. : ${RM="rm -f"}
  5474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5475. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5476. # Try some XSI features
  5477. xsi_shell=no
  5478. ( _lt_dummy="a/b/c"
  5479. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5480. = c,a/b,b/c, \
  5481. && eval 'test $(( 1 + 1 )) -eq 2 \
  5482. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5483. && xsi_shell=yes
  5484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5485. $as_echo "$xsi_shell" >&6; }
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5487. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5488. lt_shell_append=no
  5489. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5490. >/dev/null 2>&1 \
  5491. && lt_shell_append=yes
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5493. $as_echo "$lt_shell_append" >&6; }
  5494. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5495. lt_unset=unset
  5496. else
  5497. lt_unset=false
  5498. fi
  5499. # test EBCDIC or ASCII
  5500. case `echo X|tr X '\101'` in
  5501. A) # ASCII based system
  5502. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5503. lt_SP2NL='tr \040 \012'
  5504. lt_NL2SP='tr \015\012 \040\040'
  5505. ;;
  5506. *) # EBCDIC based system
  5507. lt_SP2NL='tr \100 \n'
  5508. lt_NL2SP='tr \r\n \100\100'
  5509. ;;
  5510. esac
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5512. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5513. if ${lt_cv_to_host_file_cmd+:} false; then :
  5514. $as_echo_n "(cached) " >&6
  5515. else
  5516. case $host in
  5517. *-*-mingw* )
  5518. case $build in
  5519. *-*-mingw* ) # actually msys
  5520. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5521. ;;
  5522. *-*-cygwin* )
  5523. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5524. ;;
  5525. * ) # otherwise, assume *nix
  5526. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5527. ;;
  5528. esac
  5529. ;;
  5530. *-*-cygwin* )
  5531. case $build in
  5532. *-*-mingw* ) # actually msys
  5533. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5534. ;;
  5535. *-*-cygwin* )
  5536. lt_cv_to_host_file_cmd=func_convert_file_noop
  5537. ;;
  5538. * ) # otherwise, assume *nix
  5539. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5540. ;;
  5541. esac
  5542. ;;
  5543. * ) # unhandled hosts (and "normal" native builds)
  5544. lt_cv_to_host_file_cmd=func_convert_file_noop
  5545. ;;
  5546. esac
  5547. fi
  5548. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5550. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5552. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5553. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. #assume ordinary cross tools, or native build.
  5557. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5558. case $host in
  5559. *-*-mingw* )
  5560. case $build in
  5561. *-*-mingw* ) # actually msys
  5562. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5563. ;;
  5564. esac
  5565. ;;
  5566. esac
  5567. fi
  5568. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5570. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5572. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5573. if ${lt_cv_ld_reload_flag+:} false; then :
  5574. $as_echo_n "(cached) " >&6
  5575. else
  5576. lt_cv_ld_reload_flag='-r'
  5577. fi
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5579. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5580. reload_flag=$lt_cv_ld_reload_flag
  5581. case $reload_flag in
  5582. "" | " "*) ;;
  5583. *) reload_flag=" $reload_flag" ;;
  5584. esac
  5585. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5586. case $host_os in
  5587. cygwin* | mingw* | pw32* | cegcc*)
  5588. if test "$GCC" != yes; then
  5589. reload_cmds=false
  5590. fi
  5591. ;;
  5592. darwin*)
  5593. if test "$GCC" = yes; then
  5594. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5595. else
  5596. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5597. fi
  5598. ;;
  5599. esac
  5600. if test -n "$ac_tool_prefix"; then
  5601. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5602. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5604. $as_echo_n "checking for $ac_word... " >&6; }
  5605. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5606. $as_echo_n "(cached) " >&6
  5607. else
  5608. if test -n "$OBJDUMP"; then
  5609. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5610. else
  5611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5612. for as_dir in $PATH
  5613. do
  5614. IFS=$as_save_IFS
  5615. test -z "$as_dir" && as_dir=.
  5616. for ac_exec_ext in '' $ac_executable_extensions; do
  5617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5618. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5620. break 2
  5621. fi
  5622. done
  5623. done
  5624. IFS=$as_save_IFS
  5625. fi
  5626. fi
  5627. OBJDUMP=$ac_cv_prog_OBJDUMP
  5628. if test -n "$OBJDUMP"; then
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5630. $as_echo "$OBJDUMP" >&6; }
  5631. else
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5633. $as_echo "no" >&6; }
  5634. fi
  5635. fi
  5636. if test -z "$ac_cv_prog_OBJDUMP"; then
  5637. ac_ct_OBJDUMP=$OBJDUMP
  5638. # Extract the first word of "objdump", so it can be a program name with args.
  5639. set dummy objdump; ac_word=$2
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5641. $as_echo_n "checking for $ac_word... " >&6; }
  5642. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. if test -n "$ac_ct_OBJDUMP"; then
  5646. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5647. else
  5648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5649. for as_dir in $PATH
  5650. do
  5651. IFS=$as_save_IFS
  5652. test -z "$as_dir" && as_dir=.
  5653. for ac_exec_ext in '' $ac_executable_extensions; do
  5654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5655. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5657. break 2
  5658. fi
  5659. done
  5660. done
  5661. IFS=$as_save_IFS
  5662. fi
  5663. fi
  5664. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5665. if test -n "$ac_ct_OBJDUMP"; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5667. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5670. $as_echo "no" >&6; }
  5671. fi
  5672. if test "x$ac_ct_OBJDUMP" = x; then
  5673. OBJDUMP="false"
  5674. else
  5675. case $cross_compiling:$ac_tool_warned in
  5676. yes:)
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5679. ac_tool_warned=yes ;;
  5680. esac
  5681. OBJDUMP=$ac_ct_OBJDUMP
  5682. fi
  5683. else
  5684. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5685. fi
  5686. test -z "$OBJDUMP" && OBJDUMP=objdump
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5688. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5689. if ${lt_cv_deplibs_check_method+:} false; then :
  5690. $as_echo_n "(cached) " >&6
  5691. else
  5692. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5693. lt_cv_file_magic_test_file=
  5694. lt_cv_deplibs_check_method='unknown'
  5695. # Need to set the preceding variable on all platforms that support
  5696. # interlibrary dependencies.
  5697. # 'none' -- dependencies not supported.
  5698. # `unknown' -- same as none, but documents that we really don't know.
  5699. # 'pass_all' -- all dependencies passed with no checks.
  5700. # 'test_compile' -- check by making test program.
  5701. # 'file_magic [[regex]]' -- check by looking for files in library path
  5702. # which responds to the $file_magic_cmd with a given extended regex.
  5703. # If you have `file' or equivalent on your system and you're not sure
  5704. # whether `pass_all' will *always* work, you probably want this one.
  5705. case $host_os in
  5706. aix[4-9]*)
  5707. lt_cv_deplibs_check_method=pass_all
  5708. ;;
  5709. beos*)
  5710. lt_cv_deplibs_check_method=pass_all
  5711. ;;
  5712. bsdi[45]*)
  5713. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5714. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5715. lt_cv_file_magic_test_file=/shlib/libc.so
  5716. ;;
  5717. cygwin*)
  5718. # func_win32_libid is a shell function defined in ltmain.sh
  5719. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5720. lt_cv_file_magic_cmd='func_win32_libid'
  5721. ;;
  5722. mingw* | pw32*)
  5723. # Base MSYS/MinGW do not provide the 'file' command needed by
  5724. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5725. # unless we find 'file', for example because we are cross-compiling.
  5726. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5727. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5728. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5729. lt_cv_file_magic_cmd='func_win32_libid'
  5730. else
  5731. # Keep this pattern in sync with the one in func_win32_libid.
  5732. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5733. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5734. fi
  5735. ;;
  5736. cegcc*)
  5737. # use the weaker test based on 'objdump'. See mingw*.
  5738. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5739. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5740. ;;
  5741. darwin* | rhapsody*)
  5742. lt_cv_deplibs_check_method=pass_all
  5743. ;;
  5744. freebsd* | dragonfly*)
  5745. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5746. case $host_cpu in
  5747. i*86 )
  5748. # Not sure whether the presence of OpenBSD here was a mistake.
  5749. # Let's accept both of them until this is cleared up.
  5750. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5751. lt_cv_file_magic_cmd=/usr/bin/file
  5752. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5753. ;;
  5754. esac
  5755. else
  5756. lt_cv_deplibs_check_method=pass_all
  5757. fi
  5758. ;;
  5759. gnu*)
  5760. lt_cv_deplibs_check_method=pass_all
  5761. ;;
  5762. haiku*)
  5763. lt_cv_deplibs_check_method=pass_all
  5764. ;;
  5765. hpux10.20* | hpux11*)
  5766. lt_cv_file_magic_cmd=/usr/bin/file
  5767. case $host_cpu in
  5768. ia64*)
  5769. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5770. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5771. ;;
  5772. hppa*64*)
  5773. 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]'
  5774. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5775. ;;
  5776. *)
  5777. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5778. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5779. ;;
  5780. esac
  5781. ;;
  5782. interix[3-9]*)
  5783. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5784. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5785. ;;
  5786. irix5* | irix6* | nonstopux*)
  5787. case $LD in
  5788. *-32|*"-32 ") libmagic=32-bit;;
  5789. *-n32|*"-n32 ") libmagic=N32;;
  5790. *-64|*"-64 ") libmagic=64-bit;;
  5791. *) libmagic=never-match;;
  5792. esac
  5793. lt_cv_deplibs_check_method=pass_all
  5794. ;;
  5795. # This must be glibc/ELF.
  5796. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5797. lt_cv_deplibs_check_method=pass_all
  5798. ;;
  5799. netbsd*)
  5800. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5801. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5802. else
  5803. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5804. fi
  5805. ;;
  5806. newos6*)
  5807. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5808. lt_cv_file_magic_cmd=/usr/bin/file
  5809. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5810. ;;
  5811. *nto* | *qnx*)
  5812. lt_cv_deplibs_check_method=pass_all
  5813. ;;
  5814. openbsd*)
  5815. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5816. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5817. else
  5818. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5819. fi
  5820. ;;
  5821. osf3* | osf4* | osf5*)
  5822. lt_cv_deplibs_check_method=pass_all
  5823. ;;
  5824. rdos*)
  5825. lt_cv_deplibs_check_method=pass_all
  5826. ;;
  5827. solaris*)
  5828. lt_cv_deplibs_check_method=pass_all
  5829. ;;
  5830. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5831. lt_cv_deplibs_check_method=pass_all
  5832. ;;
  5833. sysv4 | sysv4.3*)
  5834. case $host_vendor in
  5835. motorola)
  5836. 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]'
  5837. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5838. ;;
  5839. ncr)
  5840. lt_cv_deplibs_check_method=pass_all
  5841. ;;
  5842. sequent)
  5843. lt_cv_file_magic_cmd='/bin/file'
  5844. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5845. ;;
  5846. sni)
  5847. lt_cv_file_magic_cmd='/bin/file'
  5848. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5849. lt_cv_file_magic_test_file=/lib/libc.so
  5850. ;;
  5851. siemens)
  5852. lt_cv_deplibs_check_method=pass_all
  5853. ;;
  5854. pc)
  5855. lt_cv_deplibs_check_method=pass_all
  5856. ;;
  5857. esac
  5858. ;;
  5859. tpf*)
  5860. lt_cv_deplibs_check_method=pass_all
  5861. ;;
  5862. esac
  5863. fi
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5865. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5866. file_magic_glob=
  5867. want_nocaseglob=no
  5868. if test "$build" = "$host"; then
  5869. case $host_os in
  5870. mingw* | pw32*)
  5871. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5872. want_nocaseglob=yes
  5873. else
  5874. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5875. fi
  5876. ;;
  5877. esac
  5878. fi
  5879. file_magic_cmd=$lt_cv_file_magic_cmd
  5880. deplibs_check_method=$lt_cv_deplibs_check_method
  5881. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5882. if test -n "$ac_tool_prefix"; then
  5883. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5884. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5886. $as_echo_n "checking for $ac_word... " >&6; }
  5887. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. if test -n "$DLLTOOL"; then
  5891. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5892. else
  5893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5894. for as_dir in $PATH
  5895. do
  5896. IFS=$as_save_IFS
  5897. test -z "$as_dir" && as_dir=.
  5898. for ac_exec_ext in '' $ac_executable_extensions; do
  5899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5900. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5902. break 2
  5903. fi
  5904. done
  5905. done
  5906. IFS=$as_save_IFS
  5907. fi
  5908. fi
  5909. DLLTOOL=$ac_cv_prog_DLLTOOL
  5910. if test -n "$DLLTOOL"; then
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5912. $as_echo "$DLLTOOL" >&6; }
  5913. else
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5915. $as_echo "no" >&6; }
  5916. fi
  5917. fi
  5918. if test -z "$ac_cv_prog_DLLTOOL"; then
  5919. ac_ct_DLLTOOL=$DLLTOOL
  5920. # Extract the first word of "dlltool", so it can be a program name with args.
  5921. set dummy dlltool; ac_word=$2
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5923. $as_echo_n "checking for $ac_word... " >&6; }
  5924. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5925. $as_echo_n "(cached) " >&6
  5926. else
  5927. if test -n "$ac_ct_DLLTOOL"; then
  5928. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5929. else
  5930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5931. for as_dir in $PATH
  5932. do
  5933. IFS=$as_save_IFS
  5934. test -z "$as_dir" && as_dir=.
  5935. for ac_exec_ext in '' $ac_executable_extensions; do
  5936. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5937. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5938. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5939. break 2
  5940. fi
  5941. done
  5942. done
  5943. IFS=$as_save_IFS
  5944. fi
  5945. fi
  5946. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5947. if test -n "$ac_ct_DLLTOOL"; then
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5949. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5950. else
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5952. $as_echo "no" >&6; }
  5953. fi
  5954. if test "x$ac_ct_DLLTOOL" = x; then
  5955. DLLTOOL="false"
  5956. else
  5957. case $cross_compiling:$ac_tool_warned in
  5958. yes:)
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5960. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5961. ac_tool_warned=yes ;;
  5962. esac
  5963. DLLTOOL=$ac_ct_DLLTOOL
  5964. fi
  5965. else
  5966. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5967. fi
  5968. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5970. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5971. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5975. case $host_os in
  5976. cygwin* | mingw* | pw32* | cegcc*)
  5977. # two different shell functions defined in ltmain.sh
  5978. # decide which to use based on capabilities of $DLLTOOL
  5979. case `$DLLTOOL --help 2>&1` in
  5980. *--identify-strict*)
  5981. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5982. ;;
  5983. *)
  5984. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5985. ;;
  5986. esac
  5987. ;;
  5988. *)
  5989. # fallback: assume linklib IS sharedlib
  5990. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5991. ;;
  5992. esac
  5993. fi
  5994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5995. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5996. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5997. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5998. if test -n "$ac_tool_prefix"; then
  5999. for ac_prog in ar
  6000. do
  6001. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6002. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6004. $as_echo_n "checking for $ac_word... " >&6; }
  6005. if ${ac_cv_prog_AR+:} false; then :
  6006. $as_echo_n "(cached) " >&6
  6007. else
  6008. if test -n "$AR"; then
  6009. ac_cv_prog_AR="$AR" # Let the user override the test.
  6010. else
  6011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6012. for as_dir in $PATH
  6013. do
  6014. IFS=$as_save_IFS
  6015. test -z "$as_dir" && as_dir=.
  6016. for ac_exec_ext in '' $ac_executable_extensions; do
  6017. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6018. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  6019. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6020. break 2
  6021. fi
  6022. done
  6023. done
  6024. IFS=$as_save_IFS
  6025. fi
  6026. fi
  6027. AR=$ac_cv_prog_AR
  6028. if test -n "$AR"; then
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6030. $as_echo "$AR" >&6; }
  6031. else
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6033. $as_echo "no" >&6; }
  6034. fi
  6035. test -n "$AR" && break
  6036. done
  6037. fi
  6038. if test -z "$AR"; then
  6039. ac_ct_AR=$AR
  6040. for ac_prog in ar
  6041. do
  6042. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6043. set dummy $ac_prog; ac_word=$2
  6044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6045. $as_echo_n "checking for $ac_word... " >&6; }
  6046. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6047. $as_echo_n "(cached) " >&6
  6048. else
  6049. if test -n "$ac_ct_AR"; then
  6050. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6051. else
  6052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6053. for as_dir in $PATH
  6054. do
  6055. IFS=$as_save_IFS
  6056. test -z "$as_dir" && as_dir=.
  6057. for ac_exec_ext in '' $ac_executable_extensions; do
  6058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6059. ac_cv_prog_ac_ct_AR="$ac_prog"
  6060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6061. break 2
  6062. fi
  6063. done
  6064. done
  6065. IFS=$as_save_IFS
  6066. fi
  6067. fi
  6068. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6069. if test -n "$ac_ct_AR"; then
  6070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6071. $as_echo "$ac_ct_AR" >&6; }
  6072. else
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6074. $as_echo "no" >&6; }
  6075. fi
  6076. test -n "$ac_ct_AR" && break
  6077. done
  6078. if test "x$ac_ct_AR" = x; then
  6079. AR="false"
  6080. else
  6081. case $cross_compiling:$ac_tool_warned in
  6082. yes:)
  6083. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6084. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6085. ac_tool_warned=yes ;;
  6086. esac
  6087. AR=$ac_ct_AR
  6088. fi
  6089. fi
  6090. : ${AR=ar}
  6091. : ${AR_FLAGS=cru}
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6093. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6094. if ${lt_cv_ar_at_file+:} false; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. lt_cv_ar_at_file=no
  6098. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6099. /* end confdefs.h. */
  6100. int
  6101. main ()
  6102. {
  6103. ;
  6104. return 0;
  6105. }
  6106. _ACEOF
  6107. if ac_fn_c_try_compile "$LINENO"; then :
  6108. echo conftest.$ac_objext > conftest.lst
  6109. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6110. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6111. (eval $lt_ar_try) 2>&5
  6112. ac_status=$?
  6113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6114. test $ac_status = 0; }
  6115. if test "$ac_status" -eq 0; then
  6116. # Ensure the archiver fails upon bogus file names.
  6117. rm -f conftest.$ac_objext libconftest.a
  6118. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6119. (eval $lt_ar_try) 2>&5
  6120. ac_status=$?
  6121. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6122. test $ac_status = 0; }
  6123. if test "$ac_status" -ne 0; then
  6124. lt_cv_ar_at_file=@
  6125. fi
  6126. fi
  6127. rm -f conftest.* libconftest.a
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6130. fi
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6132. $as_echo "$lt_cv_ar_at_file" >&6; }
  6133. if test "x$lt_cv_ar_at_file" = xno; then
  6134. archiver_list_spec=
  6135. else
  6136. archiver_list_spec=$lt_cv_ar_at_file
  6137. fi
  6138. if test -n "$ac_tool_prefix"; then
  6139. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6140. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6142. $as_echo_n "checking for $ac_word... " >&6; }
  6143. if ${ac_cv_prog_STRIP+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. if test -n "$STRIP"; then
  6147. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6148. else
  6149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6150. for as_dir in $PATH
  6151. do
  6152. IFS=$as_save_IFS
  6153. test -z "$as_dir" && as_dir=.
  6154. for ac_exec_ext in '' $ac_executable_extensions; do
  6155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6156. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6158. break 2
  6159. fi
  6160. done
  6161. done
  6162. IFS=$as_save_IFS
  6163. fi
  6164. fi
  6165. STRIP=$ac_cv_prog_STRIP
  6166. if test -n "$STRIP"; then
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6168. $as_echo "$STRIP" >&6; }
  6169. else
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6171. $as_echo "no" >&6; }
  6172. fi
  6173. fi
  6174. if test -z "$ac_cv_prog_STRIP"; then
  6175. ac_ct_STRIP=$STRIP
  6176. # Extract the first word of "strip", so it can be a program name with args.
  6177. set dummy strip; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. if test -n "$ac_ct_STRIP"; then
  6184. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6185. else
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6193. ac_cv_prog_ac_ct_STRIP="strip"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. fi
  6201. fi
  6202. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6203. if test -n "$ac_ct_STRIP"; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6205. $as_echo "$ac_ct_STRIP" >&6; }
  6206. else
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6208. $as_echo "no" >&6; }
  6209. fi
  6210. if test "x$ac_ct_STRIP" = x; then
  6211. STRIP=":"
  6212. else
  6213. case $cross_compiling:$ac_tool_warned in
  6214. yes:)
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6216. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6217. ac_tool_warned=yes ;;
  6218. esac
  6219. STRIP=$ac_ct_STRIP
  6220. fi
  6221. else
  6222. STRIP="$ac_cv_prog_STRIP"
  6223. fi
  6224. test -z "$STRIP" && STRIP=:
  6225. if test -n "$ac_tool_prefix"; then
  6226. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6227. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6229. $as_echo_n "checking for $ac_word... " >&6; }
  6230. if ${ac_cv_prog_RANLIB+:} false; then :
  6231. $as_echo_n "(cached) " >&6
  6232. else
  6233. if test -n "$RANLIB"; then
  6234. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6235. else
  6236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6237. for as_dir in $PATH
  6238. do
  6239. IFS=$as_save_IFS
  6240. test -z "$as_dir" && as_dir=.
  6241. for ac_exec_ext in '' $ac_executable_extensions; do
  6242. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6243. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6245. break 2
  6246. fi
  6247. done
  6248. done
  6249. IFS=$as_save_IFS
  6250. fi
  6251. fi
  6252. RANLIB=$ac_cv_prog_RANLIB
  6253. if test -n "$RANLIB"; then
  6254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6255. $as_echo "$RANLIB" >&6; }
  6256. else
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6258. $as_echo "no" >&6; }
  6259. fi
  6260. fi
  6261. if test -z "$ac_cv_prog_RANLIB"; then
  6262. ac_ct_RANLIB=$RANLIB
  6263. # Extract the first word of "ranlib", so it can be a program name with args.
  6264. set dummy ranlib; ac_word=$2
  6265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6266. $as_echo_n "checking for $ac_word... " >&6; }
  6267. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6268. $as_echo_n "(cached) " >&6
  6269. else
  6270. if test -n "$ac_ct_RANLIB"; then
  6271. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6272. else
  6273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6274. for as_dir in $PATH
  6275. do
  6276. IFS=$as_save_IFS
  6277. test -z "$as_dir" && as_dir=.
  6278. for ac_exec_ext in '' $ac_executable_extensions; do
  6279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6280. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6282. break 2
  6283. fi
  6284. done
  6285. done
  6286. IFS=$as_save_IFS
  6287. fi
  6288. fi
  6289. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6290. if test -n "$ac_ct_RANLIB"; then
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6292. $as_echo "$ac_ct_RANLIB" >&6; }
  6293. else
  6294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6295. $as_echo "no" >&6; }
  6296. fi
  6297. if test "x$ac_ct_RANLIB" = x; then
  6298. RANLIB=":"
  6299. else
  6300. case $cross_compiling:$ac_tool_warned in
  6301. yes:)
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6303. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6304. ac_tool_warned=yes ;;
  6305. esac
  6306. RANLIB=$ac_ct_RANLIB
  6307. fi
  6308. else
  6309. RANLIB="$ac_cv_prog_RANLIB"
  6310. fi
  6311. test -z "$RANLIB" && RANLIB=:
  6312. # Determine commands to create old-style static archives.
  6313. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6314. old_postinstall_cmds='chmod 644 $oldlib'
  6315. old_postuninstall_cmds=
  6316. if test -n "$RANLIB"; then
  6317. case $host_os in
  6318. openbsd*)
  6319. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6320. ;;
  6321. *)
  6322. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6323. ;;
  6324. esac
  6325. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6326. fi
  6327. case $host_os in
  6328. darwin*)
  6329. lock_old_archive_extraction=yes ;;
  6330. *)
  6331. lock_old_archive_extraction=no ;;
  6332. esac
  6333. # If no C compiler was specified, use CC.
  6334. LTCC=${LTCC-"$CC"}
  6335. # If no C compiler flags were specified, use CFLAGS.
  6336. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6337. # Allow CC to be a program name with arguments.
  6338. compiler=$CC
  6339. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6341. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6342. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6343. $as_echo_n "(cached) " >&6
  6344. else
  6345. # These are sane defaults that work on at least a few old systems.
  6346. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6347. # Character class describing NM global symbol codes.
  6348. symcode='[BCDEGRST]'
  6349. # Regexp to match symbols that can be accessed directly from C.
  6350. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6351. # Define system-specific variables.
  6352. case $host_os in
  6353. aix*)
  6354. symcode='[BCDT]'
  6355. ;;
  6356. cygwin* | mingw* | pw32* | cegcc*)
  6357. symcode='[ABCDGISTW]'
  6358. ;;
  6359. hpux*)
  6360. if test "$host_cpu" = ia64; then
  6361. symcode='[ABCDEGRST]'
  6362. fi
  6363. ;;
  6364. irix* | nonstopux*)
  6365. symcode='[BCDEGRST]'
  6366. ;;
  6367. osf*)
  6368. symcode='[BCDEGQRST]'
  6369. ;;
  6370. solaris*)
  6371. symcode='[BDRT]'
  6372. ;;
  6373. sco3.2v5*)
  6374. symcode='[DT]'
  6375. ;;
  6376. sysv4.2uw2*)
  6377. symcode='[DT]'
  6378. ;;
  6379. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6380. symcode='[ABDT]'
  6381. ;;
  6382. sysv4)
  6383. symcode='[DFNSTU]'
  6384. ;;
  6385. esac
  6386. # If we're using GNU nm, then use its standard symbol codes.
  6387. case `$NM -V 2>&1` in
  6388. *GNU* | *'with BFD'*)
  6389. symcode='[ABCDGIRSTW]' ;;
  6390. esac
  6391. # Transform an extracted symbol line into a proper C declaration.
  6392. # Some systems (esp. on ia64) link data and code symbols differently,
  6393. # so use this general approach.
  6394. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6395. # Transform an extracted symbol line into symbol name and symbol address
  6396. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6397. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6398. # Handle CRLF in mingw tool chain
  6399. opt_cr=
  6400. case $build_os in
  6401. mingw*)
  6402. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6403. ;;
  6404. esac
  6405. # Try without a prefix underscore, then with it.
  6406. for ac_symprfx in "" "_"; do
  6407. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6408. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6409. # Write the raw and C identifiers.
  6410. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6411. # Fake it for dumpbin and say T for any non-static function
  6412. # and D for any global variable.
  6413. # Also find C++ and __fastcall symbols from MSVC++,
  6414. # which start with @ or ?.
  6415. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6416. " {last_section=section; section=\$ 3};"\
  6417. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6418. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6419. " \$ 0!~/External *\|/{next};"\
  6420. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6421. " {if(hide[section]) next};"\
  6422. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6423. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6424. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6425. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6426. " ' prfx=^$ac_symprfx"
  6427. else
  6428. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6429. fi
  6430. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6431. # Check to see that the pipe works correctly.
  6432. pipe_works=no
  6433. rm -f conftest*
  6434. cat > conftest.$ac_ext <<_LT_EOF
  6435. #ifdef __cplusplus
  6436. extern "C" {
  6437. #endif
  6438. char nm_test_var;
  6439. void nm_test_func(void);
  6440. void nm_test_func(void){}
  6441. #ifdef __cplusplus
  6442. }
  6443. #endif
  6444. int main(){nm_test_var='a';nm_test_func();return(0);}
  6445. _LT_EOF
  6446. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6447. (eval $ac_compile) 2>&5
  6448. ac_status=$?
  6449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6450. test $ac_status = 0; }; then
  6451. # Now try to grab the symbols.
  6452. nlist=conftest.nm
  6453. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6454. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6455. ac_status=$?
  6456. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6457. test $ac_status = 0; } && test -s "$nlist"; then
  6458. # Try sorting and uniquifying the output.
  6459. if sort "$nlist" | uniq > "$nlist"T; then
  6460. mv -f "$nlist"T "$nlist"
  6461. else
  6462. rm -f "$nlist"T
  6463. fi
  6464. # Make sure that we snagged all the symbols we need.
  6465. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6466. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6467. cat <<_LT_EOF > conftest.$ac_ext
  6468. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6469. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6470. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6471. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6472. # define LT_DLSYM_CONST
  6473. #elif defined(__osf__)
  6474. /* This system does not cope well with relocations in const data. */
  6475. # define LT_DLSYM_CONST
  6476. #else
  6477. # define LT_DLSYM_CONST const
  6478. #endif
  6479. #ifdef __cplusplus
  6480. extern "C" {
  6481. #endif
  6482. _LT_EOF
  6483. # Now generate the symbol file.
  6484. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6485. cat <<_LT_EOF >> conftest.$ac_ext
  6486. /* The mapping between symbol names and symbols. */
  6487. LT_DLSYM_CONST struct {
  6488. const char *name;
  6489. void *address;
  6490. }
  6491. lt__PROGRAM__LTX_preloaded_symbols[] =
  6492. {
  6493. { "@PROGRAM@", (void *) 0 },
  6494. _LT_EOF
  6495. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6496. cat <<\_LT_EOF >> conftest.$ac_ext
  6497. {0, (void *) 0}
  6498. };
  6499. /* This works around a problem in FreeBSD linker */
  6500. #ifdef FREEBSD_WORKAROUND
  6501. static const void *lt_preloaded_setup() {
  6502. return lt__PROGRAM__LTX_preloaded_symbols;
  6503. }
  6504. #endif
  6505. #ifdef __cplusplus
  6506. }
  6507. #endif
  6508. _LT_EOF
  6509. # Now try linking the two files.
  6510. mv conftest.$ac_objext conftstm.$ac_objext
  6511. lt_globsym_save_LIBS=$LIBS
  6512. lt_globsym_save_CFLAGS=$CFLAGS
  6513. LIBS="conftstm.$ac_objext"
  6514. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6515. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6516. (eval $ac_link) 2>&5
  6517. ac_status=$?
  6518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6519. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6520. pipe_works=yes
  6521. fi
  6522. LIBS=$lt_globsym_save_LIBS
  6523. CFLAGS=$lt_globsym_save_CFLAGS
  6524. else
  6525. echo "cannot find nm_test_func in $nlist" >&5
  6526. fi
  6527. else
  6528. echo "cannot find nm_test_var in $nlist" >&5
  6529. fi
  6530. else
  6531. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6532. fi
  6533. else
  6534. echo "$progname: failed program was:" >&5
  6535. cat conftest.$ac_ext >&5
  6536. fi
  6537. rm -rf conftest* conftst*
  6538. # Do not use the global_symbol_pipe unless it works.
  6539. if test "$pipe_works" = yes; then
  6540. break
  6541. else
  6542. lt_cv_sys_global_symbol_pipe=
  6543. fi
  6544. done
  6545. fi
  6546. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6547. lt_cv_sys_global_symbol_to_cdecl=
  6548. fi
  6549. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6551. $as_echo "failed" >&6; }
  6552. else
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6554. $as_echo "ok" >&6; }
  6555. fi
  6556. # Response file support.
  6557. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6558. nm_file_list_spec='@'
  6559. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6560. nm_file_list_spec='@'
  6561. fi
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6563. $as_echo_n "checking for sysroot... " >&6; }
  6564. # Check whether --with-sysroot was given.
  6565. if test "${with_sysroot+set}" = set; then :
  6566. withval=$with_sysroot;
  6567. else
  6568. with_sysroot=no
  6569. fi
  6570. lt_sysroot=
  6571. case ${with_sysroot} in #(
  6572. yes)
  6573. if test "$GCC" = yes; then
  6574. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6575. fi
  6576. ;; #(
  6577. /*)
  6578. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6579. ;; #(
  6580. no|'')
  6581. ;; #(
  6582. *)
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6584. $as_echo "${with_sysroot}" >&6; }
  6585. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6586. ;;
  6587. esac
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6589. $as_echo "${lt_sysroot:-no}" >&6; }
  6590. # Check whether --enable-libtool-lock was given.
  6591. if test "${enable_libtool_lock+set}" = set; then :
  6592. enableval=$enable_libtool_lock;
  6593. fi
  6594. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6595. # Some flags need to be propagated to the compiler or linker for good
  6596. # libtool support.
  6597. case $host in
  6598. ia64-*-hpux*)
  6599. # Find out which ABI we are using.
  6600. echo 'int i;' > conftest.$ac_ext
  6601. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6602. (eval $ac_compile) 2>&5
  6603. ac_status=$?
  6604. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6605. test $ac_status = 0; }; then
  6606. case `/usr/bin/file conftest.$ac_objext` in
  6607. *ELF-32*)
  6608. HPUX_IA64_MODE="32"
  6609. ;;
  6610. *ELF-64*)
  6611. HPUX_IA64_MODE="64"
  6612. ;;
  6613. esac
  6614. fi
  6615. rm -rf conftest*
  6616. ;;
  6617. *-*-irix6*)
  6618. # Find out which ABI we are using.
  6619. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6621. (eval $ac_compile) 2>&5
  6622. ac_status=$?
  6623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6624. test $ac_status = 0; }; then
  6625. if test "$lt_cv_prog_gnu_ld" = yes; then
  6626. case `/usr/bin/file conftest.$ac_objext` in
  6627. *32-bit*)
  6628. LD="${LD-ld} -melf32bsmip"
  6629. ;;
  6630. *N32*)
  6631. LD="${LD-ld} -melf32bmipn32"
  6632. ;;
  6633. *64-bit*)
  6634. LD="${LD-ld} -melf64bmip"
  6635. ;;
  6636. esac
  6637. else
  6638. case `/usr/bin/file conftest.$ac_objext` in
  6639. *32-bit*)
  6640. LD="${LD-ld} -32"
  6641. ;;
  6642. *N32*)
  6643. LD="${LD-ld} -n32"
  6644. ;;
  6645. *64-bit*)
  6646. LD="${LD-ld} -64"
  6647. ;;
  6648. esac
  6649. fi
  6650. fi
  6651. rm -rf conftest*
  6652. ;;
  6653. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6654. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6655. # Find out which ABI we are using.
  6656. echo 'int i;' > conftest.$ac_ext
  6657. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6658. (eval $ac_compile) 2>&5
  6659. ac_status=$?
  6660. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6661. test $ac_status = 0; }; then
  6662. case `/usr/bin/file conftest.o` in
  6663. *32-bit*)
  6664. case $host in
  6665. x86_64-*kfreebsd*-gnu)
  6666. LD="${LD-ld} -m elf_i386_fbsd"
  6667. ;;
  6668. x86_64-*linux*)
  6669. LD="${LD-ld} -m elf_i386"
  6670. ;;
  6671. ppc64-*linux*|powerpc64-*linux*)
  6672. LD="${LD-ld} -m elf32ppclinux"
  6673. ;;
  6674. s390x-*linux*)
  6675. LD="${LD-ld} -m elf_s390"
  6676. ;;
  6677. sparc64-*linux*)
  6678. LD="${LD-ld} -m elf32_sparc"
  6679. ;;
  6680. esac
  6681. ;;
  6682. *64-bit*)
  6683. case $host in
  6684. x86_64-*kfreebsd*-gnu)
  6685. LD="${LD-ld} -m elf_x86_64_fbsd"
  6686. ;;
  6687. x86_64-*linux*)
  6688. LD="${LD-ld} -m elf_x86_64"
  6689. ;;
  6690. ppc*-*linux*|powerpc*-*linux*)
  6691. LD="${LD-ld} -m elf64ppc"
  6692. ;;
  6693. s390*-*linux*|s390*-*tpf*)
  6694. LD="${LD-ld} -m elf64_s390"
  6695. ;;
  6696. sparc*-*linux*)
  6697. LD="${LD-ld} -m elf64_sparc"
  6698. ;;
  6699. esac
  6700. ;;
  6701. esac
  6702. fi
  6703. rm -rf conftest*
  6704. ;;
  6705. *-*-sco3.2v5*)
  6706. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6707. SAVE_CFLAGS="$CFLAGS"
  6708. CFLAGS="$CFLAGS -belf"
  6709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6710. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6711. if ${lt_cv_cc_needs_belf+:} false; then :
  6712. $as_echo_n "(cached) " >&6
  6713. else
  6714. ac_ext=c
  6715. ac_cpp='$CPP $CPPFLAGS'
  6716. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6717. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6718. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6720. /* end confdefs.h. */
  6721. int
  6722. main ()
  6723. {
  6724. ;
  6725. return 0;
  6726. }
  6727. _ACEOF
  6728. if ac_fn_c_try_link "$LINENO"; then :
  6729. lt_cv_cc_needs_belf=yes
  6730. else
  6731. lt_cv_cc_needs_belf=no
  6732. fi
  6733. rm -f core conftest.err conftest.$ac_objext \
  6734. conftest$ac_exeext conftest.$ac_ext
  6735. ac_ext=c
  6736. ac_cpp='$CPP $CPPFLAGS'
  6737. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6738. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6739. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6740. fi
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6742. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6743. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6744. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6745. CFLAGS="$SAVE_CFLAGS"
  6746. fi
  6747. ;;
  6748. *-*solaris*)
  6749. # Find out which ABI we are using.
  6750. echo 'int i;' > conftest.$ac_ext
  6751. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6752. (eval $ac_compile) 2>&5
  6753. ac_status=$?
  6754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6755. test $ac_status = 0; }; then
  6756. case `/usr/bin/file conftest.o` in
  6757. *64-bit*)
  6758. case $lt_cv_prog_gnu_ld in
  6759. yes*)
  6760. case $host in
  6761. i?86-*-solaris*)
  6762. LD="${LD-ld} -m elf_x86_64"
  6763. ;;
  6764. sparc*-*-solaris*)
  6765. LD="${LD-ld} -m elf64_sparc"
  6766. ;;
  6767. esac
  6768. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6769. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6770. LD="${LD-ld}_sol2"
  6771. fi
  6772. ;;
  6773. *)
  6774. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6775. LD="${LD-ld} -64"
  6776. fi
  6777. ;;
  6778. esac
  6779. ;;
  6780. esac
  6781. fi
  6782. rm -rf conftest*
  6783. ;;
  6784. esac
  6785. need_locks="$enable_libtool_lock"
  6786. if test -n "$ac_tool_prefix"; then
  6787. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6788. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6790. $as_echo_n "checking for $ac_word... " >&6; }
  6791. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6792. $as_echo_n "(cached) " >&6
  6793. else
  6794. if test -n "$MANIFEST_TOOL"; then
  6795. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6796. else
  6797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6798. for as_dir in $PATH
  6799. do
  6800. IFS=$as_save_IFS
  6801. test -z "$as_dir" && as_dir=.
  6802. for ac_exec_ext in '' $ac_executable_extensions; do
  6803. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6804. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6806. break 2
  6807. fi
  6808. done
  6809. done
  6810. IFS=$as_save_IFS
  6811. fi
  6812. fi
  6813. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6814. if test -n "$MANIFEST_TOOL"; then
  6815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6816. $as_echo "$MANIFEST_TOOL" >&6; }
  6817. else
  6818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6819. $as_echo "no" >&6; }
  6820. fi
  6821. fi
  6822. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6823. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6824. # Extract the first word of "mt", so it can be a program name with args.
  6825. set dummy mt; ac_word=$2
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6827. $as_echo_n "checking for $ac_word... " >&6; }
  6828. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6832. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6833. else
  6834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6835. for as_dir in $PATH
  6836. do
  6837. IFS=$as_save_IFS
  6838. test -z "$as_dir" && as_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6841. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6843. break 2
  6844. fi
  6845. done
  6846. done
  6847. IFS=$as_save_IFS
  6848. fi
  6849. fi
  6850. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6851. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6853. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6854. else
  6855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6856. $as_echo "no" >&6; }
  6857. fi
  6858. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6859. MANIFEST_TOOL=":"
  6860. else
  6861. case $cross_compiling:$ac_tool_warned in
  6862. yes:)
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6864. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6865. ac_tool_warned=yes ;;
  6866. esac
  6867. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6868. fi
  6869. else
  6870. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6871. fi
  6872. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6874. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6875. if ${lt_cv_path_mainfest_tool+:} false; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. lt_cv_path_mainfest_tool=no
  6879. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6880. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6881. cat conftest.err >&5
  6882. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6883. lt_cv_path_mainfest_tool=yes
  6884. fi
  6885. rm -f conftest*
  6886. fi
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6888. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6889. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6890. MANIFEST_TOOL=:
  6891. fi
  6892. case $host_os in
  6893. rhapsody* | darwin*)
  6894. if test -n "$ac_tool_prefix"; then
  6895. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6896. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6898. $as_echo_n "checking for $ac_word... " >&6; }
  6899. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. if test -n "$DSYMUTIL"; then
  6903. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6904. else
  6905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6906. for as_dir in $PATH
  6907. do
  6908. IFS=$as_save_IFS
  6909. test -z "$as_dir" && as_dir=.
  6910. for ac_exec_ext in '' $ac_executable_extensions; do
  6911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6912. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6914. break 2
  6915. fi
  6916. done
  6917. done
  6918. IFS=$as_save_IFS
  6919. fi
  6920. fi
  6921. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6922. if test -n "$DSYMUTIL"; then
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6924. $as_echo "$DSYMUTIL" >&6; }
  6925. else
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6927. $as_echo "no" >&6; }
  6928. fi
  6929. fi
  6930. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6931. ac_ct_DSYMUTIL=$DSYMUTIL
  6932. # Extract the first word of "dsymutil", so it can be a program name with args.
  6933. set dummy dsymutil; ac_word=$2
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6935. $as_echo_n "checking for $ac_word... " >&6; }
  6936. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6937. $as_echo_n "(cached) " >&6
  6938. else
  6939. if test -n "$ac_ct_DSYMUTIL"; then
  6940. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6941. else
  6942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6943. for as_dir in $PATH
  6944. do
  6945. IFS=$as_save_IFS
  6946. test -z "$as_dir" && as_dir=.
  6947. for ac_exec_ext in '' $ac_executable_extensions; do
  6948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6949. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6951. break 2
  6952. fi
  6953. done
  6954. done
  6955. IFS=$as_save_IFS
  6956. fi
  6957. fi
  6958. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6959. if test -n "$ac_ct_DSYMUTIL"; then
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6961. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6962. else
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6964. $as_echo "no" >&6; }
  6965. fi
  6966. if test "x$ac_ct_DSYMUTIL" = x; then
  6967. DSYMUTIL=":"
  6968. else
  6969. case $cross_compiling:$ac_tool_warned in
  6970. yes:)
  6971. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6972. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6973. ac_tool_warned=yes ;;
  6974. esac
  6975. DSYMUTIL=$ac_ct_DSYMUTIL
  6976. fi
  6977. else
  6978. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6979. fi
  6980. if test -n "$ac_tool_prefix"; then
  6981. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6982. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6984. $as_echo_n "checking for $ac_word... " >&6; }
  6985. if ${ac_cv_prog_NMEDIT+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. if test -n "$NMEDIT"; then
  6989. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6990. else
  6991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6992. for as_dir in $PATH
  6993. do
  6994. IFS=$as_save_IFS
  6995. test -z "$as_dir" && as_dir=.
  6996. for ac_exec_ext in '' $ac_executable_extensions; do
  6997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6998. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7000. break 2
  7001. fi
  7002. done
  7003. done
  7004. IFS=$as_save_IFS
  7005. fi
  7006. fi
  7007. NMEDIT=$ac_cv_prog_NMEDIT
  7008. if test -n "$NMEDIT"; then
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7010. $as_echo "$NMEDIT" >&6; }
  7011. else
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7013. $as_echo "no" >&6; }
  7014. fi
  7015. fi
  7016. if test -z "$ac_cv_prog_NMEDIT"; then
  7017. ac_ct_NMEDIT=$NMEDIT
  7018. # Extract the first word of "nmedit", so it can be a program name with args.
  7019. set dummy nmedit; ac_word=$2
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7021. $as_echo_n "checking for $ac_word... " >&6; }
  7022. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7023. $as_echo_n "(cached) " >&6
  7024. else
  7025. if test -n "$ac_ct_NMEDIT"; then
  7026. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7027. else
  7028. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7029. for as_dir in $PATH
  7030. do
  7031. IFS=$as_save_IFS
  7032. test -z "$as_dir" && as_dir=.
  7033. for ac_exec_ext in '' $ac_executable_extensions; do
  7034. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7035. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7036. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7037. break 2
  7038. fi
  7039. done
  7040. done
  7041. IFS=$as_save_IFS
  7042. fi
  7043. fi
  7044. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7045. if test -n "$ac_ct_NMEDIT"; then
  7046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7047. $as_echo "$ac_ct_NMEDIT" >&6; }
  7048. else
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7050. $as_echo "no" >&6; }
  7051. fi
  7052. if test "x$ac_ct_NMEDIT" = x; then
  7053. NMEDIT=":"
  7054. else
  7055. case $cross_compiling:$ac_tool_warned in
  7056. yes:)
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7058. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7059. ac_tool_warned=yes ;;
  7060. esac
  7061. NMEDIT=$ac_ct_NMEDIT
  7062. fi
  7063. else
  7064. NMEDIT="$ac_cv_prog_NMEDIT"
  7065. fi
  7066. if test -n "$ac_tool_prefix"; then
  7067. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7068. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7070. $as_echo_n "checking for $ac_word... " >&6; }
  7071. if ${ac_cv_prog_LIPO+:} false; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. if test -n "$LIPO"; then
  7075. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7076. else
  7077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7078. for as_dir in $PATH
  7079. do
  7080. IFS=$as_save_IFS
  7081. test -z "$as_dir" && as_dir=.
  7082. for ac_exec_ext in '' $ac_executable_extensions; do
  7083. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7084. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7085. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7086. break 2
  7087. fi
  7088. done
  7089. done
  7090. IFS=$as_save_IFS
  7091. fi
  7092. fi
  7093. LIPO=$ac_cv_prog_LIPO
  7094. if test -n "$LIPO"; then
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7096. $as_echo "$LIPO" >&6; }
  7097. else
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7099. $as_echo "no" >&6; }
  7100. fi
  7101. fi
  7102. if test -z "$ac_cv_prog_LIPO"; then
  7103. ac_ct_LIPO=$LIPO
  7104. # Extract the first word of "lipo", so it can be a program name with args.
  7105. set dummy lipo; ac_word=$2
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7107. $as_echo_n "checking for $ac_word... " >&6; }
  7108. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. if test -n "$ac_ct_LIPO"; then
  7112. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7113. else
  7114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7115. for as_dir in $PATH
  7116. do
  7117. IFS=$as_save_IFS
  7118. test -z "$as_dir" && as_dir=.
  7119. for ac_exec_ext in '' $ac_executable_extensions; do
  7120. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7121. ac_cv_prog_ac_ct_LIPO="lipo"
  7122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7123. break 2
  7124. fi
  7125. done
  7126. done
  7127. IFS=$as_save_IFS
  7128. fi
  7129. fi
  7130. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7131. if test -n "$ac_ct_LIPO"; then
  7132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7133. $as_echo "$ac_ct_LIPO" >&6; }
  7134. else
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7136. $as_echo "no" >&6; }
  7137. fi
  7138. if test "x$ac_ct_LIPO" = x; then
  7139. LIPO=":"
  7140. else
  7141. case $cross_compiling:$ac_tool_warned in
  7142. yes:)
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7144. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7145. ac_tool_warned=yes ;;
  7146. esac
  7147. LIPO=$ac_ct_LIPO
  7148. fi
  7149. else
  7150. LIPO="$ac_cv_prog_LIPO"
  7151. fi
  7152. if test -n "$ac_tool_prefix"; then
  7153. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7154. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7156. $as_echo_n "checking for $ac_word... " >&6; }
  7157. if ${ac_cv_prog_OTOOL+:} false; then :
  7158. $as_echo_n "(cached) " >&6
  7159. else
  7160. if test -n "$OTOOL"; then
  7161. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7162. else
  7163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7164. for as_dir in $PATH
  7165. do
  7166. IFS=$as_save_IFS
  7167. test -z "$as_dir" && as_dir=.
  7168. for ac_exec_ext in '' $ac_executable_extensions; do
  7169. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7170. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7172. break 2
  7173. fi
  7174. done
  7175. done
  7176. IFS=$as_save_IFS
  7177. fi
  7178. fi
  7179. OTOOL=$ac_cv_prog_OTOOL
  7180. if test -n "$OTOOL"; then
  7181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7182. $as_echo "$OTOOL" >&6; }
  7183. else
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7185. $as_echo "no" >&6; }
  7186. fi
  7187. fi
  7188. if test -z "$ac_cv_prog_OTOOL"; then
  7189. ac_ct_OTOOL=$OTOOL
  7190. # Extract the first word of "otool", so it can be a program name with args.
  7191. set dummy otool; ac_word=$2
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7193. $as_echo_n "checking for $ac_word... " >&6; }
  7194. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. if test -n "$ac_ct_OTOOL"; then
  7198. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7199. else
  7200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7201. for as_dir in $PATH
  7202. do
  7203. IFS=$as_save_IFS
  7204. test -z "$as_dir" && as_dir=.
  7205. for ac_exec_ext in '' $ac_executable_extensions; do
  7206. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7207. ac_cv_prog_ac_ct_OTOOL="otool"
  7208. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7209. break 2
  7210. fi
  7211. done
  7212. done
  7213. IFS=$as_save_IFS
  7214. fi
  7215. fi
  7216. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7217. if test -n "$ac_ct_OTOOL"; then
  7218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7219. $as_echo "$ac_ct_OTOOL" >&6; }
  7220. else
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7222. $as_echo "no" >&6; }
  7223. fi
  7224. if test "x$ac_ct_OTOOL" = x; then
  7225. OTOOL=":"
  7226. else
  7227. case $cross_compiling:$ac_tool_warned in
  7228. yes:)
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7230. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7231. ac_tool_warned=yes ;;
  7232. esac
  7233. OTOOL=$ac_ct_OTOOL
  7234. fi
  7235. else
  7236. OTOOL="$ac_cv_prog_OTOOL"
  7237. fi
  7238. if test -n "$ac_tool_prefix"; then
  7239. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7240. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7242. $as_echo_n "checking for $ac_word... " >&6; }
  7243. if ${ac_cv_prog_OTOOL64+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. if test -n "$OTOOL64"; then
  7247. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7248. else
  7249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7250. for as_dir in $PATH
  7251. do
  7252. IFS=$as_save_IFS
  7253. test -z "$as_dir" && as_dir=.
  7254. for ac_exec_ext in '' $ac_executable_extensions; do
  7255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7256. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7257. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7258. break 2
  7259. fi
  7260. done
  7261. done
  7262. IFS=$as_save_IFS
  7263. fi
  7264. fi
  7265. OTOOL64=$ac_cv_prog_OTOOL64
  7266. if test -n "$OTOOL64"; then
  7267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7268. $as_echo "$OTOOL64" >&6; }
  7269. else
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7271. $as_echo "no" >&6; }
  7272. fi
  7273. fi
  7274. if test -z "$ac_cv_prog_OTOOL64"; then
  7275. ac_ct_OTOOL64=$OTOOL64
  7276. # Extract the first word of "otool64", so it can be a program name with args.
  7277. set dummy otool64; ac_word=$2
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7279. $as_echo_n "checking for $ac_word... " >&6; }
  7280. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. if test -n "$ac_ct_OTOOL64"; then
  7284. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7285. else
  7286. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7287. for as_dir in $PATH
  7288. do
  7289. IFS=$as_save_IFS
  7290. test -z "$as_dir" && as_dir=.
  7291. for ac_exec_ext in '' $ac_executable_extensions; do
  7292. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7293. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7294. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7295. break 2
  7296. fi
  7297. done
  7298. done
  7299. IFS=$as_save_IFS
  7300. fi
  7301. fi
  7302. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7303. if test -n "$ac_ct_OTOOL64"; then
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7305. $as_echo "$ac_ct_OTOOL64" >&6; }
  7306. else
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7308. $as_echo "no" >&6; }
  7309. fi
  7310. if test "x$ac_ct_OTOOL64" = x; then
  7311. OTOOL64=":"
  7312. else
  7313. case $cross_compiling:$ac_tool_warned in
  7314. yes:)
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7316. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7317. ac_tool_warned=yes ;;
  7318. esac
  7319. OTOOL64=$ac_ct_OTOOL64
  7320. fi
  7321. else
  7322. OTOOL64="$ac_cv_prog_OTOOL64"
  7323. fi
  7324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7325. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7326. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7327. $as_echo_n "(cached) " >&6
  7328. else
  7329. lt_cv_apple_cc_single_mod=no
  7330. if test -z "${LT_MULTI_MODULE}"; then
  7331. # By default we will add the -single_module flag. You can override
  7332. # by either setting the environment variable LT_MULTI_MODULE
  7333. # non-empty at configure time, or by adding -multi_module to the
  7334. # link flags.
  7335. rm -rf libconftest.dylib*
  7336. echo "int foo(void){return 1;}" > conftest.c
  7337. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7338. -dynamiclib -Wl,-single_module conftest.c" >&5
  7339. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7340. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7341. _lt_result=$?
  7342. # If there is a non-empty error log, and "single_module"
  7343. # appears in it, assume the flag caused a linker warning
  7344. if test -s conftest.err && $GREP single_module conftest.err; then
  7345. cat conftest.err >&5
  7346. # Otherwise, if the output was created with a 0 exit code from
  7347. # the compiler, it worked.
  7348. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7349. lt_cv_apple_cc_single_mod=yes
  7350. else
  7351. cat conftest.err >&5
  7352. fi
  7353. rm -rf libconftest.dylib*
  7354. rm -f conftest.*
  7355. fi
  7356. fi
  7357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7358. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7360. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7361. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7362. $as_echo_n "(cached) " >&6
  7363. else
  7364. lt_cv_ld_exported_symbols_list=no
  7365. save_LDFLAGS=$LDFLAGS
  7366. echo "_main" > conftest.sym
  7367. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7369. /* end confdefs.h. */
  7370. int
  7371. main ()
  7372. {
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. if ac_fn_c_try_link "$LINENO"; then :
  7378. lt_cv_ld_exported_symbols_list=yes
  7379. else
  7380. lt_cv_ld_exported_symbols_list=no
  7381. fi
  7382. rm -f core conftest.err conftest.$ac_objext \
  7383. conftest$ac_exeext conftest.$ac_ext
  7384. LDFLAGS="$save_LDFLAGS"
  7385. fi
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7387. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7389. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7390. if ${lt_cv_ld_force_load+:} false; then :
  7391. $as_echo_n "(cached) " >&6
  7392. else
  7393. lt_cv_ld_force_load=no
  7394. cat > conftest.c << _LT_EOF
  7395. int forced_loaded() { return 2;}
  7396. _LT_EOF
  7397. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7398. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7399. echo "$AR cru libconftest.a conftest.o" >&5
  7400. $AR cru libconftest.a conftest.o 2>&5
  7401. echo "$RANLIB libconftest.a" >&5
  7402. $RANLIB libconftest.a 2>&5
  7403. cat > conftest.c << _LT_EOF
  7404. int main() { return 0;}
  7405. _LT_EOF
  7406. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7407. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7408. _lt_result=$?
  7409. if test -s conftest.err && $GREP force_load conftest.err; then
  7410. cat conftest.err >&5
  7411. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7412. lt_cv_ld_force_load=yes
  7413. else
  7414. cat conftest.err >&5
  7415. fi
  7416. rm -f conftest.err libconftest.a conftest conftest.c
  7417. rm -rf conftest.dSYM
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7420. $as_echo "$lt_cv_ld_force_load" >&6; }
  7421. case $host_os in
  7422. rhapsody* | darwin1.[012])
  7423. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7424. darwin1.*)
  7425. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7426. darwin*) # darwin 5.x on
  7427. # if running on 10.5 or later, the deployment target defaults
  7428. # to the OS version, if on x86, and 10.4, the deployment
  7429. # target defaults to 10.4. Don't you love it?
  7430. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7431. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7432. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7433. 10.[012]*)
  7434. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7435. 10.*)
  7436. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7437. esac
  7438. ;;
  7439. esac
  7440. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7441. _lt_dar_single_mod='$single_module'
  7442. fi
  7443. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7444. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7445. else
  7446. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7447. fi
  7448. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7449. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7450. else
  7451. _lt_dsymutil=
  7452. fi
  7453. ;;
  7454. esac
  7455. for ac_header in dlfcn.h
  7456. do :
  7457. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7458. "
  7459. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7460. cat >>confdefs.h <<_ACEOF
  7461. #define HAVE_DLFCN_H 1
  7462. _ACEOF
  7463. fi
  7464. done
  7465. # Set options
  7466. # Check whether --enable-static was given.
  7467. if test "${enable_static+set}" = set; then :
  7468. enableval=$enable_static; p=${PACKAGE-default}
  7469. case $enableval in
  7470. yes) enable_static=yes ;;
  7471. no) enable_static=no ;;
  7472. *)
  7473. enable_static=no
  7474. # Look at the argument we got. We use all the common list separators.
  7475. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7476. for pkg in $enableval; do
  7477. IFS="$lt_save_ifs"
  7478. if test "X$pkg" = "X$p"; then
  7479. enable_static=yes
  7480. fi
  7481. done
  7482. IFS="$lt_save_ifs"
  7483. ;;
  7484. esac
  7485. else
  7486. enable_static=no
  7487. fi
  7488. # Check whether --with-pic was given.
  7489. if test "${with_pic+set}" = set; then :
  7490. withval=$with_pic; lt_p=${PACKAGE-default}
  7491. case $withval in
  7492. yes|no) pic_mode=$withval ;;
  7493. *)
  7494. pic_mode=default
  7495. # Look at the argument we got. We use all the common list separators.
  7496. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7497. for lt_pkg in $withval; do
  7498. IFS="$lt_save_ifs"
  7499. if test "X$lt_pkg" = "X$lt_p"; then
  7500. pic_mode=yes
  7501. fi
  7502. done
  7503. IFS="$lt_save_ifs"
  7504. ;;
  7505. esac
  7506. else
  7507. pic_mode=default
  7508. fi
  7509. test -z "$pic_mode" && pic_mode=yes
  7510. enable_dlopen=no
  7511. enable_win32_dll=no
  7512. # Check whether --enable-shared was given.
  7513. if test "${enable_shared+set}" = set; then :
  7514. enableval=$enable_shared; p=${PACKAGE-default}
  7515. case $enableval in
  7516. yes) enable_shared=yes ;;
  7517. no) enable_shared=no ;;
  7518. *)
  7519. enable_shared=no
  7520. # Look at the argument we got. We use all the common list separators.
  7521. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7522. for pkg in $enableval; do
  7523. IFS="$lt_save_ifs"
  7524. if test "X$pkg" = "X$p"; then
  7525. enable_shared=yes
  7526. fi
  7527. done
  7528. IFS="$lt_save_ifs"
  7529. ;;
  7530. esac
  7531. else
  7532. enable_shared=yes
  7533. fi
  7534. # Check whether --enable-fast-install was given.
  7535. if test "${enable_fast_install+set}" = set; then :
  7536. enableval=$enable_fast_install; p=${PACKAGE-default}
  7537. case $enableval in
  7538. yes) enable_fast_install=yes ;;
  7539. no) enable_fast_install=no ;;
  7540. *)
  7541. enable_fast_install=no
  7542. # Look at the argument we got. We use all the common list separators.
  7543. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7544. for pkg in $enableval; do
  7545. IFS="$lt_save_ifs"
  7546. if test "X$pkg" = "X$p"; then
  7547. enable_fast_install=yes
  7548. fi
  7549. done
  7550. IFS="$lt_save_ifs"
  7551. ;;
  7552. esac
  7553. else
  7554. enable_fast_install=yes
  7555. fi
  7556. # This can be used to rebuild libtool when needed
  7557. LIBTOOL_DEPS="$ltmain"
  7558. # Always use our own libtool.
  7559. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7560. test -z "$LN_S" && LN_S="ln -s"
  7561. if test -n "${ZSH_VERSION+set}" ; then
  7562. setopt NO_GLOB_SUBST
  7563. fi
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7565. $as_echo_n "checking for objdir... " >&6; }
  7566. if ${lt_cv_objdir+:} false; then :
  7567. $as_echo_n "(cached) " >&6
  7568. else
  7569. rm -f .libs 2>/dev/null
  7570. mkdir .libs 2>/dev/null
  7571. if test -d .libs; then
  7572. lt_cv_objdir=.libs
  7573. else
  7574. # MS-DOS does not allow filenames that begin with a dot.
  7575. lt_cv_objdir=_libs
  7576. fi
  7577. rmdir .libs 2>/dev/null
  7578. fi
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7580. $as_echo "$lt_cv_objdir" >&6; }
  7581. objdir=$lt_cv_objdir
  7582. cat >>confdefs.h <<_ACEOF
  7583. #define LT_OBJDIR "$lt_cv_objdir/"
  7584. _ACEOF
  7585. case $host_os in
  7586. aix3*)
  7587. # AIX sometimes has problems with the GCC collect2 program. For some
  7588. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7589. # vanish in a puff of smoke.
  7590. if test "X${COLLECT_NAMES+set}" != Xset; then
  7591. COLLECT_NAMES=
  7592. export COLLECT_NAMES
  7593. fi
  7594. ;;
  7595. esac
  7596. # Global variables:
  7597. ofile=libtool
  7598. can_build_shared=yes
  7599. # All known linkers require a `.a' archive for static linking (except MSVC,
  7600. # which needs '.lib').
  7601. libext=a
  7602. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7603. old_CC="$CC"
  7604. old_CFLAGS="$CFLAGS"
  7605. # Set sane defaults for various variables
  7606. test -z "$CC" && CC=cc
  7607. test -z "$LTCC" && LTCC=$CC
  7608. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7609. test -z "$LD" && LD=ld
  7610. test -z "$ac_objext" && ac_objext=o
  7611. for cc_temp in $compiler""; do
  7612. case $cc_temp in
  7613. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7614. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7615. \-*) ;;
  7616. *) break;;
  7617. esac
  7618. done
  7619. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7620. # Only perform the check for file, if the check method requires it
  7621. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7622. case $deplibs_check_method in
  7623. file_magic*)
  7624. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7626. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7627. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7628. $as_echo_n "(cached) " >&6
  7629. else
  7630. case $MAGIC_CMD in
  7631. [\\/*] | ?:[\\/]*)
  7632. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7633. ;;
  7634. *)
  7635. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7636. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7637. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7638. for ac_dir in $ac_dummy; do
  7639. IFS="$lt_save_ifs"
  7640. test -z "$ac_dir" && ac_dir=.
  7641. if test -f $ac_dir/${ac_tool_prefix}file; then
  7642. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7643. if test -n "$file_magic_test_file"; then
  7644. case $deplibs_check_method in
  7645. "file_magic "*)
  7646. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7647. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7648. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7649. $EGREP "$file_magic_regex" > /dev/null; then
  7650. :
  7651. else
  7652. cat <<_LT_EOF 1>&2
  7653. *** Warning: the command libtool uses to detect shared libraries,
  7654. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7655. *** The result is that libtool may fail to recognize shared libraries
  7656. *** as such. This will affect the creation of libtool libraries that
  7657. *** depend on shared libraries, but programs linked with such libtool
  7658. *** libraries will work regardless of this problem. Nevertheless, you
  7659. *** may want to report the problem to your system manager and/or to
  7660. *** bug-libtool@gnu.org
  7661. _LT_EOF
  7662. fi ;;
  7663. esac
  7664. fi
  7665. break
  7666. fi
  7667. done
  7668. IFS="$lt_save_ifs"
  7669. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7670. ;;
  7671. esac
  7672. fi
  7673. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7674. if test -n "$MAGIC_CMD"; then
  7675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7676. $as_echo "$MAGIC_CMD" >&6; }
  7677. else
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7679. $as_echo "no" >&6; }
  7680. fi
  7681. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7682. if test -n "$ac_tool_prefix"; then
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7684. $as_echo_n "checking for file... " >&6; }
  7685. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. case $MAGIC_CMD in
  7689. [\\/*] | ?:[\\/]*)
  7690. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7691. ;;
  7692. *)
  7693. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7694. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7695. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7696. for ac_dir in $ac_dummy; do
  7697. IFS="$lt_save_ifs"
  7698. test -z "$ac_dir" && ac_dir=.
  7699. if test -f $ac_dir/file; then
  7700. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7701. if test -n "$file_magic_test_file"; then
  7702. case $deplibs_check_method in
  7703. "file_magic "*)
  7704. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7705. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7706. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7707. $EGREP "$file_magic_regex" > /dev/null; then
  7708. :
  7709. else
  7710. cat <<_LT_EOF 1>&2
  7711. *** Warning: the command libtool uses to detect shared libraries,
  7712. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7713. *** The result is that libtool may fail to recognize shared libraries
  7714. *** as such. This will affect the creation of libtool libraries that
  7715. *** depend on shared libraries, but programs linked with such libtool
  7716. *** libraries will work regardless of this problem. Nevertheless, you
  7717. *** may want to report the problem to your system manager and/or to
  7718. *** bug-libtool@gnu.org
  7719. _LT_EOF
  7720. fi ;;
  7721. esac
  7722. fi
  7723. break
  7724. fi
  7725. done
  7726. IFS="$lt_save_ifs"
  7727. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7728. ;;
  7729. esac
  7730. fi
  7731. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7732. if test -n "$MAGIC_CMD"; then
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7734. $as_echo "$MAGIC_CMD" >&6; }
  7735. else
  7736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7737. $as_echo "no" >&6; }
  7738. fi
  7739. else
  7740. MAGIC_CMD=:
  7741. fi
  7742. fi
  7743. fi
  7744. ;;
  7745. esac
  7746. # Use C for the default configuration in the libtool script
  7747. lt_save_CC="$CC"
  7748. ac_ext=c
  7749. ac_cpp='$CPP $CPPFLAGS'
  7750. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7751. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7752. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7753. # Source file extension for C test sources.
  7754. ac_ext=c
  7755. # Object file extension for compiled C test sources.
  7756. objext=o
  7757. objext=$objext
  7758. # Code to be used in simple compile tests
  7759. lt_simple_compile_test_code="int some_variable = 0;"
  7760. # Code to be used in simple link tests
  7761. lt_simple_link_test_code='int main(){return(0);}'
  7762. # If no C compiler was specified, use CC.
  7763. LTCC=${LTCC-"$CC"}
  7764. # If no C compiler flags were specified, use CFLAGS.
  7765. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7766. # Allow CC to be a program name with arguments.
  7767. compiler=$CC
  7768. # Save the default compiler, since it gets overwritten when the other
  7769. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7770. compiler_DEFAULT=$CC
  7771. # save warnings/boilerplate of simple test code
  7772. ac_outfile=conftest.$ac_objext
  7773. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7774. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7775. _lt_compiler_boilerplate=`cat conftest.err`
  7776. $RM conftest*
  7777. ac_outfile=conftest.$ac_objext
  7778. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7779. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7780. _lt_linker_boilerplate=`cat conftest.err`
  7781. $RM -r conftest*
  7782. ## CAVEAT EMPTOR:
  7783. ## There is no encapsulation within the following macros, do not change
  7784. ## the running order or otherwise move them around unless you know exactly
  7785. ## what you are doing...
  7786. if test -n "$compiler"; then
  7787. lt_prog_compiler_no_builtin_flag=
  7788. if test "$GCC" = yes; then
  7789. case $cc_basename in
  7790. nvcc*)
  7791. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7792. *)
  7793. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7794. esac
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7796. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7797. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7798. $as_echo_n "(cached) " >&6
  7799. else
  7800. lt_cv_prog_compiler_rtti_exceptions=no
  7801. ac_outfile=conftest.$ac_objext
  7802. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7803. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7804. # Insert the option either (1) after the last *FLAGS variable, or
  7805. # (2) before a word containing "conftest.", or (3) at the end.
  7806. # Note that $ac_compile itself does not contain backslashes and begins
  7807. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7808. # The option is referenced via a variable to avoid confusing sed.
  7809. lt_compile=`echo "$ac_compile" | $SED \
  7810. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7811. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7812. -e 's:$: $lt_compiler_flag:'`
  7813. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7814. (eval "$lt_compile" 2>conftest.err)
  7815. ac_status=$?
  7816. cat conftest.err >&5
  7817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. if (exit $ac_status) && test -s "$ac_outfile"; then
  7819. # The compiler can only warn and ignore the option if not recognized
  7820. # So say no if there are warnings other than the usual output.
  7821. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7822. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7823. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7824. lt_cv_prog_compiler_rtti_exceptions=yes
  7825. fi
  7826. fi
  7827. $RM conftest*
  7828. fi
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7830. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7831. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7832. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7833. else
  7834. :
  7835. fi
  7836. fi
  7837. lt_prog_compiler_wl=
  7838. lt_prog_compiler_pic=
  7839. lt_prog_compiler_static=
  7840. if test "$GCC" = yes; then
  7841. lt_prog_compiler_wl='-Wl,'
  7842. lt_prog_compiler_static='-static'
  7843. case $host_os in
  7844. aix*)
  7845. # All AIX code is PIC.
  7846. if test "$host_cpu" = ia64; then
  7847. # AIX 5 now supports IA64 processor
  7848. lt_prog_compiler_static='-Bstatic'
  7849. fi
  7850. ;;
  7851. amigaos*)
  7852. case $host_cpu in
  7853. powerpc)
  7854. # see comment about AmigaOS4 .so support
  7855. lt_prog_compiler_pic='-fPIC'
  7856. ;;
  7857. m68k)
  7858. # FIXME: we need at least 68020 code to build shared libraries, but
  7859. # adding the `-m68020' flag to GCC prevents building anything better,
  7860. # like `-m68040'.
  7861. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7862. ;;
  7863. esac
  7864. ;;
  7865. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7866. # PIC is the default for these OSes.
  7867. ;;
  7868. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7869. # This hack is so that the source file can tell whether it is being
  7870. # built for inclusion in a dll (and should export symbols for example).
  7871. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7872. # (--disable-auto-import) libraries
  7873. lt_prog_compiler_pic='-DDLL_EXPORT'
  7874. ;;
  7875. darwin* | rhapsody*)
  7876. # PIC is the default on this platform
  7877. # Common symbols not allowed in MH_DYLIB files
  7878. lt_prog_compiler_pic='-fno-common'
  7879. ;;
  7880. haiku*)
  7881. # PIC is the default for Haiku.
  7882. # The "-static" flag exists, but is broken.
  7883. lt_prog_compiler_static=
  7884. ;;
  7885. hpux*)
  7886. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7887. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7888. # sets the default TLS model and affects inlining.
  7889. case $host_cpu in
  7890. hppa*64*)
  7891. # +Z the default
  7892. ;;
  7893. *)
  7894. lt_prog_compiler_pic='-fPIC'
  7895. ;;
  7896. esac
  7897. ;;
  7898. interix[3-9]*)
  7899. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7900. # Instead, we relocate shared libraries at runtime.
  7901. ;;
  7902. msdosdjgpp*)
  7903. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7904. # on systems that don't support them.
  7905. lt_prog_compiler_can_build_shared=no
  7906. enable_shared=no
  7907. ;;
  7908. *nto* | *qnx*)
  7909. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7910. # it will coredump.
  7911. lt_prog_compiler_pic='-fPIC -shared'
  7912. ;;
  7913. sysv4*MP*)
  7914. if test -d /usr/nec; then
  7915. lt_prog_compiler_pic=-Kconform_pic
  7916. fi
  7917. ;;
  7918. *)
  7919. lt_prog_compiler_pic='-fPIC'
  7920. ;;
  7921. esac
  7922. case $cc_basename in
  7923. nvcc*) # Cuda Compiler Driver 2.2
  7924. lt_prog_compiler_wl='-Xlinker '
  7925. if test -n "$lt_prog_compiler_pic"; then
  7926. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7927. fi
  7928. ;;
  7929. esac
  7930. else
  7931. # PORTME Check for flag to pass linker flags through the system compiler.
  7932. case $host_os in
  7933. aix*)
  7934. lt_prog_compiler_wl='-Wl,'
  7935. if test "$host_cpu" = ia64; then
  7936. # AIX 5 now supports IA64 processor
  7937. lt_prog_compiler_static='-Bstatic'
  7938. else
  7939. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7940. fi
  7941. ;;
  7942. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7943. # This hack is so that the source file can tell whether it is being
  7944. # built for inclusion in a dll (and should export symbols for example).
  7945. lt_prog_compiler_pic='-DDLL_EXPORT'
  7946. ;;
  7947. hpux9* | hpux10* | hpux11*)
  7948. lt_prog_compiler_wl='-Wl,'
  7949. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7950. # not for PA HP-UX.
  7951. case $host_cpu in
  7952. hppa*64*|ia64*)
  7953. # +Z the default
  7954. ;;
  7955. *)
  7956. lt_prog_compiler_pic='+Z'
  7957. ;;
  7958. esac
  7959. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7960. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7961. ;;
  7962. irix5* | irix6* | nonstopux*)
  7963. lt_prog_compiler_wl='-Wl,'
  7964. # PIC (with -KPIC) is the default.
  7965. lt_prog_compiler_static='-non_shared'
  7966. ;;
  7967. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7968. case $cc_basename in
  7969. # old Intel for x86_64 which still supported -KPIC.
  7970. ecc*)
  7971. lt_prog_compiler_wl='-Wl,'
  7972. lt_prog_compiler_pic='-KPIC'
  7973. lt_prog_compiler_static='-static'
  7974. ;;
  7975. # icc used to be incompatible with GCC.
  7976. # ICC 10 doesn't accept -KPIC any more.
  7977. icc* | ifort*)
  7978. lt_prog_compiler_wl='-Wl,'
  7979. lt_prog_compiler_pic='-fPIC'
  7980. lt_prog_compiler_static='-static'
  7981. ;;
  7982. # Lahey Fortran 8.1.
  7983. lf95*)
  7984. lt_prog_compiler_wl='-Wl,'
  7985. lt_prog_compiler_pic='--shared'
  7986. lt_prog_compiler_static='--static'
  7987. ;;
  7988. nagfor*)
  7989. # NAG Fortran compiler
  7990. lt_prog_compiler_wl='-Wl,-Wl,,'
  7991. lt_prog_compiler_pic='-PIC'
  7992. lt_prog_compiler_static='-Bstatic'
  7993. ;;
  7994. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7995. # Portland Group compilers (*not* the Pentium gcc compiler,
  7996. # which looks to be a dead project)
  7997. lt_prog_compiler_wl='-Wl,'
  7998. lt_prog_compiler_pic='-fpic'
  7999. lt_prog_compiler_static='-Bstatic'
  8000. ;;
  8001. ccc*)
  8002. lt_prog_compiler_wl='-Wl,'
  8003. # All Alpha code is PIC.
  8004. lt_prog_compiler_static='-non_shared'
  8005. ;;
  8006. xl* | bgxl* | bgf* | mpixl*)
  8007. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8008. lt_prog_compiler_wl='-Wl,'
  8009. lt_prog_compiler_pic='-qpic'
  8010. lt_prog_compiler_static='-qstaticlink'
  8011. ;;
  8012. *)
  8013. case `$CC -V 2>&1 | sed 5q` in
  8014. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8015. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8016. lt_prog_compiler_pic='-KPIC'
  8017. lt_prog_compiler_static='-Bstatic'
  8018. lt_prog_compiler_wl=''
  8019. ;;
  8020. *Sun\ F* | *Sun*Fortran*)
  8021. lt_prog_compiler_pic='-KPIC'
  8022. lt_prog_compiler_static='-Bstatic'
  8023. lt_prog_compiler_wl='-Qoption ld '
  8024. ;;
  8025. *Sun\ C*)
  8026. # Sun C 5.9
  8027. lt_prog_compiler_pic='-KPIC'
  8028. lt_prog_compiler_static='-Bstatic'
  8029. lt_prog_compiler_wl='-Wl,'
  8030. ;;
  8031. *Intel*\ [CF]*Compiler*)
  8032. lt_prog_compiler_wl='-Wl,'
  8033. lt_prog_compiler_pic='-fPIC'
  8034. lt_prog_compiler_static='-static'
  8035. ;;
  8036. *Portland\ Group*)
  8037. lt_prog_compiler_wl='-Wl,'
  8038. lt_prog_compiler_pic='-fpic'
  8039. lt_prog_compiler_static='-Bstatic'
  8040. ;;
  8041. esac
  8042. ;;
  8043. esac
  8044. ;;
  8045. newsos6)
  8046. lt_prog_compiler_pic='-KPIC'
  8047. lt_prog_compiler_static='-Bstatic'
  8048. ;;
  8049. *nto* | *qnx*)
  8050. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8051. # it will coredump.
  8052. lt_prog_compiler_pic='-fPIC -shared'
  8053. ;;
  8054. osf3* | osf4* | osf5*)
  8055. lt_prog_compiler_wl='-Wl,'
  8056. # All OSF/1 code is PIC.
  8057. lt_prog_compiler_static='-non_shared'
  8058. ;;
  8059. rdos*)
  8060. lt_prog_compiler_static='-non_shared'
  8061. ;;
  8062. solaris*)
  8063. lt_prog_compiler_pic='-KPIC'
  8064. lt_prog_compiler_static='-Bstatic'
  8065. case $cc_basename in
  8066. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8067. lt_prog_compiler_wl='-Qoption ld ';;
  8068. *)
  8069. lt_prog_compiler_wl='-Wl,';;
  8070. esac
  8071. ;;
  8072. sunos4*)
  8073. lt_prog_compiler_wl='-Qoption ld '
  8074. lt_prog_compiler_pic='-PIC'
  8075. lt_prog_compiler_static='-Bstatic'
  8076. ;;
  8077. sysv4 | sysv4.2uw2* | sysv4.3*)
  8078. lt_prog_compiler_wl='-Wl,'
  8079. lt_prog_compiler_pic='-KPIC'
  8080. lt_prog_compiler_static='-Bstatic'
  8081. ;;
  8082. sysv4*MP*)
  8083. if test -d /usr/nec ;then
  8084. lt_prog_compiler_pic='-Kconform_pic'
  8085. lt_prog_compiler_static='-Bstatic'
  8086. fi
  8087. ;;
  8088. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8089. lt_prog_compiler_wl='-Wl,'
  8090. lt_prog_compiler_pic='-KPIC'
  8091. lt_prog_compiler_static='-Bstatic'
  8092. ;;
  8093. unicos*)
  8094. lt_prog_compiler_wl='-Wl,'
  8095. lt_prog_compiler_can_build_shared=no
  8096. ;;
  8097. uts4*)
  8098. lt_prog_compiler_pic='-pic'
  8099. lt_prog_compiler_static='-Bstatic'
  8100. ;;
  8101. *)
  8102. lt_prog_compiler_can_build_shared=no
  8103. ;;
  8104. esac
  8105. fi
  8106. case $host_os in
  8107. # For platforms which do not support PIC, -DPIC is meaningless:
  8108. *djgpp*)
  8109. lt_prog_compiler_pic=
  8110. ;;
  8111. *)
  8112. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8113. ;;
  8114. esac
  8115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8116. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8117. if ${lt_cv_prog_compiler_pic+:} false; then :
  8118. $as_echo_n "(cached) " >&6
  8119. else
  8120. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8121. fi
  8122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8123. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8124. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8125. #
  8126. # Check to make sure the PIC flag actually works.
  8127. #
  8128. if test -n "$lt_prog_compiler_pic"; then
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8130. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8131. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8132. $as_echo_n "(cached) " >&6
  8133. else
  8134. lt_cv_prog_compiler_pic_works=no
  8135. ac_outfile=conftest.$ac_objext
  8136. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8137. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8138. # Insert the option either (1) after the last *FLAGS variable, or
  8139. # (2) before a word containing "conftest.", or (3) at the end.
  8140. # Note that $ac_compile itself does not contain backslashes and begins
  8141. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8142. # The option is referenced via a variable to avoid confusing sed.
  8143. lt_compile=`echo "$ac_compile" | $SED \
  8144. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8145. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8146. -e 's:$: $lt_compiler_flag:'`
  8147. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8148. (eval "$lt_compile" 2>conftest.err)
  8149. ac_status=$?
  8150. cat conftest.err >&5
  8151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8152. if (exit $ac_status) && test -s "$ac_outfile"; then
  8153. # The compiler can only warn and ignore the option if not recognized
  8154. # So say no if there are warnings other than the usual output.
  8155. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8156. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8157. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8158. lt_cv_prog_compiler_pic_works=yes
  8159. fi
  8160. fi
  8161. $RM conftest*
  8162. fi
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8164. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8165. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8166. case $lt_prog_compiler_pic in
  8167. "" | " "*) ;;
  8168. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8169. esac
  8170. else
  8171. lt_prog_compiler_pic=
  8172. lt_prog_compiler_can_build_shared=no
  8173. fi
  8174. fi
  8175. #
  8176. # Check to make sure the static flag actually works.
  8177. #
  8178. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8180. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8181. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8182. $as_echo_n "(cached) " >&6
  8183. else
  8184. lt_cv_prog_compiler_static_works=no
  8185. save_LDFLAGS="$LDFLAGS"
  8186. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8187. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8188. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8189. # The linker can only warn and ignore the option if not recognized
  8190. # So say no if there are warnings
  8191. if test -s conftest.err; then
  8192. # Append any errors to the config.log.
  8193. cat conftest.err 1>&5
  8194. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8195. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8196. if diff conftest.exp conftest.er2 >/dev/null; then
  8197. lt_cv_prog_compiler_static_works=yes
  8198. fi
  8199. else
  8200. lt_cv_prog_compiler_static_works=yes
  8201. fi
  8202. fi
  8203. $RM -r conftest*
  8204. LDFLAGS="$save_LDFLAGS"
  8205. fi
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8207. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8208. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8209. :
  8210. else
  8211. lt_prog_compiler_static=
  8212. fi
  8213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8214. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8215. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8216. $as_echo_n "(cached) " >&6
  8217. else
  8218. lt_cv_prog_compiler_c_o=no
  8219. $RM -r conftest 2>/dev/null
  8220. mkdir conftest
  8221. cd conftest
  8222. mkdir out
  8223. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8224. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8225. # Insert the option either (1) after the last *FLAGS variable, or
  8226. # (2) before a word containing "conftest.", or (3) at the end.
  8227. # Note that $ac_compile itself does not contain backslashes and begins
  8228. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8229. lt_compile=`echo "$ac_compile" | $SED \
  8230. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8231. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8232. -e 's:$: $lt_compiler_flag:'`
  8233. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8234. (eval "$lt_compile" 2>out/conftest.err)
  8235. ac_status=$?
  8236. cat out/conftest.err >&5
  8237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8238. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8239. then
  8240. # The compiler can only warn and ignore the option if not recognized
  8241. # So say no if there are warnings
  8242. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8243. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8244. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8245. lt_cv_prog_compiler_c_o=yes
  8246. fi
  8247. fi
  8248. chmod u+w . 2>&5
  8249. $RM conftest*
  8250. # SGI C++ compiler will create directory out/ii_files/ for
  8251. # template instantiation
  8252. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8253. $RM out/* && rmdir out
  8254. cd ..
  8255. $RM -r conftest
  8256. $RM conftest*
  8257. fi
  8258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8259. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8261. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8262. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8263. $as_echo_n "(cached) " >&6
  8264. else
  8265. lt_cv_prog_compiler_c_o=no
  8266. $RM -r conftest 2>/dev/null
  8267. mkdir conftest
  8268. cd conftest
  8269. mkdir out
  8270. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8271. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8272. # Insert the option either (1) after the last *FLAGS variable, or
  8273. # (2) before a word containing "conftest.", or (3) at the end.
  8274. # Note that $ac_compile itself does not contain backslashes and begins
  8275. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8276. lt_compile=`echo "$ac_compile" | $SED \
  8277. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8278. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8279. -e 's:$: $lt_compiler_flag:'`
  8280. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8281. (eval "$lt_compile" 2>out/conftest.err)
  8282. ac_status=$?
  8283. cat out/conftest.err >&5
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8286. then
  8287. # The compiler can only warn and ignore the option if not recognized
  8288. # So say no if there are warnings
  8289. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8290. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8291. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8292. lt_cv_prog_compiler_c_o=yes
  8293. fi
  8294. fi
  8295. chmod u+w . 2>&5
  8296. $RM conftest*
  8297. # SGI C++ compiler will create directory out/ii_files/ for
  8298. # template instantiation
  8299. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8300. $RM out/* && rmdir out
  8301. cd ..
  8302. $RM -r conftest
  8303. $RM conftest*
  8304. fi
  8305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8306. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8307. hard_links="nottested"
  8308. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8309. # do not overwrite the value of need_locks provided by the user
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8311. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8312. hard_links=yes
  8313. $RM conftest*
  8314. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8315. touch conftest.a
  8316. ln conftest.a conftest.b 2>&5 || hard_links=no
  8317. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8319. $as_echo "$hard_links" >&6; }
  8320. if test "$hard_links" = no; then
  8321. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8322. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8323. need_locks=warn
  8324. fi
  8325. else
  8326. need_locks=no
  8327. fi
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8329. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8330. runpath_var=
  8331. allow_undefined_flag=
  8332. always_export_symbols=no
  8333. archive_cmds=
  8334. archive_expsym_cmds=
  8335. compiler_needs_object=no
  8336. enable_shared_with_static_runtimes=no
  8337. export_dynamic_flag_spec=
  8338. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8339. hardcode_automatic=no
  8340. hardcode_direct=no
  8341. hardcode_direct_absolute=no
  8342. hardcode_libdir_flag_spec=
  8343. hardcode_libdir_separator=
  8344. hardcode_minus_L=no
  8345. hardcode_shlibpath_var=unsupported
  8346. inherit_rpath=no
  8347. link_all_deplibs=unknown
  8348. module_cmds=
  8349. module_expsym_cmds=
  8350. old_archive_from_new_cmds=
  8351. old_archive_from_expsyms_cmds=
  8352. thread_safe_flag_spec=
  8353. whole_archive_flag_spec=
  8354. # include_expsyms should be a list of space-separated symbols to be *always*
  8355. # included in the symbol list
  8356. include_expsyms=
  8357. # exclude_expsyms can be an extended regexp of symbols to exclude
  8358. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8359. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8360. # as well as any symbol that contains `d'.
  8361. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8362. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8363. # platforms (ab)use it in PIC code, but their linkers get confused if
  8364. # the symbol is explicitly referenced. Since portable code cannot
  8365. # rely on this symbol name, it's probably fine to never include it in
  8366. # preloaded symbol tables.
  8367. # Exclude shared library initialization/finalization symbols.
  8368. extract_expsyms_cmds=
  8369. case $host_os in
  8370. cygwin* | mingw* | pw32* | cegcc*)
  8371. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8372. # When not using gcc, we currently assume that we are using
  8373. # Microsoft Visual C++.
  8374. if test "$GCC" != yes; then
  8375. with_gnu_ld=no
  8376. fi
  8377. ;;
  8378. interix*)
  8379. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8380. with_gnu_ld=yes
  8381. ;;
  8382. openbsd*)
  8383. with_gnu_ld=no
  8384. ;;
  8385. esac
  8386. ld_shlibs=yes
  8387. # On some targets, GNU ld is compatible enough with the native linker
  8388. # that we're better off using the native interface for both.
  8389. lt_use_gnu_ld_interface=no
  8390. if test "$with_gnu_ld" = yes; then
  8391. case $host_os in
  8392. aix*)
  8393. # The AIX port of GNU ld has always aspired to compatibility
  8394. # with the native linker. However, as the warning in the GNU ld
  8395. # block says, versions before 2.19.5* couldn't really create working
  8396. # shared libraries, regardless of the interface used.
  8397. case `$LD -v 2>&1` in
  8398. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8399. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8400. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8401. *)
  8402. lt_use_gnu_ld_interface=yes
  8403. ;;
  8404. esac
  8405. ;;
  8406. *)
  8407. lt_use_gnu_ld_interface=yes
  8408. ;;
  8409. esac
  8410. fi
  8411. if test "$lt_use_gnu_ld_interface" = yes; then
  8412. # If archive_cmds runs LD, not CC, wlarc should be empty
  8413. wlarc='${wl}'
  8414. # Set some defaults for GNU ld with shared library support. These
  8415. # are reset later if shared libraries are not supported. Putting them
  8416. # here allows them to be overridden if necessary.
  8417. runpath_var=LD_RUN_PATH
  8418. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8419. export_dynamic_flag_spec='${wl}--export-dynamic'
  8420. # ancient GNU ld didn't support --whole-archive et. al.
  8421. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8422. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8423. else
  8424. whole_archive_flag_spec=
  8425. fi
  8426. supports_anon_versioning=no
  8427. case `$LD -v 2>&1` in
  8428. *GNU\ gold*) supports_anon_versioning=yes ;;
  8429. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8430. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8431. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8432. *\ 2.11.*) ;; # other 2.11 versions
  8433. *) supports_anon_versioning=yes ;;
  8434. esac
  8435. # See if GNU ld supports shared libraries.
  8436. case $host_os in
  8437. aix[3-9]*)
  8438. # On AIX/PPC, the GNU linker is very broken
  8439. if test "$host_cpu" != ia64; then
  8440. ld_shlibs=no
  8441. cat <<_LT_EOF 1>&2
  8442. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8443. *** to be unable to reliably create shared libraries on AIX.
  8444. *** Therefore, libtool is disabling shared libraries support. If you
  8445. *** really care for shared libraries, you may want to install binutils
  8446. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8447. *** You will then need to restart the configuration process.
  8448. _LT_EOF
  8449. fi
  8450. ;;
  8451. amigaos*)
  8452. case $host_cpu in
  8453. powerpc)
  8454. # see comment about AmigaOS4 .so support
  8455. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8456. archive_expsym_cmds=''
  8457. ;;
  8458. m68k)
  8459. 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)'
  8460. hardcode_libdir_flag_spec='-L$libdir'
  8461. hardcode_minus_L=yes
  8462. ;;
  8463. esac
  8464. ;;
  8465. beos*)
  8466. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8467. allow_undefined_flag=unsupported
  8468. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8469. # support --undefined. This deserves some investigation. FIXME
  8470. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8471. else
  8472. ld_shlibs=no
  8473. fi
  8474. ;;
  8475. cygwin* | mingw* | pw32* | cegcc*)
  8476. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8477. # as there is no search path for DLLs.
  8478. hardcode_libdir_flag_spec='-L$libdir'
  8479. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8480. allow_undefined_flag=unsupported
  8481. always_export_symbols=no
  8482. enable_shared_with_static_runtimes=yes
  8483. 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'
  8484. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8485. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8486. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8487. # If the export-symbols file already is a .def file (1st line
  8488. # is EXPORTS), use it as is; otherwise, prepend...
  8489. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8490. cp $export_symbols $output_objdir/$soname.def;
  8491. else
  8492. echo EXPORTS > $output_objdir/$soname.def;
  8493. cat $export_symbols >> $output_objdir/$soname.def;
  8494. fi~
  8495. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8496. else
  8497. ld_shlibs=no
  8498. fi
  8499. ;;
  8500. haiku*)
  8501. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8502. link_all_deplibs=yes
  8503. ;;
  8504. interix[3-9]*)
  8505. hardcode_direct=no
  8506. hardcode_shlibpath_var=no
  8507. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8508. export_dynamic_flag_spec='${wl}-E'
  8509. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8510. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8511. # default) and relocated if they conflict, which is a slow very memory
  8512. # consuming and fragmenting process. To avoid this, we pick a random,
  8513. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8514. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8515. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8516. 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'
  8517. ;;
  8518. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8519. tmp_diet=no
  8520. if test "$host_os" = linux-dietlibc; then
  8521. case $cc_basename in
  8522. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8523. esac
  8524. fi
  8525. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8526. && test "$tmp_diet" = no
  8527. then
  8528. tmp_addflag=' $pic_flag'
  8529. tmp_sharedflag='-shared'
  8530. case $cc_basename,$host_cpu in
  8531. pgcc*) # Portland Group C compiler
  8532. 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'
  8533. tmp_addflag=' $pic_flag'
  8534. ;;
  8535. pgf77* | pgf90* | pgf95* | pgfortran*)
  8536. # Portland Group f77 and f90 compilers
  8537. 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'
  8538. tmp_addflag=' $pic_flag -Mnomain' ;;
  8539. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8540. tmp_addflag=' -i_dynamic' ;;
  8541. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8542. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8543. ifc* | ifort*) # Intel Fortran compiler
  8544. tmp_addflag=' -nofor_main' ;;
  8545. lf95*) # Lahey Fortran 8.1
  8546. whole_archive_flag_spec=
  8547. tmp_sharedflag='--shared' ;;
  8548. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8549. tmp_sharedflag='-qmkshrobj'
  8550. tmp_addflag= ;;
  8551. nvcc*) # Cuda Compiler Driver 2.2
  8552. 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'
  8553. compiler_needs_object=yes
  8554. ;;
  8555. esac
  8556. case `$CC -V 2>&1 | sed 5q` in
  8557. *Sun\ C*) # Sun C 5.9
  8558. 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'
  8559. compiler_needs_object=yes
  8560. tmp_sharedflag='-G' ;;
  8561. *Sun\ F*) # Sun Fortran 8.3
  8562. tmp_sharedflag='-G' ;;
  8563. esac
  8564. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8565. if test "x$supports_anon_versioning" = xyes; then
  8566. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8567. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8568. echo "local: *; };" >> $output_objdir/$libname.ver~
  8569. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8570. fi
  8571. case $cc_basename in
  8572. xlf* | bgf* | bgxlf* | mpixlf*)
  8573. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8574. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8575. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8576. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8577. if test "x$supports_anon_versioning" = xyes; then
  8578. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8579. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8580. echo "local: *; };" >> $output_objdir/$libname.ver~
  8581. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8582. fi
  8583. ;;
  8584. esac
  8585. else
  8586. ld_shlibs=no
  8587. fi
  8588. ;;
  8589. netbsd*)
  8590. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8591. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8592. wlarc=
  8593. else
  8594. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8595. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8596. fi
  8597. ;;
  8598. solaris*)
  8599. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8600. ld_shlibs=no
  8601. cat <<_LT_EOF 1>&2
  8602. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8603. *** create shared libraries on Solaris systems. Therefore, libtool
  8604. *** is disabling shared libraries support. We urge you to upgrade GNU
  8605. *** binutils to release 2.9.1 or newer. Another option is to modify
  8606. *** your PATH or compiler configuration so that the native linker is
  8607. *** used, and then restart.
  8608. _LT_EOF
  8609. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8610. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8611. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8612. else
  8613. ld_shlibs=no
  8614. fi
  8615. ;;
  8616. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8617. case `$LD -v 2>&1` in
  8618. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8619. ld_shlibs=no
  8620. cat <<_LT_EOF 1>&2
  8621. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8622. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8623. *** is disabling shared libraries support. We urge you to upgrade GNU
  8624. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8625. *** your PATH or compiler configuration so that the native linker is
  8626. *** used, and then restart.
  8627. _LT_EOF
  8628. ;;
  8629. *)
  8630. # For security reasons, it is highly recommended that you always
  8631. # use absolute paths for naming shared libraries, and exclude the
  8632. # DT_RUNPATH tag from executables and libraries. But doing so
  8633. # requires that you compile everything twice, which is a pain.
  8634. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8635. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8636. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8637. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8638. else
  8639. ld_shlibs=no
  8640. fi
  8641. ;;
  8642. esac
  8643. ;;
  8644. sunos4*)
  8645. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8646. wlarc=
  8647. hardcode_direct=yes
  8648. hardcode_shlibpath_var=no
  8649. ;;
  8650. *)
  8651. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8652. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8653. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8654. else
  8655. ld_shlibs=no
  8656. fi
  8657. ;;
  8658. esac
  8659. if test "$ld_shlibs" = no; then
  8660. runpath_var=
  8661. hardcode_libdir_flag_spec=
  8662. export_dynamic_flag_spec=
  8663. whole_archive_flag_spec=
  8664. fi
  8665. else
  8666. # PORTME fill in a description of your system's linker (not GNU ld)
  8667. case $host_os in
  8668. aix3*)
  8669. allow_undefined_flag=unsupported
  8670. always_export_symbols=yes
  8671. 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'
  8672. # Note: this linker hardcodes the directories in LIBPATH if there
  8673. # are no directories specified by -L.
  8674. hardcode_minus_L=yes
  8675. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8676. # Neither direct hardcoding nor static linking is supported with a
  8677. # broken collect2.
  8678. hardcode_direct=unsupported
  8679. fi
  8680. ;;
  8681. aix[4-9]*)
  8682. if test "$host_cpu" = ia64; then
  8683. # On IA64, the linker does run time linking by default, so we don't
  8684. # have to do anything special.
  8685. aix_use_runtimelinking=no
  8686. exp_sym_flag='-Bexport'
  8687. no_entry_flag=""
  8688. else
  8689. # If we're using GNU nm, then we don't want the "-C" option.
  8690. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8691. # Also, AIX nm treats weak defined symbols like other global
  8692. # defined symbols, whereas GNU nm marks them as "W".
  8693. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8694. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8695. else
  8696. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8697. fi
  8698. aix_use_runtimelinking=no
  8699. # Test if we are trying to use run time linking or normal
  8700. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8701. # need to do runtime linking.
  8702. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8703. for ld_flag in $LDFLAGS; do
  8704. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8705. aix_use_runtimelinking=yes
  8706. break
  8707. fi
  8708. done
  8709. ;;
  8710. esac
  8711. exp_sym_flag='-bexport'
  8712. no_entry_flag='-bnoentry'
  8713. fi
  8714. # When large executables or shared objects are built, AIX ld can
  8715. # have problems creating the table of contents. If linking a library
  8716. # or program results in "error TOC overflow" add -mminimal-toc to
  8717. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8718. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8719. archive_cmds=''
  8720. hardcode_direct=yes
  8721. hardcode_direct_absolute=yes
  8722. hardcode_libdir_separator=':'
  8723. link_all_deplibs=yes
  8724. file_list_spec='${wl}-f,'
  8725. if test "$GCC" = yes; then
  8726. case $host_os in aix4.[012]|aix4.[012].*)
  8727. # We only want to do this on AIX 4.2 and lower, the check
  8728. # below for broken collect2 doesn't work under 4.3+
  8729. collect2name=`${CC} -print-prog-name=collect2`
  8730. if test -f "$collect2name" &&
  8731. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8732. then
  8733. # We have reworked collect2
  8734. :
  8735. else
  8736. # We have old collect2
  8737. hardcode_direct=unsupported
  8738. # It fails to find uninstalled libraries when the uninstalled
  8739. # path is not listed in the libpath. Setting hardcode_minus_L
  8740. # to unsupported forces relinking
  8741. hardcode_minus_L=yes
  8742. hardcode_libdir_flag_spec='-L$libdir'
  8743. hardcode_libdir_separator=
  8744. fi
  8745. ;;
  8746. esac
  8747. shared_flag='-shared'
  8748. if test "$aix_use_runtimelinking" = yes; then
  8749. shared_flag="$shared_flag "'${wl}-G'
  8750. fi
  8751. else
  8752. # not using gcc
  8753. if test "$host_cpu" = ia64; then
  8754. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8755. # chokes on -Wl,-G. The following line is correct:
  8756. shared_flag='-G'
  8757. else
  8758. if test "$aix_use_runtimelinking" = yes; then
  8759. shared_flag='${wl}-G'
  8760. else
  8761. shared_flag='${wl}-bM:SRE'
  8762. fi
  8763. fi
  8764. fi
  8765. export_dynamic_flag_spec='${wl}-bexpall'
  8766. # It seems that -bexpall does not export symbols beginning with
  8767. # underscore (_), so it is better to generate a list of symbols to export.
  8768. always_export_symbols=yes
  8769. if test "$aix_use_runtimelinking" = yes; then
  8770. # Warning - without using the other runtime loading flags (-brtl),
  8771. # -berok will link without error, but may produce a broken library.
  8772. allow_undefined_flag='-berok'
  8773. # Determine the default libpath from the value encoded in an
  8774. # empty executable.
  8775. if test "${lt_cv_aix_libpath+set}" = set; then
  8776. aix_libpath=$lt_cv_aix_libpath
  8777. else
  8778. if ${lt_cv_aix_libpath_+:} false; then :
  8779. $as_echo_n "(cached) " >&6
  8780. else
  8781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8782. /* end confdefs.h. */
  8783. int
  8784. main ()
  8785. {
  8786. ;
  8787. return 0;
  8788. }
  8789. _ACEOF
  8790. if ac_fn_c_try_link "$LINENO"; then :
  8791. lt_aix_libpath_sed='
  8792. /Import File Strings/,/^$/ {
  8793. /^0/ {
  8794. s/^0 *\([^ ]*\) *$/\1/
  8795. p
  8796. }
  8797. }'
  8798. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8799. # Check for a 64-bit object if we didn't find anything.
  8800. if test -z "$lt_cv_aix_libpath_"; then
  8801. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8802. fi
  8803. fi
  8804. rm -f core conftest.err conftest.$ac_objext \
  8805. conftest$ac_exeext conftest.$ac_ext
  8806. if test -z "$lt_cv_aix_libpath_"; then
  8807. lt_cv_aix_libpath_="/usr/lib:/lib"
  8808. fi
  8809. fi
  8810. aix_libpath=$lt_cv_aix_libpath_
  8811. fi
  8812. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8813. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8814. else
  8815. if test "$host_cpu" = ia64; then
  8816. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8817. allow_undefined_flag="-z nodefs"
  8818. 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"
  8819. else
  8820. # Determine the default libpath from the value encoded in an
  8821. # empty executable.
  8822. if test "${lt_cv_aix_libpath+set}" = set; then
  8823. aix_libpath=$lt_cv_aix_libpath
  8824. else
  8825. if ${lt_cv_aix_libpath_+:} false; then :
  8826. $as_echo_n "(cached) " >&6
  8827. else
  8828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8829. /* end confdefs.h. */
  8830. int
  8831. main ()
  8832. {
  8833. ;
  8834. return 0;
  8835. }
  8836. _ACEOF
  8837. if ac_fn_c_try_link "$LINENO"; then :
  8838. lt_aix_libpath_sed='
  8839. /Import File Strings/,/^$/ {
  8840. /^0/ {
  8841. s/^0 *\([^ ]*\) *$/\1/
  8842. p
  8843. }
  8844. }'
  8845. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8846. # Check for a 64-bit object if we didn't find anything.
  8847. if test -z "$lt_cv_aix_libpath_"; then
  8848. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8849. fi
  8850. fi
  8851. rm -f core conftest.err conftest.$ac_objext \
  8852. conftest$ac_exeext conftest.$ac_ext
  8853. if test -z "$lt_cv_aix_libpath_"; then
  8854. lt_cv_aix_libpath_="/usr/lib:/lib"
  8855. fi
  8856. fi
  8857. aix_libpath=$lt_cv_aix_libpath_
  8858. fi
  8859. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8860. # Warning - without using the other run time loading flags,
  8861. # -berok will link without error, but may produce a broken library.
  8862. no_undefined_flag=' ${wl}-bernotok'
  8863. allow_undefined_flag=' ${wl}-berok'
  8864. if test "$with_gnu_ld" = yes; then
  8865. # We only use this code for GNU lds that support --whole-archive.
  8866. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8867. else
  8868. # Exported symbols can be pulled into shared objects from archives
  8869. whole_archive_flag_spec='$convenience'
  8870. fi
  8871. archive_cmds_need_lc=yes
  8872. # This is similar to how AIX traditionally builds its shared libraries.
  8873. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8874. fi
  8875. fi
  8876. ;;
  8877. amigaos*)
  8878. case $host_cpu in
  8879. powerpc)
  8880. # see comment about AmigaOS4 .so support
  8881. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8882. archive_expsym_cmds=''
  8883. ;;
  8884. m68k)
  8885. 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)'
  8886. hardcode_libdir_flag_spec='-L$libdir'
  8887. hardcode_minus_L=yes
  8888. ;;
  8889. esac
  8890. ;;
  8891. bsdi[45]*)
  8892. export_dynamic_flag_spec=-rdynamic
  8893. ;;
  8894. cygwin* | mingw* | pw32* | cegcc*)
  8895. # When not using gcc, we currently assume that we are using
  8896. # Microsoft Visual C++.
  8897. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8898. # no search path for DLLs.
  8899. case $cc_basename in
  8900. cl*)
  8901. # Native MSVC
  8902. hardcode_libdir_flag_spec=' '
  8903. allow_undefined_flag=unsupported
  8904. always_export_symbols=yes
  8905. file_list_spec='@'
  8906. # Tell ltmain to make .lib files, not .a files.
  8907. libext=lib
  8908. # Tell ltmain to make .dll files, not .so files.
  8909. shrext_cmds=".dll"
  8910. # FIXME: Setting linknames here is a bad hack.
  8911. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8912. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8913. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8914. else
  8915. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8916. fi~
  8917. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8918. linknames='
  8919. # The linker will not automatically build a static lib if we build a DLL.
  8920. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8921. enable_shared_with_static_runtimes=yes
  8922. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8923. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8924. # Don't use ranlib
  8925. old_postinstall_cmds='chmod 644 $oldlib'
  8926. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8927. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8928. case $lt_outputfile in
  8929. *.exe|*.EXE) ;;
  8930. *)
  8931. lt_outputfile="$lt_outputfile.exe"
  8932. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8933. ;;
  8934. esac~
  8935. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8936. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8937. $RM "$lt_outputfile.manifest";
  8938. fi'
  8939. ;;
  8940. *)
  8941. # Assume MSVC wrapper
  8942. hardcode_libdir_flag_spec=' '
  8943. allow_undefined_flag=unsupported
  8944. # Tell ltmain to make .lib files, not .a files.
  8945. libext=lib
  8946. # Tell ltmain to make .dll files, not .so files.
  8947. shrext_cmds=".dll"
  8948. # FIXME: Setting linknames here is a bad hack.
  8949. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8950. # The linker will automatically build a .lib file if we build a DLL.
  8951. old_archive_from_new_cmds='true'
  8952. # FIXME: Should let the user specify the lib program.
  8953. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8954. enable_shared_with_static_runtimes=yes
  8955. ;;
  8956. esac
  8957. ;;
  8958. darwin* | rhapsody*)
  8959. archive_cmds_need_lc=no
  8960. hardcode_direct=no
  8961. hardcode_automatic=yes
  8962. hardcode_shlibpath_var=unsupported
  8963. if test "$lt_cv_ld_force_load" = "yes"; then
  8964. 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\"`'
  8965. else
  8966. whole_archive_flag_spec=''
  8967. fi
  8968. link_all_deplibs=yes
  8969. allow_undefined_flag="$_lt_dar_allow_undefined"
  8970. case $cc_basename in
  8971. ifort*) _lt_dar_can_shared=yes ;;
  8972. *) _lt_dar_can_shared=$GCC ;;
  8973. esac
  8974. if test "$_lt_dar_can_shared" = "yes"; then
  8975. output_verbose_link_cmd=func_echo_all
  8976. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8977. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8978. 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}"
  8979. 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}"
  8980. else
  8981. ld_shlibs=no
  8982. fi
  8983. ;;
  8984. dgux*)
  8985. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8986. hardcode_libdir_flag_spec='-L$libdir'
  8987. hardcode_shlibpath_var=no
  8988. ;;
  8989. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8990. # support. Future versions do this automatically, but an explicit c++rt0.o
  8991. # does not break anything, and helps significantly (at the cost of a little
  8992. # extra space).
  8993. freebsd2.2*)
  8994. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8995. hardcode_libdir_flag_spec='-R$libdir'
  8996. hardcode_direct=yes
  8997. hardcode_shlibpath_var=no
  8998. ;;
  8999. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9000. freebsd2.*)
  9001. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9002. hardcode_direct=yes
  9003. hardcode_minus_L=yes
  9004. hardcode_shlibpath_var=no
  9005. ;;
  9006. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9007. freebsd* | dragonfly*)
  9008. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9009. hardcode_libdir_flag_spec='-R$libdir'
  9010. hardcode_direct=yes
  9011. hardcode_shlibpath_var=no
  9012. ;;
  9013. hpux9*)
  9014. if test "$GCC" = yes; then
  9015. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9016. else
  9017. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9018. fi
  9019. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9020. hardcode_libdir_separator=:
  9021. hardcode_direct=yes
  9022. # hardcode_minus_L: Not really in the search PATH,
  9023. # but as the default location of the library.
  9024. hardcode_minus_L=yes
  9025. export_dynamic_flag_spec='${wl}-E'
  9026. ;;
  9027. hpux10*)
  9028. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9029. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9030. else
  9031. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9032. fi
  9033. if test "$with_gnu_ld" = no; then
  9034. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9035. hardcode_libdir_separator=:
  9036. hardcode_direct=yes
  9037. hardcode_direct_absolute=yes
  9038. export_dynamic_flag_spec='${wl}-E'
  9039. # hardcode_minus_L: Not really in the search PATH,
  9040. # but as the default location of the library.
  9041. hardcode_minus_L=yes
  9042. fi
  9043. ;;
  9044. hpux11*)
  9045. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9046. case $host_cpu in
  9047. hppa*64*)
  9048. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9049. ;;
  9050. ia64*)
  9051. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9052. ;;
  9053. *)
  9054. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9055. ;;
  9056. esac
  9057. else
  9058. case $host_cpu in
  9059. hppa*64*)
  9060. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9061. ;;
  9062. ia64*)
  9063. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9064. ;;
  9065. *)
  9066. # Older versions of the 11.00 compiler do not understand -b yet
  9067. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9069. $as_echo_n "checking if $CC understands -b... " >&6; }
  9070. if ${lt_cv_prog_compiler__b+:} false; then :
  9071. $as_echo_n "(cached) " >&6
  9072. else
  9073. lt_cv_prog_compiler__b=no
  9074. save_LDFLAGS="$LDFLAGS"
  9075. LDFLAGS="$LDFLAGS -b"
  9076. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9077. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9078. # The linker can only warn and ignore the option if not recognized
  9079. # So say no if there are warnings
  9080. if test -s conftest.err; then
  9081. # Append any errors to the config.log.
  9082. cat conftest.err 1>&5
  9083. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9084. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9085. if diff conftest.exp conftest.er2 >/dev/null; then
  9086. lt_cv_prog_compiler__b=yes
  9087. fi
  9088. else
  9089. lt_cv_prog_compiler__b=yes
  9090. fi
  9091. fi
  9092. $RM -r conftest*
  9093. LDFLAGS="$save_LDFLAGS"
  9094. fi
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9096. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9097. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9098. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9099. else
  9100. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9101. fi
  9102. ;;
  9103. esac
  9104. fi
  9105. if test "$with_gnu_ld" = no; then
  9106. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9107. hardcode_libdir_separator=:
  9108. case $host_cpu in
  9109. hppa*64*|ia64*)
  9110. hardcode_direct=no
  9111. hardcode_shlibpath_var=no
  9112. ;;
  9113. *)
  9114. hardcode_direct=yes
  9115. hardcode_direct_absolute=yes
  9116. export_dynamic_flag_spec='${wl}-E'
  9117. # hardcode_minus_L: Not really in the search PATH,
  9118. # but as the default location of the library.
  9119. hardcode_minus_L=yes
  9120. ;;
  9121. esac
  9122. fi
  9123. ;;
  9124. irix5* | irix6* | nonstopux*)
  9125. if test "$GCC" = yes; then
  9126. 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'
  9127. # Try to use the -exported_symbol ld option, if it does not
  9128. # work, assume that -exports_file does not work either and
  9129. # implicitly export all symbols.
  9130. # This should be the same for all languages, so no per-tag cache variable.
  9131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9132. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9133. if ${lt_cv_irix_exported_symbol+:} false; then :
  9134. $as_echo_n "(cached) " >&6
  9135. else
  9136. save_LDFLAGS="$LDFLAGS"
  9137. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9139. /* end confdefs.h. */
  9140. int foo (void) { return 0; }
  9141. _ACEOF
  9142. if ac_fn_c_try_link "$LINENO"; then :
  9143. lt_cv_irix_exported_symbol=yes
  9144. else
  9145. lt_cv_irix_exported_symbol=no
  9146. fi
  9147. rm -f core conftest.err conftest.$ac_objext \
  9148. conftest$ac_exeext conftest.$ac_ext
  9149. LDFLAGS="$save_LDFLAGS"
  9150. fi
  9151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9152. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9153. if test "$lt_cv_irix_exported_symbol" = yes; then
  9154. 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'
  9155. fi
  9156. else
  9157. 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'
  9158. 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'
  9159. fi
  9160. archive_cmds_need_lc='no'
  9161. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9162. hardcode_libdir_separator=:
  9163. inherit_rpath=yes
  9164. link_all_deplibs=yes
  9165. ;;
  9166. netbsd*)
  9167. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9168. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9169. else
  9170. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9171. fi
  9172. hardcode_libdir_flag_spec='-R$libdir'
  9173. hardcode_direct=yes
  9174. hardcode_shlibpath_var=no
  9175. ;;
  9176. newsos6)
  9177. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9178. hardcode_direct=yes
  9179. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9180. hardcode_libdir_separator=:
  9181. hardcode_shlibpath_var=no
  9182. ;;
  9183. *nto* | *qnx*)
  9184. ;;
  9185. openbsd*)
  9186. if test -f /usr/libexec/ld.so; then
  9187. hardcode_direct=yes
  9188. hardcode_shlibpath_var=no
  9189. hardcode_direct_absolute=yes
  9190. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9191. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9192. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9193. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9194. export_dynamic_flag_spec='${wl}-E'
  9195. else
  9196. case $host_os in
  9197. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9198. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9199. hardcode_libdir_flag_spec='-R$libdir'
  9200. ;;
  9201. *)
  9202. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9203. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9204. ;;
  9205. esac
  9206. fi
  9207. else
  9208. ld_shlibs=no
  9209. fi
  9210. ;;
  9211. os2*)
  9212. hardcode_libdir_flag_spec='-L$libdir'
  9213. hardcode_minus_L=yes
  9214. allow_undefined_flag=unsupported
  9215. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9216. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9217. ;;
  9218. osf3*)
  9219. if test "$GCC" = yes; then
  9220. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9221. 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'
  9222. else
  9223. allow_undefined_flag=' -expect_unresolved \*'
  9224. 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'
  9225. fi
  9226. archive_cmds_need_lc='no'
  9227. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9228. hardcode_libdir_separator=:
  9229. ;;
  9230. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9231. if test "$GCC" = yes; then
  9232. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9233. 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'
  9234. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9235. else
  9236. allow_undefined_flag=' -expect_unresolved \*'
  9237. 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'
  9238. 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~
  9239. $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'
  9240. # Both c and cxx compiler support -rpath directly
  9241. hardcode_libdir_flag_spec='-rpath $libdir'
  9242. fi
  9243. archive_cmds_need_lc='no'
  9244. hardcode_libdir_separator=:
  9245. ;;
  9246. solaris*)
  9247. no_undefined_flag=' -z defs'
  9248. if test "$GCC" = yes; then
  9249. wlarc='${wl}'
  9250. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9251. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9252. $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'
  9253. else
  9254. case `$CC -V 2>&1` in
  9255. *"Compilers 5.0"*)
  9256. wlarc=''
  9257. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9258. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9259. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9260. ;;
  9261. *)
  9262. wlarc='${wl}'
  9263. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9264. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9265. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9266. ;;
  9267. esac
  9268. fi
  9269. hardcode_libdir_flag_spec='-R$libdir'
  9270. hardcode_shlibpath_var=no
  9271. case $host_os in
  9272. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9273. *)
  9274. # The compiler driver will combine and reorder linker options,
  9275. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9276. # but is careful enough not to reorder.
  9277. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9278. if test "$GCC" = yes; then
  9279. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9280. else
  9281. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9282. fi
  9283. ;;
  9284. esac
  9285. link_all_deplibs=yes
  9286. ;;
  9287. sunos4*)
  9288. if test "x$host_vendor" = xsequent; then
  9289. # Use $CC to link under sequent, because it throws in some extra .o
  9290. # files that make .init and .fini sections work.
  9291. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9292. else
  9293. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9294. fi
  9295. hardcode_libdir_flag_spec='-L$libdir'
  9296. hardcode_direct=yes
  9297. hardcode_minus_L=yes
  9298. hardcode_shlibpath_var=no
  9299. ;;
  9300. sysv4)
  9301. case $host_vendor in
  9302. sni)
  9303. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9304. hardcode_direct=yes # is this really true???
  9305. ;;
  9306. siemens)
  9307. ## LD is ld it makes a PLAMLIB
  9308. ## CC just makes a GrossModule.
  9309. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9310. reload_cmds='$CC -r -o $output$reload_objs'
  9311. hardcode_direct=no
  9312. ;;
  9313. motorola)
  9314. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9315. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9316. ;;
  9317. esac
  9318. runpath_var='LD_RUN_PATH'
  9319. hardcode_shlibpath_var=no
  9320. ;;
  9321. sysv4.3*)
  9322. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9323. hardcode_shlibpath_var=no
  9324. export_dynamic_flag_spec='-Bexport'
  9325. ;;
  9326. sysv4*MP*)
  9327. if test -d /usr/nec; then
  9328. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9329. hardcode_shlibpath_var=no
  9330. runpath_var=LD_RUN_PATH
  9331. hardcode_runpath_var=yes
  9332. ld_shlibs=yes
  9333. fi
  9334. ;;
  9335. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9336. no_undefined_flag='${wl}-z,text'
  9337. archive_cmds_need_lc=no
  9338. hardcode_shlibpath_var=no
  9339. runpath_var='LD_RUN_PATH'
  9340. if test "$GCC" = yes; then
  9341. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9342. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9343. else
  9344. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9345. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9346. fi
  9347. ;;
  9348. sysv5* | sco3.2v5* | sco5v6*)
  9349. # Note: We can NOT use -z defs as we might desire, because we do not
  9350. # link with -lc, and that would cause any symbols used from libc to
  9351. # always be unresolved, which means just about no library would
  9352. # ever link correctly. If we're not using GNU ld we use -z text
  9353. # though, which does catch some bad symbols but isn't as heavy-handed
  9354. # as -z defs.
  9355. no_undefined_flag='${wl}-z,text'
  9356. allow_undefined_flag='${wl}-z,nodefs'
  9357. archive_cmds_need_lc=no
  9358. hardcode_shlibpath_var=no
  9359. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9360. hardcode_libdir_separator=':'
  9361. link_all_deplibs=yes
  9362. export_dynamic_flag_spec='${wl}-Bexport'
  9363. runpath_var='LD_RUN_PATH'
  9364. if test "$GCC" = yes; then
  9365. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9366. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9367. else
  9368. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9369. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9370. fi
  9371. ;;
  9372. uts4*)
  9373. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9374. hardcode_libdir_flag_spec='-L$libdir'
  9375. hardcode_shlibpath_var=no
  9376. ;;
  9377. *)
  9378. ld_shlibs=no
  9379. ;;
  9380. esac
  9381. if test x$host_vendor = xsni; then
  9382. case $host in
  9383. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9384. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9385. ;;
  9386. esac
  9387. fi
  9388. fi
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9390. $as_echo "$ld_shlibs" >&6; }
  9391. test "$ld_shlibs" = no && can_build_shared=no
  9392. with_gnu_ld=$with_gnu_ld
  9393. #
  9394. # Do we need to explicitly link libc?
  9395. #
  9396. case "x$archive_cmds_need_lc" in
  9397. x|xyes)
  9398. # Assume -lc should be added
  9399. archive_cmds_need_lc=yes
  9400. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9401. case $archive_cmds in
  9402. *'~'*)
  9403. # FIXME: we may have to deal with multi-command sequences.
  9404. ;;
  9405. '$CC '*)
  9406. # Test whether the compiler implicitly links with -lc since on some
  9407. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9408. # to ld, don't add -lc before -lgcc.
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9410. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9411. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9412. $as_echo_n "(cached) " >&6
  9413. else
  9414. $RM conftest*
  9415. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9416. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9417. (eval $ac_compile) 2>&5
  9418. ac_status=$?
  9419. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9420. test $ac_status = 0; } 2>conftest.err; then
  9421. soname=conftest
  9422. lib=conftest
  9423. libobjs=conftest.$ac_objext
  9424. deplibs=
  9425. wl=$lt_prog_compiler_wl
  9426. pic_flag=$lt_prog_compiler_pic
  9427. compiler_flags=-v
  9428. linker_flags=-v
  9429. verstring=
  9430. output_objdir=.
  9431. libname=conftest
  9432. lt_save_allow_undefined_flag=$allow_undefined_flag
  9433. allow_undefined_flag=
  9434. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9435. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9436. ac_status=$?
  9437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9438. test $ac_status = 0; }
  9439. then
  9440. lt_cv_archive_cmds_need_lc=no
  9441. else
  9442. lt_cv_archive_cmds_need_lc=yes
  9443. fi
  9444. allow_undefined_flag=$lt_save_allow_undefined_flag
  9445. else
  9446. cat conftest.err 1>&5
  9447. fi
  9448. $RM conftest*
  9449. fi
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9451. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9452. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9453. ;;
  9454. esac
  9455. fi
  9456. ;;
  9457. esac
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9459. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9460. if test "$GCC" = yes; then
  9461. case $host_os in
  9462. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9463. *) lt_awk_arg="/^libraries:/" ;;
  9464. esac
  9465. case $host_os in
  9466. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9467. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9468. esac
  9469. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9470. case $lt_search_path_spec in
  9471. *\;*)
  9472. # if the path contains ";" then we assume it to be the separator
  9473. # otherwise default to the standard path separator (i.e. ":") - it is
  9474. # assumed that no part of a normal pathname contains ";" but that should
  9475. # okay in the real world where ";" in dirpaths is itself problematic.
  9476. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9477. ;;
  9478. *)
  9479. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9480. ;;
  9481. esac
  9482. # Ok, now we have the path, separated by spaces, we can step through it
  9483. # and add multilib dir if necessary.
  9484. lt_tmp_lt_search_path_spec=
  9485. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9486. for lt_sys_path in $lt_search_path_spec; do
  9487. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9488. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9489. else
  9490. test -d "$lt_sys_path" && \
  9491. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9492. fi
  9493. done
  9494. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9495. BEGIN {RS=" "; FS="/|\n";} {
  9496. lt_foo="";
  9497. lt_count=0;
  9498. for (lt_i = NF; lt_i > 0; lt_i--) {
  9499. if ($lt_i != "" && $lt_i != ".") {
  9500. if ($lt_i == "..") {
  9501. lt_count++;
  9502. } else {
  9503. if (lt_count == 0) {
  9504. lt_foo="/" $lt_i lt_foo;
  9505. } else {
  9506. lt_count--;
  9507. }
  9508. }
  9509. }
  9510. }
  9511. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9512. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9513. }'`
  9514. # AWK program above erroneously prepends '/' to C:/dos/paths
  9515. # for these hosts.
  9516. case $host_os in
  9517. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9518. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9519. esac
  9520. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9521. else
  9522. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9523. fi
  9524. library_names_spec=
  9525. libname_spec='lib$name'
  9526. soname_spec=
  9527. shrext_cmds=".so"
  9528. postinstall_cmds=
  9529. postuninstall_cmds=
  9530. finish_cmds=
  9531. finish_eval=
  9532. shlibpath_var=
  9533. shlibpath_overrides_runpath=unknown
  9534. version_type=none
  9535. dynamic_linker="$host_os ld.so"
  9536. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9537. need_lib_prefix=unknown
  9538. hardcode_into_libs=no
  9539. # when you set need_version to no, make sure it does not cause -set_version
  9540. # flags to be left without arguments
  9541. need_version=unknown
  9542. case $host_os in
  9543. aix3*)
  9544. version_type=linux # correct to gnu/linux during the next big refactor
  9545. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9546. shlibpath_var=LIBPATH
  9547. # AIX 3 has no versioning support, so we append a major version to the name.
  9548. soname_spec='${libname}${release}${shared_ext}$major'
  9549. ;;
  9550. aix[4-9]*)
  9551. version_type=linux # correct to gnu/linux during the next big refactor
  9552. need_lib_prefix=no
  9553. need_version=no
  9554. hardcode_into_libs=yes
  9555. if test "$host_cpu" = ia64; then
  9556. # AIX 5 supports IA64
  9557. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9558. shlibpath_var=LD_LIBRARY_PATH
  9559. else
  9560. # With GCC up to 2.95.x, collect2 would create an import file
  9561. # for dependence libraries. The import file would start with
  9562. # the line `#! .'. This would cause the generated library to
  9563. # depend on `.', always an invalid library. This was fixed in
  9564. # development snapshots of GCC prior to 3.0.
  9565. case $host_os in
  9566. aix4 | aix4.[01] | aix4.[01].*)
  9567. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9568. echo ' yes '
  9569. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9570. :
  9571. else
  9572. can_build_shared=no
  9573. fi
  9574. ;;
  9575. esac
  9576. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9577. # soname into executable. Probably we can add versioning support to
  9578. # collect2, so additional links can be useful in future.
  9579. if test "$aix_use_runtimelinking" = yes; then
  9580. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9581. # instead of lib<name>.a to let people know that these are not
  9582. # typical AIX shared libraries.
  9583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9584. else
  9585. # We preserve .a as extension for shared libraries through AIX4.2
  9586. # and later when we are not doing run time linking.
  9587. library_names_spec='${libname}${release}.a $libname.a'
  9588. soname_spec='${libname}${release}${shared_ext}$major'
  9589. fi
  9590. shlibpath_var=LIBPATH
  9591. fi
  9592. ;;
  9593. amigaos*)
  9594. case $host_cpu in
  9595. powerpc)
  9596. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9597. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9598. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9599. ;;
  9600. m68k)
  9601. library_names_spec='$libname.ixlibrary $libname.a'
  9602. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9603. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9604. ;;
  9605. esac
  9606. ;;
  9607. beos*)
  9608. library_names_spec='${libname}${shared_ext}'
  9609. dynamic_linker="$host_os ld.so"
  9610. shlibpath_var=LIBRARY_PATH
  9611. ;;
  9612. bsdi[45]*)
  9613. version_type=linux # correct to gnu/linux during the next big refactor
  9614. need_version=no
  9615. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9616. soname_spec='${libname}${release}${shared_ext}$major'
  9617. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9618. shlibpath_var=LD_LIBRARY_PATH
  9619. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9620. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9621. # the default ld.so.conf also contains /usr/contrib/lib and
  9622. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9623. # libtool to hard-code these into programs
  9624. ;;
  9625. cygwin* | mingw* | pw32* | cegcc*)
  9626. version_type=windows
  9627. shrext_cmds=".dll"
  9628. need_version=no
  9629. need_lib_prefix=no
  9630. case $GCC,$cc_basename in
  9631. yes,*)
  9632. # gcc
  9633. library_names_spec='$libname.dll.a'
  9634. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9635. postinstall_cmds='base_file=`basename \${file}`~
  9636. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9637. dldir=$destdir/`dirname \$dlpath`~
  9638. test -d \$dldir || mkdir -p \$dldir~
  9639. $install_prog $dir/$dlname \$dldir/$dlname~
  9640. chmod a+x \$dldir/$dlname~
  9641. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9642. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9643. fi'
  9644. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9645. dlpath=$dir/\$dldll~
  9646. $RM \$dlpath'
  9647. shlibpath_overrides_runpath=yes
  9648. case $host_os in
  9649. cygwin*)
  9650. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9651. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9652. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9653. ;;
  9654. mingw* | cegcc*)
  9655. # MinGW DLLs use traditional 'lib' prefix
  9656. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9657. ;;
  9658. pw32*)
  9659. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9660. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9661. ;;
  9662. esac
  9663. dynamic_linker='Win32 ld.exe'
  9664. ;;
  9665. *,cl*)
  9666. # Native MSVC
  9667. libname_spec='$name'
  9668. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9669. library_names_spec='${libname}.dll.lib'
  9670. case $build_os in
  9671. mingw*)
  9672. sys_lib_search_path_spec=
  9673. lt_save_ifs=$IFS
  9674. IFS=';'
  9675. for lt_path in $LIB
  9676. do
  9677. IFS=$lt_save_ifs
  9678. # Let DOS variable expansion print the short 8.3 style file name.
  9679. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9680. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9681. done
  9682. IFS=$lt_save_ifs
  9683. # Convert to MSYS style.
  9684. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9685. ;;
  9686. cygwin*)
  9687. # Convert to unix form, then to dos form, then back to unix form
  9688. # but this time dos style (no spaces!) so that the unix form looks
  9689. # like /cygdrive/c/PROGRA~1:/cygdr...
  9690. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9691. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9692. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9693. ;;
  9694. *)
  9695. sys_lib_search_path_spec="$LIB"
  9696. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9697. # It is most probably a Windows format PATH.
  9698. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9699. else
  9700. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9701. fi
  9702. # FIXME: find the short name or the path components, as spaces are
  9703. # common. (e.g. "Program Files" -> "PROGRA~1")
  9704. ;;
  9705. esac
  9706. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9707. postinstall_cmds='base_file=`basename \${file}`~
  9708. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9709. dldir=$destdir/`dirname \$dlpath`~
  9710. test -d \$dldir || mkdir -p \$dldir~
  9711. $install_prog $dir/$dlname \$dldir/$dlname'
  9712. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9713. dlpath=$dir/\$dldll~
  9714. $RM \$dlpath'
  9715. shlibpath_overrides_runpath=yes
  9716. dynamic_linker='Win32 link.exe'
  9717. ;;
  9718. *)
  9719. # Assume MSVC wrapper
  9720. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9721. dynamic_linker='Win32 ld.exe'
  9722. ;;
  9723. esac
  9724. # FIXME: first we should search . and the directory the executable is in
  9725. shlibpath_var=PATH
  9726. ;;
  9727. darwin* | rhapsody*)
  9728. dynamic_linker="$host_os dyld"
  9729. version_type=darwin
  9730. need_lib_prefix=no
  9731. need_version=no
  9732. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9733. soname_spec='${libname}${release}${major}$shared_ext'
  9734. shlibpath_overrides_runpath=yes
  9735. shlibpath_var=DYLD_LIBRARY_PATH
  9736. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9737. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9738. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9739. ;;
  9740. dgux*)
  9741. version_type=linux # correct to gnu/linux during the next big refactor
  9742. need_lib_prefix=no
  9743. need_version=no
  9744. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9745. soname_spec='${libname}${release}${shared_ext}$major'
  9746. shlibpath_var=LD_LIBRARY_PATH
  9747. ;;
  9748. freebsd* | dragonfly*)
  9749. # DragonFly does not have aout. When/if they implement a new
  9750. # versioning mechanism, adjust this.
  9751. if test -x /usr/bin/objformat; then
  9752. objformat=`/usr/bin/objformat`
  9753. else
  9754. case $host_os in
  9755. freebsd[23].*) objformat=aout ;;
  9756. *) objformat=elf ;;
  9757. esac
  9758. fi
  9759. version_type=freebsd-$objformat
  9760. case $version_type in
  9761. freebsd-elf*)
  9762. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9763. need_version=no
  9764. need_lib_prefix=no
  9765. ;;
  9766. freebsd-*)
  9767. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9768. need_version=yes
  9769. ;;
  9770. esac
  9771. shlibpath_var=LD_LIBRARY_PATH
  9772. case $host_os in
  9773. freebsd2.*)
  9774. shlibpath_overrides_runpath=yes
  9775. ;;
  9776. freebsd3.[01]* | freebsdelf3.[01]*)
  9777. shlibpath_overrides_runpath=yes
  9778. hardcode_into_libs=yes
  9779. ;;
  9780. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9781. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9782. shlibpath_overrides_runpath=no
  9783. hardcode_into_libs=yes
  9784. ;;
  9785. *) # from 4.6 on, and DragonFly
  9786. shlibpath_overrides_runpath=yes
  9787. hardcode_into_libs=yes
  9788. ;;
  9789. esac
  9790. ;;
  9791. gnu*)
  9792. version_type=linux # correct to gnu/linux during the next big refactor
  9793. need_lib_prefix=no
  9794. need_version=no
  9795. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9796. soname_spec='${libname}${release}${shared_ext}$major'
  9797. shlibpath_var=LD_LIBRARY_PATH
  9798. shlibpath_overrides_runpath=no
  9799. hardcode_into_libs=yes
  9800. ;;
  9801. haiku*)
  9802. version_type=linux # correct to gnu/linux during the next big refactor
  9803. need_lib_prefix=no
  9804. need_version=no
  9805. dynamic_linker="$host_os runtime_loader"
  9806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9807. soname_spec='${libname}${release}${shared_ext}$major'
  9808. shlibpath_var=LIBRARY_PATH
  9809. shlibpath_overrides_runpath=yes
  9810. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9811. hardcode_into_libs=yes
  9812. ;;
  9813. hpux9* | hpux10* | hpux11*)
  9814. # Give a soname corresponding to the major version so that dld.sl refuses to
  9815. # link against other versions.
  9816. version_type=sunos
  9817. need_lib_prefix=no
  9818. need_version=no
  9819. case $host_cpu in
  9820. ia64*)
  9821. shrext_cmds='.so'
  9822. hardcode_into_libs=yes
  9823. dynamic_linker="$host_os dld.so"
  9824. shlibpath_var=LD_LIBRARY_PATH
  9825. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9827. soname_spec='${libname}${release}${shared_ext}$major'
  9828. if test "X$HPUX_IA64_MODE" = X32; then
  9829. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9830. else
  9831. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9832. fi
  9833. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9834. ;;
  9835. hppa*64*)
  9836. shrext_cmds='.sl'
  9837. hardcode_into_libs=yes
  9838. dynamic_linker="$host_os dld.sl"
  9839. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9840. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9842. soname_spec='${libname}${release}${shared_ext}$major'
  9843. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9844. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9845. ;;
  9846. *)
  9847. shrext_cmds='.sl'
  9848. dynamic_linker="$host_os dld.sl"
  9849. shlibpath_var=SHLIB_PATH
  9850. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9852. soname_spec='${libname}${release}${shared_ext}$major'
  9853. ;;
  9854. esac
  9855. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9856. postinstall_cmds='chmod 555 $lib'
  9857. # or fails outright, so override atomically:
  9858. install_override_mode=555
  9859. ;;
  9860. interix[3-9]*)
  9861. version_type=linux # correct to gnu/linux during the next big refactor
  9862. need_lib_prefix=no
  9863. need_version=no
  9864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9865. soname_spec='${libname}${release}${shared_ext}$major'
  9866. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9867. shlibpath_var=LD_LIBRARY_PATH
  9868. shlibpath_overrides_runpath=no
  9869. hardcode_into_libs=yes
  9870. ;;
  9871. irix5* | irix6* | nonstopux*)
  9872. case $host_os in
  9873. nonstopux*) version_type=nonstopux ;;
  9874. *)
  9875. if test "$lt_cv_prog_gnu_ld" = yes; then
  9876. version_type=linux # correct to gnu/linux during the next big refactor
  9877. else
  9878. version_type=irix
  9879. fi ;;
  9880. esac
  9881. need_lib_prefix=no
  9882. need_version=no
  9883. soname_spec='${libname}${release}${shared_ext}$major'
  9884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9885. case $host_os in
  9886. irix5* | nonstopux*)
  9887. libsuff= shlibsuff=
  9888. ;;
  9889. *)
  9890. case $LD in # libtool.m4 will add one of these switches to LD
  9891. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9892. libsuff= shlibsuff= libmagic=32-bit;;
  9893. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9894. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9895. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9896. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9897. *) libsuff= shlibsuff= libmagic=never-match;;
  9898. esac
  9899. ;;
  9900. esac
  9901. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9902. shlibpath_overrides_runpath=no
  9903. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9904. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9905. hardcode_into_libs=yes
  9906. ;;
  9907. # No shared lib support for Linux oldld, aout, or coff.
  9908. linux*oldld* | linux*aout* | linux*coff*)
  9909. dynamic_linker=no
  9910. ;;
  9911. # This must be glibc/ELF.
  9912. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9913. version_type=linux # correct to gnu/linux during the next big refactor
  9914. need_lib_prefix=no
  9915. need_version=no
  9916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9917. soname_spec='${libname}${release}${shared_ext}$major'
  9918. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9919. shlibpath_var=LD_LIBRARY_PATH
  9920. shlibpath_overrides_runpath=no
  9921. # Some binutils ld are patched to set DT_RUNPATH
  9922. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9923. $as_echo_n "(cached) " >&6
  9924. else
  9925. lt_cv_shlibpath_overrides_runpath=no
  9926. save_LDFLAGS=$LDFLAGS
  9927. save_libdir=$libdir
  9928. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9929. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9931. /* end confdefs.h. */
  9932. int
  9933. main ()
  9934. {
  9935. ;
  9936. return 0;
  9937. }
  9938. _ACEOF
  9939. if ac_fn_c_try_link "$LINENO"; then :
  9940. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9941. lt_cv_shlibpath_overrides_runpath=yes
  9942. fi
  9943. fi
  9944. rm -f core conftest.err conftest.$ac_objext \
  9945. conftest$ac_exeext conftest.$ac_ext
  9946. LDFLAGS=$save_LDFLAGS
  9947. libdir=$save_libdir
  9948. fi
  9949. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9950. # This implies no fast_install, which is unacceptable.
  9951. # Some rework will be needed to allow for fast_install
  9952. # before this can be enabled.
  9953. hardcode_into_libs=yes
  9954. # Append ld.so.conf contents to the search path
  9955. if test -f /etc/ld.so.conf; then
  9956. 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' ' '`
  9957. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9958. fi
  9959. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9960. # powerpc, because MkLinux only supported shared libraries with the
  9961. # GNU dynamic linker. Since this was broken with cross compilers,
  9962. # most powerpc-linux boxes support dynamic linking these days and
  9963. # people can always --disable-shared, the test was removed, and we
  9964. # assume the GNU/Linux dynamic linker is in use.
  9965. dynamic_linker='GNU/Linux ld.so'
  9966. ;;
  9967. netbsd*)
  9968. version_type=sunos
  9969. need_lib_prefix=no
  9970. need_version=no
  9971. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9973. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9974. dynamic_linker='NetBSD (a.out) ld.so'
  9975. else
  9976. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9977. soname_spec='${libname}${release}${shared_ext}$major'
  9978. dynamic_linker='NetBSD ld.elf_so'
  9979. fi
  9980. shlibpath_var=LD_LIBRARY_PATH
  9981. shlibpath_overrides_runpath=yes
  9982. hardcode_into_libs=yes
  9983. ;;
  9984. newsos6)
  9985. version_type=linux # correct to gnu/linux during the next big refactor
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9987. shlibpath_var=LD_LIBRARY_PATH
  9988. shlibpath_overrides_runpath=yes
  9989. ;;
  9990. *nto* | *qnx*)
  9991. version_type=qnx
  9992. need_lib_prefix=no
  9993. need_version=no
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9995. soname_spec='${libname}${release}${shared_ext}$major'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. shlibpath_overrides_runpath=no
  9998. hardcode_into_libs=yes
  9999. dynamic_linker='ldqnx.so'
  10000. ;;
  10001. openbsd*)
  10002. version_type=sunos
  10003. sys_lib_dlsearch_path_spec="/usr/lib"
  10004. need_lib_prefix=no
  10005. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10006. case $host_os in
  10007. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10008. *) need_version=no ;;
  10009. esac
  10010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10011. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10012. shlibpath_var=LD_LIBRARY_PATH
  10013. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10014. case $host_os in
  10015. openbsd2.[89] | openbsd2.[89].*)
  10016. shlibpath_overrides_runpath=no
  10017. ;;
  10018. *)
  10019. shlibpath_overrides_runpath=yes
  10020. ;;
  10021. esac
  10022. else
  10023. shlibpath_overrides_runpath=yes
  10024. fi
  10025. ;;
  10026. os2*)
  10027. libname_spec='$name'
  10028. shrext_cmds=".dll"
  10029. need_lib_prefix=no
  10030. library_names_spec='$libname${shared_ext} $libname.a'
  10031. dynamic_linker='OS/2 ld.exe'
  10032. shlibpath_var=LIBPATH
  10033. ;;
  10034. osf3* | osf4* | osf5*)
  10035. version_type=osf
  10036. need_lib_prefix=no
  10037. need_version=no
  10038. soname_spec='${libname}${release}${shared_ext}$major'
  10039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10040. shlibpath_var=LD_LIBRARY_PATH
  10041. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10042. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10043. ;;
  10044. rdos*)
  10045. dynamic_linker=no
  10046. ;;
  10047. solaris*)
  10048. version_type=linux # correct to gnu/linux during the next big refactor
  10049. need_lib_prefix=no
  10050. need_version=no
  10051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10052. soname_spec='${libname}${release}${shared_ext}$major'
  10053. shlibpath_var=LD_LIBRARY_PATH
  10054. shlibpath_overrides_runpath=yes
  10055. hardcode_into_libs=yes
  10056. # ldd complains unless libraries are executable
  10057. postinstall_cmds='chmod +x $lib'
  10058. ;;
  10059. sunos4*)
  10060. version_type=sunos
  10061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10062. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10063. shlibpath_var=LD_LIBRARY_PATH
  10064. shlibpath_overrides_runpath=yes
  10065. if test "$with_gnu_ld" = yes; then
  10066. need_lib_prefix=no
  10067. fi
  10068. need_version=yes
  10069. ;;
  10070. sysv4 | sysv4.3*)
  10071. version_type=linux # correct to gnu/linux during the next big refactor
  10072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10073. soname_spec='${libname}${release}${shared_ext}$major'
  10074. shlibpath_var=LD_LIBRARY_PATH
  10075. case $host_vendor in
  10076. sni)
  10077. shlibpath_overrides_runpath=no
  10078. need_lib_prefix=no
  10079. runpath_var=LD_RUN_PATH
  10080. ;;
  10081. siemens)
  10082. need_lib_prefix=no
  10083. ;;
  10084. motorola)
  10085. need_lib_prefix=no
  10086. need_version=no
  10087. shlibpath_overrides_runpath=no
  10088. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10089. ;;
  10090. esac
  10091. ;;
  10092. sysv4*MP*)
  10093. if test -d /usr/nec ;then
  10094. version_type=linux # correct to gnu/linux during the next big refactor
  10095. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10096. soname_spec='$libname${shared_ext}.$major'
  10097. shlibpath_var=LD_LIBRARY_PATH
  10098. fi
  10099. ;;
  10100. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10101. version_type=freebsd-elf
  10102. need_lib_prefix=no
  10103. need_version=no
  10104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10105. soname_spec='${libname}${release}${shared_ext}$major'
  10106. shlibpath_var=LD_LIBRARY_PATH
  10107. shlibpath_overrides_runpath=yes
  10108. hardcode_into_libs=yes
  10109. if test "$with_gnu_ld" = yes; then
  10110. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10111. else
  10112. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10113. case $host_os in
  10114. sco3.2v5*)
  10115. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10116. ;;
  10117. esac
  10118. fi
  10119. sys_lib_dlsearch_path_spec='/usr/lib'
  10120. ;;
  10121. tpf*)
  10122. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10123. version_type=linux # correct to gnu/linux during the next big refactor
  10124. need_lib_prefix=no
  10125. need_version=no
  10126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10127. shlibpath_var=LD_LIBRARY_PATH
  10128. shlibpath_overrides_runpath=no
  10129. hardcode_into_libs=yes
  10130. ;;
  10131. uts4*)
  10132. version_type=linux # correct to gnu/linux during the next big refactor
  10133. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10134. soname_spec='${libname}${release}${shared_ext}$major'
  10135. shlibpath_var=LD_LIBRARY_PATH
  10136. ;;
  10137. *)
  10138. dynamic_linker=no
  10139. ;;
  10140. esac
  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10142. $as_echo "$dynamic_linker" >&6; }
  10143. test "$dynamic_linker" = no && can_build_shared=no
  10144. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10145. if test "$GCC" = yes; then
  10146. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10147. fi
  10148. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10149. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10150. fi
  10151. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10152. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10153. fi
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10155. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10156. hardcode_action=
  10157. if test -n "$hardcode_libdir_flag_spec" ||
  10158. test -n "$runpath_var" ||
  10159. test "X$hardcode_automatic" = "Xyes" ; then
  10160. # We can hardcode non-existent directories.
  10161. if test "$hardcode_direct" != no &&
  10162. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10163. # have to relink, otherwise we might link with an installed library
  10164. # when we should be linking with a yet-to-be-installed one
  10165. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10166. test "$hardcode_minus_L" != no; then
  10167. # Linking always hardcodes the temporary library directory.
  10168. hardcode_action=relink
  10169. else
  10170. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10171. hardcode_action=immediate
  10172. fi
  10173. else
  10174. # We cannot hardcode anything, or else we can only hardcode existing
  10175. # directories.
  10176. hardcode_action=unsupported
  10177. fi
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10179. $as_echo "$hardcode_action" >&6; }
  10180. if test "$hardcode_action" = relink ||
  10181. test "$inherit_rpath" = yes; then
  10182. # Fast installation is not supported
  10183. enable_fast_install=no
  10184. elif test "$shlibpath_overrides_runpath" = yes ||
  10185. test "$enable_shared" = no; then
  10186. # Fast installation is not necessary
  10187. enable_fast_install=needless
  10188. fi
  10189. if test "x$enable_dlopen" != xyes; then
  10190. enable_dlopen=unknown
  10191. enable_dlopen_self=unknown
  10192. enable_dlopen_self_static=unknown
  10193. else
  10194. lt_cv_dlopen=no
  10195. lt_cv_dlopen_libs=
  10196. case $host_os in
  10197. beos*)
  10198. lt_cv_dlopen="load_add_on"
  10199. lt_cv_dlopen_libs=
  10200. lt_cv_dlopen_self=yes
  10201. ;;
  10202. mingw* | pw32* | cegcc*)
  10203. lt_cv_dlopen="LoadLibrary"
  10204. lt_cv_dlopen_libs=
  10205. ;;
  10206. cygwin*)
  10207. lt_cv_dlopen="dlopen"
  10208. lt_cv_dlopen_libs=
  10209. ;;
  10210. darwin*)
  10211. # if libdl is installed we need to link against it
  10212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10213. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10214. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10215. $as_echo_n "(cached) " >&6
  10216. else
  10217. ac_check_lib_save_LIBS=$LIBS
  10218. LIBS="-ldl $LIBS"
  10219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10220. /* end confdefs.h. */
  10221. /* Override any GCC internal prototype to avoid an error.
  10222. Use char because int might match the return type of a GCC
  10223. builtin and then its argument prototype would still apply. */
  10224. #ifdef __cplusplus
  10225. extern "C"
  10226. #endif
  10227. char dlopen ();
  10228. int
  10229. main ()
  10230. {
  10231. return dlopen ();
  10232. ;
  10233. return 0;
  10234. }
  10235. _ACEOF
  10236. if ac_fn_c_try_link "$LINENO"; then :
  10237. ac_cv_lib_dl_dlopen=yes
  10238. else
  10239. ac_cv_lib_dl_dlopen=no
  10240. fi
  10241. rm -f core conftest.err conftest.$ac_objext \
  10242. conftest$ac_exeext conftest.$ac_ext
  10243. LIBS=$ac_check_lib_save_LIBS
  10244. fi
  10245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10246. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10247. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10248. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10249. else
  10250. lt_cv_dlopen="dyld"
  10251. lt_cv_dlopen_libs=
  10252. lt_cv_dlopen_self=yes
  10253. fi
  10254. ;;
  10255. *)
  10256. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10257. if test "x$ac_cv_func_shl_load" = xyes; then :
  10258. lt_cv_dlopen="shl_load"
  10259. else
  10260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10261. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10262. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10263. $as_echo_n "(cached) " >&6
  10264. else
  10265. ac_check_lib_save_LIBS=$LIBS
  10266. LIBS="-ldld $LIBS"
  10267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10268. /* end confdefs.h. */
  10269. /* Override any GCC internal prototype to avoid an error.
  10270. Use char because int might match the return type of a GCC
  10271. builtin and then its argument prototype would still apply. */
  10272. #ifdef __cplusplus
  10273. extern "C"
  10274. #endif
  10275. char shl_load ();
  10276. int
  10277. main ()
  10278. {
  10279. return shl_load ();
  10280. ;
  10281. return 0;
  10282. }
  10283. _ACEOF
  10284. if ac_fn_c_try_link "$LINENO"; then :
  10285. ac_cv_lib_dld_shl_load=yes
  10286. else
  10287. ac_cv_lib_dld_shl_load=no
  10288. fi
  10289. rm -f core conftest.err conftest.$ac_objext \
  10290. conftest$ac_exeext conftest.$ac_ext
  10291. LIBS=$ac_check_lib_save_LIBS
  10292. fi
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10294. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10295. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10296. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10297. else
  10298. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10299. if test "x$ac_cv_func_dlopen" = xyes; then :
  10300. lt_cv_dlopen="dlopen"
  10301. else
  10302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10303. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10304. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10305. $as_echo_n "(cached) " >&6
  10306. else
  10307. ac_check_lib_save_LIBS=$LIBS
  10308. LIBS="-ldl $LIBS"
  10309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10310. /* end confdefs.h. */
  10311. /* Override any GCC internal prototype to avoid an error.
  10312. Use char because int might match the return type of a GCC
  10313. builtin and then its argument prototype would still apply. */
  10314. #ifdef __cplusplus
  10315. extern "C"
  10316. #endif
  10317. char dlopen ();
  10318. int
  10319. main ()
  10320. {
  10321. return dlopen ();
  10322. ;
  10323. return 0;
  10324. }
  10325. _ACEOF
  10326. if ac_fn_c_try_link "$LINENO"; then :
  10327. ac_cv_lib_dl_dlopen=yes
  10328. else
  10329. ac_cv_lib_dl_dlopen=no
  10330. fi
  10331. rm -f core conftest.err conftest.$ac_objext \
  10332. conftest$ac_exeext conftest.$ac_ext
  10333. LIBS=$ac_check_lib_save_LIBS
  10334. fi
  10335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10336. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10337. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10338. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10339. else
  10340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10341. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10342. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. ac_check_lib_save_LIBS=$LIBS
  10346. LIBS="-lsvld $LIBS"
  10347. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10348. /* end confdefs.h. */
  10349. /* Override any GCC internal prototype to avoid an error.
  10350. Use char because int might match the return type of a GCC
  10351. builtin and then its argument prototype would still apply. */
  10352. #ifdef __cplusplus
  10353. extern "C"
  10354. #endif
  10355. char dlopen ();
  10356. int
  10357. main ()
  10358. {
  10359. return dlopen ();
  10360. ;
  10361. return 0;
  10362. }
  10363. _ACEOF
  10364. if ac_fn_c_try_link "$LINENO"; then :
  10365. ac_cv_lib_svld_dlopen=yes
  10366. else
  10367. ac_cv_lib_svld_dlopen=no
  10368. fi
  10369. rm -f core conftest.err conftest.$ac_objext \
  10370. conftest$ac_exeext conftest.$ac_ext
  10371. LIBS=$ac_check_lib_save_LIBS
  10372. fi
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10374. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10375. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10376. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10377. else
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10379. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10380. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10381. $as_echo_n "(cached) " >&6
  10382. else
  10383. ac_check_lib_save_LIBS=$LIBS
  10384. LIBS="-ldld $LIBS"
  10385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10386. /* end confdefs.h. */
  10387. /* Override any GCC internal prototype to avoid an error.
  10388. Use char because int might match the return type of a GCC
  10389. builtin and then its argument prototype would still apply. */
  10390. #ifdef __cplusplus
  10391. extern "C"
  10392. #endif
  10393. char dld_link ();
  10394. int
  10395. main ()
  10396. {
  10397. return dld_link ();
  10398. ;
  10399. return 0;
  10400. }
  10401. _ACEOF
  10402. if ac_fn_c_try_link "$LINENO"; then :
  10403. ac_cv_lib_dld_dld_link=yes
  10404. else
  10405. ac_cv_lib_dld_dld_link=no
  10406. fi
  10407. rm -f core conftest.err conftest.$ac_objext \
  10408. conftest$ac_exeext conftest.$ac_ext
  10409. LIBS=$ac_check_lib_save_LIBS
  10410. fi
  10411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10412. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10413. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10414. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10415. fi
  10416. fi
  10417. fi
  10418. fi
  10419. fi
  10420. fi
  10421. ;;
  10422. esac
  10423. if test "x$lt_cv_dlopen" != xno; then
  10424. enable_dlopen=yes
  10425. else
  10426. enable_dlopen=no
  10427. fi
  10428. case $lt_cv_dlopen in
  10429. dlopen)
  10430. save_CPPFLAGS="$CPPFLAGS"
  10431. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10432. save_LDFLAGS="$LDFLAGS"
  10433. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10434. save_LIBS="$LIBS"
  10435. LIBS="$lt_cv_dlopen_libs $LIBS"
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10437. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10438. if ${lt_cv_dlopen_self+:} false; then :
  10439. $as_echo_n "(cached) " >&6
  10440. else
  10441. if test "$cross_compiling" = yes; then :
  10442. lt_cv_dlopen_self=cross
  10443. else
  10444. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10445. lt_status=$lt_dlunknown
  10446. cat > conftest.$ac_ext <<_LT_EOF
  10447. #line $LINENO "configure"
  10448. #include "confdefs.h"
  10449. #if HAVE_DLFCN_H
  10450. #include <dlfcn.h>
  10451. #endif
  10452. #include <stdio.h>
  10453. #ifdef RTLD_GLOBAL
  10454. # define LT_DLGLOBAL RTLD_GLOBAL
  10455. #else
  10456. # ifdef DL_GLOBAL
  10457. # define LT_DLGLOBAL DL_GLOBAL
  10458. # else
  10459. # define LT_DLGLOBAL 0
  10460. # endif
  10461. #endif
  10462. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10463. find out it does not work in some platform. */
  10464. #ifndef LT_DLLAZY_OR_NOW
  10465. # ifdef RTLD_LAZY
  10466. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10467. # else
  10468. # ifdef DL_LAZY
  10469. # define LT_DLLAZY_OR_NOW DL_LAZY
  10470. # else
  10471. # ifdef RTLD_NOW
  10472. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10473. # else
  10474. # ifdef DL_NOW
  10475. # define LT_DLLAZY_OR_NOW DL_NOW
  10476. # else
  10477. # define LT_DLLAZY_OR_NOW 0
  10478. # endif
  10479. # endif
  10480. # endif
  10481. # endif
  10482. #endif
  10483. /* When -fvisbility=hidden is used, assume the code has been annotated
  10484. correspondingly for the symbols needed. */
  10485. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10486. int fnord () __attribute__((visibility("default")));
  10487. #endif
  10488. int fnord () { return 42; }
  10489. int main ()
  10490. {
  10491. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10492. int status = $lt_dlunknown;
  10493. if (self)
  10494. {
  10495. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10496. else
  10497. {
  10498. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10499. else puts (dlerror ());
  10500. }
  10501. /* dlclose (self); */
  10502. }
  10503. else
  10504. puts (dlerror ());
  10505. return status;
  10506. }
  10507. _LT_EOF
  10508. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10509. (eval $ac_link) 2>&5
  10510. ac_status=$?
  10511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10512. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10513. (./conftest; exit; ) >&5 2>/dev/null
  10514. lt_status=$?
  10515. case x$lt_status in
  10516. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10517. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10518. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10519. esac
  10520. else :
  10521. # compilation failed
  10522. lt_cv_dlopen_self=no
  10523. fi
  10524. fi
  10525. rm -fr conftest*
  10526. fi
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10528. $as_echo "$lt_cv_dlopen_self" >&6; }
  10529. if test "x$lt_cv_dlopen_self" = xyes; then
  10530. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10532. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10533. if ${lt_cv_dlopen_self_static+:} false; then :
  10534. $as_echo_n "(cached) " >&6
  10535. else
  10536. if test "$cross_compiling" = yes; then :
  10537. lt_cv_dlopen_self_static=cross
  10538. else
  10539. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10540. lt_status=$lt_dlunknown
  10541. cat > conftest.$ac_ext <<_LT_EOF
  10542. #line $LINENO "configure"
  10543. #include "confdefs.h"
  10544. #if HAVE_DLFCN_H
  10545. #include <dlfcn.h>
  10546. #endif
  10547. #include <stdio.h>
  10548. #ifdef RTLD_GLOBAL
  10549. # define LT_DLGLOBAL RTLD_GLOBAL
  10550. #else
  10551. # ifdef DL_GLOBAL
  10552. # define LT_DLGLOBAL DL_GLOBAL
  10553. # else
  10554. # define LT_DLGLOBAL 0
  10555. # endif
  10556. #endif
  10557. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10558. find out it does not work in some platform. */
  10559. #ifndef LT_DLLAZY_OR_NOW
  10560. # ifdef RTLD_LAZY
  10561. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10562. # else
  10563. # ifdef DL_LAZY
  10564. # define LT_DLLAZY_OR_NOW DL_LAZY
  10565. # else
  10566. # ifdef RTLD_NOW
  10567. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10568. # else
  10569. # ifdef DL_NOW
  10570. # define LT_DLLAZY_OR_NOW DL_NOW
  10571. # else
  10572. # define LT_DLLAZY_OR_NOW 0
  10573. # endif
  10574. # endif
  10575. # endif
  10576. # endif
  10577. #endif
  10578. /* When -fvisbility=hidden is used, assume the code has been annotated
  10579. correspondingly for the symbols needed. */
  10580. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10581. int fnord () __attribute__((visibility("default")));
  10582. #endif
  10583. int fnord () { return 42; }
  10584. int main ()
  10585. {
  10586. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10587. int status = $lt_dlunknown;
  10588. if (self)
  10589. {
  10590. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10591. else
  10592. {
  10593. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10594. else puts (dlerror ());
  10595. }
  10596. /* dlclose (self); */
  10597. }
  10598. else
  10599. puts (dlerror ());
  10600. return status;
  10601. }
  10602. _LT_EOF
  10603. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10604. (eval $ac_link) 2>&5
  10605. ac_status=$?
  10606. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10607. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10608. (./conftest; exit; ) >&5 2>/dev/null
  10609. lt_status=$?
  10610. case x$lt_status in
  10611. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10612. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10613. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10614. esac
  10615. else :
  10616. # compilation failed
  10617. lt_cv_dlopen_self_static=no
  10618. fi
  10619. fi
  10620. rm -fr conftest*
  10621. fi
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10623. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10624. fi
  10625. CPPFLAGS="$save_CPPFLAGS"
  10626. LDFLAGS="$save_LDFLAGS"
  10627. LIBS="$save_LIBS"
  10628. ;;
  10629. esac
  10630. case $lt_cv_dlopen_self in
  10631. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10632. *) enable_dlopen_self=unknown ;;
  10633. esac
  10634. case $lt_cv_dlopen_self_static in
  10635. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10636. *) enable_dlopen_self_static=unknown ;;
  10637. esac
  10638. fi
  10639. striplib=
  10640. old_striplib=
  10641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10642. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10643. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10644. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10645. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10647. $as_echo "yes" >&6; }
  10648. else
  10649. # FIXME - insert some real tests, host_os isn't really good enough
  10650. case $host_os in
  10651. darwin*)
  10652. if test -n "$STRIP" ; then
  10653. striplib="$STRIP -x"
  10654. old_striplib="$STRIP -S"
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10656. $as_echo "yes" >&6; }
  10657. else
  10658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10659. $as_echo "no" >&6; }
  10660. fi
  10661. ;;
  10662. *)
  10663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10664. $as_echo "no" >&6; }
  10665. ;;
  10666. esac
  10667. fi
  10668. # Report which library types will actually be built
  10669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10670. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10672. $as_echo "$can_build_shared" >&6; }
  10673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10674. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10675. test "$can_build_shared" = "no" && enable_shared=no
  10676. # On AIX, shared libraries and static libraries use the same namespace, and
  10677. # are all built from PIC.
  10678. case $host_os in
  10679. aix3*)
  10680. test "$enable_shared" = yes && enable_static=no
  10681. if test -n "$RANLIB"; then
  10682. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10683. postinstall_cmds='$RANLIB $lib'
  10684. fi
  10685. ;;
  10686. aix[4-9]*)
  10687. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10688. test "$enable_shared" = yes && enable_static=no
  10689. fi
  10690. ;;
  10691. esac
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10693. $as_echo "$enable_shared" >&6; }
  10694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10695. $as_echo_n "checking whether to build static libraries... " >&6; }
  10696. # Make sure either enable_shared or enable_static is yes.
  10697. test "$enable_shared" = yes || enable_static=yes
  10698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10699. $as_echo "$enable_static" >&6; }
  10700. fi
  10701. ac_ext=c
  10702. ac_cpp='$CPP $CPPFLAGS'
  10703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10706. CC="$lt_save_CC"
  10707. ac_config_commands="$ac_config_commands libtool"
  10708. # Only expand once:
  10709. CFLAG_VISIBILITY=
  10710. HAVE_VISIBILITY=0
  10711. if test -n "$GCC"; then
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  10713. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  10714. if ${gl_cv_cc_vis_werror+:} false; then :
  10715. $as_echo_n "(cached) " >&6
  10716. else
  10717. gl_save_CFLAGS="$CFLAGS"
  10718. CFLAGS="$CFLAGS -Werror"
  10719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10720. /* end confdefs.h. */
  10721. int
  10722. main ()
  10723. {
  10724. ;
  10725. return 0;
  10726. }
  10727. _ACEOF
  10728. if ac_fn_c_try_compile "$LINENO"; then :
  10729. gl_cv_cc_vis_werror=yes
  10730. else
  10731. gl_cv_cc_vis_werror=no
  10732. fi
  10733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10734. CFLAGS="$gl_save_CFLAGS"
  10735. fi
  10736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  10737. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  10738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  10739. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10740. if ${gl_cv_cc_visibility+:} false; then :
  10741. $as_echo_n "(cached) " >&6
  10742. else
  10743. gl_save_CFLAGS="$CFLAGS"
  10744. CFLAGS="$CFLAGS -fvisibility=hidden"
  10745. if test $gl_cv_cc_vis_werror = yes; then
  10746. CFLAGS="$CFLAGS -Werror"
  10747. fi
  10748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10749. /* end confdefs.h. */
  10750. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10751. extern __attribute__((__visibility__("default"))) int exportedvar;
  10752. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10753. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10754. void dummyfunc (void) {}
  10755. int
  10756. main ()
  10757. {
  10758. ;
  10759. return 0;
  10760. }
  10761. _ACEOF
  10762. if ac_fn_c_try_compile "$LINENO"; then :
  10763. gl_cv_cc_visibility=yes
  10764. else
  10765. gl_cv_cc_visibility=no
  10766. fi
  10767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10768. CFLAGS="$gl_save_CFLAGS"
  10769. fi
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10771. $as_echo "$gl_cv_cc_visibility" >&6; }
  10772. if test $gl_cv_cc_visibility = yes; then
  10773. CFLAG_VISIBILITY="-fvisibility=hidden"
  10774. HAVE_VISIBILITY=1
  10775. fi
  10776. fi
  10777. cat >>confdefs.h <<_ACEOF
  10778. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10779. _ACEOF
  10780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10781. $as_echo_n "checking for ANSI C header files... " >&6; }
  10782. if ${ac_cv_header_stdc+:} false; then :
  10783. $as_echo_n "(cached) " >&6
  10784. else
  10785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10786. /* end confdefs.h. */
  10787. #include <stdlib.h>
  10788. #include <stdarg.h>
  10789. #include <string.h>
  10790. #include <float.h>
  10791. int
  10792. main ()
  10793. {
  10794. ;
  10795. return 0;
  10796. }
  10797. _ACEOF
  10798. if ac_fn_c_try_compile "$LINENO"; then :
  10799. ac_cv_header_stdc=yes
  10800. else
  10801. ac_cv_header_stdc=no
  10802. fi
  10803. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10804. if test $ac_cv_header_stdc = yes; then
  10805. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10807. /* end confdefs.h. */
  10808. #include <string.h>
  10809. _ACEOF
  10810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10811. $EGREP "memchr" >/dev/null 2>&1; then :
  10812. else
  10813. ac_cv_header_stdc=no
  10814. fi
  10815. rm -f conftest*
  10816. fi
  10817. if test $ac_cv_header_stdc = yes; then
  10818. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10820. /* end confdefs.h. */
  10821. #include <stdlib.h>
  10822. _ACEOF
  10823. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10824. $EGREP "free" >/dev/null 2>&1; then :
  10825. else
  10826. ac_cv_header_stdc=no
  10827. fi
  10828. rm -f conftest*
  10829. fi
  10830. if test $ac_cv_header_stdc = yes; then
  10831. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10832. if test "$cross_compiling" = yes; then :
  10833. :
  10834. else
  10835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10836. /* end confdefs.h. */
  10837. #include <ctype.h>
  10838. #include <stdlib.h>
  10839. #if ((' ' & 0x0FF) == 0x020)
  10840. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10841. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10842. #else
  10843. # define ISLOWER(c) \
  10844. (('a' <= (c) && (c) <= 'i') \
  10845. || ('j' <= (c) && (c) <= 'r') \
  10846. || ('s' <= (c) && (c) <= 'z'))
  10847. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10848. #endif
  10849. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10850. int
  10851. main ()
  10852. {
  10853. int i;
  10854. for (i = 0; i < 256; i++)
  10855. if (XOR (islower (i), ISLOWER (i))
  10856. || toupper (i) != TOUPPER (i))
  10857. return 2;
  10858. return 0;
  10859. }
  10860. _ACEOF
  10861. if ac_fn_c_try_run "$LINENO"; then :
  10862. else
  10863. ac_cv_header_stdc=no
  10864. fi
  10865. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10866. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10867. fi
  10868. fi
  10869. fi
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10871. $as_echo "$ac_cv_header_stdc" >&6; }
  10872. if test $ac_cv_header_stdc = yes; then
  10873. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10874. fi
  10875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10876. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10877. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10878. $as_echo_n "(cached) " >&6
  10879. else
  10880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10881. /* end confdefs.h. */
  10882. #include <sys/types.h>
  10883. int
  10884. main ()
  10885. {
  10886. return makedev(0, 0);
  10887. ;
  10888. return 0;
  10889. }
  10890. _ACEOF
  10891. if ac_fn_c_try_link "$LINENO"; then :
  10892. ac_cv_header_sys_types_h_makedev=yes
  10893. else
  10894. ac_cv_header_sys_types_h_makedev=no
  10895. fi
  10896. rm -f core conftest.err conftest.$ac_objext \
  10897. conftest$ac_exeext conftest.$ac_ext
  10898. fi
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10900. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10901. if test $ac_cv_header_sys_types_h_makedev = no; then
  10902. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10903. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10904. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10905. fi
  10906. if test $ac_cv_header_sys_mkdev_h = no; then
  10907. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10908. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10909. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10910. fi
  10911. fi
  10912. fi
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10914. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10915. if ${ac_cv_header_sys_wait_h+:} false; then :
  10916. $as_echo_n "(cached) " >&6
  10917. else
  10918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10919. /* end confdefs.h. */
  10920. #include <sys/types.h>
  10921. #include <sys/wait.h>
  10922. #ifndef WEXITSTATUS
  10923. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10924. #endif
  10925. #ifndef WIFEXITED
  10926. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10927. #endif
  10928. int
  10929. main ()
  10930. {
  10931. int s;
  10932. wait (&s);
  10933. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10934. ;
  10935. return 0;
  10936. }
  10937. _ACEOF
  10938. if ac_fn_c_try_compile "$LINENO"; then :
  10939. ac_cv_header_sys_wait_h=yes
  10940. else
  10941. ac_cv_header_sys_wait_h=no
  10942. fi
  10943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10944. fi
  10945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10946. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10947. if test $ac_cv_header_sys_wait_h = yes; then
  10948. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10949. fi
  10950. for ac_header in stdint.h fcntl.h inttypes.h unistd.h
  10951. do :
  10952. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10953. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10954. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10955. cat >>confdefs.h <<_ACEOF
  10956. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10957. _ACEOF
  10958. fi
  10959. done
  10960. for ac_header in utime.h wchar.h wctype.h
  10961. do :
  10962. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10963. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10964. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10965. cat >>confdefs.h <<_ACEOF
  10966. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10967. _ACEOF
  10968. fi
  10969. done
  10970. for ac_header in getopt.h err.h xlocale.h
  10971. do :
  10972. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10973. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10974. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10975. cat >>confdefs.h <<_ACEOF
  10976. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10977. _ACEOF
  10978. fi
  10979. done
  10980. for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h sys/sysmacros.h
  10981. do :
  10982. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10983. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10984. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10985. cat >>confdefs.h <<_ACEOF
  10986. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10987. _ACEOF
  10988. fi
  10989. done
  10990. if test "$enable_zlib" != "no"; then
  10991. for ac_header in zlib.h
  10992. do :
  10993. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10994. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10995. cat >>confdefs.h <<_ACEOF
  10996. #define HAVE_ZLIB_H 1
  10997. _ACEOF
  10998. fi
  10999. done
  11000. fi
  11001. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
  11002. "
  11003. if test "x$ac_cv_type_sig_t" = xyes; then :
  11004. $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
  11005. fi
  11006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  11007. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  11008. if ${ac_cv_c_const+:} false; then :
  11009. $as_echo_n "(cached) " >&6
  11010. else
  11011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11012. /* end confdefs.h. */
  11013. int
  11014. main ()
  11015. {
  11016. #ifndef __cplusplus
  11017. /* Ultrix mips cc rejects this sort of thing. */
  11018. typedef int charset[2];
  11019. const charset cs = { 0, 0 };
  11020. /* SunOS 4.1.1 cc rejects this. */
  11021. char const *const *pcpcc;
  11022. char **ppc;
  11023. /* NEC SVR4.0.2 mips cc rejects this. */
  11024. struct point {int x, y;};
  11025. static struct point const zero = {0,0};
  11026. /* AIX XL C 1.02.0.0 rejects this.
  11027. It does not let you subtract one const X* pointer from another in
  11028. an arm of an if-expression whose if-part is not a constant
  11029. expression */
  11030. const char *g = "string";
  11031. pcpcc = &g + (g ? g-g : 0);
  11032. /* HPUX 7.0 cc rejects these. */
  11033. ++pcpcc;
  11034. ppc = (char**) pcpcc;
  11035. pcpcc = (char const *const *) ppc;
  11036. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11037. char tx;
  11038. char *t = &tx;
  11039. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11040. *t++ = 0;
  11041. if (s) return 0;
  11042. }
  11043. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11044. int x[] = {25, 17};
  11045. const int *foo = &x[0];
  11046. ++foo;
  11047. }
  11048. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11049. typedef const int *iptr;
  11050. iptr p = 0;
  11051. ++p;
  11052. }
  11053. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11054. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11055. struct s { int j; const int *ap[3]; } bx;
  11056. struct s *b = &bx; b->j = 5;
  11057. }
  11058. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11059. const int foo = 10;
  11060. if (!foo) return 0;
  11061. }
  11062. return !cs[0] && !zero.x;
  11063. #endif
  11064. ;
  11065. return 0;
  11066. }
  11067. _ACEOF
  11068. if ac_fn_c_try_compile "$LINENO"; then :
  11069. ac_cv_c_const=yes
  11070. else
  11071. ac_cv_c_const=no
  11072. fi
  11073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11074. fi
  11075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11076. $as_echo "$ac_cv_c_const" >&6; }
  11077. if test $ac_cv_c_const = no; then
  11078. $as_echo "#define const /**/" >>confdefs.h
  11079. fi
  11080. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11081. if test "x$ac_cv_type_off_t" = xyes; then :
  11082. else
  11083. cat >>confdefs.h <<_ACEOF
  11084. #define off_t long int
  11085. _ACEOF
  11086. fi
  11087. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11088. if test "x$ac_cv_type_size_t" = xyes; then :
  11089. else
  11090. cat >>confdefs.h <<_ACEOF
  11091. #define size_t unsigned int
  11092. _ACEOF
  11093. fi
  11094. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11095. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11096. cat >>confdefs.h <<_ACEOF
  11097. #define HAVE_STRUCT_STAT_ST_RDEV 1
  11098. _ACEOF
  11099. fi
  11100. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
  11101. "
  11102. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11103. cat >>confdefs.h <<_ACEOF
  11104. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  11105. _ACEOF
  11106. fi
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11108. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11109. if ${ac_cv_struct_tm+:} false; then :
  11110. $as_echo_n "(cached) " >&6
  11111. else
  11112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11113. /* end confdefs.h. */
  11114. #include <sys/types.h>
  11115. #include <time.h>
  11116. int
  11117. main ()
  11118. {
  11119. struct tm tm;
  11120. int *p = &tm.tm_sec;
  11121. return !p;
  11122. ;
  11123. return 0;
  11124. }
  11125. _ACEOF
  11126. if ac_fn_c_try_compile "$LINENO"; then :
  11127. ac_cv_struct_tm=time.h
  11128. else
  11129. ac_cv_struct_tm=sys/time.h
  11130. fi
  11131. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11132. fi
  11133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11134. $as_echo "$ac_cv_struct_tm" >&6; }
  11135. if test $ac_cv_struct_tm = sys/time.h; then
  11136. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11137. fi
  11138. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11139. #include <$ac_cv_struct_tm>
  11140. "
  11141. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11142. cat >>confdefs.h <<_ACEOF
  11143. #define HAVE_STRUCT_TM_TM_ZONE 1
  11144. _ACEOF
  11145. fi
  11146. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11147. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11148. else
  11149. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11150. "
  11151. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11152. ac_have_decl=1
  11153. else
  11154. ac_have_decl=0
  11155. fi
  11156. cat >>confdefs.h <<_ACEOF
  11157. #define HAVE_DECL_TZNAME $ac_have_decl
  11158. _ACEOF
  11159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11160. $as_echo_n "checking for tzname... " >&6; }
  11161. if ${ac_cv_var_tzname+:} false; then :
  11162. $as_echo_n "(cached) " >&6
  11163. else
  11164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11165. /* end confdefs.h. */
  11166. #include <time.h>
  11167. #if !HAVE_DECL_TZNAME
  11168. extern char *tzname[];
  11169. #endif
  11170. int
  11171. main ()
  11172. {
  11173. return tzname[0][0];
  11174. ;
  11175. return 0;
  11176. }
  11177. _ACEOF
  11178. if ac_fn_c_try_link "$LINENO"; then :
  11179. ac_cv_var_tzname=yes
  11180. else
  11181. ac_cv_var_tzname=no
  11182. fi
  11183. rm -f core conftest.err conftest.$ac_objext \
  11184. conftest$ac_exeext conftest.$ac_ext
  11185. fi
  11186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11187. $as_echo "$ac_cv_var_tzname" >&6; }
  11188. if test $ac_cv_var_tzname = yes; then
  11189. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11190. fi
  11191. fi
  11192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11193. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11194. if ${ac_cv_struct_tm_zone+:} false; then :
  11195. $as_echo_n "(cached) " >&6
  11196. else
  11197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11198. /* end confdefs.h. */
  11199. #include <sys/types.h>
  11200. #include <$ac_cv_struct_tm>
  11201. int
  11202. main ()
  11203. {
  11204. struct tm tm; tm.tm_zone;
  11205. ;
  11206. return 0;
  11207. }
  11208. _ACEOF
  11209. if ac_fn_c_try_compile "$LINENO"; then :
  11210. ac_cv_struct_tm_zone=yes
  11211. else
  11212. ac_cv_struct_tm_zone=no
  11213. fi
  11214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11215. fi
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11217. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11218. if test "$ac_cv_struct_tm_zone" = yes; then
  11219. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11220. fi
  11221. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11222. # consider it declared and we won't give our own extern.
  11223. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11224. "
  11225. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11226. ac_have_decl=1
  11227. else
  11228. ac_have_decl=0
  11229. fi
  11230. cat >>confdefs.h <<_ACEOF
  11231. #define HAVE_DECL_TZNAME $ac_have_decl
  11232. _ACEOF
  11233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11234. $as_echo_n "checking for tzname... " >&6; }
  11235. if ${ac_cv_var_tzname+:} false; then :
  11236. $as_echo_n "(cached) " >&6
  11237. else
  11238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11239. /* end confdefs.h. */
  11240. #include <time.h>
  11241. #if !HAVE_DECL_TZNAME
  11242. extern char *tzname[];
  11243. #endif
  11244. int
  11245. main ()
  11246. {
  11247. return tzname[0][0];
  11248. ;
  11249. return 0;
  11250. }
  11251. _ACEOF
  11252. if ac_fn_c_try_link "$LINENO"; then :
  11253. ac_cv_var_tzname=yes
  11254. else
  11255. ac_cv_var_tzname=no
  11256. fi
  11257. rm -f core conftest.err conftest.$ac_objext \
  11258. conftest$ac_exeext conftest.$ac_ext
  11259. fi
  11260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11261. $as_echo "$ac_cv_var_tzname" >&6; }
  11262. if test $ac_cv_var_tzname = yes; then
  11263. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11264. fi
  11265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11266. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11267. if ${ac_cv_struct_tm_isdst+:} false; then :
  11268. $as_echo_n "(cached) " >&6
  11269. else
  11270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11271. /* end confdefs.h. */
  11272. #include <sys/types.h>
  11273. #include <$ac_cv_struct_tm>
  11274. int
  11275. main ()
  11276. {
  11277. struct tm tm; tm.tm_isdst;
  11278. ;
  11279. return 0;
  11280. }
  11281. _ACEOF
  11282. if ac_fn_c_try_compile "$LINENO"; then :
  11283. ac_cv_struct_tm_isdst=yes
  11284. else
  11285. ac_cv_struct_tm_isdst=no
  11286. fi
  11287. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11288. fi
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11290. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11291. if test "$ac_cv_struct_tm_isdst" = yes; then
  11292. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  11293. fi
  11294. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11295. "
  11296. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11297. ac_have_decl=1
  11298. else
  11299. ac_have_decl=0
  11300. fi
  11301. cat >>confdefs.h <<_ACEOF
  11302. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  11303. _ACEOF
  11304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11305. $as_echo_n "checking for daylight... " >&6; }
  11306. if ${ac_cv_var_daylight+:} false; then :
  11307. $as_echo_n "(cached) " >&6
  11308. else
  11309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11310. /* end confdefs.h. */
  11311. #include <time.h>
  11312. #if !HAVE_DECL_DAYLIGHT
  11313. extern int daylight;
  11314. #endif
  11315. int
  11316. main ()
  11317. {
  11318. atoi(daylight);
  11319. ;
  11320. return 0;
  11321. }
  11322. _ACEOF
  11323. if ac_fn_c_try_link "$LINENO"; then :
  11324. ac_cv_var_daylight=yes
  11325. else
  11326. ac_cv_var_daylight=no
  11327. fi
  11328. rm -f core conftest.err conftest.$ac_objext \
  11329. conftest$ac_exeext conftest.$ac_ext
  11330. fi
  11331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11332. $as_echo "$ac_cv_var_daylight" >&6; }
  11333. if test $ac_cv_var_daylight = yes; then
  11334. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  11335. fi
  11336. # Check whether --enable-largefile was given.
  11337. if test "${enable_largefile+set}" = set; then :
  11338. enableval=$enable_largefile;
  11339. fi
  11340. if test "$enable_largefile" != no; then
  11341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11342. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11343. if ${ac_cv_sys_largefile_CC+:} false; then :
  11344. $as_echo_n "(cached) " >&6
  11345. else
  11346. ac_cv_sys_largefile_CC=no
  11347. if test "$GCC" != yes; then
  11348. ac_save_CC=$CC
  11349. while :; do
  11350. # IRIX 6.2 and later do not support large files by default,
  11351. # so use the C compiler's -n32 option if that helps.
  11352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11353. /* end confdefs.h. */
  11354. #include <sys/types.h>
  11355. /* Check that off_t can represent 2**63 - 1 correctly.
  11356. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11357. since some C++ compilers masquerading as C compilers
  11358. incorrectly reject 9223372036854775807. */
  11359. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11360. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11361. && LARGE_OFF_T % 2147483647 == 1)
  11362. ? 1 : -1];
  11363. int
  11364. main ()
  11365. {
  11366. ;
  11367. return 0;
  11368. }
  11369. _ACEOF
  11370. if ac_fn_c_try_compile "$LINENO"; then :
  11371. break
  11372. fi
  11373. rm -f core conftest.err conftest.$ac_objext
  11374. CC="$CC -n32"
  11375. if ac_fn_c_try_compile "$LINENO"; then :
  11376. ac_cv_sys_largefile_CC=' -n32'; break
  11377. fi
  11378. rm -f core conftest.err conftest.$ac_objext
  11379. break
  11380. done
  11381. CC=$ac_save_CC
  11382. rm -f conftest.$ac_ext
  11383. fi
  11384. fi
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11386. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11387. if test "$ac_cv_sys_largefile_CC" != no; then
  11388. CC=$CC$ac_cv_sys_largefile_CC
  11389. fi
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11391. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11392. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11393. $as_echo_n "(cached) " >&6
  11394. else
  11395. while :; do
  11396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11397. /* end confdefs.h. */
  11398. #include <sys/types.h>
  11399. /* Check that off_t can represent 2**63 - 1 correctly.
  11400. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11401. since some C++ compilers masquerading as C compilers
  11402. incorrectly reject 9223372036854775807. */
  11403. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11404. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11405. && LARGE_OFF_T % 2147483647 == 1)
  11406. ? 1 : -1];
  11407. int
  11408. main ()
  11409. {
  11410. ;
  11411. return 0;
  11412. }
  11413. _ACEOF
  11414. if ac_fn_c_try_compile "$LINENO"; then :
  11415. ac_cv_sys_file_offset_bits=no; break
  11416. fi
  11417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11418. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11419. /* end confdefs.h. */
  11420. #define _FILE_OFFSET_BITS 64
  11421. #include <sys/types.h>
  11422. /* Check that off_t can represent 2**63 - 1 correctly.
  11423. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11424. since some C++ compilers masquerading as C compilers
  11425. incorrectly reject 9223372036854775807. */
  11426. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11427. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11428. && LARGE_OFF_T % 2147483647 == 1)
  11429. ? 1 : -1];
  11430. int
  11431. main ()
  11432. {
  11433. ;
  11434. return 0;
  11435. }
  11436. _ACEOF
  11437. if ac_fn_c_try_compile "$LINENO"; then :
  11438. ac_cv_sys_file_offset_bits=64; break
  11439. fi
  11440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11441. ac_cv_sys_file_offset_bits=unknown
  11442. break
  11443. done
  11444. fi
  11445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11446. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11447. case $ac_cv_sys_file_offset_bits in #(
  11448. no | unknown) ;;
  11449. *)
  11450. cat >>confdefs.h <<_ACEOF
  11451. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11452. _ACEOF
  11453. ;;
  11454. esac
  11455. rm -rf conftest*
  11456. if test $ac_cv_sys_file_offset_bits = unknown; then
  11457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11458. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11459. if ${ac_cv_sys_large_files+:} false; then :
  11460. $as_echo_n "(cached) " >&6
  11461. else
  11462. while :; do
  11463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11464. /* end confdefs.h. */
  11465. #include <sys/types.h>
  11466. /* Check that off_t can represent 2**63 - 1 correctly.
  11467. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11468. since some C++ compilers masquerading as C compilers
  11469. incorrectly reject 9223372036854775807. */
  11470. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11471. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11472. && LARGE_OFF_T % 2147483647 == 1)
  11473. ? 1 : -1];
  11474. int
  11475. main ()
  11476. {
  11477. ;
  11478. return 0;
  11479. }
  11480. _ACEOF
  11481. if ac_fn_c_try_compile "$LINENO"; then :
  11482. ac_cv_sys_large_files=no; break
  11483. fi
  11484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11486. /* end confdefs.h. */
  11487. #define _LARGE_FILES 1
  11488. #include <sys/types.h>
  11489. /* Check that off_t can represent 2**63 - 1 correctly.
  11490. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11491. since some C++ compilers masquerading as C compilers
  11492. incorrectly reject 9223372036854775807. */
  11493. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11494. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11495. && LARGE_OFF_T % 2147483647 == 1)
  11496. ? 1 : -1];
  11497. int
  11498. main ()
  11499. {
  11500. ;
  11501. return 0;
  11502. }
  11503. _ACEOF
  11504. if ac_fn_c_try_compile "$LINENO"; then :
  11505. ac_cv_sys_large_files=1; break
  11506. fi
  11507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11508. ac_cv_sys_large_files=unknown
  11509. break
  11510. done
  11511. fi
  11512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11513. $as_echo "$ac_cv_sys_large_files" >&6; }
  11514. case $ac_cv_sys_large_files in #(
  11515. no | unknown) ;;
  11516. *)
  11517. cat >>confdefs.h <<_ACEOF
  11518. #define _LARGE_FILES $ac_cv_sys_large_files
  11519. _ACEOF
  11520. ;;
  11521. esac
  11522. rm -rf conftest*
  11523. fi
  11524. fi
  11525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11526. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11527. if ${ac_cv_sys_largefile_source+:} false; then :
  11528. $as_echo_n "(cached) " >&6
  11529. else
  11530. while :; do
  11531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11532. /* end confdefs.h. */
  11533. #include <sys/types.h> /* for off_t */
  11534. #include <stdio.h>
  11535. int
  11536. main ()
  11537. {
  11538. int (*fp) (FILE *, off_t, int) = fseeko;
  11539. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11540. ;
  11541. return 0;
  11542. }
  11543. _ACEOF
  11544. if ac_fn_c_try_link "$LINENO"; then :
  11545. ac_cv_sys_largefile_source=no; break
  11546. fi
  11547. rm -f core conftest.err conftest.$ac_objext \
  11548. conftest$ac_exeext conftest.$ac_ext
  11549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11550. /* end confdefs.h. */
  11551. #define _LARGEFILE_SOURCE 1
  11552. #include <sys/types.h> /* for off_t */
  11553. #include <stdio.h>
  11554. int
  11555. main ()
  11556. {
  11557. int (*fp) (FILE *, off_t, int) = fseeko;
  11558. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11559. ;
  11560. return 0;
  11561. }
  11562. _ACEOF
  11563. if ac_fn_c_try_link "$LINENO"; then :
  11564. ac_cv_sys_largefile_source=1; break
  11565. fi
  11566. rm -f core conftest.err conftest.$ac_objext \
  11567. conftest$ac_exeext conftest.$ac_ext
  11568. ac_cv_sys_largefile_source=unknown
  11569. break
  11570. done
  11571. fi
  11572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11573. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11574. case $ac_cv_sys_largefile_source in #(
  11575. no | unknown) ;;
  11576. *)
  11577. cat >>confdefs.h <<_ACEOF
  11578. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11579. _ACEOF
  11580. ;;
  11581. esac
  11582. rm -rf conftest*
  11583. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11584. # in glibc 2.1.3, but that breaks too many other things.
  11585. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11586. if test $ac_cv_sys_largefile_source != unknown; then
  11587. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11588. fi
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11590. $as_echo_n "checking for mbstate_t... " >&6; }
  11591. if ${ac_cv_type_mbstate_t+:} false; then :
  11592. $as_echo_n "(cached) " >&6
  11593. else
  11594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11595. /* end confdefs.h. */
  11596. $ac_includes_default
  11597. # include <wchar.h>
  11598. int
  11599. main ()
  11600. {
  11601. mbstate_t x; return sizeof x;
  11602. ;
  11603. return 0;
  11604. }
  11605. _ACEOF
  11606. if ac_fn_c_try_compile "$LINENO"; then :
  11607. ac_cv_type_mbstate_t=yes
  11608. else
  11609. ac_cv_type_mbstate_t=no
  11610. fi
  11611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11612. fi
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  11614. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  11615. if test $ac_cv_type_mbstate_t = yes; then
  11616. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11617. else
  11618. $as_echo "#define mbstate_t int" >>confdefs.h
  11619. fi
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  11621. $as_echo_n "checking for struct option in getopt... " >&6; }
  11622. if ${ac_cv_struct_option_getopt_h+:} false; then :
  11623. $as_echo_n "(cached) " >&6
  11624. else
  11625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11626. /* end confdefs.h. */
  11627. #include <getopt.h>
  11628. int
  11629. main ()
  11630. {
  11631. struct option op; op.name;
  11632. ;
  11633. return 0;
  11634. }
  11635. _ACEOF
  11636. if ac_fn_c_try_compile "$LINENO"; then :
  11637. ac_cv_struct_option_getopt_h=yes
  11638. else
  11639. ac_cv_struct_option_getopt_h=no
  11640. fi
  11641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11642. fi
  11643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  11644. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  11645. if test "$ac_cv_struct_option_getopt_h" = yes; then
  11646. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  11647. fi
  11648. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11649. if test "x$ac_cv_type_pid_t" = xyes; then :
  11650. else
  11651. cat >>confdefs.h <<_ACEOF
  11652. #define pid_t int
  11653. _ACEOF
  11654. fi
  11655. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11656. case $ac_cv_c_uint8_t in #(
  11657. no|yes) ;; #(
  11658. *)
  11659. $as_echo "#define _UINT8_T 1" >>confdefs.h
  11660. cat >>confdefs.h <<_ACEOF
  11661. #define uint8_t $ac_cv_c_uint8_t
  11662. _ACEOF
  11663. ;;
  11664. esac
  11665. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11666. case $ac_cv_c_uint16_t in #(
  11667. no|yes) ;; #(
  11668. *)
  11669. cat >>confdefs.h <<_ACEOF
  11670. #define uint16_t $ac_cv_c_uint16_t
  11671. _ACEOF
  11672. ;;
  11673. esac
  11674. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11675. case $ac_cv_c_uint32_t in #(
  11676. no|yes) ;; #(
  11677. *)
  11678. $as_echo "#define _UINT32_T 1" >>confdefs.h
  11679. cat >>confdefs.h <<_ACEOF
  11680. #define uint32_t $ac_cv_c_uint32_t
  11681. _ACEOF
  11682. ;;
  11683. esac
  11684. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11685. case $ac_cv_c_int32_t in #(
  11686. no|yes) ;; #(
  11687. *)
  11688. cat >>confdefs.h <<_ACEOF
  11689. #define int32_t $ac_cv_c_int32_t
  11690. _ACEOF
  11691. ;;
  11692. esac
  11693. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11694. case $ac_cv_c_uint64_t in #(
  11695. no|yes) ;; #(
  11696. *)
  11697. $as_echo "#define _UINT64_T 1" >>confdefs.h
  11698. cat >>confdefs.h <<_ACEOF
  11699. #define uint64_t $ac_cv_c_uint64_t
  11700. _ACEOF
  11701. ;;
  11702. esac
  11703. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11704. case $ac_cv_c_int64_t in #(
  11705. no|yes) ;; #(
  11706. *)
  11707. cat >>confdefs.h <<_ACEOF
  11708. #define int64_t $ac_cv_c_int64_t
  11709. _ACEOF
  11710. ;;
  11711. esac
  11712. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11713. if test "x$ac_cv_type_intptr_t" = xyes; then :
  11714. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  11715. else
  11716. for ac_type in 'int' 'long int' 'long long int'; do
  11717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11718. /* end confdefs.h. */
  11719. $ac_includes_default
  11720. int
  11721. main ()
  11722. {
  11723. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11724. test_array [0] = 0;
  11725. return test_array [0];
  11726. ;
  11727. return 0;
  11728. }
  11729. _ACEOF
  11730. if ac_fn_c_try_compile "$LINENO"; then :
  11731. cat >>confdefs.h <<_ACEOF
  11732. #define intptr_t $ac_type
  11733. _ACEOF
  11734. ac_type=
  11735. fi
  11736. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11737. test -z "$ac_type" && break
  11738. done
  11739. fi
  11740. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11741. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11742. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  11743. else
  11744. for ac_type in 'unsigned int' 'unsigned long int' \
  11745. 'unsigned long long int'; do
  11746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11747. /* end confdefs.h. */
  11748. $ac_includes_default
  11749. int
  11750. main ()
  11751. {
  11752. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11753. test_array [0] = 0;
  11754. return test_array [0];
  11755. ;
  11756. return 0;
  11757. }
  11758. _ACEOF
  11759. if ac_fn_c_try_compile "$LINENO"; then :
  11760. cat >>confdefs.h <<_ACEOF
  11761. #define uintptr_t $ac_type
  11762. _ACEOF
  11763. ac_type=
  11764. fi
  11765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11766. test -z "$ac_type" && break
  11767. done
  11768. fi
  11769. for ac_header in $ac_header_list
  11770. do :
  11771. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11772. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11773. "
  11774. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11775. cat >>confdefs.h <<_ACEOF
  11776. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11777. _ACEOF
  11778. fi
  11779. done
  11780. for ac_func in getpagesize
  11781. do :
  11782. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11783. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11784. cat >>confdefs.h <<_ACEOF
  11785. #define HAVE_GETPAGESIZE 1
  11786. _ACEOF
  11787. fi
  11788. done
  11789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11790. $as_echo_n "checking for working mmap... " >&6; }
  11791. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11792. $as_echo_n "(cached) " >&6
  11793. else
  11794. if test "$cross_compiling" = yes; then :
  11795. ac_cv_func_mmap_fixed_mapped=no
  11796. else
  11797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11798. /* end confdefs.h. */
  11799. $ac_includes_default
  11800. /* malloc might have been renamed as rpl_malloc. */
  11801. #undef malloc
  11802. /* Thanks to Mike Haertel and Jim Avera for this test.
  11803. Here is a matrix of mmap possibilities:
  11804. mmap private not fixed
  11805. mmap private fixed at somewhere currently unmapped
  11806. mmap private fixed at somewhere already mapped
  11807. mmap shared not fixed
  11808. mmap shared fixed at somewhere currently unmapped
  11809. mmap shared fixed at somewhere already mapped
  11810. For private mappings, we should verify that changes cannot be read()
  11811. back from the file, nor mmap's back from the file at a different
  11812. address. (There have been systems where private was not correctly
  11813. implemented like the infamous i386 svr4.0, and systems where the
  11814. VM page cache was not coherent with the file system buffer cache
  11815. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11816. For shared mappings, we should conversely verify that changes get
  11817. propagated back to all the places they're supposed to be.
  11818. Grep wants private fixed already mapped.
  11819. The main things grep needs to know about mmap are:
  11820. * does it exist and is it safe to write into the mmap'd area
  11821. * how to use it (BSD variants) */
  11822. #include <fcntl.h>
  11823. #include <sys/mman.h>
  11824. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11825. char *malloc ();
  11826. #endif
  11827. /* This mess was copied from the GNU getpagesize.h. */
  11828. #ifndef HAVE_GETPAGESIZE
  11829. # ifdef _SC_PAGESIZE
  11830. # define getpagesize() sysconf(_SC_PAGESIZE)
  11831. # else /* no _SC_PAGESIZE */
  11832. # ifdef HAVE_SYS_PARAM_H
  11833. # include <sys/param.h>
  11834. # ifdef EXEC_PAGESIZE
  11835. # define getpagesize() EXEC_PAGESIZE
  11836. # else /* no EXEC_PAGESIZE */
  11837. # ifdef NBPG
  11838. # define getpagesize() NBPG * CLSIZE
  11839. # ifndef CLSIZE
  11840. # define CLSIZE 1
  11841. # endif /* no CLSIZE */
  11842. # else /* no NBPG */
  11843. # ifdef NBPC
  11844. # define getpagesize() NBPC
  11845. # else /* no NBPC */
  11846. # ifdef PAGESIZE
  11847. # define getpagesize() PAGESIZE
  11848. # endif /* PAGESIZE */
  11849. # endif /* no NBPC */
  11850. # endif /* no NBPG */
  11851. # endif /* no EXEC_PAGESIZE */
  11852. # else /* no HAVE_SYS_PARAM_H */
  11853. # define getpagesize() 8192 /* punt totally */
  11854. # endif /* no HAVE_SYS_PARAM_H */
  11855. # endif /* no _SC_PAGESIZE */
  11856. #endif /* no HAVE_GETPAGESIZE */
  11857. int
  11858. main ()
  11859. {
  11860. char *data, *data2, *data3;
  11861. const char *cdata2;
  11862. int i, pagesize;
  11863. int fd, fd2;
  11864. pagesize = getpagesize ();
  11865. /* First, make a file with some known garbage in it. */
  11866. data = (char *) malloc (pagesize);
  11867. if (!data)
  11868. return 1;
  11869. for (i = 0; i < pagesize; ++i)
  11870. *(data + i) = rand ();
  11871. umask (0);
  11872. fd = creat ("conftest.mmap", 0600);
  11873. if (fd < 0)
  11874. return 2;
  11875. if (write (fd, data, pagesize) != pagesize)
  11876. return 3;
  11877. close (fd);
  11878. /* Next, check that the tail of a page is zero-filled. File must have
  11879. non-zero length, otherwise we risk SIGBUS for entire page. */
  11880. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11881. if (fd2 < 0)
  11882. return 4;
  11883. cdata2 = "";
  11884. if (write (fd2, cdata2, 1) != 1)
  11885. return 5;
  11886. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11887. if (data2 == MAP_FAILED)
  11888. return 6;
  11889. for (i = 0; i < pagesize; ++i)
  11890. if (*(data2 + i))
  11891. return 7;
  11892. close (fd2);
  11893. if (munmap (data2, pagesize))
  11894. return 8;
  11895. /* Next, try to mmap the file at a fixed address which already has
  11896. something else allocated at it. If we can, also make sure that
  11897. we see the same garbage. */
  11898. fd = open ("conftest.mmap", O_RDWR);
  11899. if (fd < 0)
  11900. return 9;
  11901. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11902. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11903. return 10;
  11904. for (i = 0; i < pagesize; ++i)
  11905. if (*(data + i) != *(data2 + i))
  11906. return 11;
  11907. /* Finally, make sure that changes to the mapped area do not
  11908. percolate back to the file as seen by read(). (This is a bug on
  11909. some variants of i386 svr4.0.) */
  11910. for (i = 0; i < pagesize; ++i)
  11911. *(data2 + i) = *(data2 + i) + 1;
  11912. data3 = (char *) malloc (pagesize);
  11913. if (!data3)
  11914. return 12;
  11915. if (read (fd, data3, pagesize) != pagesize)
  11916. return 13;
  11917. for (i = 0; i < pagesize; ++i)
  11918. if (*(data + i) != *(data3 + i))
  11919. return 14;
  11920. close (fd);
  11921. return 0;
  11922. }
  11923. _ACEOF
  11924. if ac_fn_c_try_run "$LINENO"; then :
  11925. ac_cv_func_mmap_fixed_mapped=yes
  11926. else
  11927. ac_cv_func_mmap_fixed_mapped=no
  11928. fi
  11929. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11930. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11931. fi
  11932. fi
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11934. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11935. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11936. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11937. fi
  11938. rm -f conftest.mmap conftest.txt
  11939. for ac_header in vfork.h
  11940. do :
  11941. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11942. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11943. cat >>confdefs.h <<_ACEOF
  11944. #define HAVE_VFORK_H 1
  11945. _ACEOF
  11946. fi
  11947. done
  11948. for ac_func in fork vfork
  11949. do :
  11950. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11951. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11952. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11953. cat >>confdefs.h <<_ACEOF
  11954. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11955. _ACEOF
  11956. fi
  11957. done
  11958. if test "x$ac_cv_func_fork" = xyes; then
  11959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11960. $as_echo_n "checking for working fork... " >&6; }
  11961. if ${ac_cv_func_fork_works+:} false; then :
  11962. $as_echo_n "(cached) " >&6
  11963. else
  11964. if test "$cross_compiling" = yes; then :
  11965. ac_cv_func_fork_works=cross
  11966. else
  11967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11968. /* end confdefs.h. */
  11969. $ac_includes_default
  11970. int
  11971. main ()
  11972. {
  11973. /* By Ruediger Kuhlmann. */
  11974. return fork () < 0;
  11975. ;
  11976. return 0;
  11977. }
  11978. _ACEOF
  11979. if ac_fn_c_try_run "$LINENO"; then :
  11980. ac_cv_func_fork_works=yes
  11981. else
  11982. ac_cv_func_fork_works=no
  11983. fi
  11984. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11985. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11986. fi
  11987. fi
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11989. $as_echo "$ac_cv_func_fork_works" >&6; }
  11990. else
  11991. ac_cv_func_fork_works=$ac_cv_func_fork
  11992. fi
  11993. if test "x$ac_cv_func_fork_works" = xcross; then
  11994. case $host in
  11995. *-*-amigaos* | *-*-msdosdjgpp*)
  11996. # Override, as these systems have only a dummy fork() stub
  11997. ac_cv_func_fork_works=no
  11998. ;;
  11999. *)
  12000. ac_cv_func_fork_works=yes
  12001. ;;
  12002. esac
  12003. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  12004. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  12005. fi
  12006. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12007. if test "x$ac_cv_func_vfork" = xyes; then
  12008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  12009. $as_echo_n "checking for working vfork... " >&6; }
  12010. if ${ac_cv_func_vfork_works+:} false; then :
  12011. $as_echo_n "(cached) " >&6
  12012. else
  12013. if test "$cross_compiling" = yes; then :
  12014. ac_cv_func_vfork_works=cross
  12015. else
  12016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12017. /* end confdefs.h. */
  12018. /* Thanks to Paul Eggert for this test. */
  12019. $ac_includes_default
  12020. #include <sys/wait.h>
  12021. #ifdef HAVE_VFORK_H
  12022. # include <vfork.h>
  12023. #endif
  12024. /* On some sparc systems, changes by the child to local and incoming
  12025. argument registers are propagated back to the parent. The compiler
  12026. is told about this with #include <vfork.h>, but some compilers
  12027. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12028. static variable whose address is put into a register that is
  12029. clobbered by the vfork. */
  12030. static void
  12031. #ifdef __cplusplus
  12032. sparc_address_test (int arg)
  12033. # else
  12034. sparc_address_test (arg) int arg;
  12035. #endif
  12036. {
  12037. static pid_t child;
  12038. if (!child) {
  12039. child = vfork ();
  12040. if (child < 0) {
  12041. perror ("vfork");
  12042. _exit(2);
  12043. }
  12044. if (!child) {
  12045. arg = getpid();
  12046. write(-1, "", 0);
  12047. _exit (arg);
  12048. }
  12049. }
  12050. }
  12051. int
  12052. main ()
  12053. {
  12054. pid_t parent = getpid ();
  12055. pid_t child;
  12056. sparc_address_test (0);
  12057. child = vfork ();
  12058. if (child == 0) {
  12059. /* Here is another test for sparc vfork register problems. This
  12060. test uses lots of local variables, at least as many local
  12061. variables as main has allocated so far including compiler
  12062. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12063. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12064. reuse the register of parent for one of the local variables,
  12065. since it will think that parent can't possibly be used any more
  12066. in this routine. Assigning to the local variable will thus
  12067. munge parent in the parent process. */
  12068. pid_t
  12069. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12070. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12071. /* Convince the compiler that p..p7 are live; otherwise, it might
  12072. use the same hardware register for all 8 local variables. */
  12073. if (p != p1 || p != p2 || p != p3 || p != p4
  12074. || p != p5 || p != p6 || p != p7)
  12075. _exit(1);
  12076. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12077. from child file descriptors. If the child closes a descriptor
  12078. before it execs or exits, this munges the parent's descriptor
  12079. as well. Test for this by closing stdout in the child. */
  12080. _exit(close(fileno(stdout)) != 0);
  12081. } else {
  12082. int status;
  12083. struct stat st;
  12084. while (wait(&status) != child)
  12085. ;
  12086. return (
  12087. /* Was there some problem with vforking? */
  12088. child < 0
  12089. /* Did the child fail? (This shouldn't happen.) */
  12090. || status
  12091. /* Did the vfork/compiler bug occur? */
  12092. || parent != getpid()
  12093. /* Did the file descriptor bug occur? */
  12094. || fstat(fileno(stdout), &st) != 0
  12095. );
  12096. }
  12097. }
  12098. _ACEOF
  12099. if ac_fn_c_try_run "$LINENO"; then :
  12100. ac_cv_func_vfork_works=yes
  12101. else
  12102. ac_cv_func_vfork_works=no
  12103. fi
  12104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12105. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12106. fi
  12107. fi
  12108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12109. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12110. fi;
  12111. if test "x$ac_cv_func_fork_works" = xcross; then
  12112. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12114. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12115. fi
  12116. if test "x$ac_cv_func_vfork_works" = xyes; then
  12117. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12118. else
  12119. $as_echo "#define vfork fork" >>confdefs.h
  12120. fi
  12121. if test "x$ac_cv_func_fork_works" = xyes; then
  12122. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12123. fi
  12124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12125. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12126. if ${ac_cv_func_mbrtowc+:} false; then :
  12127. $as_echo_n "(cached) " >&6
  12128. else
  12129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12130. /* end confdefs.h. */
  12131. #include <wchar.h>
  12132. int
  12133. main ()
  12134. {
  12135. wchar_t wc;
  12136. char const s[] = "";
  12137. size_t n = 1;
  12138. mbstate_t state;
  12139. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12140. ;
  12141. return 0;
  12142. }
  12143. _ACEOF
  12144. if ac_fn_c_try_link "$LINENO"; then :
  12145. ac_cv_func_mbrtowc=yes
  12146. else
  12147. ac_cv_func_mbrtowc=no
  12148. fi
  12149. rm -f core conftest.err conftest.$ac_objext \
  12150. conftest$ac_exeext conftest.$ac_ext
  12151. fi
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12153. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12154. if test $ac_cv_func_mbrtowc = yes; then
  12155. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  12156. fi
  12157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12158. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12159. # Check whether --enable-warnings was given.
  12160. if test "${enable_warnings+set}" = set; then :
  12161. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12163. $as_echo "no" >&6; }
  12164. WARNINGS=
  12165. else
  12166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12167. $as_echo "yes" >&6; }
  12168. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12169. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12170. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12171. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12172. fi
  12173. else
  12174. if test "$GCC" = yes; then
  12175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12176. $as_echo "yes" >&6; }
  12177. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12178. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12179. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12180. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12181. else
  12182. WARNINGS=
  12183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12184. $as_echo "no" >&6; }
  12185. fi
  12186. fi
  12187. for ac_func in strndup mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale memmem
  12188. do :
  12189. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12190. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12191. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12192. cat >>confdefs.h <<_ACEOF
  12193. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12194. _ACEOF
  12195. fi
  12196. done
  12197. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12198. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12199. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12200. else
  12201. case " $LIBOBJS " in
  12202. *" getopt_long.$ac_objext "* ) ;;
  12203. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  12204. ;;
  12205. esac
  12206. fi
  12207. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12208. if test "x$ac_cv_func_asprintf" = xyes; then :
  12209. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  12210. else
  12211. case " $LIBOBJS " in
  12212. *" asprintf.$ac_objext "* ) ;;
  12213. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  12214. ;;
  12215. esac
  12216. fi
  12217. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12218. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12219. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  12220. else
  12221. case " $LIBOBJS " in
  12222. *" vasprintf.$ac_objext "* ) ;;
  12223. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  12224. ;;
  12225. esac
  12226. fi
  12227. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12228. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12229. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  12230. else
  12231. case " $LIBOBJS " in
  12232. *" strlcpy.$ac_objext "* ) ;;
  12233. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  12234. ;;
  12235. esac
  12236. fi
  12237. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12238. if test "x$ac_cv_func_strlcat" = xyes; then :
  12239. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  12240. else
  12241. case " $LIBOBJS " in
  12242. *" strlcat.$ac_objext "* ) ;;
  12243. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  12244. ;;
  12245. esac
  12246. fi
  12247. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12248. if test "x$ac_cv_func_getline" = xyes; then :
  12249. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  12250. else
  12251. case " $LIBOBJS " in
  12252. *" getline.$ac_objext "* ) ;;
  12253. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  12254. ;;
  12255. esac
  12256. fi
  12257. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12258. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12259. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  12260. else
  12261. case " $LIBOBJS " in
  12262. *" ctime_r.$ac_objext "* ) ;;
  12263. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  12264. ;;
  12265. esac
  12266. fi
  12267. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12268. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12269. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  12270. else
  12271. case " $LIBOBJS " in
  12272. *" asctime_r.$ac_objext "* ) ;;
  12273. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  12274. ;;
  12275. esac
  12276. fi
  12277. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12278. if test "x$ac_cv_func_localtime_r" = xyes; then :
  12279. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  12280. else
  12281. case " $LIBOBJS " in
  12282. *" localtime_r.$ac_objext "* ) ;;
  12283. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  12284. ;;
  12285. esac
  12286. fi
  12287. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  12288. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  12289. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  12290. else
  12291. case " $LIBOBJS " in
  12292. *" gmtime_r.$ac_objext "* ) ;;
  12293. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  12294. ;;
  12295. esac
  12296. fi
  12297. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12298. if test "x$ac_cv_func_pread" = xyes; then :
  12299. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  12300. else
  12301. case " $LIBOBJS " in
  12302. *" pread.$ac_objext "* ) ;;
  12303. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  12304. ;;
  12305. esac
  12306. fi
  12307. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12308. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12309. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  12310. else
  12311. case " $LIBOBJS " in
  12312. *" strcasestr.$ac_objext "* ) ;;
  12313. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  12314. ;;
  12315. esac
  12316. fi
  12317. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12318. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12319. $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
  12320. else
  12321. case " $LIBOBJS " in
  12322. *" fmtcheck.$ac_objext "* ) ;;
  12323. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  12324. ;;
  12325. esac
  12326. fi
  12327. ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
  12328. if test "x$ac_cv_func_dprintf" = xyes; then :
  12329. $as_echo "#define HAVE_DPRINTF 1" >>confdefs.h
  12330. else
  12331. case " $LIBOBJS " in
  12332. *" dprintf.$ac_objext "* ) ;;
  12333. *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
  12334. ;;
  12335. esac
  12336. fi
  12337. if test "$enable_zlib" != "no"; then
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12339. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12340. if ${ac_cv_lib_z_gzopen+:} false; then :
  12341. $as_echo_n "(cached) " >&6
  12342. else
  12343. ac_check_lib_save_LIBS=$LIBS
  12344. LIBS="-lz $LIBS"
  12345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12346. /* end confdefs.h. */
  12347. /* Override any GCC internal prototype to avoid an error.
  12348. Use char because int might match the return type of a GCC
  12349. builtin and then its argument prototype would still apply. */
  12350. #ifdef __cplusplus
  12351. extern "C"
  12352. #endif
  12353. char gzopen ();
  12354. int
  12355. main ()
  12356. {
  12357. return gzopen ();
  12358. ;
  12359. return 0;
  12360. }
  12361. _ACEOF
  12362. if ac_fn_c_try_link "$LINENO"; then :
  12363. ac_cv_lib_z_gzopen=yes
  12364. else
  12365. ac_cv_lib_z_gzopen=no
  12366. fi
  12367. rm -f core conftest.err conftest.$ac_objext \
  12368. conftest$ac_exeext conftest.$ac_ext
  12369. LIBS=$ac_check_lib_save_LIBS
  12370. fi
  12371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12372. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12373. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12374. cat >>confdefs.h <<_ACEOF
  12375. #define HAVE_LIBZ 1
  12376. _ACEOF
  12377. LIBS="-lz $LIBS"
  12378. fi
  12379. fi
  12380. if test "$enable_libseccomp" != "no"; then
  12381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
  12382. $as_echo_n "checking for seccomp_init in -lseccomp... " >&6; }
  12383. if ${ac_cv_lib_seccomp_seccomp_init+:} false; then :
  12384. $as_echo_n "(cached) " >&6
  12385. else
  12386. ac_check_lib_save_LIBS=$LIBS
  12387. LIBS="-lseccomp $LIBS"
  12388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12389. /* end confdefs.h. */
  12390. /* Override any GCC internal prototype to avoid an error.
  12391. Use char because int might match the return type of a GCC
  12392. builtin and then its argument prototype would still apply. */
  12393. #ifdef __cplusplus
  12394. extern "C"
  12395. #endif
  12396. char seccomp_init ();
  12397. int
  12398. main ()
  12399. {
  12400. return seccomp_init ();
  12401. ;
  12402. return 0;
  12403. }
  12404. _ACEOF
  12405. if ac_fn_c_try_link "$LINENO"; then :
  12406. ac_cv_lib_seccomp_seccomp_init=yes
  12407. else
  12408. ac_cv_lib_seccomp_seccomp_init=no
  12409. fi
  12410. rm -f core conftest.err conftest.$ac_objext \
  12411. conftest$ac_exeext conftest.$ac_ext
  12412. LIBS=$ac_check_lib_save_LIBS
  12413. fi
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
  12415. $as_echo "$ac_cv_lib_seccomp_seccomp_init" >&6; }
  12416. if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes; then :
  12417. cat >>confdefs.h <<_ACEOF
  12418. #define HAVE_LIBSECCOMP 1
  12419. _ACEOF
  12420. LIBS="-lseccomp $LIBS"
  12421. fi
  12422. fi
  12423. if test "$MINGW" = 1; then
  12424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12425. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12426. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12427. $as_echo_n "(cached) " >&6
  12428. else
  12429. ac_check_lib_save_LIBS=$LIBS
  12430. LIBS="-lgnurx $LIBS"
  12431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12432. /* end confdefs.h. */
  12433. /* Override any GCC internal prototype to avoid an error.
  12434. Use char because int might match the return type of a GCC
  12435. builtin and then its argument prototype would still apply. */
  12436. #ifdef __cplusplus
  12437. extern "C"
  12438. #endif
  12439. char regexec ();
  12440. int
  12441. main ()
  12442. {
  12443. return regexec ();
  12444. ;
  12445. return 0;
  12446. }
  12447. _ACEOF
  12448. if ac_fn_c_try_link "$LINENO"; then :
  12449. ac_cv_lib_gnurx_regexec=yes
  12450. else
  12451. ac_cv_lib_gnurx_regexec=no
  12452. fi
  12453. rm -f core conftest.err conftest.$ac_objext \
  12454. conftest$ac_exeext conftest.$ac_ext
  12455. LIBS=$ac_check_lib_save_LIBS
  12456. fi
  12457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12458. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12459. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12460. cat >>confdefs.h <<_ACEOF
  12461. #define HAVE_LIBGNURX 1
  12462. _ACEOF
  12463. LIBS="-lgnurx $LIBS"
  12464. else
  12465. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12466. fi
  12467. fi
  12468. if test "$cross_compiling" = yes; then
  12469. IS_CROSS_COMPILE_TRUE=
  12470. IS_CROSS_COMPILE_FALSE='#'
  12471. else
  12472. IS_CROSS_COMPILE_TRUE='#'
  12473. IS_CROSS_COMPILE_FALSE=
  12474. fi
  12475. if test "$enable_zlib" = "yes"; then
  12476. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
  12477. as_fn_error $? "zlib support requested but not found" "$LINENO" 5
  12478. fi
  12479. fi
  12480. if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
  12481. $as_echo "#define ZLIBSUPPORT 1" >>confdefs.h
  12482. fi
  12483. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  12484. cat >confcache <<\_ACEOF
  12485. # This file is a shell script that caches the results of configure
  12486. # tests run on this system so they can be shared between configure
  12487. # scripts and configure runs, see configure's option --config-cache.
  12488. # It is not useful on other systems. If it contains results you don't
  12489. # want to keep, you may remove or edit it.
  12490. #
  12491. # config.status only pays attention to the cache file if you give it
  12492. # the --recheck option to rerun configure.
  12493. #
  12494. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12495. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12496. # following values.
  12497. _ACEOF
  12498. # The following way of writing the cache mishandles newlines in values,
  12499. # but we know of no workaround that is simple, portable, and efficient.
  12500. # So, we kill variables containing newlines.
  12501. # Ultrix sh set writes to stderr and can't be redirected directly,
  12502. # and sets the high bit in the cache file unless we assign to the vars.
  12503. (
  12504. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12505. eval ac_val=\$$ac_var
  12506. case $ac_val in #(
  12507. *${as_nl}*)
  12508. case $ac_var in #(
  12509. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12510. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12511. esac
  12512. case $ac_var in #(
  12513. _ | IFS | as_nl) ;; #(
  12514. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12515. *) { eval $ac_var=; unset $ac_var;} ;;
  12516. esac ;;
  12517. esac
  12518. done
  12519. (set) 2>&1 |
  12520. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12521. *${as_nl}ac_space=\ *)
  12522. # `set' does not quote correctly, so add quotes: double-quote
  12523. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12524. sed -n \
  12525. "s/'/'\\\\''/g;
  12526. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12527. ;; #(
  12528. *)
  12529. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12530. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12531. ;;
  12532. esac |
  12533. sort
  12534. ) |
  12535. sed '
  12536. /^ac_cv_env_/b end
  12537. t clear
  12538. :clear
  12539. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12540. t end
  12541. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12542. :end' >>confcache
  12543. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12544. if test -w "$cache_file"; then
  12545. if test "x$cache_file" != "x/dev/null"; then
  12546. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12547. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12548. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12549. cat confcache >"$cache_file"
  12550. else
  12551. case $cache_file in #(
  12552. */* | ?:*)
  12553. mv -f confcache "$cache_file"$$ &&
  12554. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12555. *)
  12556. mv -f confcache "$cache_file" ;;
  12557. esac
  12558. fi
  12559. fi
  12560. else
  12561. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12562. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12563. fi
  12564. fi
  12565. rm -f confcache
  12566. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12567. # Let make expand exec_prefix.
  12568. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12569. DEFS=-DHAVE_CONFIG_H
  12570. ac_libobjs=
  12571. ac_ltlibobjs=
  12572. U=
  12573. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12574. # 1. Remove the extension, and $U if already installed.
  12575. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12576. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12577. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12578. # will be set to the directory where LIBOBJS objects are built.
  12579. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12580. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12581. done
  12582. LIBOBJS=$ac_libobjs
  12583. LTLIBOBJS=$ac_ltlibobjs
  12584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12585. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12586. if test -n "$am_sleep_pid"; then
  12587. # Hide warnings about reused PIDs.
  12588. wait $am_sleep_pid 2>/dev/null
  12589. fi
  12590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12591. $as_echo "done" >&6; }
  12592. if test -n "$EXEEXT"; then
  12593. am__EXEEXT_TRUE=
  12594. am__EXEEXT_FALSE='#'
  12595. else
  12596. am__EXEEXT_TRUE='#'
  12597. am__EXEEXT_FALSE=
  12598. fi
  12599. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  12600. as_fn_error $? "conditional \"MINGW\" was never defined.
  12601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12602. fi
  12603. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  12604. as_fn_error $? "conditional \"FSECT5\" was never defined.
  12605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12606. fi
  12607. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12608. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12610. fi
  12611. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12612. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12614. fi
  12615. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  12616. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  12617. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12618. fi
  12619. : "${CONFIG_STATUS=./config.status}"
  12620. ac_write_fail=0
  12621. ac_clean_files_save=$ac_clean_files
  12622. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12623. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12624. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12625. as_write_fail=0
  12626. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12627. #! $SHELL
  12628. # Generated by $as_me.
  12629. # Run this file to recreate the current configuration.
  12630. # Compiler output produced by configure, useful for debugging
  12631. # configure, is in config.log if it exists.
  12632. debug=false
  12633. ac_cs_recheck=false
  12634. ac_cs_silent=false
  12635. SHELL=\${CONFIG_SHELL-$SHELL}
  12636. export SHELL
  12637. _ASEOF
  12638. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12639. ## -------------------- ##
  12640. ## M4sh Initialization. ##
  12641. ## -------------------- ##
  12642. # Be more Bourne compatible
  12643. DUALCASE=1; export DUALCASE # for MKS sh
  12644. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12645. emulate sh
  12646. NULLCMD=:
  12647. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12648. # is contrary to our usage. Disable this feature.
  12649. alias -g '${1+"$@"}'='"$@"'
  12650. setopt NO_GLOB_SUBST
  12651. else
  12652. case `(set -o) 2>/dev/null` in #(
  12653. *posix*) :
  12654. set -o posix ;; #(
  12655. *) :
  12656. ;;
  12657. esac
  12658. fi
  12659. as_nl='
  12660. '
  12661. export as_nl
  12662. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12663. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12664. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12665. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12666. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12667. # but without wasting forks for bash or zsh.
  12668. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12669. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12670. as_echo='print -r --'
  12671. as_echo_n='print -rn --'
  12672. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12673. as_echo='printf %s\n'
  12674. as_echo_n='printf %s'
  12675. else
  12676. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12677. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12678. as_echo_n='/usr/ucb/echo -n'
  12679. else
  12680. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12681. as_echo_n_body='eval
  12682. arg=$1;
  12683. case $arg in #(
  12684. *"$as_nl"*)
  12685. expr "X$arg" : "X\\(.*\\)$as_nl";
  12686. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12687. esac;
  12688. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12689. '
  12690. export as_echo_n_body
  12691. as_echo_n='sh -c $as_echo_n_body as_echo'
  12692. fi
  12693. export as_echo_body
  12694. as_echo='sh -c $as_echo_body as_echo'
  12695. fi
  12696. # The user is always right.
  12697. if test "${PATH_SEPARATOR+set}" != set; then
  12698. PATH_SEPARATOR=:
  12699. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12700. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12701. PATH_SEPARATOR=';'
  12702. }
  12703. fi
  12704. # IFS
  12705. # We need space, tab and new line, in precisely that order. Quoting is
  12706. # there to prevent editors from complaining about space-tab.
  12707. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12708. # splitting by setting IFS to empty value.)
  12709. IFS=" "" $as_nl"
  12710. # Find who we are. Look in the path if we contain no directory separator.
  12711. as_myself=
  12712. case $0 in #((
  12713. *[\\/]* ) as_myself=$0 ;;
  12714. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12715. for as_dir in $PATH
  12716. do
  12717. IFS=$as_save_IFS
  12718. test -z "$as_dir" && as_dir=.
  12719. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12720. done
  12721. IFS=$as_save_IFS
  12722. ;;
  12723. esac
  12724. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12725. # in which case we are not to be found in the path.
  12726. if test "x$as_myself" = x; then
  12727. as_myself=$0
  12728. fi
  12729. if test ! -f "$as_myself"; then
  12730. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12731. exit 1
  12732. fi
  12733. # Unset variables that we do not need and which cause bugs (e.g. in
  12734. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12735. # suppresses any "Segmentation fault" message there. '((' could
  12736. # trigger a bug in pdksh 5.2.14.
  12737. for as_var in BASH_ENV ENV MAIL MAILPATH
  12738. do eval test x\${$as_var+set} = xset \
  12739. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12740. done
  12741. PS1='$ '
  12742. PS2='> '
  12743. PS4='+ '
  12744. # NLS nuisances.
  12745. LC_ALL=C
  12746. export LC_ALL
  12747. LANGUAGE=C
  12748. export LANGUAGE
  12749. # CDPATH.
  12750. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12751. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12752. # ----------------------------------------
  12753. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12754. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12755. # script with STATUS, using 1 if that was 0.
  12756. as_fn_error ()
  12757. {
  12758. as_status=$1; test $as_status -eq 0 && as_status=1
  12759. if test "$4"; then
  12760. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12761. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12762. fi
  12763. $as_echo "$as_me: error: $2" >&2
  12764. as_fn_exit $as_status
  12765. } # as_fn_error
  12766. # as_fn_set_status STATUS
  12767. # -----------------------
  12768. # Set $? to STATUS, without forking.
  12769. as_fn_set_status ()
  12770. {
  12771. return $1
  12772. } # as_fn_set_status
  12773. # as_fn_exit STATUS
  12774. # -----------------
  12775. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12776. as_fn_exit ()
  12777. {
  12778. set +e
  12779. as_fn_set_status $1
  12780. exit $1
  12781. } # as_fn_exit
  12782. # as_fn_unset VAR
  12783. # ---------------
  12784. # Portably unset VAR.
  12785. as_fn_unset ()
  12786. {
  12787. { eval $1=; unset $1;}
  12788. }
  12789. as_unset=as_fn_unset
  12790. # as_fn_append VAR VALUE
  12791. # ----------------------
  12792. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12793. # advantage of any shell optimizations that allow amortized linear growth over
  12794. # repeated appends, instead of the typical quadratic growth present in naive
  12795. # implementations.
  12796. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12797. eval 'as_fn_append ()
  12798. {
  12799. eval $1+=\$2
  12800. }'
  12801. else
  12802. as_fn_append ()
  12803. {
  12804. eval $1=\$$1\$2
  12805. }
  12806. fi # as_fn_append
  12807. # as_fn_arith ARG...
  12808. # ------------------
  12809. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12810. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12811. # must be portable across $(()) and expr.
  12812. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12813. eval 'as_fn_arith ()
  12814. {
  12815. as_val=$(( $* ))
  12816. }'
  12817. else
  12818. as_fn_arith ()
  12819. {
  12820. as_val=`expr "$@" || test $? -eq 1`
  12821. }
  12822. fi # as_fn_arith
  12823. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12824. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12825. as_expr=expr
  12826. else
  12827. as_expr=false
  12828. fi
  12829. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12830. as_basename=basename
  12831. else
  12832. as_basename=false
  12833. fi
  12834. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12835. as_dirname=dirname
  12836. else
  12837. as_dirname=false
  12838. fi
  12839. as_me=`$as_basename -- "$0" ||
  12840. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12841. X"$0" : 'X\(//\)$' \| \
  12842. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12843. $as_echo X/"$0" |
  12844. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12845. s//\1/
  12846. q
  12847. }
  12848. /^X\/\(\/\/\)$/{
  12849. s//\1/
  12850. q
  12851. }
  12852. /^X\/\(\/\).*/{
  12853. s//\1/
  12854. q
  12855. }
  12856. s/.*/./; q'`
  12857. # Avoid depending upon Character Ranges.
  12858. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12859. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12860. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12861. as_cr_digits='0123456789'
  12862. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12863. ECHO_C= ECHO_N= ECHO_T=
  12864. case `echo -n x` in #(((((
  12865. -n*)
  12866. case `echo 'xy\c'` in
  12867. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12868. xy) ECHO_C='\c';;
  12869. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12870. ECHO_T=' ';;
  12871. esac;;
  12872. *)
  12873. ECHO_N='-n';;
  12874. esac
  12875. rm -f conf$$ conf$$.exe conf$$.file
  12876. if test -d conf$$.dir; then
  12877. rm -f conf$$.dir/conf$$.file
  12878. else
  12879. rm -f conf$$.dir
  12880. mkdir conf$$.dir 2>/dev/null
  12881. fi
  12882. if (echo >conf$$.file) 2>/dev/null; then
  12883. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12884. as_ln_s='ln -s'
  12885. # ... but there are two gotchas:
  12886. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12887. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12888. # In both cases, we have to default to `cp -pR'.
  12889. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12890. as_ln_s='cp -pR'
  12891. elif ln conf$$.file conf$$ 2>/dev/null; then
  12892. as_ln_s=ln
  12893. else
  12894. as_ln_s='cp -pR'
  12895. fi
  12896. else
  12897. as_ln_s='cp -pR'
  12898. fi
  12899. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12900. rmdir conf$$.dir 2>/dev/null
  12901. # as_fn_mkdir_p
  12902. # -------------
  12903. # Create "$as_dir" as a directory, including parents if necessary.
  12904. as_fn_mkdir_p ()
  12905. {
  12906. case $as_dir in #(
  12907. -*) as_dir=./$as_dir;;
  12908. esac
  12909. test -d "$as_dir" || eval $as_mkdir_p || {
  12910. as_dirs=
  12911. while :; do
  12912. case $as_dir in #(
  12913. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12914. *) as_qdir=$as_dir;;
  12915. esac
  12916. as_dirs="'$as_qdir' $as_dirs"
  12917. as_dir=`$as_dirname -- "$as_dir" ||
  12918. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12919. X"$as_dir" : 'X\(//\)[^/]' \| \
  12920. X"$as_dir" : 'X\(//\)$' \| \
  12921. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12922. $as_echo X"$as_dir" |
  12923. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12924. s//\1/
  12925. q
  12926. }
  12927. /^X\(\/\/\)[^/].*/{
  12928. s//\1/
  12929. q
  12930. }
  12931. /^X\(\/\/\)$/{
  12932. s//\1/
  12933. q
  12934. }
  12935. /^X\(\/\).*/{
  12936. s//\1/
  12937. q
  12938. }
  12939. s/.*/./; q'`
  12940. test -d "$as_dir" && break
  12941. done
  12942. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12943. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12944. } # as_fn_mkdir_p
  12945. if mkdir -p . 2>/dev/null; then
  12946. as_mkdir_p='mkdir -p "$as_dir"'
  12947. else
  12948. test -d ./-p && rmdir ./-p
  12949. as_mkdir_p=false
  12950. fi
  12951. # as_fn_executable_p FILE
  12952. # -----------------------
  12953. # Test if FILE is an executable regular file.
  12954. as_fn_executable_p ()
  12955. {
  12956. test -f "$1" && test -x "$1"
  12957. } # as_fn_executable_p
  12958. as_test_x='test -x'
  12959. as_executable_p=as_fn_executable_p
  12960. # Sed expression to map a string onto a valid CPP name.
  12961. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12962. # Sed expression to map a string onto a valid variable name.
  12963. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12964. exec 6>&1
  12965. ## ----------------------------------- ##
  12966. ## Main body of $CONFIG_STATUS script. ##
  12967. ## ----------------------------------- ##
  12968. _ASEOF
  12969. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12971. # Save the log message, to keep $0 and so on meaningful, and to
  12972. # report actual input values of CONFIG_FILES etc. instead of their
  12973. # values after options handling.
  12974. ac_log="
  12975. This file was extended by file $as_me 5.37, which was
  12976. generated by GNU Autoconf 2.69. Invocation command line was
  12977. CONFIG_FILES = $CONFIG_FILES
  12978. CONFIG_HEADERS = $CONFIG_HEADERS
  12979. CONFIG_LINKS = $CONFIG_LINKS
  12980. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12981. $ $0 $@
  12982. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12983. "
  12984. _ACEOF
  12985. case $ac_config_files in *"
  12986. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12987. esac
  12988. case $ac_config_headers in *"
  12989. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12990. esac
  12991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12992. # Files that config.status was made for.
  12993. config_files="$ac_config_files"
  12994. config_headers="$ac_config_headers"
  12995. config_commands="$ac_config_commands"
  12996. _ACEOF
  12997. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12998. ac_cs_usage="\
  12999. \`$as_me' instantiates files and other configuration actions
  13000. from templates according to the current configuration. Unless the files
  13001. and actions are specified as TAGs, all are instantiated by default.
  13002. Usage: $0 [OPTION]... [TAG]...
  13003. -h, --help print this help, then exit
  13004. -V, --version print version number and configuration settings, then exit
  13005. --config print configuration, then exit
  13006. -q, --quiet, --silent
  13007. do not print progress messages
  13008. -d, --debug don't remove temporary files
  13009. --recheck update $as_me by reconfiguring in the same conditions
  13010. --file=FILE[:TEMPLATE]
  13011. instantiate the configuration file FILE
  13012. --header=FILE[:TEMPLATE]
  13013. instantiate the configuration header FILE
  13014. Configuration files:
  13015. $config_files
  13016. Configuration headers:
  13017. $config_headers
  13018. Configuration commands:
  13019. $config_commands
  13020. Report bugs to <christos@astron.com>."
  13021. _ACEOF
  13022. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13023. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13024. ac_cs_version="\\
  13025. file config.status 5.37
  13026. configured by $0, generated by GNU Autoconf 2.69,
  13027. with options \\"\$ac_cs_config\\"
  13028. Copyright (C) 2012 Free Software Foundation, Inc.
  13029. This config.status script is free software; the Free Software Foundation
  13030. gives unlimited permission to copy, distribute and modify it."
  13031. ac_pwd='$ac_pwd'
  13032. srcdir='$srcdir'
  13033. INSTALL='$INSTALL'
  13034. MKDIR_P='$MKDIR_P'
  13035. AWK='$AWK'
  13036. test -n "\$AWK" || AWK=awk
  13037. _ACEOF
  13038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13039. # The default lists apply if the user does not specify any file.
  13040. ac_need_defaults=:
  13041. while test $# != 0
  13042. do
  13043. case $1 in
  13044. --*=?*)
  13045. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13046. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13047. ac_shift=:
  13048. ;;
  13049. --*=)
  13050. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13051. ac_optarg=
  13052. ac_shift=:
  13053. ;;
  13054. *)
  13055. ac_option=$1
  13056. ac_optarg=$2
  13057. ac_shift=shift
  13058. ;;
  13059. esac
  13060. case $ac_option in
  13061. # Handling of the options.
  13062. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13063. ac_cs_recheck=: ;;
  13064. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13065. $as_echo "$ac_cs_version"; exit ;;
  13066. --config | --confi | --conf | --con | --co | --c )
  13067. $as_echo "$ac_cs_config"; exit ;;
  13068. --debug | --debu | --deb | --de | --d | -d )
  13069. debug=: ;;
  13070. --file | --fil | --fi | --f )
  13071. $ac_shift
  13072. case $ac_optarg in
  13073. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13074. '') as_fn_error $? "missing file argument" ;;
  13075. esac
  13076. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13077. ac_need_defaults=false;;
  13078. --header | --heade | --head | --hea )
  13079. $ac_shift
  13080. case $ac_optarg in
  13081. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13082. esac
  13083. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13084. ac_need_defaults=false;;
  13085. --he | --h)
  13086. # Conflict between --help and --header
  13087. as_fn_error $? "ambiguous option: \`$1'
  13088. Try \`$0 --help' for more information.";;
  13089. --help | --hel | -h )
  13090. $as_echo "$ac_cs_usage"; exit ;;
  13091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13092. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13093. ac_cs_silent=: ;;
  13094. # This is an error.
  13095. -*) as_fn_error $? "unrecognized option: \`$1'
  13096. Try \`$0 --help' for more information." ;;
  13097. *) as_fn_append ac_config_targets " $1"
  13098. ac_need_defaults=false ;;
  13099. esac
  13100. shift
  13101. done
  13102. ac_configure_extra_args=
  13103. if $ac_cs_silent; then
  13104. exec 6>/dev/null
  13105. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13106. fi
  13107. _ACEOF
  13108. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13109. if \$ac_cs_recheck; then
  13110. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13111. shift
  13112. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13113. CONFIG_SHELL='$SHELL'
  13114. export CONFIG_SHELL
  13115. exec "\$@"
  13116. fi
  13117. _ACEOF
  13118. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13119. exec 5>>config.log
  13120. {
  13121. echo
  13122. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13123. ## Running $as_me. ##
  13124. _ASBOX
  13125. $as_echo "$ac_log"
  13126. } >&5
  13127. _ACEOF
  13128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13129. #
  13130. # INIT-COMMANDS
  13131. #
  13132. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13133. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13134. # if CDPATH is set.
  13135. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13136. sed_quote_subst='$sed_quote_subst'
  13137. double_quote_subst='$double_quote_subst'
  13138. delay_variable_subst='$delay_variable_subst'
  13139. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13140. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13141. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13142. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13143. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13144. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13145. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13146. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13147. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13148. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13149. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13150. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13151. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13152. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13153. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13154. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13155. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13156. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13157. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13158. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13159. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13160. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13161. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13162. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13163. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13164. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13165. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13166. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13167. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13168. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13169. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13170. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13171. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13172. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13173. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13174. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13175. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13176. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13177. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13178. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13179. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13180. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13181. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13182. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13183. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13184. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13185. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13186. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13187. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13188. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13189. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13190. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13191. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13192. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13193. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13194. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13195. 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"`'
  13196. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13197. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13198. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13199. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13200. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13201. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13202. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13203. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13204. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13205. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13206. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13207. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13208. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13209. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13210. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13211. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13212. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13213. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13214. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13215. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13216. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13217. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13218. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13219. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13220. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13221. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13222. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13223. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13224. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13225. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13226. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13227. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13228. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13229. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13230. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13231. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13232. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13233. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13234. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13235. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13236. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13237. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13238. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13239. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13240. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13241. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13242. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13243. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13244. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13245. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13246. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13247. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13248. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13249. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13250. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13251. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13252. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13253. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13254. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13255. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13256. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13257. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13258. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13259. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13260. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13261. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13262. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13263. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13264. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13265. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13266. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13267. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13268. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13269. LTCC='$LTCC'
  13270. LTCFLAGS='$LTCFLAGS'
  13271. compiler='$compiler_DEFAULT'
  13272. # A function that is used when there is no print builtin or printf.
  13273. func_fallback_echo ()
  13274. {
  13275. eval 'cat <<_LTECHO_EOF
  13276. \$1
  13277. _LTECHO_EOF'
  13278. }
  13279. # Quote evaled strings.
  13280. for var in SHELL \
  13281. ECHO \
  13282. PATH_SEPARATOR \
  13283. SED \
  13284. GREP \
  13285. EGREP \
  13286. FGREP \
  13287. LD \
  13288. NM \
  13289. LN_S \
  13290. lt_SP2NL \
  13291. lt_NL2SP \
  13292. reload_flag \
  13293. OBJDUMP \
  13294. deplibs_check_method \
  13295. file_magic_cmd \
  13296. file_magic_glob \
  13297. want_nocaseglob \
  13298. DLLTOOL \
  13299. sharedlib_from_linklib_cmd \
  13300. AR \
  13301. AR_FLAGS \
  13302. archiver_list_spec \
  13303. STRIP \
  13304. RANLIB \
  13305. CC \
  13306. CFLAGS \
  13307. compiler \
  13308. lt_cv_sys_global_symbol_pipe \
  13309. lt_cv_sys_global_symbol_to_cdecl \
  13310. lt_cv_sys_global_symbol_to_c_name_address \
  13311. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13312. nm_file_list_spec \
  13313. lt_prog_compiler_no_builtin_flag \
  13314. lt_prog_compiler_pic \
  13315. lt_prog_compiler_wl \
  13316. lt_prog_compiler_static \
  13317. lt_cv_prog_compiler_c_o \
  13318. need_locks \
  13319. MANIFEST_TOOL \
  13320. DSYMUTIL \
  13321. NMEDIT \
  13322. LIPO \
  13323. OTOOL \
  13324. OTOOL64 \
  13325. shrext_cmds \
  13326. export_dynamic_flag_spec \
  13327. whole_archive_flag_spec \
  13328. compiler_needs_object \
  13329. with_gnu_ld \
  13330. allow_undefined_flag \
  13331. no_undefined_flag \
  13332. hardcode_libdir_flag_spec \
  13333. hardcode_libdir_separator \
  13334. exclude_expsyms \
  13335. include_expsyms \
  13336. file_list_spec \
  13337. variables_saved_for_relink \
  13338. libname_spec \
  13339. library_names_spec \
  13340. soname_spec \
  13341. install_override_mode \
  13342. finish_eval \
  13343. old_striplib \
  13344. striplib; do
  13345. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13346. *[\\\\\\\`\\"\\\$]*)
  13347. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13348. ;;
  13349. *)
  13350. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13351. ;;
  13352. esac
  13353. done
  13354. # Double-quote double-evaled strings.
  13355. for var in reload_cmds \
  13356. old_postinstall_cmds \
  13357. old_postuninstall_cmds \
  13358. old_archive_cmds \
  13359. extract_expsyms_cmds \
  13360. old_archive_from_new_cmds \
  13361. old_archive_from_expsyms_cmds \
  13362. archive_cmds \
  13363. archive_expsym_cmds \
  13364. module_cmds \
  13365. module_expsym_cmds \
  13366. export_symbols_cmds \
  13367. prelink_cmds \
  13368. postlink_cmds \
  13369. postinstall_cmds \
  13370. postuninstall_cmds \
  13371. finish_cmds \
  13372. sys_lib_search_path_spec \
  13373. sys_lib_dlsearch_path_spec; do
  13374. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13375. *[\\\\\\\`\\"\\\$]*)
  13376. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13377. ;;
  13378. *)
  13379. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13380. ;;
  13381. esac
  13382. done
  13383. ac_aux_dir='$ac_aux_dir'
  13384. xsi_shell='$xsi_shell'
  13385. lt_shell_append='$lt_shell_append'
  13386. # See if we are running on zsh, and set the options which allow our
  13387. # commands through without removal of \ escapes INIT.
  13388. if test -n "\${ZSH_VERSION+set}" ; then
  13389. setopt NO_GLOB_SUBST
  13390. fi
  13391. PACKAGE='$PACKAGE'
  13392. VERSION='$VERSION'
  13393. TIMESTAMP='$TIMESTAMP'
  13394. RM='$RM'
  13395. ofile='$ofile'
  13396. _ACEOF
  13397. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13398. # Handling of arguments.
  13399. for ac_config_target in $ac_config_targets
  13400. do
  13401. case $ac_config_target in
  13402. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13403. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13404. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13405. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13406. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13407. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13408. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13409. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13410. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13411. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13412. esac
  13413. done
  13414. # If the user did not use the arguments to specify the items to instantiate,
  13415. # then the envvar interface is used. Set only those that are not.
  13416. # We use the long form for the default assignment because of an extremely
  13417. # bizarre bug on SunOS 4.1.3.
  13418. if $ac_need_defaults; then
  13419. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13420. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13421. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13422. fi
  13423. # Have a temporary directory for convenience. Make it in the build tree
  13424. # simply because there is no reason against having it here, and in addition,
  13425. # creating and moving files from /tmp can sometimes cause problems.
  13426. # Hook for its removal unless debugging.
  13427. # Note that there is a small window in which the directory will not be cleaned:
  13428. # after its creation but before its name has been assigned to `$tmp'.
  13429. $debug ||
  13430. {
  13431. tmp= ac_tmp=
  13432. trap 'exit_status=$?
  13433. : "${ac_tmp:=$tmp}"
  13434. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13435. ' 0
  13436. trap 'as_fn_exit 1' 1 2 13 15
  13437. }
  13438. # Create a (secure) tmp directory for tmp files.
  13439. {
  13440. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13441. test -d "$tmp"
  13442. } ||
  13443. {
  13444. tmp=./conf$$-$RANDOM
  13445. (umask 077 && mkdir "$tmp")
  13446. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13447. ac_tmp=$tmp
  13448. # Set up the scripts for CONFIG_FILES section.
  13449. # No need to generate them if there are no CONFIG_FILES.
  13450. # This happens for instance with `./config.status config.h'.
  13451. if test -n "$CONFIG_FILES"; then
  13452. ac_cr=`echo X | tr X '\015'`
  13453. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13454. # But we know of no other shell where ac_cr would be empty at this
  13455. # point, so we can use a bashism as a fallback.
  13456. if test "x$ac_cr" = x; then
  13457. eval ac_cr=\$\'\\r\'
  13458. fi
  13459. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13460. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13461. ac_cs_awk_cr='\\r'
  13462. else
  13463. ac_cs_awk_cr=$ac_cr
  13464. fi
  13465. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13466. _ACEOF
  13467. {
  13468. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13469. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13470. echo "_ACEOF"
  13471. } >conf$$subs.sh ||
  13472. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13473. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13474. ac_delim='%!_!# '
  13475. for ac_last_try in false false false false false :; do
  13476. . ./conf$$subs.sh ||
  13477. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13478. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13479. if test $ac_delim_n = $ac_delim_num; then
  13480. break
  13481. elif $ac_last_try; then
  13482. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13483. else
  13484. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13485. fi
  13486. done
  13487. rm -f conf$$subs.sh
  13488. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13489. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13490. _ACEOF
  13491. sed -n '
  13492. h
  13493. s/^/S["/; s/!.*/"]=/
  13494. p
  13495. g
  13496. s/^[^!]*!//
  13497. :repl
  13498. t repl
  13499. s/'"$ac_delim"'$//
  13500. t delim
  13501. :nl
  13502. h
  13503. s/\(.\{148\}\)..*/\1/
  13504. t more1
  13505. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13506. p
  13507. n
  13508. b repl
  13509. :more1
  13510. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13511. p
  13512. g
  13513. s/.\{148\}//
  13514. t nl
  13515. :delim
  13516. h
  13517. s/\(.\{148\}\)..*/\1/
  13518. t more2
  13519. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13520. p
  13521. b
  13522. :more2
  13523. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13524. p
  13525. g
  13526. s/.\{148\}//
  13527. t delim
  13528. ' <conf$$subs.awk | sed '
  13529. /^[^""]/{
  13530. N
  13531. s/\n//
  13532. }
  13533. ' >>$CONFIG_STATUS || ac_write_fail=1
  13534. rm -f conf$$subs.awk
  13535. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13536. _ACAWK
  13537. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13538. for (key in S) S_is_set[key] = 1
  13539. FS = ""
  13540. }
  13541. {
  13542. line = $ 0
  13543. nfields = split(line, field, "@")
  13544. substed = 0
  13545. len = length(field[1])
  13546. for (i = 2; i < nfields; i++) {
  13547. key = field[i]
  13548. keylen = length(key)
  13549. if (S_is_set[key]) {
  13550. value = S[key]
  13551. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13552. len += length(value) + length(field[++i])
  13553. substed = 1
  13554. } else
  13555. len += 1 + keylen
  13556. }
  13557. print line
  13558. }
  13559. _ACAWK
  13560. _ACEOF
  13561. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13562. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13563. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13564. else
  13565. cat
  13566. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13567. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13568. _ACEOF
  13569. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13570. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13571. # trailing colons and then remove the whole line if VPATH becomes empty
  13572. # (actually we leave an empty line to preserve line numbers).
  13573. if test "x$srcdir" = x.; then
  13574. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13575. h
  13576. s///
  13577. s/^/:/
  13578. s/[ ]*$/:/
  13579. s/:\$(srcdir):/:/g
  13580. s/:\${srcdir}:/:/g
  13581. s/:@srcdir@:/:/g
  13582. s/^:*//
  13583. s/:*$//
  13584. x
  13585. s/\(=[ ]*\).*/\1/
  13586. G
  13587. s/\n//
  13588. s/^[^=]*=[ ]*$//
  13589. }'
  13590. fi
  13591. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13592. fi # test -n "$CONFIG_FILES"
  13593. # Set up the scripts for CONFIG_HEADERS section.
  13594. # No need to generate them if there are no CONFIG_HEADERS.
  13595. # This happens for instance with `./config.status Makefile'.
  13596. if test -n "$CONFIG_HEADERS"; then
  13597. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13598. BEGIN {
  13599. _ACEOF
  13600. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13601. # here-document in config.status, that substitutes the proper values into
  13602. # config.h.in to produce config.h.
  13603. # Create a delimiter string that does not exist in confdefs.h, to ease
  13604. # handling of long lines.
  13605. ac_delim='%!_!# '
  13606. for ac_last_try in false false :; do
  13607. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13608. if test -z "$ac_tt"; then
  13609. break
  13610. elif $ac_last_try; then
  13611. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13612. else
  13613. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13614. fi
  13615. done
  13616. # For the awk script, D is an array of macro values keyed by name,
  13617. # likewise P contains macro parameters if any. Preserve backslash
  13618. # newline sequences.
  13619. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13620. sed -n '
  13621. s/.\{148\}/&'"$ac_delim"'/g
  13622. t rset
  13623. :rset
  13624. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13625. t def
  13626. d
  13627. :def
  13628. s/\\$//
  13629. t bsnl
  13630. s/["\\]/\\&/g
  13631. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13632. D["\1"]=" \3"/p
  13633. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13634. d
  13635. :bsnl
  13636. s/["\\]/\\&/g
  13637. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13638. D["\1"]=" \3\\\\\\n"\\/p
  13639. t cont
  13640. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13641. t cont
  13642. d
  13643. :cont
  13644. n
  13645. s/.\{148\}/&'"$ac_delim"'/g
  13646. t clear
  13647. :clear
  13648. s/\\$//
  13649. t bsnlc
  13650. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13651. d
  13652. :bsnlc
  13653. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13654. b cont
  13655. ' <confdefs.h | sed '
  13656. s/'"$ac_delim"'/"\\\
  13657. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13658. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13659. for (key in D) D_is_set[key] = 1
  13660. FS = ""
  13661. }
  13662. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13663. line = \$ 0
  13664. split(line, arg, " ")
  13665. if (arg[1] == "#") {
  13666. defundef = arg[2]
  13667. mac1 = arg[3]
  13668. } else {
  13669. defundef = substr(arg[1], 2)
  13670. mac1 = arg[2]
  13671. }
  13672. split(mac1, mac2, "(") #)
  13673. macro = mac2[1]
  13674. prefix = substr(line, 1, index(line, defundef) - 1)
  13675. if (D_is_set[macro]) {
  13676. # Preserve the white space surrounding the "#".
  13677. print prefix "define", macro P[macro] D[macro]
  13678. next
  13679. } else {
  13680. # Replace #undef with comments. This is necessary, for example,
  13681. # in the case of _POSIX_SOURCE, which is predefined and required
  13682. # on some systems where configure will not decide to define it.
  13683. if (defundef == "undef") {
  13684. print "/*", prefix defundef, macro, "*/"
  13685. next
  13686. }
  13687. }
  13688. }
  13689. { print }
  13690. _ACAWK
  13691. _ACEOF
  13692. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13693. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13694. fi # test -n "$CONFIG_HEADERS"
  13695. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13696. shift
  13697. for ac_tag
  13698. do
  13699. case $ac_tag in
  13700. :[FHLC]) ac_mode=$ac_tag; continue;;
  13701. esac
  13702. case $ac_mode$ac_tag in
  13703. :[FHL]*:*);;
  13704. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13705. :[FH]-) ac_tag=-:-;;
  13706. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13707. esac
  13708. ac_save_IFS=$IFS
  13709. IFS=:
  13710. set x $ac_tag
  13711. IFS=$ac_save_IFS
  13712. shift
  13713. ac_file=$1
  13714. shift
  13715. case $ac_mode in
  13716. :L) ac_source=$1;;
  13717. :[FH])
  13718. ac_file_inputs=
  13719. for ac_f
  13720. do
  13721. case $ac_f in
  13722. -) ac_f="$ac_tmp/stdin";;
  13723. *) # Look for the file first in the build tree, then in the source tree
  13724. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13725. # because $ac_f cannot contain `:'.
  13726. test -f "$ac_f" ||
  13727. case $ac_f in
  13728. [\\/$]*) false;;
  13729. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13730. esac ||
  13731. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13732. esac
  13733. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13734. as_fn_append ac_file_inputs " '$ac_f'"
  13735. done
  13736. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13737. # use $as_me), people would be surprised to read:
  13738. # /* config.h. Generated by config.status. */
  13739. configure_input='Generated from '`
  13740. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13741. `' by configure.'
  13742. if test x"$ac_file" != x-; then
  13743. configure_input="$ac_file. $configure_input"
  13744. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13745. $as_echo "$as_me: creating $ac_file" >&6;}
  13746. fi
  13747. # Neutralize special characters interpreted by sed in replacement strings.
  13748. case $configure_input in #(
  13749. *\&* | *\|* | *\\* )
  13750. ac_sed_conf_input=`$as_echo "$configure_input" |
  13751. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13752. *) ac_sed_conf_input=$configure_input;;
  13753. esac
  13754. case $ac_tag in
  13755. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13756. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13757. esac
  13758. ;;
  13759. esac
  13760. ac_dir=`$as_dirname -- "$ac_file" ||
  13761. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13762. X"$ac_file" : 'X\(//\)[^/]' \| \
  13763. X"$ac_file" : 'X\(//\)$' \| \
  13764. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13765. $as_echo X"$ac_file" |
  13766. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13767. s//\1/
  13768. q
  13769. }
  13770. /^X\(\/\/\)[^/].*/{
  13771. s//\1/
  13772. q
  13773. }
  13774. /^X\(\/\/\)$/{
  13775. s//\1/
  13776. q
  13777. }
  13778. /^X\(\/\).*/{
  13779. s//\1/
  13780. q
  13781. }
  13782. s/.*/./; q'`
  13783. as_dir="$ac_dir"; as_fn_mkdir_p
  13784. ac_builddir=.
  13785. case "$ac_dir" in
  13786. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13787. *)
  13788. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13789. # A ".." for each directory in $ac_dir_suffix.
  13790. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13791. case $ac_top_builddir_sub in
  13792. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13793. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13794. esac ;;
  13795. esac
  13796. ac_abs_top_builddir=$ac_pwd
  13797. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13798. # for backward compatibility:
  13799. ac_top_builddir=$ac_top_build_prefix
  13800. case $srcdir in
  13801. .) # We are building in place.
  13802. ac_srcdir=.
  13803. ac_top_srcdir=$ac_top_builddir_sub
  13804. ac_abs_top_srcdir=$ac_pwd ;;
  13805. [\\/]* | ?:[\\/]* ) # Absolute name.
  13806. ac_srcdir=$srcdir$ac_dir_suffix;
  13807. ac_top_srcdir=$srcdir
  13808. ac_abs_top_srcdir=$srcdir ;;
  13809. *) # Relative name.
  13810. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13811. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13812. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13813. esac
  13814. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13815. case $ac_mode in
  13816. :F)
  13817. #
  13818. # CONFIG_FILE
  13819. #
  13820. case $INSTALL in
  13821. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13822. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13823. esac
  13824. ac_MKDIR_P=$MKDIR_P
  13825. case $MKDIR_P in
  13826. [\\/$]* | ?:[\\/]* ) ;;
  13827. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13828. esac
  13829. _ACEOF
  13830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13831. # If the template does not know about datarootdir, expand it.
  13832. # FIXME: This hack should be removed a few years after 2.60.
  13833. ac_datarootdir_hack=; ac_datarootdir_seen=
  13834. ac_sed_dataroot='
  13835. /datarootdir/ {
  13836. p
  13837. q
  13838. }
  13839. /@datadir@/p
  13840. /@docdir@/p
  13841. /@infodir@/p
  13842. /@localedir@/p
  13843. /@mandir@/p'
  13844. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13845. *datarootdir*) ac_datarootdir_seen=yes;;
  13846. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13848. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13849. _ACEOF
  13850. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13851. ac_datarootdir_hack='
  13852. s&@datadir@&$datadir&g
  13853. s&@docdir@&$docdir&g
  13854. s&@infodir@&$infodir&g
  13855. s&@localedir@&$localedir&g
  13856. s&@mandir@&$mandir&g
  13857. s&\\\${datarootdir}&$datarootdir&g' ;;
  13858. esac
  13859. _ACEOF
  13860. # Neutralize VPATH when `$srcdir' = `.'.
  13861. # Shell code in configure.ac might set extrasub.
  13862. # FIXME: do we really want to maintain this feature?
  13863. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13864. ac_sed_extra="$ac_vpsub
  13865. $extrasub
  13866. _ACEOF
  13867. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13868. :t
  13869. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13870. s|@configure_input@|$ac_sed_conf_input|;t t
  13871. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13872. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13873. s&@srcdir@&$ac_srcdir&;t t
  13874. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13875. s&@top_srcdir@&$ac_top_srcdir&;t t
  13876. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13877. s&@builddir@&$ac_builddir&;t t
  13878. s&@abs_builddir@&$ac_abs_builddir&;t t
  13879. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13880. s&@INSTALL@&$ac_INSTALL&;t t
  13881. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13882. $ac_datarootdir_hack
  13883. "
  13884. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13885. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13886. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13887. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13888. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13889. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13891. which seems to be undefined. Please make sure it is defined" >&5
  13892. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13893. which seems to be undefined. Please make sure it is defined" >&2;}
  13894. rm -f "$ac_tmp/stdin"
  13895. case $ac_file in
  13896. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13897. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13898. esac \
  13899. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13900. ;;
  13901. :H)
  13902. #
  13903. # CONFIG_HEADER
  13904. #
  13905. if test x"$ac_file" != x-; then
  13906. {
  13907. $as_echo "/* $configure_input */" \
  13908. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13909. } >"$ac_tmp/config.h" \
  13910. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13911. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13913. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13914. else
  13915. rm -f "$ac_file"
  13916. mv "$ac_tmp/config.h" "$ac_file" \
  13917. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13918. fi
  13919. else
  13920. $as_echo "/* $configure_input */" \
  13921. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13922. || as_fn_error $? "could not create -" "$LINENO" 5
  13923. fi
  13924. # Compute "$ac_file"'s index in $config_headers.
  13925. _am_arg="$ac_file"
  13926. _am_stamp_count=1
  13927. for _am_header in $config_headers :; do
  13928. case $_am_header in
  13929. $_am_arg | $_am_arg:* )
  13930. break ;;
  13931. * )
  13932. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13933. esac
  13934. done
  13935. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13936. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13937. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13938. X"$_am_arg" : 'X\(//\)$' \| \
  13939. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13940. $as_echo X"$_am_arg" |
  13941. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13942. s//\1/
  13943. q
  13944. }
  13945. /^X\(\/\/\)[^/].*/{
  13946. s//\1/
  13947. q
  13948. }
  13949. /^X\(\/\/\)$/{
  13950. s//\1/
  13951. q
  13952. }
  13953. /^X\(\/\).*/{
  13954. s//\1/
  13955. q
  13956. }
  13957. s/.*/./; q'`/stamp-h$_am_stamp_count
  13958. ;;
  13959. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13960. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13961. ;;
  13962. esac
  13963. case $ac_file$ac_mode in
  13964. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13965. # Older Autoconf quotes --file arguments for eval, but not when files
  13966. # are listed without --file. Let's play safe and only enable the eval
  13967. # if we detect the quoting.
  13968. case $CONFIG_FILES in
  13969. *\'*) eval set x "$CONFIG_FILES" ;;
  13970. *) set x $CONFIG_FILES ;;
  13971. esac
  13972. shift
  13973. for mf
  13974. do
  13975. # Strip MF so we end up with the name of the file.
  13976. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13977. # Check whether this is an Automake generated Makefile or not.
  13978. # We used to match only the files named 'Makefile.in', but
  13979. # some people rename them; so instead we look at the file content.
  13980. # Grep'ing the first line is not enough: some people post-process
  13981. # each Makefile.in and add a new line on top of each file to say so.
  13982. # Grep'ing the whole file is not good either: AIX grep has a line
  13983. # limit of 2048, but all sed's we know have understand at least 4000.
  13984. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13985. dirpart=`$as_dirname -- "$mf" ||
  13986. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13987. X"$mf" : 'X\(//\)[^/]' \| \
  13988. X"$mf" : 'X\(//\)$' \| \
  13989. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13990. $as_echo X"$mf" |
  13991. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13992. s//\1/
  13993. q
  13994. }
  13995. /^X\(\/\/\)[^/].*/{
  13996. s//\1/
  13997. q
  13998. }
  13999. /^X\(\/\/\)$/{
  14000. s//\1/
  14001. q
  14002. }
  14003. /^X\(\/\).*/{
  14004. s//\1/
  14005. q
  14006. }
  14007. s/.*/./; q'`
  14008. else
  14009. continue
  14010. fi
  14011. # Extract the definition of DEPDIR, am__include, and am__quote
  14012. # from the Makefile without running 'make'.
  14013. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14014. test -z "$DEPDIR" && continue
  14015. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14016. test -z "$am__include" && continue
  14017. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14018. # Find all dependency output files, they are included files with
  14019. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14020. # simplest approach to changing $(DEPDIR) to its actual value in the
  14021. # expansion.
  14022. for file in `sed -n "
  14023. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14024. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  14025. # Make sure the directory exists.
  14026. test -f "$dirpart/$file" && continue
  14027. fdir=`$as_dirname -- "$file" ||
  14028. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14029. X"$file" : 'X\(//\)[^/]' \| \
  14030. X"$file" : 'X\(//\)$' \| \
  14031. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14032. $as_echo X"$file" |
  14033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14034. s//\1/
  14035. q
  14036. }
  14037. /^X\(\/\/\)[^/].*/{
  14038. s//\1/
  14039. q
  14040. }
  14041. /^X\(\/\/\)$/{
  14042. s//\1/
  14043. q
  14044. }
  14045. /^X\(\/\).*/{
  14046. s//\1/
  14047. q
  14048. }
  14049. s/.*/./; q'`
  14050. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14051. # echo "creating $dirpart/$file"
  14052. echo '# dummy' > "$dirpart/$file"
  14053. done
  14054. done
  14055. }
  14056. ;;
  14057. "libtool":C)
  14058. # See if we are running on zsh, and set the options which allow our
  14059. # commands through without removal of \ escapes.
  14060. if test -n "${ZSH_VERSION+set}" ; then
  14061. setopt NO_GLOB_SUBST
  14062. fi
  14063. cfgfile="${ofile}T"
  14064. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14065. $RM "$cfgfile"
  14066. cat <<_LT_EOF >> "$cfgfile"
  14067. #! $SHELL
  14068. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14069. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14070. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14071. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14072. #
  14073. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14074. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  14075. # Foundation, Inc.
  14076. # Written by Gordon Matzigkeit, 1996
  14077. #
  14078. # This file is part of GNU Libtool.
  14079. #
  14080. # GNU Libtool is free software; you can redistribute it and/or
  14081. # modify it under the terms of the GNU General Public License as
  14082. # published by the Free Software Foundation; either version 2 of
  14083. # the License, or (at your option) any later version.
  14084. #
  14085. # As a special exception to the GNU General Public License,
  14086. # if you distribute this file as part of a program or library that
  14087. # is built using GNU Libtool, you may include this file under the
  14088. # same distribution terms that you use for the rest of that program.
  14089. #
  14090. # GNU Libtool is distributed in the hope that it will be useful,
  14091. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14092. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14093. # GNU General Public License for more details.
  14094. #
  14095. # You should have received a copy of the GNU General Public License
  14096. # along with GNU Libtool; see the file COPYING. If not, a copy
  14097. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14098. # obtained by writing to the Free Software Foundation, Inc.,
  14099. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14100. # The names of the tagged configurations supported by this script.
  14101. available_tags=""
  14102. # ### BEGIN LIBTOOL CONFIG
  14103. # Which release of libtool.m4 was used?
  14104. macro_version=$macro_version
  14105. macro_revision=$macro_revision
  14106. # Whether or not to build static libraries.
  14107. build_old_libs=$enable_static
  14108. # What type of objects to build.
  14109. pic_mode=$pic_mode
  14110. # Whether or not to build shared libraries.
  14111. build_libtool_libs=$enable_shared
  14112. # Whether or not to optimize for fast installation.
  14113. fast_install=$enable_fast_install
  14114. # Shell to use when invoking shell scripts.
  14115. SHELL=$lt_SHELL
  14116. # An echo program that protects backslashes.
  14117. ECHO=$lt_ECHO
  14118. # The PATH separator for the build system.
  14119. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14120. # The host system.
  14121. host_alias=$host_alias
  14122. host=$host
  14123. host_os=$host_os
  14124. # The build system.
  14125. build_alias=$build_alias
  14126. build=$build
  14127. build_os=$build_os
  14128. # A sed program that does not truncate output.
  14129. SED=$lt_SED
  14130. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14131. Xsed="\$SED -e 1s/^X//"
  14132. # A grep program that handles long lines.
  14133. GREP=$lt_GREP
  14134. # An ERE matcher.
  14135. EGREP=$lt_EGREP
  14136. # A literal string matcher.
  14137. FGREP=$lt_FGREP
  14138. # A BSD- or MS-compatible name lister.
  14139. NM=$lt_NM
  14140. # Whether we need soft or hard links.
  14141. LN_S=$lt_LN_S
  14142. # What is the maximum length of a command?
  14143. max_cmd_len=$max_cmd_len
  14144. # Object file suffix (normally "o").
  14145. objext=$ac_objext
  14146. # Executable file suffix (normally "").
  14147. exeext=$exeext
  14148. # whether the shell understands "unset".
  14149. lt_unset=$lt_unset
  14150. # turn spaces into newlines.
  14151. SP2NL=$lt_lt_SP2NL
  14152. # turn newlines into spaces.
  14153. NL2SP=$lt_lt_NL2SP
  14154. # convert \$build file names to \$host format.
  14155. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14156. # convert \$build files to toolchain format.
  14157. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14158. # An object symbol dumper.
  14159. OBJDUMP=$lt_OBJDUMP
  14160. # Method to check whether dependent libraries are shared objects.
  14161. deplibs_check_method=$lt_deplibs_check_method
  14162. # Command to use when deplibs_check_method = "file_magic".
  14163. file_magic_cmd=$lt_file_magic_cmd
  14164. # How to find potential files when deplibs_check_method = "file_magic".
  14165. file_magic_glob=$lt_file_magic_glob
  14166. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14167. want_nocaseglob=$lt_want_nocaseglob
  14168. # DLL creation program.
  14169. DLLTOOL=$lt_DLLTOOL
  14170. # Command to associate shared and link libraries.
  14171. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14172. # The archiver.
  14173. AR=$lt_AR
  14174. # Flags to create an archive.
  14175. AR_FLAGS=$lt_AR_FLAGS
  14176. # How to feed a file listing to the archiver.
  14177. archiver_list_spec=$lt_archiver_list_spec
  14178. # A symbol stripping program.
  14179. STRIP=$lt_STRIP
  14180. # Commands used to install an old-style archive.
  14181. RANLIB=$lt_RANLIB
  14182. old_postinstall_cmds=$lt_old_postinstall_cmds
  14183. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14184. # Whether to use a lock for old archive extraction.
  14185. lock_old_archive_extraction=$lock_old_archive_extraction
  14186. # A C compiler.
  14187. LTCC=$lt_CC
  14188. # LTCC compiler flags.
  14189. LTCFLAGS=$lt_CFLAGS
  14190. # Take the output of nm and produce a listing of raw symbols and C names.
  14191. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14192. # Transform the output of nm in a proper C declaration.
  14193. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14194. # Transform the output of nm in a C name address pair.
  14195. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14196. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14197. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14198. # Specify filename containing input files for \$NM.
  14199. nm_file_list_spec=$lt_nm_file_list_spec
  14200. # The root where to search for dependent libraries,and in which our libraries should be installed.
  14201. lt_sysroot=$lt_sysroot
  14202. # The name of the directory that contains temporary libtool files.
  14203. objdir=$objdir
  14204. # Used to examine libraries when file_magic_cmd begins with "file".
  14205. MAGIC_CMD=$MAGIC_CMD
  14206. # Must we lock files when doing compilation?
  14207. need_locks=$lt_need_locks
  14208. # Manifest tool.
  14209. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14210. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14211. DSYMUTIL=$lt_DSYMUTIL
  14212. # Tool to change global to local symbols on Mac OS X.
  14213. NMEDIT=$lt_NMEDIT
  14214. # Tool to manipulate fat objects and archives on Mac OS X.
  14215. LIPO=$lt_LIPO
  14216. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14217. OTOOL=$lt_OTOOL
  14218. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14219. OTOOL64=$lt_OTOOL64
  14220. # Old archive suffix (normally "a").
  14221. libext=$libext
  14222. # Shared library suffix (normally ".so").
  14223. shrext_cmds=$lt_shrext_cmds
  14224. # The commands to extract the exported symbol list from a shared archive.
  14225. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14226. # Variables whose values should be saved in libtool wrapper scripts and
  14227. # restored at link time.
  14228. variables_saved_for_relink=$lt_variables_saved_for_relink
  14229. # Do we need the "lib" prefix for modules?
  14230. need_lib_prefix=$need_lib_prefix
  14231. # Do we need a version for libraries?
  14232. need_version=$need_version
  14233. # Library versioning type.
  14234. version_type=$version_type
  14235. # Shared library runtime path variable.
  14236. runpath_var=$runpath_var
  14237. # Shared library path variable.
  14238. shlibpath_var=$shlibpath_var
  14239. # Is shlibpath searched before the hard-coded library search path?
  14240. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14241. # Format of library name prefix.
  14242. libname_spec=$lt_libname_spec
  14243. # List of archive names. First name is the real one, the rest are links.
  14244. # The last name is the one that the linker finds with -lNAME
  14245. library_names_spec=$lt_library_names_spec
  14246. # The coded name of the library, if different from the real name.
  14247. soname_spec=$lt_soname_spec
  14248. # Permission mode override for installation of shared libraries.
  14249. install_override_mode=$lt_install_override_mode
  14250. # Command to use after installation of a shared archive.
  14251. postinstall_cmds=$lt_postinstall_cmds
  14252. # Command to use after uninstallation of a shared archive.
  14253. postuninstall_cmds=$lt_postuninstall_cmds
  14254. # Commands used to finish a libtool library installation in a directory.
  14255. finish_cmds=$lt_finish_cmds
  14256. # As "finish_cmds", except a single script fragment to be evaled but
  14257. # not shown.
  14258. finish_eval=$lt_finish_eval
  14259. # Whether we should hardcode library paths into libraries.
  14260. hardcode_into_libs=$hardcode_into_libs
  14261. # Compile-time system search path for libraries.
  14262. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14263. # Run-time system search path for libraries.
  14264. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14265. # Whether dlopen is supported.
  14266. dlopen_support=$enable_dlopen
  14267. # Whether dlopen of programs is supported.
  14268. dlopen_self=$enable_dlopen_self
  14269. # Whether dlopen of statically linked programs is supported.
  14270. dlopen_self_static=$enable_dlopen_self_static
  14271. # Commands to strip libraries.
  14272. old_striplib=$lt_old_striplib
  14273. striplib=$lt_striplib
  14274. # The linker used to build libraries.
  14275. LD=$lt_LD
  14276. # How to create reloadable object files.
  14277. reload_flag=$lt_reload_flag
  14278. reload_cmds=$lt_reload_cmds
  14279. # Commands used to build an old-style archive.
  14280. old_archive_cmds=$lt_old_archive_cmds
  14281. # A language specific compiler.
  14282. CC=$lt_compiler
  14283. # Is the compiler the GNU compiler?
  14284. with_gcc=$GCC
  14285. # Compiler flag to turn off builtin functions.
  14286. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14287. # Additional compiler flags for building library objects.
  14288. pic_flag=$lt_lt_prog_compiler_pic
  14289. # How to pass a linker flag through the compiler.
  14290. wl=$lt_lt_prog_compiler_wl
  14291. # Compiler flag to prevent dynamic linking.
  14292. link_static_flag=$lt_lt_prog_compiler_static
  14293. # Does compiler simultaneously support -c and -o options?
  14294. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14295. # Whether or not to add -lc for building shared libraries.
  14296. build_libtool_need_lc=$archive_cmds_need_lc
  14297. # Whether or not to disallow shared libs when runtime libs are static.
  14298. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14299. # Compiler flag to allow reflexive dlopens.
  14300. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14301. # Compiler flag to generate shared objects directly from archives.
  14302. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14303. # Whether the compiler copes with passing no objects directly.
  14304. compiler_needs_object=$lt_compiler_needs_object
  14305. # Create an old-style archive from a shared archive.
  14306. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14307. # Create a temporary old-style archive to link instead of a shared archive.
  14308. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14309. # Commands used to build a shared archive.
  14310. archive_cmds=$lt_archive_cmds
  14311. archive_expsym_cmds=$lt_archive_expsym_cmds
  14312. # Commands used to build a loadable module if different from building
  14313. # a shared archive.
  14314. module_cmds=$lt_module_cmds
  14315. module_expsym_cmds=$lt_module_expsym_cmds
  14316. # Whether we are building with GNU ld or not.
  14317. with_gnu_ld=$lt_with_gnu_ld
  14318. # Flag that allows shared libraries with undefined symbols to be built.
  14319. allow_undefined_flag=$lt_allow_undefined_flag
  14320. # Flag that enforces no undefined symbols.
  14321. no_undefined_flag=$lt_no_undefined_flag
  14322. # Flag to hardcode \$libdir into a binary during linking.
  14323. # This must work even if \$libdir does not exist
  14324. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14325. # Whether we need a single "-rpath" flag with a separated argument.
  14326. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14327. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14328. # DIR into the resulting binary.
  14329. hardcode_direct=$hardcode_direct
  14330. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14331. # DIR into the resulting binary and the resulting library dependency is
  14332. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14333. # library is relocated.
  14334. hardcode_direct_absolute=$hardcode_direct_absolute
  14335. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14336. # into the resulting binary.
  14337. hardcode_minus_L=$hardcode_minus_L
  14338. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14339. # into the resulting binary.
  14340. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14341. # Set to "yes" if building a shared library automatically hardcodes DIR
  14342. # into the library and all subsequent libraries and executables linked
  14343. # against it.
  14344. hardcode_automatic=$hardcode_automatic
  14345. # Set to yes if linker adds runtime paths of dependent libraries
  14346. # to runtime path list.
  14347. inherit_rpath=$inherit_rpath
  14348. # Whether libtool must link a program against all its dependency libraries.
  14349. link_all_deplibs=$link_all_deplibs
  14350. # Set to "yes" if exported symbols are required.
  14351. always_export_symbols=$always_export_symbols
  14352. # The commands to list exported symbols.
  14353. export_symbols_cmds=$lt_export_symbols_cmds
  14354. # Symbols that should not be listed in the preloaded symbols.
  14355. exclude_expsyms=$lt_exclude_expsyms
  14356. # Symbols that must always be exported.
  14357. include_expsyms=$lt_include_expsyms
  14358. # Commands necessary for linking programs (against libraries) with templates.
  14359. prelink_cmds=$lt_prelink_cmds
  14360. # Commands necessary for finishing linking programs.
  14361. postlink_cmds=$lt_postlink_cmds
  14362. # Specify filename containing input files.
  14363. file_list_spec=$lt_file_list_spec
  14364. # How to hardcode a shared library path into an executable.
  14365. hardcode_action=$hardcode_action
  14366. # ### END LIBTOOL CONFIG
  14367. _LT_EOF
  14368. case $host_os in
  14369. aix3*)
  14370. cat <<\_LT_EOF >> "$cfgfile"
  14371. # AIX sometimes has problems with the GCC collect2 program. For some
  14372. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14373. # vanish in a puff of smoke.
  14374. if test "X${COLLECT_NAMES+set}" != Xset; then
  14375. COLLECT_NAMES=
  14376. export COLLECT_NAMES
  14377. fi
  14378. _LT_EOF
  14379. ;;
  14380. esac
  14381. ltmain="$ac_aux_dir/ltmain.sh"
  14382. # We use sed instead of cat because bash on DJGPP gets confused if
  14383. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14384. # text mode, it properly converts lines to CR/LF. This bash problem
  14385. # is reportedly fixed, but why not run on old versions too?
  14386. sed '$q' "$ltmain" >> "$cfgfile" \
  14387. || (rm -f "$cfgfile"; exit 1)
  14388. if test x"$xsi_shell" = xyes; then
  14389. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  14390. func_dirname ()\
  14391. {\
  14392. \ case ${1} in\
  14393. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14394. \ * ) func_dirname_result="${3}" ;;\
  14395. \ esac\
  14396. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  14397. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14398. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14399. test 0 -eq $? || _lt_function_replace_fail=:
  14400. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  14401. func_basename ()\
  14402. {\
  14403. \ func_basename_result="${1##*/}"\
  14404. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14405. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14406. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14407. test 0 -eq $? || _lt_function_replace_fail=:
  14408. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  14409. func_dirname_and_basename ()\
  14410. {\
  14411. \ case ${1} in\
  14412. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14413. \ * ) func_dirname_result="${3}" ;;\
  14414. \ esac\
  14415. \ func_basename_result="${1##*/}"\
  14416. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14417. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14418. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14419. test 0 -eq $? || _lt_function_replace_fail=:
  14420. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  14421. func_stripname ()\
  14422. {\
  14423. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  14424. \ # positional parameters, so assign one to ordinary parameter first.\
  14425. \ func_stripname_result=${3}\
  14426. \ func_stripname_result=${func_stripname_result#"${1}"}\
  14427. \ func_stripname_result=${func_stripname_result%"${2}"}\
  14428. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  14429. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14430. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14431. test 0 -eq $? || _lt_function_replace_fail=:
  14432. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  14433. func_split_long_opt ()\
  14434. {\
  14435. \ func_split_long_opt_name=${1%%=*}\
  14436. \ func_split_long_opt_arg=${1#*=}\
  14437. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14438. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14439. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14440. test 0 -eq $? || _lt_function_replace_fail=:
  14441. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  14442. func_split_short_opt ()\
  14443. {\
  14444. \ func_split_short_opt_arg=${1#??}\
  14445. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  14446. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14447. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14448. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14449. test 0 -eq $? || _lt_function_replace_fail=:
  14450. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  14451. func_lo2o ()\
  14452. {\
  14453. \ case ${1} in\
  14454. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  14455. \ *) func_lo2o_result=${1} ;;\
  14456. \ esac\
  14457. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  14458. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14459. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14460. test 0 -eq $? || _lt_function_replace_fail=:
  14461. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  14462. func_xform ()\
  14463. {\
  14464. func_xform_result=${1%.*}.lo\
  14465. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  14466. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14467. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14468. test 0 -eq $? || _lt_function_replace_fail=:
  14469. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  14470. func_arith ()\
  14471. {\
  14472. func_arith_result=$(( $* ))\
  14473. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  14474. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14475. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14476. test 0 -eq $? || _lt_function_replace_fail=:
  14477. sed -e '/^func_len ()$/,/^} # func_len /c\
  14478. func_len ()\
  14479. {\
  14480. func_len_result=${#1}\
  14481. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  14482. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14483. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14484. test 0 -eq $? || _lt_function_replace_fail=:
  14485. fi
  14486. if test x"$lt_shell_append" = xyes; then
  14487. sed -e '/^func_append ()$/,/^} # func_append /c\
  14488. func_append ()\
  14489. {\
  14490. eval "${1}+=\\${2}"\
  14491. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  14492. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14493. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14494. test 0 -eq $? || _lt_function_replace_fail=:
  14495. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  14496. func_append_quoted ()\
  14497. {\
  14498. \ func_quote_for_eval "${2}"\
  14499. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  14500. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  14501. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14502. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14503. test 0 -eq $? || _lt_function_replace_fail=:
  14504. # Save a `func_append' function call where possible by direct use of '+='
  14505. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  14506. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14507. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14508. test 0 -eq $? || _lt_function_replace_fail=:
  14509. else
  14510. # Save a `func_append' function call even when '+=' is not available
  14511. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  14512. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14513. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14514. test 0 -eq $? || _lt_function_replace_fail=:
  14515. fi
  14516. if test x"$_lt_function_replace_fail" = x":"; then
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  14518. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  14519. fi
  14520. mv -f "$cfgfile" "$ofile" ||
  14521. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14522. chmod +x "$ofile"
  14523. ;;
  14524. esac
  14525. done # for ac_tag
  14526. as_fn_exit 0
  14527. _ACEOF
  14528. ac_clean_files=$ac_clean_files_save
  14529. test $ac_write_fail = 0 ||
  14530. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14531. # configure is writing to config.log, and then calls config.status.
  14532. # config.status does its own redirection, appending to config.log.
  14533. # Unfortunately, on DOS this fails, as config.log is still kept open
  14534. # by configure, so config.status won't be able to write to it; its
  14535. # output is simply discarded. So we exec the FD to /dev/null,
  14536. # effectively closing config.log, so it can be properly (re)opened and
  14537. # appended to by config.status. When coming back to configure, we
  14538. # need to make the FD available again.
  14539. if test "$no_create" != yes; then
  14540. ac_cs_success=:
  14541. ac_config_status_args=
  14542. test "$silent" = yes &&
  14543. ac_config_status_args="$ac_config_status_args --quiet"
  14544. exec 5>/dev/null
  14545. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14546. exec 5>>config.log
  14547. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14548. # would make configure fail if this is the last instruction.
  14549. $ac_cs_success || as_fn_exit 1
  14550. fi
  14551. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14552. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14553. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14554. fi