configure 478 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for file 5.24.
  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.24'
  544. PACKAGE_STRING='file 5.24'
  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_fsect_man5
  718. enable_dependency_tracking
  719. enable_static
  720. with_pic
  721. enable_shared
  722. enable_fast_install
  723. with_gnu_ld
  724. with_sysroot
  725. enable_libtool_lock
  726. enable_largefile
  727. enable_warnings
  728. '
  729. ac_precious_vars='build_alias
  730. host_alias
  731. target_alias
  732. CC
  733. CFLAGS
  734. LDFLAGS
  735. LIBS
  736. CPPFLAGS
  737. CPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  968. -program-transform-name=* | --program-transform-name=* \
  969. | --program-transform-nam=* | --program-transform-na=* \
  970. | --program-transform-n=* | --program-transform-=* \
  971. | --program-transform=* | --program-transfor=* \
  972. | --program-transfo=* | --program-transf=* \
  973. | --program-trans=* | --program-tran=* \
  974. | --progr-tra=* | --program-tr=* | --program-t=*)
  975. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. elif test "x$build_alias" != "x$host_alias"; then
  1132. cross_compiling=yes
  1133. fi
  1134. fi
  1135. ac_tool_prefix=
  1136. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1137. test "$silent" = yes && exec 6>/dev/null
  1138. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1139. ac_ls_di=`ls -di .` &&
  1140. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1141. as_fn_error $? "working directory cannot be determined"
  1142. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1143. as_fn_error $? "pwd does not report name of working directory"
  1144. # Find the source files, if location was not specified.
  1145. if test -z "$srcdir"; then
  1146. ac_srcdir_defaulted=yes
  1147. # Try the directory containing this script, then the parent directory.
  1148. ac_confdir=`$as_dirname -- "$as_myself" ||
  1149. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1150. X"$as_myself" : 'X\(//\)[^/]' \| \
  1151. X"$as_myself" : 'X\(//\)$' \| \
  1152. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1153. $as_echo X"$as_myself" |
  1154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)[^/].*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\/\)$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\).*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. s/.*/./; q'`
  1171. srcdir=$ac_confdir
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. srcdir=..
  1174. fi
  1175. else
  1176. ac_srcdir_defaulted=no
  1177. fi
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1180. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1181. fi
  1182. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1183. ac_abs_confdir=`(
  1184. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1185. pwd)`
  1186. # When building in place, set srcdir=.
  1187. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1188. srcdir=.
  1189. fi
  1190. # Remove unnecessary trailing slashes from srcdir.
  1191. # Double slashes in file names in object file debugging info
  1192. # mess up M-x gdb in Emacs.
  1193. case $srcdir in
  1194. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1195. esac
  1196. for ac_var in $ac_precious_vars; do
  1197. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_env_${ac_var}_value=\$${ac_var}
  1199. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1201. done
  1202. #
  1203. # Report the --help message.
  1204. #
  1205. if test "$ac_init_help" = "long"; then
  1206. # Omit some internal or obsolete options to make the list less imposing.
  1207. # This message is too long to be a string in the A/UX 3.1 sh.
  1208. cat <<_ACEOF
  1209. \`configure' configures file 5.24 to adapt to many kinds of systems.
  1210. Usage: $0 [OPTION]... [VAR=VALUE]...
  1211. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1212. VAR=VALUE. See below for descriptions of some of the useful variables.
  1213. Defaults for the options are specified in brackets.
  1214. Configuration:
  1215. -h, --help display this help and exit
  1216. --help=short display options specific to this package
  1217. --help=recursive display the short help of all the included packages
  1218. -V, --version display version information and exit
  1219. -q, --quiet, --silent do not print \`checking ...' messages
  1220. --cache-file=FILE cache test results in FILE [disabled]
  1221. -C, --config-cache alias for \`--cache-file=config.cache'
  1222. -n, --no-create do not create output files
  1223. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1224. Installation directories:
  1225. --prefix=PREFIX install architecture-independent files in PREFIX
  1226. [$ac_default_prefix]
  1227. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1228. [PREFIX]
  1229. By default, \`make install' will install all the files in
  1230. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1231. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1232. for instance \`--prefix=\$HOME'.
  1233. For better control, use the options below.
  1234. Fine tuning of the installation directories:
  1235. --bindir=DIR user executables [EPREFIX/bin]
  1236. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1237. --libexecdir=DIR program executables [EPREFIX/libexec]
  1238. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1239. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1240. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1241. --libdir=DIR object code libraries [EPREFIX/lib]
  1242. --includedir=DIR C header files [PREFIX/include]
  1243. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1244. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1245. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1246. --infodir=DIR info documentation [DATAROOTDIR/info]
  1247. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1248. --mandir=DIR man documentation [DATAROOTDIR/man]
  1249. --docdir=DIR documentation root [DATAROOTDIR/doc/file]
  1250. --htmldir=DIR html documentation [DOCDIR]
  1251. --dvidir=DIR dvi documentation [DOCDIR]
  1252. --pdfdir=DIR pdf documentation [DOCDIR]
  1253. --psdir=DIR ps documentation [DOCDIR]
  1254. _ACEOF
  1255. cat <<\_ACEOF
  1256. Program names:
  1257. --program-prefix=PREFIX prepend PREFIX to installed program names
  1258. --program-suffix=SUFFIX append SUFFIX to installed program names
  1259. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1260. System types:
  1261. --build=BUILD configure for building on BUILD [guessed]
  1262. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1263. _ACEOF
  1264. fi
  1265. if test -n "$ac_init_help"; then
  1266. case $ac_init_help in
  1267. short | recursive ) echo "Configuration of file 5.24:";;
  1268. esac
  1269. cat <<\_ACEOF
  1270. Optional Features:
  1271. --disable-option-checking ignore unrecognized --enable/--with options
  1272. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1273. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1274. --enable-silent-rules less verbose build output (undo: "make V=1")
  1275. --disable-silent-rules verbose build output (undo: "make V=0")
  1276. --disable-elf disable builtin ELF support
  1277. --disable-elf-core disable ELF core file support
  1278. --enable-fsect-man5 enable file formats in man section 5
  1279. --enable-dependency-tracking
  1280. do not reject slow dependency extractors
  1281. --disable-dependency-tracking
  1282. speeds up one-time build
  1283. --enable-static[=PKGS] build static libraries [default=no]
  1284. --enable-shared[=PKGS] build shared libraries [default=yes]
  1285. --enable-fast-install[=PKGS]
  1286. optimize for fast installation [default=yes]
  1287. --disable-libtool-lock avoid locking (might break parallel builds)
  1288. --disable-largefile omit support for large files
  1289. --disable-warnings disable compiler warnings
  1290. Optional Packages:
  1291. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1292. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1293. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1294. both]
  1295. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1296. --with-sysroot=DIR Search for dependent libraries within DIR
  1297. (or the compiler's sysroot if not specified).
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. CPP C preprocessor
  1307. Use these variables to override the choices made by `configure' or to help
  1308. it to find libraries and programs with nonstandard names/locations.
  1309. Report bugs to <christos@astron.com>.
  1310. _ACEOF
  1311. ac_status=$?
  1312. fi
  1313. if test "$ac_init_help" = "recursive"; then
  1314. # If there are subdirs, report their specific --help.
  1315. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1316. test -d "$ac_dir" ||
  1317. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1318. continue
  1319. ac_builddir=.
  1320. case "$ac_dir" in
  1321. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *)
  1323. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1324. # A ".." for each directory in $ac_dir_suffix.
  1325. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1326. case $ac_top_builddir_sub in
  1327. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1328. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1329. esac ;;
  1330. esac
  1331. ac_abs_top_builddir=$ac_pwd
  1332. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1333. # for backward compatibility:
  1334. ac_top_builddir=$ac_top_build_prefix
  1335. case $srcdir in
  1336. .) # We are building in place.
  1337. ac_srcdir=.
  1338. ac_top_srcdir=$ac_top_builddir_sub
  1339. ac_abs_top_srcdir=$ac_pwd ;;
  1340. [\\/]* | ?:[\\/]* ) # Absolute name.
  1341. ac_srcdir=$srcdir$ac_dir_suffix;
  1342. ac_top_srcdir=$srcdir
  1343. ac_abs_top_srcdir=$srcdir ;;
  1344. *) # Relative name.
  1345. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1346. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1347. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1348. esac
  1349. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1350. cd "$ac_dir" || { ac_status=$?; continue; }
  1351. # Check for guested configure.
  1352. if test -f "$ac_srcdir/configure.gnu"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1355. elif test -f "$ac_srcdir/configure"; then
  1356. echo &&
  1357. $SHELL "$ac_srcdir/configure" --help=recursive
  1358. else
  1359. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1360. fi || ac_status=$?
  1361. cd "$ac_pwd" || { ac_status=$?; break; }
  1362. done
  1363. fi
  1364. test -n "$ac_init_help" && exit $ac_status
  1365. if $ac_init_version; then
  1366. cat <<\_ACEOF
  1367. file configure 5.24
  1368. generated by GNU Autoconf 2.69
  1369. Copyright (C) 2012 Free Software Foundation, Inc.
  1370. This configure script is free software; the Free Software Foundation
  1371. gives unlimited permission to copy, distribute and modify it.
  1372. _ACEOF
  1373. exit
  1374. fi
  1375. ## ------------------------ ##
  1376. ## Autoconf initialization. ##
  1377. ## ------------------------ ##
  1378. # ac_fn_c_try_compile LINENO
  1379. # --------------------------
  1380. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1381. ac_fn_c_try_compile ()
  1382. {
  1383. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1384. rm -f conftest.$ac_objext
  1385. if { { ac_try="$ac_compile"
  1386. case "(($ac_try" in
  1387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1388. *) ac_try_echo=$ac_try;;
  1389. esac
  1390. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1391. $as_echo "$ac_try_echo"; } >&5
  1392. (eval "$ac_compile") 2>conftest.err
  1393. ac_status=$?
  1394. if test -s conftest.err; then
  1395. grep -v '^ *+' conftest.err >conftest.er1
  1396. cat conftest.er1 >&5
  1397. mv -f conftest.er1 conftest.err
  1398. fi
  1399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1400. test $ac_status = 0; } && {
  1401. test -z "$ac_c_werror_flag" ||
  1402. test ! -s conftest.err
  1403. } && test -s conftest.$ac_objext; then :
  1404. ac_retval=0
  1405. else
  1406. $as_echo "$as_me: failed program was:" >&5
  1407. sed 's/^/| /' conftest.$ac_ext >&5
  1408. ac_retval=1
  1409. fi
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } # ac_fn_c_try_compile
  1413. # ac_fn_c_try_cpp LINENO
  1414. # ----------------------
  1415. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1416. ac_fn_c_try_cpp ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } > conftest.i && {
  1435. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. }; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } # ac_fn_c_try_cpp
  1447. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1448. # -------------------------------------------------------
  1449. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1450. # the include files in INCLUDES and setting the cache variable VAR
  1451. # accordingly.
  1452. ac_fn_c_check_header_mongrel ()
  1453. {
  1454. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1455. if eval \${$3+:} false; then :
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1457. $as_echo_n "checking for $2... " >&6; }
  1458. if eval \${$3+:} false; then :
  1459. $as_echo_n "(cached) " >&6
  1460. fi
  1461. eval ac_res=\$$3
  1462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1463. $as_echo "$ac_res" >&6; }
  1464. else
  1465. # Is the header compilable?
  1466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1467. $as_echo_n "checking $2 usability... " >&6; }
  1468. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1469. /* end confdefs.h. */
  1470. $4
  1471. #include <$2>
  1472. _ACEOF
  1473. if ac_fn_c_try_compile "$LINENO"; then :
  1474. ac_header_compiler=yes
  1475. else
  1476. ac_header_compiler=no
  1477. fi
  1478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1480. $as_echo "$ac_header_compiler" >&6; }
  1481. # Is the header present?
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1483. $as_echo_n "checking $2 presence... " >&6; }
  1484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1485. /* end confdefs.h. */
  1486. #include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_cpp "$LINENO"; then :
  1489. ac_header_preproc=yes
  1490. else
  1491. ac_header_preproc=no
  1492. fi
  1493. rm -f conftest.err conftest.i conftest.$ac_ext
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1495. $as_echo "$ac_header_preproc" >&6; }
  1496. # So? What about this header?
  1497. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1498. yes:no: )
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1500. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1502. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1503. ;;
  1504. no:yes:* )
  1505. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1506. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1507. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1508. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1510. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1512. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1514. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1515. ( $as_echo "## ---------------------------------- ##
  1516. ## Report this to christos@astron.com ##
  1517. ## ---------------------------------- ##"
  1518. ) | sed "s/^/$as_me: WARNING: /" >&2
  1519. ;;
  1520. esac
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. eval "$3=\$ac_header_compiler"
  1527. fi
  1528. eval ac_res=\$$3
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1530. $as_echo "$ac_res" >&6; }
  1531. fi
  1532. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1533. } # ac_fn_c_check_header_mongrel
  1534. # ac_fn_c_try_run LINENO
  1535. # ----------------------
  1536. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1537. # that executables *can* be run.
  1538. ac_fn_c_try_run ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. if { { ac_try="$ac_link"
  1542. case "(($ac_try" in
  1543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1544. *) ac_try_echo=$ac_try;;
  1545. esac
  1546. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1547. $as_echo "$ac_try_echo"; } >&5
  1548. (eval "$ac_link") 2>&5
  1549. ac_status=$?
  1550. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1551. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1552. { { case "(($ac_try" in
  1553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1554. *) ac_try_echo=$ac_try;;
  1555. esac
  1556. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1557. $as_echo "$ac_try_echo"; } >&5
  1558. (eval "$ac_try") 2>&5
  1559. ac_status=$?
  1560. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1561. test $ac_status = 0; }; }; then :
  1562. ac_retval=0
  1563. else
  1564. $as_echo "$as_me: program exited with status $ac_status" >&5
  1565. $as_echo "$as_me: failed program was:" >&5
  1566. sed 's/^/| /' conftest.$ac_ext >&5
  1567. ac_retval=$ac_status
  1568. fi
  1569. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1570. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1571. as_fn_set_status $ac_retval
  1572. } # ac_fn_c_try_run
  1573. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1574. # -------------------------------------------------------
  1575. # Tests whether HEADER exists and can be compiled using the include files in
  1576. # INCLUDES, setting the cache variable VAR accordingly.
  1577. ac_fn_c_check_header_compile ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1581. $as_echo_n "checking for $2... " >&6; }
  1582. if eval \${$3+:} false; then :
  1583. $as_echo_n "(cached) " >&6
  1584. else
  1585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1586. /* end confdefs.h. */
  1587. $4
  1588. #include <$2>
  1589. _ACEOF
  1590. if ac_fn_c_try_compile "$LINENO"; then :
  1591. eval "$3=yes"
  1592. else
  1593. eval "$3=no"
  1594. fi
  1595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1596. fi
  1597. eval ac_res=\$$3
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1599. $as_echo "$ac_res" >&6; }
  1600. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1601. } # ac_fn_c_check_header_compile
  1602. # ac_fn_c_try_link LINENO
  1603. # -----------------------
  1604. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1605. ac_fn_c_try_link ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. rm -f conftest.$ac_objext conftest$ac_exeext
  1609. if { { ac_try="$ac_link"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1615. $as_echo "$ac_try_echo"; } >&5
  1616. (eval "$ac_link") 2>conftest.err
  1617. ac_status=$?
  1618. if test -s conftest.err; then
  1619. grep -v '^ *+' conftest.err >conftest.er1
  1620. cat conftest.er1 >&5
  1621. mv -f conftest.er1 conftest.err
  1622. fi
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } && {
  1625. test -z "$ac_c_werror_flag" ||
  1626. test ! -s conftest.err
  1627. } && test -s conftest$ac_exeext && {
  1628. test "$cross_compiling" = yes ||
  1629. test -x conftest$ac_exeext
  1630. }; then :
  1631. ac_retval=0
  1632. else
  1633. $as_echo "$as_me: failed program was:" >&5
  1634. sed 's/^/| /' conftest.$ac_ext >&5
  1635. ac_retval=1
  1636. fi
  1637. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1638. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1639. # interfere with the next link command; also delete a directory that is
  1640. # left behind by Apple's compiler. We do this before executing the actions.
  1641. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1642. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1643. as_fn_set_status $ac_retval
  1644. } # ac_fn_c_try_link
  1645. # ac_fn_c_check_func LINENO FUNC VAR
  1646. # ----------------------------------
  1647. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1648. ac_fn_c_check_func ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1652. $as_echo_n "checking for $2... " >&6; }
  1653. if eval \${$3+:} false; then :
  1654. $as_echo_n "(cached) " >&6
  1655. else
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1659. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1660. #define $2 innocuous_$2
  1661. /* System header to define __stub macros and hopefully few prototypes,
  1662. which can conflict with char $2 (); below.
  1663. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1664. <limits.h> exists even on freestanding compilers. */
  1665. #ifdef __STDC__
  1666. # include <limits.h>
  1667. #else
  1668. # include <assert.h>
  1669. #endif
  1670. #undef $2
  1671. /* Override any GCC internal prototype to avoid an error.
  1672. Use char because int might match the return type of a GCC
  1673. builtin and then its argument prototype would still apply. */
  1674. #ifdef __cplusplus
  1675. extern "C"
  1676. #endif
  1677. char $2 ();
  1678. /* The GNU C library defines this for functions which it implements
  1679. to always fail with ENOSYS. Some functions are actually named
  1680. something starting with __ and the normal name is an alias. */
  1681. #if defined __stub_$2 || defined __stub___$2
  1682. choke me
  1683. #endif
  1684. int
  1685. main ()
  1686. {
  1687. return $2 ();
  1688. ;
  1689. return 0;
  1690. }
  1691. _ACEOF
  1692. if ac_fn_c_try_link "$LINENO"; then :
  1693. eval "$3=yes"
  1694. else
  1695. eval "$3=no"
  1696. fi
  1697. rm -f core conftest.err conftest.$ac_objext \
  1698. conftest$ac_exeext conftest.$ac_ext
  1699. fi
  1700. eval ac_res=\$$3
  1701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1702. $as_echo "$ac_res" >&6; }
  1703. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1704. } # ac_fn_c_check_func
  1705. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1706. # -------------------------------------------
  1707. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1708. # variable VAR accordingly.
  1709. ac_fn_c_check_type ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1713. $as_echo_n "checking for $2... " >&6; }
  1714. if eval \${$3+:} false; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. eval "$3=no"
  1718. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1719. /* end confdefs.h. */
  1720. $4
  1721. int
  1722. main ()
  1723. {
  1724. if (sizeof ($2))
  1725. return 0;
  1726. ;
  1727. return 0;
  1728. }
  1729. _ACEOF
  1730. if ac_fn_c_try_compile "$LINENO"; then :
  1731. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1732. /* end confdefs.h. */
  1733. $4
  1734. int
  1735. main ()
  1736. {
  1737. if (sizeof (($2)))
  1738. return 0;
  1739. ;
  1740. return 0;
  1741. }
  1742. _ACEOF
  1743. if ac_fn_c_try_compile "$LINENO"; then :
  1744. else
  1745. eval "$3=yes"
  1746. fi
  1747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1748. fi
  1749. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1750. fi
  1751. eval ac_res=\$$3
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1753. $as_echo "$ac_res" >&6; }
  1754. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1755. } # ac_fn_c_check_type
  1756. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1757. # ----------------------------------------------------
  1758. # Tries to find if the field MEMBER exists in type AGGR, after including
  1759. # INCLUDES, setting cache variable VAR accordingly.
  1760. ac_fn_c_check_member ()
  1761. {
  1762. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1764. $as_echo_n "checking for $2.$3... " >&6; }
  1765. if eval \${$4+:} false; then :
  1766. $as_echo_n "(cached) " >&6
  1767. else
  1768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1769. /* end confdefs.h. */
  1770. $5
  1771. int
  1772. main ()
  1773. {
  1774. static $2 ac_aggr;
  1775. if (ac_aggr.$3)
  1776. return 0;
  1777. ;
  1778. return 0;
  1779. }
  1780. _ACEOF
  1781. if ac_fn_c_try_compile "$LINENO"; then :
  1782. eval "$4=yes"
  1783. else
  1784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1785. /* end confdefs.h. */
  1786. $5
  1787. int
  1788. main ()
  1789. {
  1790. static $2 ac_aggr;
  1791. if (sizeof ac_aggr.$3)
  1792. return 0;
  1793. ;
  1794. return 0;
  1795. }
  1796. _ACEOF
  1797. if ac_fn_c_try_compile "$LINENO"; then :
  1798. eval "$4=yes"
  1799. else
  1800. eval "$4=no"
  1801. fi
  1802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1803. fi
  1804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1805. fi
  1806. eval ac_res=\$$4
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1808. $as_echo "$ac_res" >&6; }
  1809. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1810. } # ac_fn_c_check_member
  1811. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1812. # ---------------------------------------------
  1813. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1814. # accordingly.
  1815. ac_fn_c_check_decl ()
  1816. {
  1817. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1818. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1819. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1821. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1822. if eval \${$3+:} false; then :
  1823. $as_echo_n "(cached) " >&6
  1824. else
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. $4
  1828. int
  1829. main ()
  1830. {
  1831. #ifndef $as_decl_name
  1832. #ifdef __cplusplus
  1833. (void) $as_decl_use;
  1834. #else
  1835. (void) $as_decl_name;
  1836. #endif
  1837. #endif
  1838. ;
  1839. return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843. eval "$3=yes"
  1844. else
  1845. eval "$3=no"
  1846. fi
  1847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1848. fi
  1849. eval ac_res=\$$3
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1851. $as_echo "$ac_res" >&6; }
  1852. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1853. } # ac_fn_c_check_decl
  1854. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1855. # ------------------------------------
  1856. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1857. # accordingly.
  1858. ac_fn_c_find_uintX_t ()
  1859. {
  1860. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1862. $as_echo_n "checking for uint$2_t... " >&6; }
  1863. if eval \${$3+:} false; then :
  1864. $as_echo_n "(cached) " >&6
  1865. else
  1866. eval "$3=no"
  1867. # Order is important - never check a type that is potentially smaller
  1868. # than half of the expected target width.
  1869. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1870. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1871. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1872. /* end confdefs.h. */
  1873. $ac_includes_default
  1874. int
  1875. main ()
  1876. {
  1877. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1878. test_array [0] = 0;
  1879. return test_array [0];
  1880. ;
  1881. return 0;
  1882. }
  1883. _ACEOF
  1884. if ac_fn_c_try_compile "$LINENO"; then :
  1885. case $ac_type in #(
  1886. uint$2_t) :
  1887. eval "$3=yes" ;; #(
  1888. *) :
  1889. eval "$3=\$ac_type" ;;
  1890. esac
  1891. fi
  1892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1893. if eval test \"x\$"$3"\" = x"no"; then :
  1894. else
  1895. break
  1896. fi
  1897. done
  1898. fi
  1899. eval ac_res=\$$3
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1901. $as_echo "$ac_res" >&6; }
  1902. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1903. } # ac_fn_c_find_uintX_t
  1904. # ac_fn_c_find_intX_t LINENO BITS VAR
  1905. # -----------------------------------
  1906. # Finds a signed integer type with width BITS, setting cache variable VAR
  1907. # accordingly.
  1908. ac_fn_c_find_intX_t ()
  1909. {
  1910. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1912. $as_echo_n "checking for int$2_t... " >&6; }
  1913. if eval \${$3+:} false; then :
  1914. $as_echo_n "(cached) " >&6
  1915. else
  1916. eval "$3=no"
  1917. # Order is important - never check a type that is potentially smaller
  1918. # than half of the expected target width.
  1919. for ac_type in int$2_t 'int' 'long int' \
  1920. 'long long int' 'short int' 'signed char'; do
  1921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1922. /* end confdefs.h. */
  1923. $ac_includes_default
  1924. enum { N = $2 / 2 - 1 };
  1925. int
  1926. main ()
  1927. {
  1928. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1929. test_array [0] = 0;
  1930. return test_array [0];
  1931. ;
  1932. return 0;
  1933. }
  1934. _ACEOF
  1935. if ac_fn_c_try_compile "$LINENO"; then :
  1936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1937. /* end confdefs.h. */
  1938. $ac_includes_default
  1939. enum { N = $2 / 2 - 1 };
  1940. int
  1941. main ()
  1942. {
  1943. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1944. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1945. test_array [0] = 0;
  1946. return test_array [0];
  1947. ;
  1948. return 0;
  1949. }
  1950. _ACEOF
  1951. if ac_fn_c_try_compile "$LINENO"; then :
  1952. else
  1953. case $ac_type in #(
  1954. int$2_t) :
  1955. eval "$3=yes" ;; #(
  1956. *) :
  1957. eval "$3=\$ac_type" ;;
  1958. esac
  1959. fi
  1960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1961. fi
  1962. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1963. if eval test \"x\$"$3"\" = x"no"; then :
  1964. else
  1965. break
  1966. fi
  1967. done
  1968. fi
  1969. eval ac_res=\$$3
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1971. $as_echo "$ac_res" >&6; }
  1972. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1973. } # ac_fn_c_find_intX_t
  1974. cat >config.log <<_ACEOF
  1975. This file contains any messages produced by compilers while
  1976. running configure, to aid debugging if configure makes a mistake.
  1977. It was created by file $as_me 5.24, which was
  1978. generated by GNU Autoconf 2.69. Invocation command line was
  1979. $ $0 $@
  1980. _ACEOF
  1981. exec 5>>config.log
  1982. {
  1983. cat <<_ASUNAME
  1984. ## --------- ##
  1985. ## Platform. ##
  1986. ## --------- ##
  1987. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1988. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1989. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1990. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1991. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1992. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1993. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1994. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1995. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1996. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1997. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1998. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1999. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2000. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2001. _ASUNAME
  2002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2003. for as_dir in $PATH
  2004. do
  2005. IFS=$as_save_IFS
  2006. test -z "$as_dir" && as_dir=.
  2007. $as_echo "PATH: $as_dir"
  2008. done
  2009. IFS=$as_save_IFS
  2010. } >&5
  2011. cat >&5 <<_ACEOF
  2012. ## ----------- ##
  2013. ## Core tests. ##
  2014. ## ----------- ##
  2015. _ACEOF
  2016. # Keep a trace of the command line.
  2017. # Strip out --no-create and --no-recursion so they do not pile up.
  2018. # Strip out --silent because we don't want to record it for future runs.
  2019. # Also quote any args containing shell meta-characters.
  2020. # Make two passes to allow for proper duplicate-argument suppression.
  2021. ac_configure_args=
  2022. ac_configure_args0=
  2023. ac_configure_args1=
  2024. ac_must_keep_next=false
  2025. for ac_pass in 1 2
  2026. do
  2027. for ac_arg
  2028. do
  2029. case $ac_arg in
  2030. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2031. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2032. | -silent | --silent | --silen | --sile | --sil)
  2033. continue ;;
  2034. *\'*)
  2035. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2036. esac
  2037. case $ac_pass in
  2038. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2039. 2)
  2040. as_fn_append ac_configure_args1 " '$ac_arg'"
  2041. if test $ac_must_keep_next = true; then
  2042. ac_must_keep_next=false # Got value, back to normal.
  2043. else
  2044. case $ac_arg in
  2045. *=* | --config-cache | -C | -disable-* | --disable-* \
  2046. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2047. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2048. | -with-* | --with-* | -without-* | --without-* | --x)
  2049. case "$ac_configure_args0 " in
  2050. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2051. esac
  2052. ;;
  2053. -* ) ac_must_keep_next=true ;;
  2054. esac
  2055. fi
  2056. as_fn_append ac_configure_args " '$ac_arg'"
  2057. ;;
  2058. esac
  2059. done
  2060. done
  2061. { ac_configure_args0=; unset ac_configure_args0;}
  2062. { ac_configure_args1=; unset ac_configure_args1;}
  2063. # When interrupted or exit'd, cleanup temporary files, and complete
  2064. # config.log. We remove comments because anyway the quotes in there
  2065. # would cause problems or look ugly.
  2066. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2067. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2068. trap 'exit_status=$?
  2069. # Save into config.log some information that might help in debugging.
  2070. {
  2071. echo
  2072. $as_echo "## ---------------- ##
  2073. ## Cache variables. ##
  2074. ## ---------------- ##"
  2075. echo
  2076. # The following way of writing the cache mishandles newlines in values,
  2077. (
  2078. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2079. eval ac_val=\$$ac_var
  2080. case $ac_val in #(
  2081. *${as_nl}*)
  2082. case $ac_var in #(
  2083. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2084. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2085. esac
  2086. case $ac_var in #(
  2087. _ | IFS | as_nl) ;; #(
  2088. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2089. *) { eval $ac_var=; unset $ac_var;} ;;
  2090. esac ;;
  2091. esac
  2092. done
  2093. (set) 2>&1 |
  2094. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2095. *${as_nl}ac_space=\ *)
  2096. sed -n \
  2097. "s/'\''/'\''\\\\'\'''\''/g;
  2098. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2099. ;; #(
  2100. *)
  2101. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2102. ;;
  2103. esac |
  2104. sort
  2105. )
  2106. echo
  2107. $as_echo "## ----------------- ##
  2108. ## Output variables. ##
  2109. ## ----------------- ##"
  2110. echo
  2111. for ac_var in $ac_subst_vars
  2112. do
  2113. eval ac_val=\$$ac_var
  2114. case $ac_val in
  2115. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2116. esac
  2117. $as_echo "$ac_var='\''$ac_val'\''"
  2118. done | sort
  2119. echo
  2120. if test -n "$ac_subst_files"; then
  2121. $as_echo "## ------------------- ##
  2122. ## File substitutions. ##
  2123. ## ------------------- ##"
  2124. echo
  2125. for ac_var in $ac_subst_files
  2126. do
  2127. eval ac_val=\$$ac_var
  2128. case $ac_val in
  2129. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2130. esac
  2131. $as_echo "$ac_var='\''$ac_val'\''"
  2132. done | sort
  2133. echo
  2134. fi
  2135. if test -s confdefs.h; then
  2136. $as_echo "## ----------- ##
  2137. ## confdefs.h. ##
  2138. ## ----------- ##"
  2139. echo
  2140. cat confdefs.h
  2141. echo
  2142. fi
  2143. test "$ac_signal" != 0 &&
  2144. $as_echo "$as_me: caught signal $ac_signal"
  2145. $as_echo "$as_me: exit $exit_status"
  2146. } >&5
  2147. rm -f core *.core core.conftest.* &&
  2148. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2149. exit $exit_status
  2150. ' 0
  2151. for ac_signal in 1 2 13 15; do
  2152. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2153. done
  2154. ac_signal=0
  2155. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2156. rm -f -r conftest* confdefs.h
  2157. $as_echo "/* confdefs.h */" > confdefs.h
  2158. # Predefined preprocessor variables.
  2159. cat >>confdefs.h <<_ACEOF
  2160. #define PACKAGE_NAME "$PACKAGE_NAME"
  2161. _ACEOF
  2162. cat >>confdefs.h <<_ACEOF
  2163. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2164. _ACEOF
  2165. cat >>confdefs.h <<_ACEOF
  2166. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2167. _ACEOF
  2168. cat >>confdefs.h <<_ACEOF
  2169. #define PACKAGE_STRING "$PACKAGE_STRING"
  2170. _ACEOF
  2171. cat >>confdefs.h <<_ACEOF
  2172. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2173. _ACEOF
  2174. cat >>confdefs.h <<_ACEOF
  2175. #define PACKAGE_URL "$PACKAGE_URL"
  2176. _ACEOF
  2177. # Let the site file select an alternate cache file if it wants to.
  2178. # Prefer an explicitly selected file to automatically selected ones.
  2179. ac_site_file1=NONE
  2180. ac_site_file2=NONE
  2181. if test -n "$CONFIG_SITE"; then
  2182. # We do not want a PATH search for config.site.
  2183. case $CONFIG_SITE in #((
  2184. -*) ac_site_file1=./$CONFIG_SITE;;
  2185. */*) ac_site_file1=$CONFIG_SITE;;
  2186. *) ac_site_file1=./$CONFIG_SITE;;
  2187. esac
  2188. elif test "x$prefix" != xNONE; then
  2189. ac_site_file1=$prefix/share/config.site
  2190. ac_site_file2=$prefix/etc/config.site
  2191. else
  2192. ac_site_file1=$ac_default_prefix/share/config.site
  2193. ac_site_file2=$ac_default_prefix/etc/config.site
  2194. fi
  2195. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2196. do
  2197. test "x$ac_site_file" = xNONE && continue
  2198. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2200. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2201. sed 's/^/| /' "$ac_site_file" >&5
  2202. . "$ac_site_file" \
  2203. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2204. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2205. as_fn_error $? "failed to load site script $ac_site_file
  2206. See \`config.log' for more details" "$LINENO" 5; }
  2207. fi
  2208. done
  2209. if test -r "$cache_file"; then
  2210. # Some versions of bash will fail to source /dev/null (special files
  2211. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2212. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2213. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2214. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2215. case $cache_file in
  2216. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2217. *) . "./$cache_file";;
  2218. esac
  2219. fi
  2220. else
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2222. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2223. >$cache_file
  2224. fi
  2225. as_fn_append ac_header_list " stdlib.h"
  2226. as_fn_append ac_header_list " unistd.h"
  2227. as_fn_append ac_header_list " sys/param.h"
  2228. # Check that the precious variables saved in the cache have kept the same
  2229. # value.
  2230. ac_cache_corrupted=false
  2231. for ac_var in $ac_precious_vars; do
  2232. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2233. eval ac_new_set=\$ac_env_${ac_var}_set
  2234. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2235. eval ac_new_val=\$ac_env_${ac_var}_value
  2236. case $ac_old_set,$ac_new_set in
  2237. set,)
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2239. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2240. ac_cache_corrupted=: ;;
  2241. ,set)
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2243. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2244. ac_cache_corrupted=: ;;
  2245. ,);;
  2246. *)
  2247. if test "x$ac_old_val" != "x$ac_new_val"; then
  2248. # differences in whitespace do not lead to failure.
  2249. ac_old_val_w=`echo x $ac_old_val`
  2250. ac_new_val_w=`echo x $ac_new_val`
  2251. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2253. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2254. ac_cache_corrupted=:
  2255. else
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2257. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2258. eval $ac_var=\$ac_old_val
  2259. fi
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2261. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2263. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2264. fi;;
  2265. esac
  2266. # Pass precious variables to config.status.
  2267. if test "$ac_new_set" = set; then
  2268. case $ac_new_val in
  2269. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2270. *) ac_arg=$ac_var=$ac_new_val ;;
  2271. esac
  2272. case " $ac_configure_args " in
  2273. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2274. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2275. esac
  2276. fi
  2277. done
  2278. if $ac_cache_corrupted; then
  2279. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2280. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2282. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2283. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2284. fi
  2285. ## -------------------- ##
  2286. ## Main body of script. ##
  2287. ## -------------------- ##
  2288. ac_ext=c
  2289. ac_cpp='$CPP $CPPFLAGS'
  2290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2293. am__api_version='1.15'
  2294. ac_aux_dir=
  2295. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2296. if test -f "$ac_dir/install-sh"; then
  2297. ac_aux_dir=$ac_dir
  2298. ac_install_sh="$ac_aux_dir/install-sh -c"
  2299. break
  2300. elif 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/shtool"; then
  2305. ac_aux_dir=$ac_dir
  2306. ac_install_sh="$ac_aux_dir/shtool install -c"
  2307. break
  2308. fi
  2309. done
  2310. if test -z "$ac_aux_dir"; then
  2311. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2312. fi
  2313. # These three variables are undocumented and unsupported,
  2314. # and are intended to be withdrawn in a future Autoconf release.
  2315. # They can cause serious problems if a builder's source tree is in a directory
  2316. # whose full name contains unusual characters.
  2317. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2318. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2319. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2320. # Find a good install program. We prefer a C program (faster),
  2321. # so one script is as good as another. But avoid the broken or
  2322. # incompatible versions:
  2323. # SysV /etc/install, /usr/sbin/install
  2324. # SunOS /usr/etc/install
  2325. # IRIX /sbin/install
  2326. # AIX /bin/install
  2327. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2328. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2329. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2330. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2331. # OS/2's system install, which has a completely different semantic
  2332. # ./install, which can be erroneously created by make from ./install.sh.
  2333. # Reject install programs that cannot install multiple files.
  2334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2335. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2336. if test -z "$INSTALL"; then
  2337. if ${ac_cv_path_install+:} false; then :
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341. for as_dir in $PATH
  2342. do
  2343. IFS=$as_save_IFS
  2344. test -z "$as_dir" && as_dir=.
  2345. # Account for people who put trailing slashes in PATH elements.
  2346. case $as_dir/ in #((
  2347. ./ | .// | /[cC]/* | \
  2348. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2349. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2350. /usr/ucb/* ) ;;
  2351. *)
  2352. # OSF1 and SCO ODT 3.0 have their own names for install.
  2353. # Don't use installbsd from OSF since it installs stuff as root
  2354. # by default.
  2355. for ac_prog in ginstall scoinst install; do
  2356. for ac_exec_ext in '' $ac_executable_extensions; do
  2357. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2358. if test $ac_prog = install &&
  2359. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2360. # AIX install. It has an incompatible calling convention.
  2361. :
  2362. elif test $ac_prog = install &&
  2363. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2364. # program-specific install script used by HP pwplus--don't use.
  2365. :
  2366. else
  2367. rm -rf conftest.one conftest.two conftest.dir
  2368. echo one > conftest.one
  2369. echo two > conftest.two
  2370. mkdir conftest.dir
  2371. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2372. test -s conftest.one && test -s conftest.two &&
  2373. test -s conftest.dir/conftest.one &&
  2374. test -s conftest.dir/conftest.two
  2375. then
  2376. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2377. break 3
  2378. fi
  2379. fi
  2380. fi
  2381. done
  2382. done
  2383. ;;
  2384. esac
  2385. done
  2386. IFS=$as_save_IFS
  2387. rm -rf conftest.one conftest.two conftest.dir
  2388. fi
  2389. if test "${ac_cv_path_install+set}" = set; then
  2390. INSTALL=$ac_cv_path_install
  2391. else
  2392. # As a last resort, use the slow shell script. Don't cache a
  2393. # value for INSTALL within a source directory, because that will
  2394. # break other packages using the cache if that directory is
  2395. # removed, or if the value is a relative name.
  2396. INSTALL=$ac_install_sh
  2397. fi
  2398. fi
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2400. $as_echo "$INSTALL" >&6; }
  2401. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2402. # It thinks the first close brace ends the variable substitution.
  2403. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2404. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2405. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2407. $as_echo_n "checking whether build environment is sane... " >&6; }
  2408. # Reject unsafe characters in $srcdir or the absolute working directory
  2409. # name. Accept space and tab only in the latter.
  2410. am_lf='
  2411. '
  2412. case `pwd` in
  2413. *[\\\"\#\$\&\'\`$am_lf]*)
  2414. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2415. esac
  2416. case $srcdir in
  2417. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2418. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2419. esac
  2420. # Do 'set' in a subshell so we don't clobber the current shell's
  2421. # arguments. Must try -L first in case configure is actually a
  2422. # symlink; some systems play weird games with the mod time of symlinks
  2423. # (eg FreeBSD returns the mod time of the symlink's containing
  2424. # directory).
  2425. if (
  2426. am_has_slept=no
  2427. for am_try in 1 2; do
  2428. echo "timestamp, slept: $am_has_slept" > conftest.file
  2429. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2430. if test "$*" = "X"; then
  2431. # -L didn't work.
  2432. set X `ls -t "$srcdir/configure" conftest.file`
  2433. fi
  2434. if test "$*" != "X $srcdir/configure conftest.file" \
  2435. && test "$*" != "X conftest.file $srcdir/configure"; then
  2436. # If neither matched, then we have a broken ls. This can happen
  2437. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2438. # broken ls alias from the environment. This has actually
  2439. # happened. Such a system could not be considered "sane".
  2440. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2441. alias in your environment" "$LINENO" 5
  2442. fi
  2443. if test "$2" = conftest.file || test $am_try -eq 2; then
  2444. break
  2445. fi
  2446. # Just in case.
  2447. sleep 1
  2448. am_has_slept=yes
  2449. done
  2450. test "$2" = conftest.file
  2451. )
  2452. then
  2453. # Ok.
  2454. :
  2455. else
  2456. as_fn_error $? "newly created file is older than distributed files!
  2457. Check your system clock" "$LINENO" 5
  2458. fi
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2460. $as_echo "yes" >&6; }
  2461. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2462. # generated files are strictly newer.
  2463. am_sleep_pid=
  2464. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2465. ( sleep 1 ) &
  2466. am_sleep_pid=$!
  2467. fi
  2468. rm -f conftest.file
  2469. test "$program_prefix" != NONE &&
  2470. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2471. # Use a double $ so make ignores it.
  2472. test "$program_suffix" != NONE &&
  2473. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2474. # Double any \ or $.
  2475. # By default was `s,x,x', remove it if useless.
  2476. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2477. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2478. # Expand $ac_aux_dir to an absolute path.
  2479. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2480. if test x"${MISSING+set}" != xset; then
  2481. case $am_aux_dir in
  2482. *\ * | *\ *)
  2483. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2484. *)
  2485. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2486. esac
  2487. fi
  2488. # Use eval to expand $SHELL
  2489. if eval "$MISSING --is-lightweight"; then
  2490. am_missing_run="$MISSING "
  2491. else
  2492. am_missing_run=
  2493. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2494. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2495. fi
  2496. if test x"${install_sh+set}" != xset; then
  2497. case $am_aux_dir in
  2498. *\ * | *\ *)
  2499. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2500. *)
  2501. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2502. esac
  2503. fi
  2504. # Installed binaries are usually stripped using 'strip' when the user
  2505. # run "make install-strip". However 'strip' might not be the right
  2506. # tool to use in cross-compilation environments, therefore Automake
  2507. # will honor the 'STRIP' environment variable to overrule this program.
  2508. if test "$cross_compiling" != no; then
  2509. if test -n "$ac_tool_prefix"; then
  2510. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2511. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2513. $as_echo_n "checking for $ac_word... " >&6; }
  2514. if ${ac_cv_prog_STRIP+:} false; then :
  2515. $as_echo_n "(cached) " >&6
  2516. else
  2517. if test -n "$STRIP"; then
  2518. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2519. else
  2520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2521. for as_dir in $PATH
  2522. do
  2523. IFS=$as_save_IFS
  2524. test -z "$as_dir" && as_dir=.
  2525. for ac_exec_ext in '' $ac_executable_extensions; do
  2526. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2527. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2529. break 2
  2530. fi
  2531. done
  2532. done
  2533. IFS=$as_save_IFS
  2534. fi
  2535. fi
  2536. STRIP=$ac_cv_prog_STRIP
  2537. if test -n "$STRIP"; then
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2539. $as_echo "$STRIP" >&6; }
  2540. else
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2542. $as_echo "no" >&6; }
  2543. fi
  2544. fi
  2545. if test -z "$ac_cv_prog_STRIP"; then
  2546. ac_ct_STRIP=$STRIP
  2547. # Extract the first word of "strip", so it can be a program name with args.
  2548. set dummy strip; ac_word=$2
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2550. $as_echo_n "checking for $ac_word... " >&6; }
  2551. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2552. $as_echo_n "(cached) " >&6
  2553. else
  2554. if test -n "$ac_ct_STRIP"; then
  2555. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2556. else
  2557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2558. for as_dir in $PATH
  2559. do
  2560. IFS=$as_save_IFS
  2561. test -z "$as_dir" && as_dir=.
  2562. for ac_exec_ext in '' $ac_executable_extensions; do
  2563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2564. ac_cv_prog_ac_ct_STRIP="strip"
  2565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2566. break 2
  2567. fi
  2568. done
  2569. done
  2570. IFS=$as_save_IFS
  2571. fi
  2572. fi
  2573. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2574. if test -n "$ac_ct_STRIP"; then
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2576. $as_echo "$ac_ct_STRIP" >&6; }
  2577. else
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2579. $as_echo "no" >&6; }
  2580. fi
  2581. if test "x$ac_ct_STRIP" = x; then
  2582. STRIP=":"
  2583. else
  2584. case $cross_compiling:$ac_tool_warned in
  2585. yes:)
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2587. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2588. ac_tool_warned=yes ;;
  2589. esac
  2590. STRIP=$ac_ct_STRIP
  2591. fi
  2592. else
  2593. STRIP="$ac_cv_prog_STRIP"
  2594. fi
  2595. fi
  2596. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2598. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2599. if test -z "$MKDIR_P"; then
  2600. if ${ac_cv_path_mkdir+:} false; then :
  2601. $as_echo_n "(cached) " >&6
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. for ac_prog in mkdir gmkdir; do
  2609. for ac_exec_ext in '' $ac_executable_extensions; do
  2610. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2611. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2612. 'mkdir (GNU coreutils) '* | \
  2613. 'mkdir (coreutils) '* | \
  2614. 'mkdir (fileutils) '4.1*)
  2615. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2616. break 3;;
  2617. esac
  2618. done
  2619. done
  2620. done
  2621. IFS=$as_save_IFS
  2622. fi
  2623. test -d ./--version && rmdir ./--version
  2624. if test "${ac_cv_path_mkdir+set}" = set; then
  2625. MKDIR_P="$ac_cv_path_mkdir -p"
  2626. else
  2627. # As a last resort, use the slow shell script. Don't cache a
  2628. # value for MKDIR_P within a source directory, because that will
  2629. # break other packages using the cache if that directory is
  2630. # removed, or if the value is a relative name.
  2631. MKDIR_P="$ac_install_sh -d"
  2632. fi
  2633. fi
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2635. $as_echo "$MKDIR_P" >&6; }
  2636. for ac_prog in gawk mawk nawk awk
  2637. do
  2638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2639. set dummy $ac_prog; ac_word=$2
  2640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2641. $as_echo_n "checking for $ac_word... " >&6; }
  2642. if ${ac_cv_prog_AWK+:} false; then :
  2643. $as_echo_n "(cached) " >&6
  2644. else
  2645. if test -n "$AWK"; then
  2646. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. ac_cv_prog_AWK="$ac_prog"
  2656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. fi
  2664. AWK=$ac_cv_prog_AWK
  2665. if test -n "$AWK"; then
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2667. $as_echo "$AWK" >&6; }
  2668. else
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2670. $as_echo "no" >&6; }
  2671. fi
  2672. test -n "$AWK" && break
  2673. done
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2675. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2676. set x ${MAKE-make}
  2677. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2678. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. cat >conftest.make <<\_ACEOF
  2682. SHELL = /bin/sh
  2683. all:
  2684. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2685. _ACEOF
  2686. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2687. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2688. *@@@%%%=?*=@@@%%%*)
  2689. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2690. *)
  2691. eval ac_cv_prog_make_${ac_make}_set=no;;
  2692. esac
  2693. rm -f conftest.make
  2694. fi
  2695. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2697. $as_echo "yes" >&6; }
  2698. SET_MAKE=
  2699. else
  2700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2701. $as_echo "no" >&6; }
  2702. SET_MAKE="MAKE=${MAKE-make}"
  2703. fi
  2704. rm -rf .tst 2>/dev/null
  2705. mkdir .tst 2>/dev/null
  2706. if test -d .tst; then
  2707. am__leading_dot=.
  2708. else
  2709. am__leading_dot=_
  2710. fi
  2711. rmdir .tst 2>/dev/null
  2712. # Check whether --enable-silent-rules was given.
  2713. if test "${enable_silent_rules+set}" = set; then :
  2714. enableval=$enable_silent_rules;
  2715. fi
  2716. case $enable_silent_rules in # (((
  2717. yes) AM_DEFAULT_VERBOSITY=0;;
  2718. no) AM_DEFAULT_VERBOSITY=1;;
  2719. *) AM_DEFAULT_VERBOSITY=1;;
  2720. esac
  2721. am_make=${MAKE-make}
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2723. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2724. if ${am_cv_make_support_nested_variables+:} false; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. if $as_echo 'TRUE=$(BAR$(V))
  2728. BAR0=false
  2729. BAR1=true
  2730. V=1
  2731. am__doit:
  2732. @$(TRUE)
  2733. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2734. am_cv_make_support_nested_variables=yes
  2735. else
  2736. am_cv_make_support_nested_variables=no
  2737. fi
  2738. fi
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2740. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2741. if test $am_cv_make_support_nested_variables = yes; then
  2742. AM_V='$(V)'
  2743. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2744. else
  2745. AM_V=$AM_DEFAULT_VERBOSITY
  2746. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2747. fi
  2748. AM_BACKSLASH='\'
  2749. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2750. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2751. # is not polluted with repeated "-I."
  2752. am__isrc=' -I$(srcdir)'
  2753. # test to see if srcdir already configured
  2754. if test -f $srcdir/config.status; then
  2755. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2756. fi
  2757. fi
  2758. # test whether we have cygpath
  2759. if test -z "$CYGPATH_W"; then
  2760. if (cygpath --version) >/dev/null 2>/dev/null; then
  2761. CYGPATH_W='cygpath -w'
  2762. else
  2763. CYGPATH_W=echo
  2764. fi
  2765. fi
  2766. # Define the identity of the package.
  2767. PACKAGE='file'
  2768. VERSION='5.24'
  2769. cat >>confdefs.h <<_ACEOF
  2770. #define PACKAGE "$PACKAGE"
  2771. _ACEOF
  2772. cat >>confdefs.h <<_ACEOF
  2773. #define VERSION "$VERSION"
  2774. _ACEOF
  2775. # Some tools Automake needs.
  2776. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2777. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2778. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2779. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2780. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2781. # For better backward compatibility. To be removed once Automake 1.9.x
  2782. # dies out for good. For more background, see:
  2783. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2784. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2785. mkdir_p='$(MKDIR_P)'
  2786. # We need awk for the "check" target (and possibly the TAP driver). The
  2787. # system "awk" is bad on some platforms.
  2788. # Always define AMTAR for backward compatibility. Yes, it's still used
  2789. # in the wild :-( We should find a proper way to deprecate it ...
  2790. AMTAR='$${TAR-tar}'
  2791. # We'll loop over all known methods to create a tar archive until one works.
  2792. _am_tools='gnutar pax cpio none'
  2793. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2794. # POSIX will say in a future version that running "rm -f" with no argument
  2795. # is OK; and we want to be able to make that assumption in our Makefile
  2796. # recipes. So use an aggressive probe to check that the usage we want is
  2797. # actually supported "in the wild" to an acceptable degree.
  2798. # See automake bug#10828.
  2799. # To make any issue more visible, cause the running configure to be aborted
  2800. # by default if the 'rm' program in use doesn't match our expectations; the
  2801. # user can still override this though.
  2802. if rm -f && rm -fr && rm -rf; then : OK; else
  2803. cat >&2 <<'END'
  2804. Oops!
  2805. Your 'rm' program seems unable to run without file operands specified
  2806. on the command line, even when the '-f' option is present. This is contrary
  2807. to the behaviour of most rm programs out there, and not conforming with
  2808. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2809. Please tell bug-automake@gnu.org about your system, including the value
  2810. of your $PATH and any error possibly output before this message. This
  2811. can help us improve future automake versions.
  2812. END
  2813. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2814. echo 'Configuration will proceed anyway, since you have set the' >&2
  2815. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2816. echo >&2
  2817. else
  2818. cat >&2 <<'END'
  2819. Aborting the configuration process, to ensure you take notice of the issue.
  2820. You can download and install GNU coreutils to get an 'rm' implementation
  2821. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2822. If you want to complete the configuration process using your problematic
  2823. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2824. to "yes", and re-run configure.
  2825. END
  2826. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2827. fi
  2828. fi
  2829. # Check whether --enable-silent-rules was given.
  2830. if test "${enable_silent_rules+set}" = set; then :
  2831. enableval=$enable_silent_rules;
  2832. fi
  2833. case $enable_silent_rules in # (((
  2834. yes) AM_DEFAULT_VERBOSITY=0;;
  2835. no) AM_DEFAULT_VERBOSITY=1;;
  2836. *) AM_DEFAULT_VERBOSITY=0;;
  2837. esac
  2838. am_make=${MAKE-make}
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2840. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2841. if ${am_cv_make_support_nested_variables+:} false; then :
  2842. $as_echo_n "(cached) " >&6
  2843. else
  2844. if $as_echo 'TRUE=$(BAR$(V))
  2845. BAR0=false
  2846. BAR1=true
  2847. V=1
  2848. am__doit:
  2849. @$(TRUE)
  2850. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2851. am_cv_make_support_nested_variables=yes
  2852. else
  2853. am_cv_make_support_nested_variables=no
  2854. fi
  2855. fi
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2857. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2858. if test $am_cv_make_support_nested_variables = yes; then
  2859. AM_V='$(V)'
  2860. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2861. else
  2862. AM_V=$AM_DEFAULT_VERBOSITY
  2863. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2864. fi
  2865. AM_BACKSLASH='\'
  2866. ac_config_headers="$ac_config_headers config.h"
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
  2868. $as_echo_n "checking for builtin ELF support... " >&6; }
  2869. # Check whether --enable-elf was given.
  2870. if test "${enable_elf+set}" = set; then :
  2871. enableval=$enable_elf; if test "${enableval}" = yes; then
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2873. $as_echo "yes" >&6; }
  2874. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2875. else
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2877. $as_echo "no" >&6; }
  2878. fi
  2879. else
  2880. # enable by default
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2882. $as_echo "yes" >&6; }
  2883. $as_echo "#define BUILTIN_ELF 1" >>confdefs.h
  2884. fi
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
  2886. $as_echo_n "checking for ELF core file support... " >&6; }
  2887. # Check whether --enable-elf-core was given.
  2888. if test "${enable_elf_core+set}" = set; then :
  2889. enableval=$enable_elf_core; if test "${enableval}" = yes; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2891. $as_echo "yes" >&6; }
  2892. $as_echo "#define ELFCORE 1" >>confdefs.h
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. fi
  2897. else
  2898. # enable by default
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2900. $as_echo "yes" >&6; }
  2901. $as_echo "#define ELFCORE 1" >>confdefs.h
  2902. fi
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
  2904. $as_echo_n "checking for file formats in man section 5... " >&6; }
  2905. # Check whether --enable-fsect-man5 was given.
  2906. if test "${enable_fsect_man5+set}" = set; then :
  2907. enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2909. $as_echo "yes" >&6; }
  2910. fsect=5
  2911. else
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2913. $as_echo "no" >&6; }
  2914. fsect=4
  2915. fi
  2916. else
  2917. # disable by default
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2919. $as_echo "no" >&6; }
  2920. fsect=4
  2921. fi
  2922. # Make sure we can run config.sub.
  2923. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2924. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2926. $as_echo_n "checking build system type... " >&6; }
  2927. if ${ac_cv_build+:} false; then :
  2928. $as_echo_n "(cached) " >&6
  2929. else
  2930. ac_build_alias=$build_alias
  2931. test "x$ac_build_alias" = x &&
  2932. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2933. test "x$ac_build_alias" = x &&
  2934. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2935. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2936. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2937. fi
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2939. $as_echo "$ac_cv_build" >&6; }
  2940. case $ac_cv_build in
  2941. *-*-*) ;;
  2942. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2943. esac
  2944. build=$ac_cv_build
  2945. ac_save_IFS=$IFS; IFS='-'
  2946. set x $ac_cv_build
  2947. shift
  2948. build_cpu=$1
  2949. build_vendor=$2
  2950. shift; shift
  2951. # Remember, the first character of IFS is used to create $*,
  2952. # except with old shells:
  2953. build_os=$*
  2954. IFS=$ac_save_IFS
  2955. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2957. $as_echo_n "checking host system type... " >&6; }
  2958. if ${ac_cv_host+:} false; then :
  2959. $as_echo_n "(cached) " >&6
  2960. else
  2961. if test "x$host_alias" = x; then
  2962. ac_cv_host=$ac_cv_build
  2963. else
  2964. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2965. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2966. fi
  2967. fi
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2969. $as_echo "$ac_cv_host" >&6; }
  2970. case $ac_cv_host in
  2971. *-*-*) ;;
  2972. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2973. esac
  2974. host=$ac_cv_host
  2975. ac_save_IFS=$IFS; IFS='-'
  2976. set x $ac_cv_host
  2977. shift
  2978. host_cpu=$1
  2979. host_vendor=$2
  2980. shift; shift
  2981. # Remember, the first character of IFS is used to create $*,
  2982. # except with old shells:
  2983. host_os=$*
  2984. IFS=$ac_save_IFS
  2985. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2986. case "$host_os" in
  2987. mingw32*)
  2988. MINGW=1
  2989. ;;
  2990. *)
  2991. MINGW=0
  2992. ;;
  2993. esac
  2994. if test "$MINGW" = 1; then
  2995. MINGW_TRUE=
  2996. MINGW_FALSE='#'
  2997. else
  2998. MINGW_TRUE='#'
  2999. MINGW_FALSE=
  3000. fi
  3001. pkgdatadir='$(datadir)/misc'
  3002. if test x$fsect = x5; then
  3003. FSECT5_TRUE=
  3004. FSECT5_FALSE='#'
  3005. else
  3006. FSECT5_TRUE='#'
  3007. FSECT5_FALSE=
  3008. fi
  3009. DEPDIR="${am__leading_dot}deps"
  3010. ac_config_commands="$ac_config_commands depfiles"
  3011. am_make=${MAKE-make}
  3012. cat > confinc << 'END'
  3013. am__doit:
  3014. @echo this is the am__doit target
  3015. .PHONY: am__doit
  3016. END
  3017. # If we don't find an include directive, just comment out the code.
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3019. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3020. am__include="#"
  3021. am__quote=
  3022. _am_result=none
  3023. # First try GNU make style include.
  3024. echo "include confinc" > confmf
  3025. # Ignore all kinds of additional output from 'make'.
  3026. case `$am_make -s -f confmf 2> /dev/null` in #(
  3027. *the\ am__doit\ target*)
  3028. am__include=include
  3029. am__quote=
  3030. _am_result=GNU
  3031. ;;
  3032. esac
  3033. # Now try BSD make style include.
  3034. if test "$am__include" = "#"; then
  3035. echo '.include "confinc"' > confmf
  3036. case `$am_make -s -f confmf 2> /dev/null` in #(
  3037. *the\ am__doit\ target*)
  3038. am__include=.include
  3039. am__quote="\""
  3040. _am_result=BSD
  3041. ;;
  3042. esac
  3043. fi
  3044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3045. $as_echo "$_am_result" >&6; }
  3046. rm -f confinc confmf
  3047. # Check whether --enable-dependency-tracking was given.
  3048. if test "${enable_dependency_tracking+set}" = set; then :
  3049. enableval=$enable_dependency_tracking;
  3050. fi
  3051. if test "x$enable_dependency_tracking" != xno; then
  3052. am_depcomp="$ac_aux_dir/depcomp"
  3053. AMDEPBACKSLASH='\'
  3054. am__nodep='_no'
  3055. fi
  3056. if test "x$enable_dependency_tracking" != xno; then
  3057. AMDEP_TRUE=
  3058. AMDEP_FALSE='#'
  3059. else
  3060. AMDEP_TRUE='#'
  3061. AMDEP_FALSE=
  3062. fi
  3063. ac_ext=c
  3064. ac_cpp='$CPP $CPPFLAGS'
  3065. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3066. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3067. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3068. if test -n "$ac_tool_prefix"; then
  3069. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3070. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3072. $as_echo_n "checking for $ac_word... " >&6; }
  3073. if ${ac_cv_prog_CC+:} false; then :
  3074. $as_echo_n "(cached) " >&6
  3075. else
  3076. if test -n "$CC"; then
  3077. ac_cv_prog_CC="$CC" # Let the user override the test.
  3078. else
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_exec_ext in '' $ac_executable_extensions; do
  3085. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3086. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3087. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3088. break 2
  3089. fi
  3090. done
  3091. done
  3092. IFS=$as_save_IFS
  3093. fi
  3094. fi
  3095. CC=$ac_cv_prog_CC
  3096. if test -n "$CC"; then
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3098. $as_echo "$CC" >&6; }
  3099. else
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3101. $as_echo "no" >&6; }
  3102. fi
  3103. fi
  3104. if test -z "$ac_cv_prog_CC"; then
  3105. ac_ct_CC=$CC
  3106. # Extract the first word of "gcc", so it can be a program name with args.
  3107. set dummy gcc; ac_word=$2
  3108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3109. $as_echo_n "checking for $ac_word... " >&6; }
  3110. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3111. $as_echo_n "(cached) " >&6
  3112. else
  3113. if test -n "$ac_ct_CC"; then
  3114. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3123. ac_cv_prog_ac_ct_CC="gcc"
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. IFS=$as_save_IFS
  3130. fi
  3131. fi
  3132. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3133. if test -n "$ac_ct_CC"; then
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3135. $as_echo "$ac_ct_CC" >&6; }
  3136. else
  3137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3138. $as_echo "no" >&6; }
  3139. fi
  3140. if test "x$ac_ct_CC" = x; then
  3141. CC=""
  3142. else
  3143. case $cross_compiling:$ac_tool_warned in
  3144. yes:)
  3145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3146. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3147. ac_tool_warned=yes ;;
  3148. esac
  3149. CC=$ac_ct_CC
  3150. fi
  3151. else
  3152. CC="$ac_cv_prog_CC"
  3153. fi
  3154. if test -z "$CC"; then
  3155. if test -n "$ac_tool_prefix"; then
  3156. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3157. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3159. $as_echo_n "checking for $ac_word... " >&6; }
  3160. if ${ac_cv_prog_CC+:} false; then :
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. if test -n "$CC"; then
  3164. ac_cv_prog_CC="$CC" # Let the user override the test.
  3165. else
  3166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3167. for as_dir in $PATH
  3168. do
  3169. IFS=$as_save_IFS
  3170. test -z "$as_dir" && as_dir=.
  3171. for ac_exec_ext in '' $ac_executable_extensions; do
  3172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3173. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3175. break 2
  3176. fi
  3177. done
  3178. done
  3179. IFS=$as_save_IFS
  3180. fi
  3181. fi
  3182. CC=$ac_cv_prog_CC
  3183. if test -n "$CC"; then
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3185. $as_echo "$CC" >&6; }
  3186. else
  3187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3188. $as_echo "no" >&6; }
  3189. fi
  3190. fi
  3191. fi
  3192. if test -z "$CC"; then
  3193. # Extract the first word of "cc", so it can be a program name with args.
  3194. set dummy cc; ac_word=$2
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3196. $as_echo_n "checking for $ac_word... " >&6; }
  3197. if ${ac_cv_prog_CC+:} false; then :
  3198. $as_echo_n "(cached) " >&6
  3199. else
  3200. if test -n "$CC"; then
  3201. ac_cv_prog_CC="$CC" # Let the user override the test.
  3202. else
  3203. ac_prog_rejected=no
  3204. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3205. for as_dir in $PATH
  3206. do
  3207. IFS=$as_save_IFS
  3208. test -z "$as_dir" && as_dir=.
  3209. for ac_exec_ext in '' $ac_executable_extensions; do
  3210. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3211. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3212. ac_prog_rejected=yes
  3213. continue
  3214. fi
  3215. ac_cv_prog_CC="cc"
  3216. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3217. break 2
  3218. fi
  3219. done
  3220. done
  3221. IFS=$as_save_IFS
  3222. if test $ac_prog_rejected = yes; then
  3223. # We found a bogon in the path, so make sure we never use it.
  3224. set dummy $ac_cv_prog_CC
  3225. shift
  3226. if test $# != 0; then
  3227. # We chose a different compiler from the bogus one.
  3228. # However, it has the same basename, so the bogon will be chosen
  3229. # first if we set CC to just the basename; use the full file name.
  3230. shift
  3231. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3232. fi
  3233. fi
  3234. fi
  3235. fi
  3236. CC=$ac_cv_prog_CC
  3237. if test -n "$CC"; then
  3238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3239. $as_echo "$CC" >&6; }
  3240. else
  3241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3242. $as_echo "no" >&6; }
  3243. fi
  3244. fi
  3245. if test -z "$CC"; then
  3246. if test -n "$ac_tool_prefix"; then
  3247. for ac_prog in cl.exe
  3248. do
  3249. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3250. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3252. $as_echo_n "checking for $ac_word... " >&6; }
  3253. if ${ac_cv_prog_CC+:} false; then :
  3254. $as_echo_n "(cached) " >&6
  3255. else
  3256. if test -n "$CC"; then
  3257. ac_cv_prog_CC="$CC" # Let the user override the test.
  3258. else
  3259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3260. for as_dir in $PATH
  3261. do
  3262. IFS=$as_save_IFS
  3263. test -z "$as_dir" && as_dir=.
  3264. for ac_exec_ext in '' $ac_executable_extensions; do
  3265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3266. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3268. break 2
  3269. fi
  3270. done
  3271. done
  3272. IFS=$as_save_IFS
  3273. fi
  3274. fi
  3275. CC=$ac_cv_prog_CC
  3276. if test -n "$CC"; then
  3277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3278. $as_echo "$CC" >&6; }
  3279. else
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3281. $as_echo "no" >&6; }
  3282. fi
  3283. test -n "$CC" && break
  3284. done
  3285. fi
  3286. if test -z "$CC"; then
  3287. ac_ct_CC=$CC
  3288. for ac_prog in cl.exe
  3289. do
  3290. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3291. set dummy $ac_prog; ac_word=$2
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3293. $as_echo_n "checking for $ac_word... " >&6; }
  3294. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. if test -n "$ac_ct_CC"; then
  3298. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3299. else
  3300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3301. for as_dir in $PATH
  3302. do
  3303. IFS=$as_save_IFS
  3304. test -z "$as_dir" && as_dir=.
  3305. for ac_exec_ext in '' $ac_executable_extensions; do
  3306. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3307. ac_cv_prog_ac_ct_CC="$ac_prog"
  3308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3309. break 2
  3310. fi
  3311. done
  3312. done
  3313. IFS=$as_save_IFS
  3314. fi
  3315. fi
  3316. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3317. if test -n "$ac_ct_CC"; then
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3319. $as_echo "$ac_ct_CC" >&6; }
  3320. else
  3321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3322. $as_echo "no" >&6; }
  3323. fi
  3324. test -n "$ac_ct_CC" && break
  3325. done
  3326. if test "x$ac_ct_CC" = x; then
  3327. CC=""
  3328. else
  3329. case $cross_compiling:$ac_tool_warned in
  3330. yes:)
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3333. ac_tool_warned=yes ;;
  3334. esac
  3335. CC=$ac_ct_CC
  3336. fi
  3337. fi
  3338. fi
  3339. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3340. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3341. as_fn_error $? "no acceptable C compiler found in \$PATH
  3342. See \`config.log' for more details" "$LINENO" 5; }
  3343. # Provide some information about the compiler.
  3344. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3345. set X $ac_compile
  3346. ac_compiler=$2
  3347. for ac_option in --version -v -V -qversion; do
  3348. { { ac_try="$ac_compiler $ac_option >&5"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3354. $as_echo "$ac_try_echo"; } >&5
  3355. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3356. ac_status=$?
  3357. if test -s conftest.err; then
  3358. sed '10a\
  3359. ... rest of stderr output deleted ...
  3360. 10q' conftest.err >conftest.er1
  3361. cat conftest.er1 >&5
  3362. fi
  3363. rm -f conftest.er1 conftest.err
  3364. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3365. test $ac_status = 0; }
  3366. done
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. ac_clean_files_save=$ac_clean_files
  3377. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3378. # Try to create an executable without -o first, disregard a.out.
  3379. # It will help us diagnose broken compilers, and finding out an intuition
  3380. # of exeext.
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3382. $as_echo_n "checking whether the C compiler works... " >&6; }
  3383. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3384. # The possible output files:
  3385. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3386. ac_rmfiles=
  3387. for ac_file in $ac_files
  3388. do
  3389. case $ac_file in
  3390. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3391. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3392. esac
  3393. done
  3394. rm -f $ac_rmfiles
  3395. if { { ac_try="$ac_link_default"
  3396. case "(($ac_try" in
  3397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3398. *) ac_try_echo=$ac_try;;
  3399. esac
  3400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3401. $as_echo "$ac_try_echo"; } >&5
  3402. (eval "$ac_link_default") 2>&5
  3403. ac_status=$?
  3404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3405. test $ac_status = 0; }; then :
  3406. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3407. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3408. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3409. # so that the user can short-circuit this test for compilers unknown to
  3410. # Autoconf.
  3411. for ac_file in $ac_files ''
  3412. do
  3413. test -f "$ac_file" || continue
  3414. case $ac_file in
  3415. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3416. ;;
  3417. [ab].out )
  3418. # We found the default executable, but exeext='' is most
  3419. # certainly right.
  3420. break;;
  3421. *.* )
  3422. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3423. then :; else
  3424. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3425. fi
  3426. # We set ac_cv_exeext here because the later test for it is not
  3427. # safe: cross compilers may not add the suffix if given an `-o'
  3428. # argument, so we may need to know it at that point already.
  3429. # Even if this section looks crufty: it has the advantage of
  3430. # actually working.
  3431. break;;
  3432. * )
  3433. break;;
  3434. esac
  3435. done
  3436. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3437. else
  3438. ac_file=''
  3439. fi
  3440. if test -z "$ac_file"; then :
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3442. $as_echo "no" >&6; }
  3443. $as_echo "$as_me: failed program was:" >&5
  3444. sed 's/^/| /' conftest.$ac_ext >&5
  3445. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3446. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3447. as_fn_error 77 "C compiler cannot create executables
  3448. See \`config.log' for more details" "$LINENO" 5; }
  3449. else
  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3451. $as_echo "yes" >&6; }
  3452. fi
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3454. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3456. $as_echo "$ac_file" >&6; }
  3457. ac_exeext=$ac_cv_exeext
  3458. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3459. ac_clean_files=$ac_clean_files_save
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3461. $as_echo_n "checking for suffix of executables... " >&6; }
  3462. if { { ac_try="$ac_link"
  3463. case "(($ac_try" in
  3464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3465. *) ac_try_echo=$ac_try;;
  3466. esac
  3467. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3468. $as_echo "$ac_try_echo"; } >&5
  3469. (eval "$ac_link") 2>&5
  3470. ac_status=$?
  3471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3472. test $ac_status = 0; }; then :
  3473. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3474. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3475. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3476. # `rm'.
  3477. for ac_file in conftest.exe conftest conftest.*; do
  3478. test -f "$ac_file" || continue
  3479. case $ac_file in
  3480. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3481. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3482. break;;
  3483. * ) break;;
  3484. esac
  3485. done
  3486. else
  3487. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3488. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3489. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3490. See \`config.log' for more details" "$LINENO" 5; }
  3491. fi
  3492. rm -f conftest conftest$ac_cv_exeext
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3494. $as_echo "$ac_cv_exeext" >&6; }
  3495. rm -f conftest.$ac_ext
  3496. EXEEXT=$ac_cv_exeext
  3497. ac_exeext=$EXEEXT
  3498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3499. /* end confdefs.h. */
  3500. #include <stdio.h>
  3501. int
  3502. main ()
  3503. {
  3504. FILE *f = fopen ("conftest.out", "w");
  3505. return ferror (f) || fclose (f) != 0;
  3506. ;
  3507. return 0;
  3508. }
  3509. _ACEOF
  3510. ac_clean_files="$ac_clean_files conftest.out"
  3511. # Check that the compiler produces executables we can run. If not, either
  3512. # the compiler is broken, or we cross compile.
  3513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3514. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3515. if test "$cross_compiling" != yes; then
  3516. { { ac_try="$ac_link"
  3517. case "(($ac_try" in
  3518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3519. *) ac_try_echo=$ac_try;;
  3520. esac
  3521. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3522. $as_echo "$ac_try_echo"; } >&5
  3523. (eval "$ac_link") 2>&5
  3524. ac_status=$?
  3525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3526. test $ac_status = 0; }
  3527. if { ac_try='./conftest$ac_cv_exeext'
  3528. { { case "(($ac_try" in
  3529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3530. *) ac_try_echo=$ac_try;;
  3531. esac
  3532. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3533. $as_echo "$ac_try_echo"; } >&5
  3534. (eval "$ac_try") 2>&5
  3535. ac_status=$?
  3536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3537. test $ac_status = 0; }; }; then
  3538. cross_compiling=no
  3539. else
  3540. if test "$cross_compiling" = maybe; then
  3541. cross_compiling=yes
  3542. else
  3543. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3545. as_fn_error $? "cannot run C compiled programs.
  3546. If you meant to cross compile, use \`--host'.
  3547. See \`config.log' for more details" "$LINENO" 5; }
  3548. fi
  3549. fi
  3550. fi
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3552. $as_echo "$cross_compiling" >&6; }
  3553. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3554. ac_clean_files=$ac_clean_files_save
  3555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3556. $as_echo_n "checking for suffix of object files... " >&6; }
  3557. if ${ac_cv_objext+:} false; then :
  3558. $as_echo_n "(cached) " >&6
  3559. else
  3560. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3561. /* end confdefs.h. */
  3562. int
  3563. main ()
  3564. {
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. rm -f conftest.o conftest.obj
  3570. if { { ac_try="$ac_compile"
  3571. case "(($ac_try" in
  3572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3573. *) ac_try_echo=$ac_try;;
  3574. esac
  3575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3576. $as_echo "$ac_try_echo"; } >&5
  3577. (eval "$ac_compile") 2>&5
  3578. ac_status=$?
  3579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3580. test $ac_status = 0; }; then :
  3581. for ac_file in conftest.o conftest.obj conftest.*; do
  3582. test -f "$ac_file" || continue;
  3583. case $ac_file in
  3584. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3585. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3586. break;;
  3587. esac
  3588. done
  3589. else
  3590. $as_echo "$as_me: failed program was:" >&5
  3591. sed 's/^/| /' conftest.$ac_ext >&5
  3592. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3593. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3594. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3595. See \`config.log' for more details" "$LINENO" 5; }
  3596. fi
  3597. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3598. fi
  3599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3600. $as_echo "$ac_cv_objext" >&6; }
  3601. OBJEXT=$ac_cv_objext
  3602. ac_objext=$OBJEXT
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3604. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3605. if ${ac_cv_c_compiler_gnu+:} false; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3609. /* end confdefs.h. */
  3610. int
  3611. main ()
  3612. {
  3613. #ifndef __GNUC__
  3614. choke me
  3615. #endif
  3616. ;
  3617. return 0;
  3618. }
  3619. _ACEOF
  3620. if ac_fn_c_try_compile "$LINENO"; then :
  3621. ac_compiler_gnu=yes
  3622. else
  3623. ac_compiler_gnu=no
  3624. fi
  3625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3626. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3629. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3630. if test $ac_compiler_gnu = yes; then
  3631. GCC=yes
  3632. else
  3633. GCC=
  3634. fi
  3635. ac_test_CFLAGS=${CFLAGS+set}
  3636. ac_save_CFLAGS=$CFLAGS
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3638. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3639. if ${ac_cv_prog_cc_g+:} false; then :
  3640. $as_echo_n "(cached) " >&6
  3641. else
  3642. ac_save_c_werror_flag=$ac_c_werror_flag
  3643. ac_c_werror_flag=yes
  3644. ac_cv_prog_cc_g=no
  3645. CFLAGS="-g"
  3646. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3647. /* end confdefs.h. */
  3648. int
  3649. main ()
  3650. {
  3651. ;
  3652. return 0;
  3653. }
  3654. _ACEOF
  3655. if ac_fn_c_try_compile "$LINENO"; then :
  3656. ac_cv_prog_cc_g=yes
  3657. else
  3658. CFLAGS=""
  3659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3660. /* end confdefs.h. */
  3661. int
  3662. main ()
  3663. {
  3664. ;
  3665. return 0;
  3666. }
  3667. _ACEOF
  3668. if ac_fn_c_try_compile "$LINENO"; then :
  3669. else
  3670. ac_c_werror_flag=$ac_save_c_werror_flag
  3671. CFLAGS="-g"
  3672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3673. /* end confdefs.h. */
  3674. int
  3675. main ()
  3676. {
  3677. ;
  3678. return 0;
  3679. }
  3680. _ACEOF
  3681. if ac_fn_c_try_compile "$LINENO"; then :
  3682. ac_cv_prog_cc_g=yes
  3683. fi
  3684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3685. fi
  3686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3687. fi
  3688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3689. ac_c_werror_flag=$ac_save_c_werror_flag
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3692. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3693. if test "$ac_test_CFLAGS" = set; then
  3694. CFLAGS=$ac_save_CFLAGS
  3695. elif test $ac_cv_prog_cc_g = yes; then
  3696. if test "$GCC" = yes; then
  3697. CFLAGS="-g -O2"
  3698. else
  3699. CFLAGS="-g"
  3700. fi
  3701. else
  3702. if test "$GCC" = yes; then
  3703. CFLAGS="-O2"
  3704. else
  3705. CFLAGS=
  3706. fi
  3707. fi
  3708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3709. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3710. if ${ac_cv_prog_cc_c89+:} false; then :
  3711. $as_echo_n "(cached) " >&6
  3712. else
  3713. ac_cv_prog_cc_c89=no
  3714. ac_save_CC=$CC
  3715. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3716. /* end confdefs.h. */
  3717. #include <stdarg.h>
  3718. #include <stdio.h>
  3719. struct stat;
  3720. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3721. struct buf { int x; };
  3722. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3723. static char *e (p, i)
  3724. char **p;
  3725. int i;
  3726. {
  3727. return p[i];
  3728. }
  3729. static char *f (char * (*g) (char **, int), char **p, ...)
  3730. {
  3731. char *s;
  3732. va_list v;
  3733. va_start (v,p);
  3734. s = g (p, va_arg (v,int));
  3735. va_end (v);
  3736. return s;
  3737. }
  3738. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3739. function prototypes and stuff, but not '\xHH' hex character constants.
  3740. These don't provoke an error unfortunately, instead are silently treated
  3741. as 'x'. The following induces an error, until -std is added to get
  3742. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3743. array size at least. It's necessary to write '\x00'==0 to get something
  3744. that's true only with -std. */
  3745. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3746. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3747. inside strings and character constants. */
  3748. #define FOO(x) 'x'
  3749. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3750. int test (int i, double x);
  3751. struct s1 {int (*f) (int a);};
  3752. struct s2 {int (*f) (double a);};
  3753. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3754. int argc;
  3755. char **argv;
  3756. int
  3757. main ()
  3758. {
  3759. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3760. ;
  3761. return 0;
  3762. }
  3763. _ACEOF
  3764. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3765. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3766. do
  3767. CC="$ac_save_CC $ac_arg"
  3768. if ac_fn_c_try_compile "$LINENO"; then :
  3769. ac_cv_prog_cc_c89=$ac_arg
  3770. fi
  3771. rm -f core conftest.err conftest.$ac_objext
  3772. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3773. done
  3774. rm -f conftest.$ac_ext
  3775. CC=$ac_save_CC
  3776. fi
  3777. # AC_CACHE_VAL
  3778. case "x$ac_cv_prog_cc_c89" in
  3779. x)
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3781. $as_echo "none needed" >&6; } ;;
  3782. xno)
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3784. $as_echo "unsupported" >&6; } ;;
  3785. *)
  3786. CC="$CC $ac_cv_prog_cc_c89"
  3787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3788. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3789. esac
  3790. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3791. fi
  3792. ac_ext=c
  3793. ac_cpp='$CPP $CPPFLAGS'
  3794. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3795. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3796. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3797. ac_ext=c
  3798. ac_cpp='$CPP $CPPFLAGS'
  3799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3803. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3804. if ${am_cv_prog_cc_c_o+:} false; then :
  3805. $as_echo_n "(cached) " >&6
  3806. else
  3807. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3808. /* end confdefs.h. */
  3809. int
  3810. main ()
  3811. {
  3812. ;
  3813. return 0;
  3814. }
  3815. _ACEOF
  3816. # Make sure it works both with $CC and with simple cc.
  3817. # Following AC_PROG_CC_C_O, we do the test twice because some
  3818. # compilers refuse to overwrite an existing .o file with -o,
  3819. # though they will create one.
  3820. am_cv_prog_cc_c_o=yes
  3821. for am_i in 1 2; do
  3822. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3823. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3824. ac_status=$?
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); } \
  3827. && test -f conftest2.$ac_objext; then
  3828. : OK
  3829. else
  3830. am_cv_prog_cc_c_o=no
  3831. break
  3832. fi
  3833. done
  3834. rm -f core conftest*
  3835. unset am_i
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3838. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3839. if test "$am_cv_prog_cc_c_o" != yes; then
  3840. # Losing compiler, so override with the script.
  3841. # FIXME: It is wrong to rewrite CC.
  3842. # But if we don't then we get into trouble of one sort or another.
  3843. # A longer-term fix would be to have automake use am__CC in this case,
  3844. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3845. CC="$am_aux_dir/compile $CC"
  3846. fi
  3847. ac_ext=c
  3848. ac_cpp='$CPP $CPPFLAGS'
  3849. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3850. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3851. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3852. depcc="$CC" am_compiler_list=
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3854. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3855. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3859. # We make a subdir and do the tests there. Otherwise we can end up
  3860. # making bogus files that we don't know about and never remove. For
  3861. # instance it was reported that on HP-UX the gcc test will end up
  3862. # making a dummy file named 'D' -- because '-MD' means "put the output
  3863. # in D".
  3864. rm -rf conftest.dir
  3865. mkdir conftest.dir
  3866. # Copy depcomp to subdir because otherwise we won't find it if we're
  3867. # using a relative directory.
  3868. cp "$am_depcomp" conftest.dir
  3869. cd conftest.dir
  3870. # We will build objects and dependencies in a subdirectory because
  3871. # it helps to detect inapplicable dependency modes. For instance
  3872. # both Tru64's cc and ICC support -MD to output dependencies as a
  3873. # side effect of compilation, but ICC will put the dependencies in
  3874. # the current directory while Tru64 will put them in the object
  3875. # directory.
  3876. mkdir sub
  3877. am_cv_CC_dependencies_compiler_type=none
  3878. if test "$am_compiler_list" = ""; then
  3879. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3880. fi
  3881. am__universal=false
  3882. case " $depcc " in #(
  3883. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3884. esac
  3885. for depmode in $am_compiler_list; do
  3886. # Setup a source with many dependencies, because some compilers
  3887. # like to wrap large dependency lists on column 80 (with \), and
  3888. # we should not choose a depcomp mode which is confused by this.
  3889. #
  3890. # We need to recreate these files for each test, as the compiler may
  3891. # overwrite some of them when testing with obscure command lines.
  3892. # This happens at least with the AIX C compiler.
  3893. : > sub/conftest.c
  3894. for i in 1 2 3 4 5 6; do
  3895. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3896. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3897. # Solaris 10 /bin/sh.
  3898. echo '/* dummy */' > sub/conftst$i.h
  3899. done
  3900. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3901. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3902. # mode. It turns out that the SunPro C++ compiler does not properly
  3903. # handle '-M -o', and we need to detect this. Also, some Intel
  3904. # versions had trouble with output in subdirs.
  3905. am__obj=sub/conftest.${OBJEXT-o}
  3906. am__minus_obj="-o $am__obj"
  3907. case $depmode in
  3908. gcc)
  3909. # This depmode causes a compiler race in universal mode.
  3910. test "$am__universal" = false || continue
  3911. ;;
  3912. nosideeffect)
  3913. # After this tag, mechanisms are not by side-effect, so they'll
  3914. # only be used when explicitly requested.
  3915. if test "x$enable_dependency_tracking" = xyes; then
  3916. continue
  3917. else
  3918. break
  3919. fi
  3920. ;;
  3921. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3922. # This compiler won't grok '-c -o', but also, the minuso test has
  3923. # not run yet. These depmodes are late enough in the game, and
  3924. # so weak that their functioning should not be impacted.
  3925. am__obj=conftest.${OBJEXT-o}
  3926. am__minus_obj=
  3927. ;;
  3928. none) break ;;
  3929. esac
  3930. if depmode=$depmode \
  3931. source=sub/conftest.c object=$am__obj \
  3932. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3933. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3934. >/dev/null 2>conftest.err &&
  3935. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3936. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3937. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3938. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3939. # icc doesn't choke on unknown options, it will just issue warnings
  3940. # or remarks (even with -Werror). So we grep stderr for any message
  3941. # that says an option was ignored or not supported.
  3942. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3943. # icc: Command line warning: ignoring option '-M'; no argument required
  3944. # The diagnosis changed in icc 8.0:
  3945. # icc: Command line remark: option '-MP' not supported
  3946. if (grep 'ignoring option' conftest.err ||
  3947. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3948. am_cv_CC_dependencies_compiler_type=$depmode
  3949. break
  3950. fi
  3951. fi
  3952. done
  3953. cd ..
  3954. rm -rf conftest.dir
  3955. else
  3956. am_cv_CC_dependencies_compiler_type=none
  3957. fi
  3958. fi
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3960. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3961. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3962. if
  3963. test "x$enable_dependency_tracking" != xno \
  3964. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3965. am__fastdepCC_TRUE=
  3966. am__fastdepCC_FALSE='#'
  3967. else
  3968. am__fastdepCC_TRUE='#'
  3969. am__fastdepCC_FALSE=
  3970. fi
  3971. case $ac_cv_prog_cc_stdc in #(
  3972. no) :
  3973. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3974. *) :
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3976. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3977. if ${ac_cv_prog_cc_c99+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. ac_cv_prog_cc_c99=no
  3981. ac_save_CC=$CC
  3982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3983. /* end confdefs.h. */
  3984. #include <stdarg.h>
  3985. #include <stdbool.h>
  3986. #include <stdlib.h>
  3987. #include <wchar.h>
  3988. #include <stdio.h>
  3989. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3990. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3991. #define showlist(...) puts (#__VA_ARGS__)
  3992. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3993. static void
  3994. test_varargs_macros (void)
  3995. {
  3996. int x = 1234;
  3997. int y = 5678;
  3998. debug ("Flag");
  3999. debug ("X = %d\n", x);
  4000. showlist (The first, second, and third items.);
  4001. report (x>y, "x is %d but y is %d", x, y);
  4002. }
  4003. // Check long long types.
  4004. #define BIG64 18446744073709551615ull
  4005. #define BIG32 4294967295ul
  4006. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4007. #if !BIG_OK
  4008. your preprocessor is broken;
  4009. #endif
  4010. #if BIG_OK
  4011. #else
  4012. your preprocessor is broken;
  4013. #endif
  4014. static long long int bignum = -9223372036854775807LL;
  4015. static unsigned long long int ubignum = BIG64;
  4016. struct incomplete_array
  4017. {
  4018. int datasize;
  4019. double data[];
  4020. };
  4021. struct named_init {
  4022. int number;
  4023. const wchar_t *name;
  4024. double average;
  4025. };
  4026. typedef const char *ccp;
  4027. static inline int
  4028. test_restrict (ccp restrict text)
  4029. {
  4030. // See if C++-style comments work.
  4031. // Iterate through items via the restricted pointer.
  4032. // Also check for declarations in for loops.
  4033. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4034. continue;
  4035. return 0;
  4036. }
  4037. // Check varargs and va_copy.
  4038. static void
  4039. test_varargs (const char *format, ...)
  4040. {
  4041. va_list args;
  4042. va_start (args, format);
  4043. va_list args_copy;
  4044. va_copy (args_copy, args);
  4045. const char *str;
  4046. int number;
  4047. float fnumber;
  4048. while (*format)
  4049. {
  4050. switch (*format++)
  4051. {
  4052. case 's': // string
  4053. str = va_arg (args_copy, const char *);
  4054. break;
  4055. case 'd': // int
  4056. number = va_arg (args_copy, int);
  4057. break;
  4058. case 'f': // float
  4059. fnumber = va_arg (args_copy, double);
  4060. break;
  4061. default:
  4062. break;
  4063. }
  4064. }
  4065. va_end (args_copy);
  4066. va_end (args);
  4067. }
  4068. int
  4069. main ()
  4070. {
  4071. // Check bool.
  4072. _Bool success = false;
  4073. // Check restrict.
  4074. if (test_restrict ("String literal") == 0)
  4075. success = true;
  4076. char *restrict newvar = "Another string";
  4077. // Check varargs.
  4078. test_varargs ("s, d' f .", "string", 65, 34.234);
  4079. test_varargs_macros ();
  4080. // Check flexible array members.
  4081. struct incomplete_array *ia =
  4082. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4083. ia->datasize = 10;
  4084. for (int i = 0; i < ia->datasize; ++i)
  4085. ia->data[i] = i * 1.234;
  4086. // Check named initializers.
  4087. struct named_init ni = {
  4088. .number = 34,
  4089. .name = L"Test wide string",
  4090. .average = 543.34343,
  4091. };
  4092. ni.number = 58;
  4093. int dynamic_array[ni.number];
  4094. dynamic_array[ni.number - 1] = 543;
  4095. // work around unused variable warnings
  4096. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4097. || dynamic_array[ni.number - 1] != 543);
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4103. do
  4104. CC="$ac_save_CC $ac_arg"
  4105. if ac_fn_c_try_compile "$LINENO"; then :
  4106. ac_cv_prog_cc_c99=$ac_arg
  4107. fi
  4108. rm -f core conftest.err conftest.$ac_objext
  4109. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4110. done
  4111. rm -f conftest.$ac_ext
  4112. CC=$ac_save_CC
  4113. fi
  4114. # AC_CACHE_VAL
  4115. case "x$ac_cv_prog_cc_c99" in
  4116. x)
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4118. $as_echo "none needed" >&6; } ;;
  4119. xno)
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4121. $as_echo "unsupported" >&6; } ;;
  4122. *)
  4123. CC="$CC $ac_cv_prog_cc_c99"
  4124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4125. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4126. esac
  4127. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4128. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4129. else
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4131. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4132. if ${ac_cv_prog_cc_c89+:} false; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. ac_cv_prog_cc_c89=no
  4136. ac_save_CC=$CC
  4137. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4138. /* end confdefs.h. */
  4139. #include <stdarg.h>
  4140. #include <stdio.h>
  4141. struct stat;
  4142. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4143. struct buf { int x; };
  4144. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4145. static char *e (p, i)
  4146. char **p;
  4147. int i;
  4148. {
  4149. return p[i];
  4150. }
  4151. static char *f (char * (*g) (char **, int), char **p, ...)
  4152. {
  4153. char *s;
  4154. va_list v;
  4155. va_start (v,p);
  4156. s = g (p, va_arg (v,int));
  4157. va_end (v);
  4158. return s;
  4159. }
  4160. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4161. function prototypes and stuff, but not '\xHH' hex character constants.
  4162. These don't provoke an error unfortunately, instead are silently treated
  4163. as 'x'. The following induces an error, until -std is added to get
  4164. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4165. array size at least. It's necessary to write '\x00'==0 to get something
  4166. that's true only with -std. */
  4167. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4168. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4169. inside strings and character constants. */
  4170. #define FOO(x) 'x'
  4171. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4172. int test (int i, double x);
  4173. struct s1 {int (*f) (int a);};
  4174. struct s2 {int (*f) (double a);};
  4175. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4176. int argc;
  4177. char **argv;
  4178. int
  4179. main ()
  4180. {
  4181. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4187. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4188. do
  4189. CC="$ac_save_CC $ac_arg"
  4190. if ac_fn_c_try_compile "$LINENO"; then :
  4191. ac_cv_prog_cc_c89=$ac_arg
  4192. fi
  4193. rm -f core conftest.err conftest.$ac_objext
  4194. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4195. done
  4196. rm -f conftest.$ac_ext
  4197. CC=$ac_save_CC
  4198. fi
  4199. # AC_CACHE_VAL
  4200. case "x$ac_cv_prog_cc_c89" in
  4201. x)
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4203. $as_echo "none needed" >&6; } ;;
  4204. xno)
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4206. $as_echo "unsupported" >&6; } ;;
  4207. *)
  4208. CC="$CC $ac_cv_prog_cc_c89"
  4209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4210. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4211. esac
  4212. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4213. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4214. else
  4215. ac_cv_prog_cc_stdc=no
  4216. fi
  4217. fi
  4218. ;;
  4219. esac
  4220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4221. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4222. if ${ac_cv_prog_cc_stdc+:} false; then :
  4223. $as_echo_n "(cached) " >&6
  4224. fi
  4225. case $ac_cv_prog_cc_stdc in #(
  4226. no) :
  4227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4228. $as_echo "unsupported" >&6; } ;; #(
  4229. '') :
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4231. $as_echo "none needed" >&6; } ;; #(
  4232. *) :
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4234. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4235. esac
  4236. ac_ext=c
  4237. ac_cpp='$CPP $CPPFLAGS'
  4238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4242. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4243. # On Suns, sometimes $CPP names a directory.
  4244. if test -n "$CPP" && test -d "$CPP"; then
  4245. CPP=
  4246. fi
  4247. if test -z "$CPP"; then
  4248. if ${ac_cv_prog_CPP+:} false; then :
  4249. $as_echo_n "(cached) " >&6
  4250. else
  4251. # Double quotes because CPP needs to be expanded
  4252. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4253. do
  4254. ac_preproc_ok=false
  4255. for ac_c_preproc_warn_flag in '' yes
  4256. do
  4257. # Use a header file that comes with gcc, so configuring glibc
  4258. # with a fresh cross-compiler works.
  4259. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4260. # <limits.h> exists even on freestanding compilers.
  4261. # On the NeXT, cc -E runs the code through the compiler's parser,
  4262. # not just through cpp. "Syntax error" is here to catch this case.
  4263. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4264. /* end confdefs.h. */
  4265. #ifdef __STDC__
  4266. # include <limits.h>
  4267. #else
  4268. # include <assert.h>
  4269. #endif
  4270. Syntax error
  4271. _ACEOF
  4272. if ac_fn_c_try_cpp "$LINENO"; then :
  4273. else
  4274. # Broken: fails on valid input.
  4275. continue
  4276. fi
  4277. rm -f conftest.err conftest.i conftest.$ac_ext
  4278. # OK, works on sane cases. Now check whether nonexistent headers
  4279. # can be detected and how.
  4280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4281. /* end confdefs.h. */
  4282. #include <ac_nonexistent.h>
  4283. _ACEOF
  4284. if ac_fn_c_try_cpp "$LINENO"; then :
  4285. # Broken: success on invalid input.
  4286. continue
  4287. else
  4288. # Passes both tests.
  4289. ac_preproc_ok=:
  4290. break
  4291. fi
  4292. rm -f conftest.err conftest.i conftest.$ac_ext
  4293. done
  4294. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4295. rm -f conftest.i conftest.err conftest.$ac_ext
  4296. if $ac_preproc_ok; then :
  4297. break
  4298. fi
  4299. done
  4300. ac_cv_prog_CPP=$CPP
  4301. fi
  4302. CPP=$ac_cv_prog_CPP
  4303. else
  4304. ac_cv_prog_CPP=$CPP
  4305. fi
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4307. $as_echo "$CPP" >&6; }
  4308. ac_preproc_ok=false
  4309. for ac_c_preproc_warn_flag in '' yes
  4310. do
  4311. # Use a header file that comes with gcc, so configuring glibc
  4312. # with a fresh cross-compiler works.
  4313. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4314. # <limits.h> exists even on freestanding compilers.
  4315. # On the NeXT, cc -E runs the code through the compiler's parser,
  4316. # not just through cpp. "Syntax error" is here to catch this case.
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. #ifdef __STDC__
  4320. # include <limits.h>
  4321. #else
  4322. # include <assert.h>
  4323. #endif
  4324. Syntax error
  4325. _ACEOF
  4326. if ac_fn_c_try_cpp "$LINENO"; then :
  4327. else
  4328. # Broken: fails on valid input.
  4329. continue
  4330. fi
  4331. rm -f conftest.err conftest.i conftest.$ac_ext
  4332. # OK, works on sane cases. Now check whether nonexistent headers
  4333. # can be detected and how.
  4334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4335. /* end confdefs.h. */
  4336. #include <ac_nonexistent.h>
  4337. _ACEOF
  4338. if ac_fn_c_try_cpp "$LINENO"; then :
  4339. # Broken: success on invalid input.
  4340. continue
  4341. else
  4342. # Passes both tests.
  4343. ac_preproc_ok=:
  4344. break
  4345. fi
  4346. rm -f conftest.err conftest.i conftest.$ac_ext
  4347. done
  4348. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4349. rm -f conftest.i conftest.err conftest.$ac_ext
  4350. if $ac_preproc_ok; then :
  4351. else
  4352. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4353. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4354. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4355. See \`config.log' for more details" "$LINENO" 5; }
  4356. fi
  4357. ac_ext=c
  4358. ac_cpp='$CPP $CPPFLAGS'
  4359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4363. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4364. if ${ac_cv_path_GREP+:} false; then :
  4365. $as_echo_n "(cached) " >&6
  4366. else
  4367. if test -z "$GREP"; then
  4368. ac_path_GREP_found=false
  4369. # Loop through the user's path and test for each of PROGNAME-LIST
  4370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4371. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4372. do
  4373. IFS=$as_save_IFS
  4374. test -z "$as_dir" && as_dir=.
  4375. for ac_prog in grep ggrep; do
  4376. for ac_exec_ext in '' $ac_executable_extensions; do
  4377. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4378. as_fn_executable_p "$ac_path_GREP" || continue
  4379. # Check for GNU ac_path_GREP and select it if it is found.
  4380. # Check for GNU $ac_path_GREP
  4381. case `"$ac_path_GREP" --version 2>&1` in
  4382. *GNU*)
  4383. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4384. *)
  4385. ac_count=0
  4386. $as_echo_n 0123456789 >"conftest.in"
  4387. while :
  4388. do
  4389. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4390. mv "conftest.tmp" "conftest.in"
  4391. cp "conftest.in" "conftest.nl"
  4392. $as_echo 'GREP' >> "conftest.nl"
  4393. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4394. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4395. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4396. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4397. # Best one so far, save it but keep looking for a better one
  4398. ac_cv_path_GREP="$ac_path_GREP"
  4399. ac_path_GREP_max=$ac_count
  4400. fi
  4401. # 10*(2^10) chars as input seems more than enough
  4402. test $ac_count -gt 10 && break
  4403. done
  4404. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4405. esac
  4406. $ac_path_GREP_found && break 3
  4407. done
  4408. done
  4409. done
  4410. IFS=$as_save_IFS
  4411. if test -z "$ac_cv_path_GREP"; then
  4412. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4413. fi
  4414. else
  4415. ac_cv_path_GREP=$GREP
  4416. fi
  4417. fi
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4419. $as_echo "$ac_cv_path_GREP" >&6; }
  4420. GREP="$ac_cv_path_GREP"
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4422. $as_echo_n "checking for egrep... " >&6; }
  4423. if ${ac_cv_path_EGREP+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4427. then ac_cv_path_EGREP="$GREP -E"
  4428. else
  4429. if test -z "$EGREP"; then
  4430. ac_path_EGREP_found=false
  4431. # Loop through the user's path and test for each of PROGNAME-LIST
  4432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4433. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4434. do
  4435. IFS=$as_save_IFS
  4436. test -z "$as_dir" && as_dir=.
  4437. for ac_prog in egrep; do
  4438. for ac_exec_ext in '' $ac_executable_extensions; do
  4439. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4440. as_fn_executable_p "$ac_path_EGREP" || continue
  4441. # Check for GNU ac_path_EGREP and select it if it is found.
  4442. # Check for GNU $ac_path_EGREP
  4443. case `"$ac_path_EGREP" --version 2>&1` in
  4444. *GNU*)
  4445. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4446. *)
  4447. ac_count=0
  4448. $as_echo_n 0123456789 >"conftest.in"
  4449. while :
  4450. do
  4451. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4452. mv "conftest.tmp" "conftest.in"
  4453. cp "conftest.in" "conftest.nl"
  4454. $as_echo 'EGREP' >> "conftest.nl"
  4455. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4456. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4457. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4458. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4459. # Best one so far, save it but keep looking for a better one
  4460. ac_cv_path_EGREP="$ac_path_EGREP"
  4461. ac_path_EGREP_max=$ac_count
  4462. fi
  4463. # 10*(2^10) chars as input seems more than enough
  4464. test $ac_count -gt 10 && break
  4465. done
  4466. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4467. esac
  4468. $ac_path_EGREP_found && break 3
  4469. done
  4470. done
  4471. done
  4472. IFS=$as_save_IFS
  4473. if test -z "$ac_cv_path_EGREP"; then
  4474. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4475. fi
  4476. else
  4477. ac_cv_path_EGREP=$EGREP
  4478. fi
  4479. fi
  4480. fi
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4482. $as_echo "$ac_cv_path_EGREP" >&6; }
  4483. EGREP="$ac_cv_path_EGREP"
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4485. $as_echo_n "checking for ANSI C header files... " >&6; }
  4486. if ${ac_cv_header_stdc+:} false; then :
  4487. $as_echo_n "(cached) " >&6
  4488. else
  4489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4490. /* end confdefs.h. */
  4491. #include <stdlib.h>
  4492. #include <stdarg.h>
  4493. #include <string.h>
  4494. #include <float.h>
  4495. int
  4496. main ()
  4497. {
  4498. ;
  4499. return 0;
  4500. }
  4501. _ACEOF
  4502. if ac_fn_c_try_compile "$LINENO"; then :
  4503. ac_cv_header_stdc=yes
  4504. else
  4505. ac_cv_header_stdc=no
  4506. fi
  4507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4508. if test $ac_cv_header_stdc = yes; then
  4509. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4511. /* end confdefs.h. */
  4512. #include <string.h>
  4513. _ACEOF
  4514. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4515. $EGREP "memchr" >/dev/null 2>&1; then :
  4516. else
  4517. ac_cv_header_stdc=no
  4518. fi
  4519. rm -f conftest*
  4520. fi
  4521. if test $ac_cv_header_stdc = yes; then
  4522. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4524. /* end confdefs.h. */
  4525. #include <stdlib.h>
  4526. _ACEOF
  4527. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4528. $EGREP "free" >/dev/null 2>&1; then :
  4529. else
  4530. ac_cv_header_stdc=no
  4531. fi
  4532. rm -f conftest*
  4533. fi
  4534. if test $ac_cv_header_stdc = yes; then
  4535. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4536. if test "$cross_compiling" = yes; then :
  4537. :
  4538. else
  4539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4540. /* end confdefs.h. */
  4541. #include <ctype.h>
  4542. #include <stdlib.h>
  4543. #if ((' ' & 0x0FF) == 0x020)
  4544. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4545. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4546. #else
  4547. # define ISLOWER(c) \
  4548. (('a' <= (c) && (c) <= 'i') \
  4549. || ('j' <= (c) && (c) <= 'r') \
  4550. || ('s' <= (c) && (c) <= 'z'))
  4551. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4552. #endif
  4553. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4554. int
  4555. main ()
  4556. {
  4557. int i;
  4558. for (i = 0; i < 256; i++)
  4559. if (XOR (islower (i), ISLOWER (i))
  4560. || toupper (i) != TOUPPER (i))
  4561. return 2;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. if ac_fn_c_try_run "$LINENO"; then :
  4566. else
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4570. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4571. fi
  4572. fi
  4573. fi
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4575. $as_echo "$ac_cv_header_stdc" >&6; }
  4576. if test $ac_cv_header_stdc = yes; then
  4577. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4578. fi
  4579. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4580. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4581. inttypes.h stdint.h unistd.h
  4582. do :
  4583. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4584. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4585. "
  4586. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4587. cat >>confdefs.h <<_ACEOF
  4588. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4589. _ACEOF
  4590. fi
  4591. done
  4592. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4593. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4594. MINIX=yes
  4595. else
  4596. MINIX=
  4597. fi
  4598. if test "$MINIX" = yes; then
  4599. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4600. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4601. $as_echo "#define _MINIX 1" >>confdefs.h
  4602. fi
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4604. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4605. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4609. /* end confdefs.h. */
  4610. # define __EXTENSIONS__ 1
  4611. $ac_includes_default
  4612. int
  4613. main ()
  4614. {
  4615. ;
  4616. return 0;
  4617. }
  4618. _ACEOF
  4619. if ac_fn_c_try_compile "$LINENO"; then :
  4620. ac_cv_safe_to_define___extensions__=yes
  4621. else
  4622. ac_cv_safe_to_define___extensions__=no
  4623. fi
  4624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4625. fi
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4627. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4628. test $ac_cv_safe_to_define___extensions__ = yes &&
  4629. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4630. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4631. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4632. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4633. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4635. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4636. if ${ac_cv_c_bigendian+:} false; then :
  4637. $as_echo_n "(cached) " >&6
  4638. else
  4639. ac_cv_c_bigendian=unknown
  4640. # See if we're dealing with a universal compiler.
  4641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4642. /* end confdefs.h. */
  4643. #ifndef __APPLE_CC__
  4644. not a universal capable compiler
  4645. #endif
  4646. typedef int dummy;
  4647. _ACEOF
  4648. if ac_fn_c_try_compile "$LINENO"; then :
  4649. # Check for potential -arch flags. It is not universal unless
  4650. # there are at least two -arch flags with different values.
  4651. ac_arch=
  4652. ac_prev=
  4653. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4654. if test -n "$ac_prev"; then
  4655. case $ac_word in
  4656. i?86 | x86_64 | ppc | ppc64)
  4657. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4658. ac_arch=$ac_word
  4659. else
  4660. ac_cv_c_bigendian=universal
  4661. break
  4662. fi
  4663. ;;
  4664. esac
  4665. ac_prev=
  4666. elif test "x$ac_word" = "x-arch"; then
  4667. ac_prev=arch
  4668. fi
  4669. done
  4670. fi
  4671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4672. if test $ac_cv_c_bigendian = unknown; then
  4673. # See if sys/param.h defines the BYTE_ORDER macro.
  4674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4675. /* end confdefs.h. */
  4676. #include <sys/types.h>
  4677. #include <sys/param.h>
  4678. int
  4679. main ()
  4680. {
  4681. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4682. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4683. && LITTLE_ENDIAN)
  4684. bogus endian macros
  4685. #endif
  4686. ;
  4687. return 0;
  4688. }
  4689. _ACEOF
  4690. if ac_fn_c_try_compile "$LINENO"; then :
  4691. # It does; now see whether it defined to BIG_ENDIAN or not.
  4692. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4693. /* end confdefs.h. */
  4694. #include <sys/types.h>
  4695. #include <sys/param.h>
  4696. int
  4697. main ()
  4698. {
  4699. #if BYTE_ORDER != BIG_ENDIAN
  4700. not big endian
  4701. #endif
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. if ac_fn_c_try_compile "$LINENO"; then :
  4707. ac_cv_c_bigendian=yes
  4708. else
  4709. ac_cv_c_bigendian=no
  4710. fi
  4711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4712. fi
  4713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4714. fi
  4715. if test $ac_cv_c_bigendian = unknown; then
  4716. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4718. /* end confdefs.h. */
  4719. #include <limits.h>
  4720. int
  4721. main ()
  4722. {
  4723. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4724. bogus endian macros
  4725. #endif
  4726. ;
  4727. return 0;
  4728. }
  4729. _ACEOF
  4730. if ac_fn_c_try_compile "$LINENO"; then :
  4731. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end confdefs.h. */
  4734. #include <limits.h>
  4735. int
  4736. main ()
  4737. {
  4738. #ifndef _BIG_ENDIAN
  4739. not big endian
  4740. #endif
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. if ac_fn_c_try_compile "$LINENO"; then :
  4746. ac_cv_c_bigendian=yes
  4747. else
  4748. ac_cv_c_bigendian=no
  4749. fi
  4750. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4753. fi
  4754. if test $ac_cv_c_bigendian = unknown; then
  4755. # Compile a test program.
  4756. if test "$cross_compiling" = yes; then :
  4757. # Try to guess by grepping values from an object file.
  4758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4759. /* end confdefs.h. */
  4760. short int ascii_mm[] =
  4761. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4762. short int ascii_ii[] =
  4763. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4764. int use_ascii (int i) {
  4765. return ascii_mm[i] + ascii_ii[i];
  4766. }
  4767. short int ebcdic_ii[] =
  4768. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4769. short int ebcdic_mm[] =
  4770. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4771. int use_ebcdic (int i) {
  4772. return ebcdic_mm[i] + ebcdic_ii[i];
  4773. }
  4774. extern int foo;
  4775. int
  4776. main ()
  4777. {
  4778. return use_ascii (foo) == use_ebcdic (foo);
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. if ac_fn_c_try_compile "$LINENO"; then :
  4784. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4785. ac_cv_c_bigendian=yes
  4786. fi
  4787. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4788. if test "$ac_cv_c_bigendian" = unknown; then
  4789. ac_cv_c_bigendian=no
  4790. else
  4791. # finding both strings is unlikely to happen, but who knows?
  4792. ac_cv_c_bigendian=unknown
  4793. fi
  4794. fi
  4795. fi
  4796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4797. else
  4798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4799. /* end confdefs.h. */
  4800. $ac_includes_default
  4801. int
  4802. main ()
  4803. {
  4804. /* Are we little or big endian? From Harbison&Steele. */
  4805. union
  4806. {
  4807. long int l;
  4808. char c[sizeof (long int)];
  4809. } u;
  4810. u.l = 1;
  4811. return u.c[sizeof (long int) - 1] == 1;
  4812. ;
  4813. return 0;
  4814. }
  4815. _ACEOF
  4816. if ac_fn_c_try_run "$LINENO"; then :
  4817. ac_cv_c_bigendian=no
  4818. else
  4819. ac_cv_c_bigendian=yes
  4820. fi
  4821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4822. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4823. fi
  4824. fi
  4825. fi
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4827. $as_echo "$ac_cv_c_bigendian" >&6; }
  4828. case $ac_cv_c_bigendian in #(
  4829. yes)
  4830. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4831. ;; #(
  4832. no)
  4833. ;; #(
  4834. universal)
  4835. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4836. ;; #(
  4837. *)
  4838. as_fn_error $? "unknown endianness
  4839. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4840. esac
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4842. $as_echo_n "checking whether ln -s works... " >&6; }
  4843. LN_S=$as_ln_s
  4844. if test "$LN_S" = "ln -s"; then
  4845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4846. $as_echo "yes" >&6; }
  4847. else
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4849. $as_echo "no, using $LN_S" >&6; }
  4850. fi
  4851. case `pwd` in
  4852. *\ * | *\ *)
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4854. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4855. esac
  4856. macro_version='2.4.2'
  4857. macro_revision='1.3337'
  4858. ltmain="$ac_aux_dir/ltmain.sh"
  4859. # Backslashify metacharacters that are still active within
  4860. # double-quoted strings.
  4861. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4862. # Same as above, but do not quote variable references.
  4863. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4864. # Sed substitution to delay expansion of an escaped shell variable in a
  4865. # double_quote_subst'ed string.
  4866. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4867. # Sed substitution to delay expansion of an escaped single quote.
  4868. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4869. # Sed substitution to avoid accidental globbing in evaled expressions
  4870. no_glob_subst='s/\*/\\\*/g'
  4871. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4872. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4873. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4875. $as_echo_n "checking how to print strings... " >&6; }
  4876. # Test print first, because it will be a builtin if present.
  4877. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4878. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4879. ECHO='print -r --'
  4880. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4881. ECHO='printf %s\n'
  4882. else
  4883. # Use this function as a fallback that always works.
  4884. func_fallback_echo ()
  4885. {
  4886. eval 'cat <<_LTECHO_EOF
  4887. $1
  4888. _LTECHO_EOF'
  4889. }
  4890. ECHO='func_fallback_echo'
  4891. fi
  4892. # func_echo_all arg...
  4893. # Invoke $ECHO with all args, space-separated.
  4894. func_echo_all ()
  4895. {
  4896. $ECHO ""
  4897. }
  4898. case "$ECHO" in
  4899. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4900. $as_echo "printf" >&6; } ;;
  4901. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4902. $as_echo "print -r" >&6; } ;;
  4903. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4904. $as_echo "cat" >&6; } ;;
  4905. esac
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4907. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4908. if ${ac_cv_path_SED+:} false; then :
  4909. $as_echo_n "(cached) " >&6
  4910. else
  4911. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4912. for ac_i in 1 2 3 4 5 6 7; do
  4913. ac_script="$ac_script$as_nl$ac_script"
  4914. done
  4915. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4916. { ac_script=; unset ac_script;}
  4917. if test -z "$SED"; then
  4918. ac_path_SED_found=false
  4919. # Loop through the user's path and test for each of PROGNAME-LIST
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_prog in sed gsed; do
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4928. as_fn_executable_p "$ac_path_SED" || continue
  4929. # Check for GNU ac_path_SED and select it if it is found.
  4930. # Check for GNU $ac_path_SED
  4931. case `"$ac_path_SED" --version 2>&1` in
  4932. *GNU*)
  4933. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4934. *)
  4935. ac_count=0
  4936. $as_echo_n 0123456789 >"conftest.in"
  4937. while :
  4938. do
  4939. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4940. mv "conftest.tmp" "conftest.in"
  4941. cp "conftest.in" "conftest.nl"
  4942. $as_echo '' >> "conftest.nl"
  4943. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4944. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4945. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4946. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4947. # Best one so far, save it but keep looking for a better one
  4948. ac_cv_path_SED="$ac_path_SED"
  4949. ac_path_SED_max=$ac_count
  4950. fi
  4951. # 10*(2^10) chars as input seems more than enough
  4952. test $ac_count -gt 10 && break
  4953. done
  4954. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4955. esac
  4956. $ac_path_SED_found && break 3
  4957. done
  4958. done
  4959. done
  4960. IFS=$as_save_IFS
  4961. if test -z "$ac_cv_path_SED"; then
  4962. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4963. fi
  4964. else
  4965. ac_cv_path_SED=$SED
  4966. fi
  4967. fi
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4969. $as_echo "$ac_cv_path_SED" >&6; }
  4970. SED="$ac_cv_path_SED"
  4971. rm -f conftest.sed
  4972. test -z "$SED" && SED=sed
  4973. Xsed="$SED -e 1s/^X//"
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4975. $as_echo_n "checking for fgrep... " >&6; }
  4976. if ${ac_cv_path_FGREP+:} false; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4980. then ac_cv_path_FGREP="$GREP -F"
  4981. else
  4982. if test -z "$FGREP"; then
  4983. ac_path_FGREP_found=false
  4984. # Loop through the user's path and test for each of PROGNAME-LIST
  4985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4986. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4987. do
  4988. IFS=$as_save_IFS
  4989. test -z "$as_dir" && as_dir=.
  4990. for ac_prog in fgrep; do
  4991. for ac_exec_ext in '' $ac_executable_extensions; do
  4992. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4993. as_fn_executable_p "$ac_path_FGREP" || continue
  4994. # Check for GNU ac_path_FGREP and select it if it is found.
  4995. # Check for GNU $ac_path_FGREP
  4996. case `"$ac_path_FGREP" --version 2>&1` in
  4997. *GNU*)
  4998. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4999. *)
  5000. ac_count=0
  5001. $as_echo_n 0123456789 >"conftest.in"
  5002. while :
  5003. do
  5004. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5005. mv "conftest.tmp" "conftest.in"
  5006. cp "conftest.in" "conftest.nl"
  5007. $as_echo 'FGREP' >> "conftest.nl"
  5008. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5009. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5010. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5011. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5012. # Best one so far, save it but keep looking for a better one
  5013. ac_cv_path_FGREP="$ac_path_FGREP"
  5014. ac_path_FGREP_max=$ac_count
  5015. fi
  5016. # 10*(2^10) chars as input seems more than enough
  5017. test $ac_count -gt 10 && break
  5018. done
  5019. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5020. esac
  5021. $ac_path_FGREP_found && break 3
  5022. done
  5023. done
  5024. done
  5025. IFS=$as_save_IFS
  5026. if test -z "$ac_cv_path_FGREP"; then
  5027. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5028. fi
  5029. else
  5030. ac_cv_path_FGREP=$FGREP
  5031. fi
  5032. fi
  5033. fi
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5035. $as_echo "$ac_cv_path_FGREP" >&6; }
  5036. FGREP="$ac_cv_path_FGREP"
  5037. test -z "$GREP" && GREP=grep
  5038. # Check whether --with-gnu-ld was given.
  5039. if test "${with_gnu_ld+set}" = set; then :
  5040. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5041. else
  5042. with_gnu_ld=no
  5043. fi
  5044. ac_prog=ld
  5045. if test "$GCC" = yes; then
  5046. # Check if gcc -print-prog-name=ld gives a path.
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5048. $as_echo_n "checking for ld used by $CC... " >&6; }
  5049. case $host in
  5050. *-*-mingw*)
  5051. # gcc leaves a trailing carriage return which upsets mingw
  5052. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5053. *)
  5054. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5055. esac
  5056. case $ac_prog in
  5057. # Accept absolute paths.
  5058. [\\/]* | ?:[\\/]*)
  5059. re_direlt='/[^/][^/]*/\.\./'
  5060. # Canonicalize the pathname of ld
  5061. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5062. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5063. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5064. done
  5065. test -z "$LD" && LD="$ac_prog"
  5066. ;;
  5067. "")
  5068. # If it fails, then pretend we aren't using GCC.
  5069. ac_prog=ld
  5070. ;;
  5071. *)
  5072. # If it is relative, then search for the first ld in PATH.
  5073. with_gnu_ld=unknown
  5074. ;;
  5075. esac
  5076. elif test "$with_gnu_ld" = yes; then
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5078. $as_echo_n "checking for GNU ld... " >&6; }
  5079. else
  5080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5081. $as_echo_n "checking for non-GNU ld... " >&6; }
  5082. fi
  5083. if ${lt_cv_path_LD+:} false; then :
  5084. $as_echo_n "(cached) " >&6
  5085. else
  5086. if test -z "$LD"; then
  5087. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5088. for ac_dir in $PATH; do
  5089. IFS="$lt_save_ifs"
  5090. test -z "$ac_dir" && ac_dir=.
  5091. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5092. lt_cv_path_LD="$ac_dir/$ac_prog"
  5093. # Check to see if the program is GNU ld. I'd rather use --version,
  5094. # but apparently some variants of GNU ld only accept -v.
  5095. # Break only if it was the GNU/non-GNU ld that we prefer.
  5096. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5097. *GNU* | *'with BFD'*)
  5098. test "$with_gnu_ld" != no && break
  5099. ;;
  5100. *)
  5101. test "$with_gnu_ld" != yes && break
  5102. ;;
  5103. esac
  5104. fi
  5105. done
  5106. IFS="$lt_save_ifs"
  5107. else
  5108. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5109. fi
  5110. fi
  5111. LD="$lt_cv_path_LD"
  5112. if test -n "$LD"; then
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5114. $as_echo "$LD" >&6; }
  5115. else
  5116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5117. $as_echo "no" >&6; }
  5118. fi
  5119. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5121. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5122. if ${lt_cv_prog_gnu_ld+:} false; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5126. case `$LD -v 2>&1 </dev/null` in
  5127. *GNU* | *'with BFD'*)
  5128. lt_cv_prog_gnu_ld=yes
  5129. ;;
  5130. *)
  5131. lt_cv_prog_gnu_ld=no
  5132. ;;
  5133. esac
  5134. fi
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5136. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5137. with_gnu_ld=$lt_cv_prog_gnu_ld
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5139. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5140. if ${lt_cv_path_NM+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. if test -n "$NM"; then
  5144. # Let the user override the test.
  5145. lt_cv_path_NM="$NM"
  5146. else
  5147. lt_nm_to_check="${ac_tool_prefix}nm"
  5148. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5149. lt_nm_to_check="$lt_nm_to_check nm"
  5150. fi
  5151. for lt_tmp_nm in $lt_nm_to_check; do
  5152. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5153. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5154. IFS="$lt_save_ifs"
  5155. test -z "$ac_dir" && ac_dir=.
  5156. tmp_nm="$ac_dir/$lt_tmp_nm"
  5157. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5158. # Check to see if the nm accepts a BSD-compat flag.
  5159. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5160. # nm: unknown option "B" ignored
  5161. # Tru64's nm complains that /dev/null is an invalid object file
  5162. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5163. */dev/null* | *'Invalid file or object type'*)
  5164. lt_cv_path_NM="$tmp_nm -B"
  5165. break
  5166. ;;
  5167. *)
  5168. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5169. */dev/null*)
  5170. lt_cv_path_NM="$tmp_nm -p"
  5171. break
  5172. ;;
  5173. *)
  5174. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5175. continue # so that we can try to find one that supports BSD flags
  5176. ;;
  5177. esac
  5178. ;;
  5179. esac
  5180. fi
  5181. done
  5182. IFS="$lt_save_ifs"
  5183. done
  5184. : ${lt_cv_path_NM=no}
  5185. fi
  5186. fi
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5188. $as_echo "$lt_cv_path_NM" >&6; }
  5189. if test "$lt_cv_path_NM" != "no"; then
  5190. NM="$lt_cv_path_NM"
  5191. else
  5192. # Didn't find any BSD compatible name lister, look for dumpbin.
  5193. if test -n "$DUMPBIN"; then :
  5194. # Let the user override the test.
  5195. else
  5196. if test -n "$ac_tool_prefix"; then
  5197. for ac_prog in dumpbin "link -dump"
  5198. do
  5199. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5200. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5202. $as_echo_n "checking for $ac_word... " >&6; }
  5203. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5204. $as_echo_n "(cached) " >&6
  5205. else
  5206. if test -n "$DUMPBIN"; then
  5207. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5208. else
  5209. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5210. for as_dir in $PATH
  5211. do
  5212. IFS=$as_save_IFS
  5213. test -z "$as_dir" && as_dir=.
  5214. for ac_exec_ext in '' $ac_executable_extensions; do
  5215. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5216. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5217. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5218. break 2
  5219. fi
  5220. done
  5221. done
  5222. IFS=$as_save_IFS
  5223. fi
  5224. fi
  5225. DUMPBIN=$ac_cv_prog_DUMPBIN
  5226. if test -n "$DUMPBIN"; then
  5227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5228. $as_echo "$DUMPBIN" >&6; }
  5229. else
  5230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5231. $as_echo "no" >&6; }
  5232. fi
  5233. test -n "$DUMPBIN" && break
  5234. done
  5235. fi
  5236. if test -z "$DUMPBIN"; then
  5237. ac_ct_DUMPBIN=$DUMPBIN
  5238. for ac_prog in dumpbin "link -dump"
  5239. do
  5240. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5241. set dummy $ac_prog; ac_word=$2
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5243. $as_echo_n "checking for $ac_word... " >&6; }
  5244. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5245. $as_echo_n "(cached) " >&6
  5246. else
  5247. if test -n "$ac_ct_DUMPBIN"; then
  5248. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5249. else
  5250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5251. for as_dir in $PATH
  5252. do
  5253. IFS=$as_save_IFS
  5254. test -z "$as_dir" && as_dir=.
  5255. for ac_exec_ext in '' $ac_executable_extensions; do
  5256. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5257. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5259. break 2
  5260. fi
  5261. done
  5262. done
  5263. IFS=$as_save_IFS
  5264. fi
  5265. fi
  5266. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5267. if test -n "$ac_ct_DUMPBIN"; then
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5269. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5270. else
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5272. $as_echo "no" >&6; }
  5273. fi
  5274. test -n "$ac_ct_DUMPBIN" && break
  5275. done
  5276. if test "x$ac_ct_DUMPBIN" = x; then
  5277. DUMPBIN=":"
  5278. else
  5279. case $cross_compiling:$ac_tool_warned in
  5280. yes:)
  5281. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5282. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5283. ac_tool_warned=yes ;;
  5284. esac
  5285. DUMPBIN=$ac_ct_DUMPBIN
  5286. fi
  5287. fi
  5288. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5289. *COFF*)
  5290. DUMPBIN="$DUMPBIN -symbols"
  5291. ;;
  5292. *)
  5293. DUMPBIN=:
  5294. ;;
  5295. esac
  5296. fi
  5297. if test "$DUMPBIN" != ":"; then
  5298. NM="$DUMPBIN"
  5299. fi
  5300. fi
  5301. test -z "$NM" && NM=nm
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5303. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5304. if ${lt_cv_nm_interface+:} false; then :
  5305. $as_echo_n "(cached) " >&6
  5306. else
  5307. lt_cv_nm_interface="BSD nm"
  5308. echo "int some_variable = 0;" > conftest.$ac_ext
  5309. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5310. (eval "$ac_compile" 2>conftest.err)
  5311. cat conftest.err >&5
  5312. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5313. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5314. cat conftest.err >&5
  5315. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5316. cat conftest.out >&5
  5317. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5318. lt_cv_nm_interface="MS dumpbin"
  5319. fi
  5320. rm -f conftest*
  5321. fi
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5323. $as_echo "$lt_cv_nm_interface" >&6; }
  5324. # find the maximum length of command line arguments
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5326. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5327. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5328. $as_echo_n "(cached) " >&6
  5329. else
  5330. i=0
  5331. teststring="ABCD"
  5332. case $build_os in
  5333. msdosdjgpp*)
  5334. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5335. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5336. # during glob expansion). Even if it were fixed, the result of this
  5337. # check would be larger than it should be.
  5338. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5339. ;;
  5340. gnu*)
  5341. # Under GNU Hurd, this test is not required because there is
  5342. # no limit to the length of command line arguments.
  5343. # Libtool will interpret -1 as no limit whatsoever
  5344. lt_cv_sys_max_cmd_len=-1;
  5345. ;;
  5346. cygwin* | mingw* | cegcc*)
  5347. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5348. # about 5 minutes as the teststring grows exponentially.
  5349. # Worse, since 9x/ME are not pre-emptively multitasking,
  5350. # you end up with a "frozen" computer, even though with patience
  5351. # the test eventually succeeds (with a max line length of 256k).
  5352. # Instead, let's just punt: use the minimum linelength reported by
  5353. # all of the supported platforms: 8192 (on NT/2K/XP).
  5354. lt_cv_sys_max_cmd_len=8192;
  5355. ;;
  5356. mint*)
  5357. # On MiNT this can take a long time and run out of memory.
  5358. lt_cv_sys_max_cmd_len=8192;
  5359. ;;
  5360. amigaos*)
  5361. # On AmigaOS with pdksh, this test takes hours, literally.
  5362. # So we just punt and use a minimum line length of 8192.
  5363. lt_cv_sys_max_cmd_len=8192;
  5364. ;;
  5365. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5366. # This has been around since 386BSD, at least. Likely further.
  5367. if test -x /sbin/sysctl; then
  5368. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5369. elif test -x /usr/sbin/sysctl; then
  5370. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5371. else
  5372. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5373. fi
  5374. # And add a safety zone
  5375. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5376. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5377. ;;
  5378. interix*)
  5379. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5380. lt_cv_sys_max_cmd_len=196608
  5381. ;;
  5382. os2*)
  5383. # The test takes a long time on OS/2.
  5384. lt_cv_sys_max_cmd_len=8192
  5385. ;;
  5386. osf*)
  5387. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5388. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5389. # nice to cause kernel panics so lets avoid the loop below.
  5390. # First set a reasonable default.
  5391. lt_cv_sys_max_cmd_len=16384
  5392. #
  5393. if test -x /sbin/sysconfig; then
  5394. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5395. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5396. esac
  5397. fi
  5398. ;;
  5399. sco3.2v5*)
  5400. lt_cv_sys_max_cmd_len=102400
  5401. ;;
  5402. sysv5* | sco5v6* | sysv4.2uw2*)
  5403. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5404. if test -n "$kargmax"; then
  5405. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5406. else
  5407. lt_cv_sys_max_cmd_len=32768
  5408. fi
  5409. ;;
  5410. *)
  5411. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5412. if test -n "$lt_cv_sys_max_cmd_len"; then
  5413. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5414. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5415. else
  5416. # Make teststring a little bigger before we do anything with it.
  5417. # a 1K string should be a reasonable start.
  5418. for i in 1 2 3 4 5 6 7 8 ; do
  5419. teststring=$teststring$teststring
  5420. done
  5421. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5422. # If test is not a shell built-in, we'll probably end up computing a
  5423. # maximum length that is only half of the actual maximum length, but
  5424. # we can't tell.
  5425. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5426. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5427. test $i != 17 # 1/2 MB should be enough
  5428. do
  5429. i=`expr $i + 1`
  5430. teststring=$teststring$teststring
  5431. done
  5432. # Only check the string length outside the loop.
  5433. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5434. teststring=
  5435. # Add a significant safety factor because C++ compilers can tack on
  5436. # massive amounts of additional arguments before passing them to the
  5437. # linker. It appears as though 1/2 is a usable value.
  5438. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5439. fi
  5440. ;;
  5441. esac
  5442. fi
  5443. if test -n $lt_cv_sys_max_cmd_len ; then
  5444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5445. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5446. else
  5447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5448. $as_echo "none" >&6; }
  5449. fi
  5450. max_cmd_len=$lt_cv_sys_max_cmd_len
  5451. : ${CP="cp -f"}
  5452. : ${MV="mv -f"}
  5453. : ${RM="rm -f"}
  5454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5455. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5456. # Try some XSI features
  5457. xsi_shell=no
  5458. ( _lt_dummy="a/b/c"
  5459. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5460. = c,a/b,b/c, \
  5461. && eval 'test $(( 1 + 1 )) -eq 2 \
  5462. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5463. && xsi_shell=yes
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5465. $as_echo "$xsi_shell" >&6; }
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5467. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5468. lt_shell_append=no
  5469. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5470. >/dev/null 2>&1 \
  5471. && lt_shell_append=yes
  5472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5473. $as_echo "$lt_shell_append" >&6; }
  5474. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5475. lt_unset=unset
  5476. else
  5477. lt_unset=false
  5478. fi
  5479. # test EBCDIC or ASCII
  5480. case `echo X|tr X '\101'` in
  5481. A) # ASCII based system
  5482. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5483. lt_SP2NL='tr \040 \012'
  5484. lt_NL2SP='tr \015\012 \040\040'
  5485. ;;
  5486. *) # EBCDIC based system
  5487. lt_SP2NL='tr \100 \n'
  5488. lt_NL2SP='tr \r\n \100\100'
  5489. ;;
  5490. esac
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5492. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5493. if ${lt_cv_to_host_file_cmd+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. case $host in
  5497. *-*-mingw* )
  5498. case $build in
  5499. *-*-mingw* ) # actually msys
  5500. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5501. ;;
  5502. *-*-cygwin* )
  5503. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5504. ;;
  5505. * ) # otherwise, assume *nix
  5506. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5507. ;;
  5508. esac
  5509. ;;
  5510. *-*-cygwin* )
  5511. case $build in
  5512. *-*-mingw* ) # actually msys
  5513. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5514. ;;
  5515. *-*-cygwin* )
  5516. lt_cv_to_host_file_cmd=func_convert_file_noop
  5517. ;;
  5518. * ) # otherwise, assume *nix
  5519. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5520. ;;
  5521. esac
  5522. ;;
  5523. * ) # unhandled hosts (and "normal" native builds)
  5524. lt_cv_to_host_file_cmd=func_convert_file_noop
  5525. ;;
  5526. esac
  5527. fi
  5528. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5530. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5532. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5533. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5534. $as_echo_n "(cached) " >&6
  5535. else
  5536. #assume ordinary cross tools, or native build.
  5537. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5538. case $host in
  5539. *-*-mingw* )
  5540. case $build in
  5541. *-*-mingw* ) # actually msys
  5542. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5543. ;;
  5544. esac
  5545. ;;
  5546. esac
  5547. fi
  5548. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5550. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5552. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5553. if ${lt_cv_ld_reload_flag+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. lt_cv_ld_reload_flag='-r'
  5557. fi
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5559. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5560. reload_flag=$lt_cv_ld_reload_flag
  5561. case $reload_flag in
  5562. "" | " "*) ;;
  5563. *) reload_flag=" $reload_flag" ;;
  5564. esac
  5565. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5566. case $host_os in
  5567. cygwin* | mingw* | pw32* | cegcc*)
  5568. if test "$GCC" != yes; then
  5569. reload_cmds=false
  5570. fi
  5571. ;;
  5572. darwin*)
  5573. if test "$GCC" = yes; then
  5574. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5575. else
  5576. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5577. fi
  5578. ;;
  5579. esac
  5580. if test -n "$ac_tool_prefix"; then
  5581. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5582. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5584. $as_echo_n "checking for $ac_word... " >&6; }
  5585. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5586. $as_echo_n "(cached) " >&6
  5587. else
  5588. if test -n "$OBJDUMP"; then
  5589. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5590. else
  5591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5592. for as_dir in $PATH
  5593. do
  5594. IFS=$as_save_IFS
  5595. test -z "$as_dir" && as_dir=.
  5596. for ac_exec_ext in '' $ac_executable_extensions; do
  5597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5598. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5600. break 2
  5601. fi
  5602. done
  5603. done
  5604. IFS=$as_save_IFS
  5605. fi
  5606. fi
  5607. OBJDUMP=$ac_cv_prog_OBJDUMP
  5608. if test -n "$OBJDUMP"; then
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5610. $as_echo "$OBJDUMP" >&6; }
  5611. else
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5613. $as_echo "no" >&6; }
  5614. fi
  5615. fi
  5616. if test -z "$ac_cv_prog_OBJDUMP"; then
  5617. ac_ct_OBJDUMP=$OBJDUMP
  5618. # Extract the first word of "objdump", so it can be a program name with args.
  5619. set dummy objdump; ac_word=$2
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5621. $as_echo_n "checking for $ac_word... " >&6; }
  5622. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. if test -n "$ac_ct_OBJDUMP"; then
  5626. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5627. else
  5628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5629. for as_dir in $PATH
  5630. do
  5631. IFS=$as_save_IFS
  5632. test -z "$as_dir" && as_dir=.
  5633. for ac_exec_ext in '' $ac_executable_extensions; do
  5634. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5635. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5636. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5637. break 2
  5638. fi
  5639. done
  5640. done
  5641. IFS=$as_save_IFS
  5642. fi
  5643. fi
  5644. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5645. if test -n "$ac_ct_OBJDUMP"; then
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5647. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5648. else
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5650. $as_echo "no" >&6; }
  5651. fi
  5652. if test "x$ac_ct_OBJDUMP" = x; then
  5653. OBJDUMP="false"
  5654. else
  5655. case $cross_compiling:$ac_tool_warned in
  5656. yes:)
  5657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5658. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5659. ac_tool_warned=yes ;;
  5660. esac
  5661. OBJDUMP=$ac_ct_OBJDUMP
  5662. fi
  5663. else
  5664. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5665. fi
  5666. test -z "$OBJDUMP" && OBJDUMP=objdump
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5668. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5669. if ${lt_cv_deplibs_check_method+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5673. lt_cv_file_magic_test_file=
  5674. lt_cv_deplibs_check_method='unknown'
  5675. # Need to set the preceding variable on all platforms that support
  5676. # interlibrary dependencies.
  5677. # 'none' -- dependencies not supported.
  5678. # `unknown' -- same as none, but documents that we really don't know.
  5679. # 'pass_all' -- all dependencies passed with no checks.
  5680. # 'test_compile' -- check by making test program.
  5681. # 'file_magic [[regex]]' -- check by looking for files in library path
  5682. # which responds to the $file_magic_cmd with a given extended regex.
  5683. # If you have `file' or equivalent on your system and you're not sure
  5684. # whether `pass_all' will *always* work, you probably want this one.
  5685. case $host_os in
  5686. aix[4-9]*)
  5687. lt_cv_deplibs_check_method=pass_all
  5688. ;;
  5689. beos*)
  5690. lt_cv_deplibs_check_method=pass_all
  5691. ;;
  5692. bsdi[45]*)
  5693. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5694. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5695. lt_cv_file_magic_test_file=/shlib/libc.so
  5696. ;;
  5697. cygwin*)
  5698. # func_win32_libid is a shell function defined in ltmain.sh
  5699. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5700. lt_cv_file_magic_cmd='func_win32_libid'
  5701. ;;
  5702. mingw* | pw32*)
  5703. # Base MSYS/MinGW do not provide the 'file' command needed by
  5704. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5705. # unless we find 'file', for example because we are cross-compiling.
  5706. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5707. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5708. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5709. lt_cv_file_magic_cmd='func_win32_libid'
  5710. else
  5711. # Keep this pattern in sync with the one in func_win32_libid.
  5712. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5713. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5714. fi
  5715. ;;
  5716. cegcc*)
  5717. # use the weaker test based on 'objdump'. See mingw*.
  5718. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5719. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5720. ;;
  5721. darwin* | rhapsody*)
  5722. lt_cv_deplibs_check_method=pass_all
  5723. ;;
  5724. freebsd* | dragonfly*)
  5725. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5726. case $host_cpu in
  5727. i*86 )
  5728. # Not sure whether the presence of OpenBSD here was a mistake.
  5729. # Let's accept both of them until this is cleared up.
  5730. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5731. lt_cv_file_magic_cmd=/usr/bin/file
  5732. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5733. ;;
  5734. esac
  5735. else
  5736. lt_cv_deplibs_check_method=pass_all
  5737. fi
  5738. ;;
  5739. gnu*)
  5740. lt_cv_deplibs_check_method=pass_all
  5741. ;;
  5742. haiku*)
  5743. lt_cv_deplibs_check_method=pass_all
  5744. ;;
  5745. hpux10.20* | hpux11*)
  5746. lt_cv_file_magic_cmd=/usr/bin/file
  5747. case $host_cpu in
  5748. ia64*)
  5749. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5750. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5751. ;;
  5752. hppa*64*)
  5753. 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]'
  5754. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5755. ;;
  5756. *)
  5757. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5758. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5759. ;;
  5760. esac
  5761. ;;
  5762. interix[3-9]*)
  5763. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5764. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5765. ;;
  5766. irix5* | irix6* | nonstopux*)
  5767. case $LD in
  5768. *-32|*"-32 ") libmagic=32-bit;;
  5769. *-n32|*"-n32 ") libmagic=N32;;
  5770. *-64|*"-64 ") libmagic=64-bit;;
  5771. *) libmagic=never-match;;
  5772. esac
  5773. lt_cv_deplibs_check_method=pass_all
  5774. ;;
  5775. # This must be glibc/ELF.
  5776. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5777. lt_cv_deplibs_check_method=pass_all
  5778. ;;
  5779. netbsd*)
  5780. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5781. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5782. else
  5783. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5784. fi
  5785. ;;
  5786. newos6*)
  5787. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5788. lt_cv_file_magic_cmd=/usr/bin/file
  5789. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5790. ;;
  5791. *nto* | *qnx*)
  5792. lt_cv_deplibs_check_method=pass_all
  5793. ;;
  5794. openbsd*)
  5795. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5796. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5797. else
  5798. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5799. fi
  5800. ;;
  5801. osf3* | osf4* | osf5*)
  5802. lt_cv_deplibs_check_method=pass_all
  5803. ;;
  5804. rdos*)
  5805. lt_cv_deplibs_check_method=pass_all
  5806. ;;
  5807. solaris*)
  5808. lt_cv_deplibs_check_method=pass_all
  5809. ;;
  5810. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5811. lt_cv_deplibs_check_method=pass_all
  5812. ;;
  5813. sysv4 | sysv4.3*)
  5814. case $host_vendor in
  5815. motorola)
  5816. 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]'
  5817. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5818. ;;
  5819. ncr)
  5820. lt_cv_deplibs_check_method=pass_all
  5821. ;;
  5822. sequent)
  5823. lt_cv_file_magic_cmd='/bin/file'
  5824. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5825. ;;
  5826. sni)
  5827. lt_cv_file_magic_cmd='/bin/file'
  5828. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5829. lt_cv_file_magic_test_file=/lib/libc.so
  5830. ;;
  5831. siemens)
  5832. lt_cv_deplibs_check_method=pass_all
  5833. ;;
  5834. pc)
  5835. lt_cv_deplibs_check_method=pass_all
  5836. ;;
  5837. esac
  5838. ;;
  5839. tpf*)
  5840. lt_cv_deplibs_check_method=pass_all
  5841. ;;
  5842. esac
  5843. fi
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5845. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5846. file_magic_glob=
  5847. want_nocaseglob=no
  5848. if test "$build" = "$host"; then
  5849. case $host_os in
  5850. mingw* | pw32*)
  5851. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5852. want_nocaseglob=yes
  5853. else
  5854. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5855. fi
  5856. ;;
  5857. esac
  5858. fi
  5859. file_magic_cmd=$lt_cv_file_magic_cmd
  5860. deplibs_check_method=$lt_cv_deplibs_check_method
  5861. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5862. if test -n "$ac_tool_prefix"; then
  5863. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5864. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5866. $as_echo_n "checking for $ac_word... " >&6; }
  5867. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. if test -n "$DLLTOOL"; then
  5871. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5872. else
  5873. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5874. for as_dir in $PATH
  5875. do
  5876. IFS=$as_save_IFS
  5877. test -z "$as_dir" && as_dir=.
  5878. for ac_exec_ext in '' $ac_executable_extensions; do
  5879. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5880. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5881. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5882. break 2
  5883. fi
  5884. done
  5885. done
  5886. IFS=$as_save_IFS
  5887. fi
  5888. fi
  5889. DLLTOOL=$ac_cv_prog_DLLTOOL
  5890. if test -n "$DLLTOOL"; then
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5892. $as_echo "$DLLTOOL" >&6; }
  5893. else
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5895. $as_echo "no" >&6; }
  5896. fi
  5897. fi
  5898. if test -z "$ac_cv_prog_DLLTOOL"; then
  5899. ac_ct_DLLTOOL=$DLLTOOL
  5900. # Extract the first word of "dlltool", so it can be a program name with args.
  5901. set dummy dlltool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$ac_ct_DLLTOOL"; then
  5908. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5927. if test -n "$ac_ct_DLLTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5929. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. if test "x$ac_ct_DLLTOOL" = x; then
  5935. DLLTOOL="false"
  5936. else
  5937. case $cross_compiling:$ac_tool_warned in
  5938. yes:)
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5940. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5941. ac_tool_warned=yes ;;
  5942. esac
  5943. DLLTOOL=$ac_ct_DLLTOOL
  5944. fi
  5945. else
  5946. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5947. fi
  5948. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5950. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5951. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5952. $as_echo_n "(cached) " >&6
  5953. else
  5954. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5955. case $host_os in
  5956. cygwin* | mingw* | pw32* | cegcc*)
  5957. # two different shell functions defined in ltmain.sh
  5958. # decide which to use based on capabilities of $DLLTOOL
  5959. case `$DLLTOOL --help 2>&1` in
  5960. *--identify-strict*)
  5961. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5962. ;;
  5963. *)
  5964. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5965. ;;
  5966. esac
  5967. ;;
  5968. *)
  5969. # fallback: assume linklib IS sharedlib
  5970. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5971. ;;
  5972. esac
  5973. fi
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5975. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5976. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5977. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5978. if test -n "$ac_tool_prefix"; then
  5979. for ac_prog in ar
  5980. do
  5981. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5982. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5984. $as_echo_n "checking for $ac_word... " >&6; }
  5985. if ${ac_cv_prog_AR+:} false; then :
  5986. $as_echo_n "(cached) " >&6
  5987. else
  5988. if test -n "$AR"; then
  5989. ac_cv_prog_AR="$AR" # Let the user override the test.
  5990. else
  5991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5992. for as_dir in $PATH
  5993. do
  5994. IFS=$as_save_IFS
  5995. test -z "$as_dir" && as_dir=.
  5996. for ac_exec_ext in '' $ac_executable_extensions; do
  5997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5998. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6000. break 2
  6001. fi
  6002. done
  6003. done
  6004. IFS=$as_save_IFS
  6005. fi
  6006. fi
  6007. AR=$ac_cv_prog_AR
  6008. if test -n "$AR"; then
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6010. $as_echo "$AR" >&6; }
  6011. else
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6013. $as_echo "no" >&6; }
  6014. fi
  6015. test -n "$AR" && break
  6016. done
  6017. fi
  6018. if test -z "$AR"; then
  6019. ac_ct_AR=$AR
  6020. for ac_prog in ar
  6021. do
  6022. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6023. set dummy $ac_prog; ac_word=$2
  6024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6025. $as_echo_n "checking for $ac_word... " >&6; }
  6026. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6027. $as_echo_n "(cached) " >&6
  6028. else
  6029. if test -n "$ac_ct_AR"; then
  6030. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6031. else
  6032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6033. for as_dir in $PATH
  6034. do
  6035. IFS=$as_save_IFS
  6036. test -z "$as_dir" && as_dir=.
  6037. for ac_exec_ext in '' $ac_executable_extensions; do
  6038. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6039. ac_cv_prog_ac_ct_AR="$ac_prog"
  6040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6041. break 2
  6042. fi
  6043. done
  6044. done
  6045. IFS=$as_save_IFS
  6046. fi
  6047. fi
  6048. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6049. if test -n "$ac_ct_AR"; then
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6051. $as_echo "$ac_ct_AR" >&6; }
  6052. else
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6054. $as_echo "no" >&6; }
  6055. fi
  6056. test -n "$ac_ct_AR" && break
  6057. done
  6058. if test "x$ac_ct_AR" = x; then
  6059. AR="false"
  6060. else
  6061. case $cross_compiling:$ac_tool_warned in
  6062. yes:)
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6064. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6065. ac_tool_warned=yes ;;
  6066. esac
  6067. AR=$ac_ct_AR
  6068. fi
  6069. fi
  6070. : ${AR=ar}
  6071. : ${AR_FLAGS=cru}
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  6073. $as_echo_n "checking for archiver @FILE support... " >&6; }
  6074. if ${lt_cv_ar_at_file+:} false; then :
  6075. $as_echo_n "(cached) " >&6
  6076. else
  6077. lt_cv_ar_at_file=no
  6078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6079. /* end confdefs.h. */
  6080. int
  6081. main ()
  6082. {
  6083. ;
  6084. return 0;
  6085. }
  6086. _ACEOF
  6087. if ac_fn_c_try_compile "$LINENO"; then :
  6088. echo conftest.$ac_objext > conftest.lst
  6089. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  6090. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6091. (eval $lt_ar_try) 2>&5
  6092. ac_status=$?
  6093. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6094. test $ac_status = 0; }
  6095. if test "$ac_status" -eq 0; then
  6096. # Ensure the archiver fails upon bogus file names.
  6097. rm -f conftest.$ac_objext libconftest.a
  6098. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  6099. (eval $lt_ar_try) 2>&5
  6100. ac_status=$?
  6101. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6102. test $ac_status = 0; }
  6103. if test "$ac_status" -ne 0; then
  6104. lt_cv_ar_at_file=@
  6105. fi
  6106. fi
  6107. rm -f conftest.* libconftest.a
  6108. fi
  6109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6110. fi
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  6112. $as_echo "$lt_cv_ar_at_file" >&6; }
  6113. if test "x$lt_cv_ar_at_file" = xno; then
  6114. archiver_list_spec=
  6115. else
  6116. archiver_list_spec=$lt_cv_ar_at_file
  6117. fi
  6118. if test -n "$ac_tool_prefix"; then
  6119. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6120. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6122. $as_echo_n "checking for $ac_word... " >&6; }
  6123. if ${ac_cv_prog_STRIP+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. if test -n "$STRIP"; then
  6127. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6128. else
  6129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6130. for as_dir in $PATH
  6131. do
  6132. IFS=$as_save_IFS
  6133. test -z "$as_dir" && as_dir=.
  6134. for ac_exec_ext in '' $ac_executable_extensions; do
  6135. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6136. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6137. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6138. break 2
  6139. fi
  6140. done
  6141. done
  6142. IFS=$as_save_IFS
  6143. fi
  6144. fi
  6145. STRIP=$ac_cv_prog_STRIP
  6146. if test -n "$STRIP"; then
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6148. $as_echo "$STRIP" >&6; }
  6149. else
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6151. $as_echo "no" >&6; }
  6152. fi
  6153. fi
  6154. if test -z "$ac_cv_prog_STRIP"; then
  6155. ac_ct_STRIP=$STRIP
  6156. # Extract the first word of "strip", so it can be a program name with args.
  6157. set dummy strip; ac_word=$2
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6159. $as_echo_n "checking for $ac_word... " >&6; }
  6160. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6161. $as_echo_n "(cached) " >&6
  6162. else
  6163. if test -n "$ac_ct_STRIP"; then
  6164. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6165. else
  6166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6167. for as_dir in $PATH
  6168. do
  6169. IFS=$as_save_IFS
  6170. test -z "$as_dir" && as_dir=.
  6171. for ac_exec_ext in '' $ac_executable_extensions; do
  6172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6173. ac_cv_prog_ac_ct_STRIP="strip"
  6174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6175. break 2
  6176. fi
  6177. done
  6178. done
  6179. IFS=$as_save_IFS
  6180. fi
  6181. fi
  6182. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6183. if test -n "$ac_ct_STRIP"; then
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6185. $as_echo "$ac_ct_STRIP" >&6; }
  6186. else
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6188. $as_echo "no" >&6; }
  6189. fi
  6190. if test "x$ac_ct_STRIP" = x; then
  6191. STRIP=":"
  6192. else
  6193. case $cross_compiling:$ac_tool_warned in
  6194. yes:)
  6195. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6196. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6197. ac_tool_warned=yes ;;
  6198. esac
  6199. STRIP=$ac_ct_STRIP
  6200. fi
  6201. else
  6202. STRIP="$ac_cv_prog_STRIP"
  6203. fi
  6204. test -z "$STRIP" && STRIP=:
  6205. if test -n "$ac_tool_prefix"; then
  6206. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6207. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6209. $as_echo_n "checking for $ac_word... " >&6; }
  6210. if ${ac_cv_prog_RANLIB+:} false; then :
  6211. $as_echo_n "(cached) " >&6
  6212. else
  6213. if test -n "$RANLIB"; then
  6214. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6215. else
  6216. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6217. for as_dir in $PATH
  6218. do
  6219. IFS=$as_save_IFS
  6220. test -z "$as_dir" && as_dir=.
  6221. for ac_exec_ext in '' $ac_executable_extensions; do
  6222. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6223. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6224. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6225. break 2
  6226. fi
  6227. done
  6228. done
  6229. IFS=$as_save_IFS
  6230. fi
  6231. fi
  6232. RANLIB=$ac_cv_prog_RANLIB
  6233. if test -n "$RANLIB"; then
  6234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6235. $as_echo "$RANLIB" >&6; }
  6236. else
  6237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6238. $as_echo "no" >&6; }
  6239. fi
  6240. fi
  6241. if test -z "$ac_cv_prog_RANLIB"; then
  6242. ac_ct_RANLIB=$RANLIB
  6243. # Extract the first word of "ranlib", so it can be a program name with args.
  6244. set dummy ranlib; ac_word=$2
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6246. $as_echo_n "checking for $ac_word... " >&6; }
  6247. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6248. $as_echo_n "(cached) " >&6
  6249. else
  6250. if test -n "$ac_ct_RANLIB"; then
  6251. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6252. else
  6253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6254. for as_dir in $PATH
  6255. do
  6256. IFS=$as_save_IFS
  6257. test -z "$as_dir" && as_dir=.
  6258. for ac_exec_ext in '' $ac_executable_extensions; do
  6259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6260. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6262. break 2
  6263. fi
  6264. done
  6265. done
  6266. IFS=$as_save_IFS
  6267. fi
  6268. fi
  6269. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6270. if test -n "$ac_ct_RANLIB"; then
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6272. $as_echo "$ac_ct_RANLIB" >&6; }
  6273. else
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6275. $as_echo "no" >&6; }
  6276. fi
  6277. if test "x$ac_ct_RANLIB" = x; then
  6278. RANLIB=":"
  6279. else
  6280. case $cross_compiling:$ac_tool_warned in
  6281. yes:)
  6282. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6283. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6284. ac_tool_warned=yes ;;
  6285. esac
  6286. RANLIB=$ac_ct_RANLIB
  6287. fi
  6288. else
  6289. RANLIB="$ac_cv_prog_RANLIB"
  6290. fi
  6291. test -z "$RANLIB" && RANLIB=:
  6292. # Determine commands to create old-style static archives.
  6293. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6294. old_postinstall_cmds='chmod 644 $oldlib'
  6295. old_postuninstall_cmds=
  6296. if test -n "$RANLIB"; then
  6297. case $host_os in
  6298. openbsd*)
  6299. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6300. ;;
  6301. *)
  6302. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6303. ;;
  6304. esac
  6305. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6306. fi
  6307. case $host_os in
  6308. darwin*)
  6309. lock_old_archive_extraction=yes ;;
  6310. *)
  6311. lock_old_archive_extraction=no ;;
  6312. esac
  6313. # If no C compiler was specified, use CC.
  6314. LTCC=${LTCC-"$CC"}
  6315. # If no C compiler flags were specified, use CFLAGS.
  6316. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6317. # Allow CC to be a program name with arguments.
  6318. compiler=$CC
  6319. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6321. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6322. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6323. $as_echo_n "(cached) " >&6
  6324. else
  6325. # These are sane defaults that work on at least a few old systems.
  6326. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6327. # Character class describing NM global symbol codes.
  6328. symcode='[BCDEGRST]'
  6329. # Regexp to match symbols that can be accessed directly from C.
  6330. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6331. # Define system-specific variables.
  6332. case $host_os in
  6333. aix*)
  6334. symcode='[BCDT]'
  6335. ;;
  6336. cygwin* | mingw* | pw32* | cegcc*)
  6337. symcode='[ABCDGISTW]'
  6338. ;;
  6339. hpux*)
  6340. if test "$host_cpu" = ia64; then
  6341. symcode='[ABCDEGRST]'
  6342. fi
  6343. ;;
  6344. irix* | nonstopux*)
  6345. symcode='[BCDEGRST]'
  6346. ;;
  6347. osf*)
  6348. symcode='[BCDEGQRST]'
  6349. ;;
  6350. solaris*)
  6351. symcode='[BDRT]'
  6352. ;;
  6353. sco3.2v5*)
  6354. symcode='[DT]'
  6355. ;;
  6356. sysv4.2uw2*)
  6357. symcode='[DT]'
  6358. ;;
  6359. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6360. symcode='[ABDT]'
  6361. ;;
  6362. sysv4)
  6363. symcode='[DFNSTU]'
  6364. ;;
  6365. esac
  6366. # If we're using GNU nm, then use its standard symbol codes.
  6367. case `$NM -V 2>&1` in
  6368. *GNU* | *'with BFD'*)
  6369. symcode='[ABCDGIRSTW]' ;;
  6370. esac
  6371. # Transform an extracted symbol line into a proper C declaration.
  6372. # Some systems (esp. on ia64) link data and code symbols differently,
  6373. # so use this general approach.
  6374. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6375. # Transform an extracted symbol line into symbol name and symbol address
  6376. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6377. 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'"
  6378. # Handle CRLF in mingw tool chain
  6379. opt_cr=
  6380. case $build_os in
  6381. mingw*)
  6382. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6383. ;;
  6384. esac
  6385. # Try without a prefix underscore, then with it.
  6386. for ac_symprfx in "" "_"; do
  6387. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6388. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6389. # Write the raw and C identifiers.
  6390. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6391. # Fake it for dumpbin and say T for any non-static function
  6392. # and D for any global variable.
  6393. # Also find C++ and __fastcall symbols from MSVC++,
  6394. # which start with @ or ?.
  6395. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6396. " {last_section=section; section=\$ 3};"\
  6397. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6398. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6399. " \$ 0!~/External *\|/{next};"\
  6400. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6401. " {if(hide[section]) next};"\
  6402. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6403. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6404. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6405. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6406. " ' prfx=^$ac_symprfx"
  6407. else
  6408. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6409. fi
  6410. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6411. # Check to see that the pipe works correctly.
  6412. pipe_works=no
  6413. rm -f conftest*
  6414. cat > conftest.$ac_ext <<_LT_EOF
  6415. #ifdef __cplusplus
  6416. extern "C" {
  6417. #endif
  6418. char nm_test_var;
  6419. void nm_test_func(void);
  6420. void nm_test_func(void){}
  6421. #ifdef __cplusplus
  6422. }
  6423. #endif
  6424. int main(){nm_test_var='a';nm_test_func();return(0);}
  6425. _LT_EOF
  6426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6427. (eval $ac_compile) 2>&5
  6428. ac_status=$?
  6429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6430. test $ac_status = 0; }; then
  6431. # Now try to grab the symbols.
  6432. nlist=conftest.nm
  6433. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6434. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6435. ac_status=$?
  6436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6437. test $ac_status = 0; } && test -s "$nlist"; then
  6438. # Try sorting and uniquifying the output.
  6439. if sort "$nlist" | uniq > "$nlist"T; then
  6440. mv -f "$nlist"T "$nlist"
  6441. else
  6442. rm -f "$nlist"T
  6443. fi
  6444. # Make sure that we snagged all the symbols we need.
  6445. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6446. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6447. cat <<_LT_EOF > conftest.$ac_ext
  6448. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6449. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6450. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6451. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6452. # define LT_DLSYM_CONST
  6453. #elif defined(__osf__)
  6454. /* This system does not cope well with relocations in const data. */
  6455. # define LT_DLSYM_CONST
  6456. #else
  6457. # define LT_DLSYM_CONST const
  6458. #endif
  6459. #ifdef __cplusplus
  6460. extern "C" {
  6461. #endif
  6462. _LT_EOF
  6463. # Now generate the symbol file.
  6464. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6465. cat <<_LT_EOF >> conftest.$ac_ext
  6466. /* The mapping between symbol names and symbols. */
  6467. LT_DLSYM_CONST struct {
  6468. const char *name;
  6469. void *address;
  6470. }
  6471. lt__PROGRAM__LTX_preloaded_symbols[] =
  6472. {
  6473. { "@PROGRAM@", (void *) 0 },
  6474. _LT_EOF
  6475. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6476. cat <<\_LT_EOF >> conftest.$ac_ext
  6477. {0, (void *) 0}
  6478. };
  6479. /* This works around a problem in FreeBSD linker */
  6480. #ifdef FREEBSD_WORKAROUND
  6481. static const void *lt_preloaded_setup() {
  6482. return lt__PROGRAM__LTX_preloaded_symbols;
  6483. }
  6484. #endif
  6485. #ifdef __cplusplus
  6486. }
  6487. #endif
  6488. _LT_EOF
  6489. # Now try linking the two files.
  6490. mv conftest.$ac_objext conftstm.$ac_objext
  6491. lt_globsym_save_LIBS=$LIBS
  6492. lt_globsym_save_CFLAGS=$CFLAGS
  6493. LIBS="conftstm.$ac_objext"
  6494. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6495. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6496. (eval $ac_link) 2>&5
  6497. ac_status=$?
  6498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6499. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6500. pipe_works=yes
  6501. fi
  6502. LIBS=$lt_globsym_save_LIBS
  6503. CFLAGS=$lt_globsym_save_CFLAGS
  6504. else
  6505. echo "cannot find nm_test_func in $nlist" >&5
  6506. fi
  6507. else
  6508. echo "cannot find nm_test_var in $nlist" >&5
  6509. fi
  6510. else
  6511. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6512. fi
  6513. else
  6514. echo "$progname: failed program was:" >&5
  6515. cat conftest.$ac_ext >&5
  6516. fi
  6517. rm -rf conftest* conftst*
  6518. # Do not use the global_symbol_pipe unless it works.
  6519. if test "$pipe_works" = yes; then
  6520. break
  6521. else
  6522. lt_cv_sys_global_symbol_pipe=
  6523. fi
  6524. done
  6525. fi
  6526. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6527. lt_cv_sys_global_symbol_to_cdecl=
  6528. fi
  6529. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6531. $as_echo "failed" >&6; }
  6532. else
  6533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6534. $as_echo "ok" >&6; }
  6535. fi
  6536. # Response file support.
  6537. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6538. nm_file_list_spec='@'
  6539. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6540. nm_file_list_spec='@'
  6541. fi
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6543. $as_echo_n "checking for sysroot... " >&6; }
  6544. # Check whether --with-sysroot was given.
  6545. if test "${with_sysroot+set}" = set; then :
  6546. withval=$with_sysroot;
  6547. else
  6548. with_sysroot=no
  6549. fi
  6550. lt_sysroot=
  6551. case ${with_sysroot} in #(
  6552. yes)
  6553. if test "$GCC" = yes; then
  6554. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6555. fi
  6556. ;; #(
  6557. /*)
  6558. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6559. ;; #(
  6560. no|'')
  6561. ;; #(
  6562. *)
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6564. $as_echo "${with_sysroot}" >&6; }
  6565. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6566. ;;
  6567. esac
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6569. $as_echo "${lt_sysroot:-no}" >&6; }
  6570. # Check whether --enable-libtool-lock was given.
  6571. if test "${enable_libtool_lock+set}" = set; then :
  6572. enableval=$enable_libtool_lock;
  6573. fi
  6574. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6575. # Some flags need to be propagated to the compiler or linker for good
  6576. # libtool support.
  6577. case $host in
  6578. ia64-*-hpux*)
  6579. # Find out which ABI we are using.
  6580. echo 'int i;' > conftest.$ac_ext
  6581. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6582. (eval $ac_compile) 2>&5
  6583. ac_status=$?
  6584. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6585. test $ac_status = 0; }; then
  6586. case `/usr/bin/file conftest.$ac_objext` in
  6587. *ELF-32*)
  6588. HPUX_IA64_MODE="32"
  6589. ;;
  6590. *ELF-64*)
  6591. HPUX_IA64_MODE="64"
  6592. ;;
  6593. esac
  6594. fi
  6595. rm -rf conftest*
  6596. ;;
  6597. *-*-irix6*)
  6598. # Find out which ABI we are using.
  6599. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6600. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6601. (eval $ac_compile) 2>&5
  6602. ac_status=$?
  6603. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6604. test $ac_status = 0; }; then
  6605. if test "$lt_cv_prog_gnu_ld" = yes; then
  6606. case `/usr/bin/file conftest.$ac_objext` in
  6607. *32-bit*)
  6608. LD="${LD-ld} -melf32bsmip"
  6609. ;;
  6610. *N32*)
  6611. LD="${LD-ld} -melf32bmipn32"
  6612. ;;
  6613. *64-bit*)
  6614. LD="${LD-ld} -melf64bmip"
  6615. ;;
  6616. esac
  6617. else
  6618. case `/usr/bin/file conftest.$ac_objext` in
  6619. *32-bit*)
  6620. LD="${LD-ld} -32"
  6621. ;;
  6622. *N32*)
  6623. LD="${LD-ld} -n32"
  6624. ;;
  6625. *64-bit*)
  6626. LD="${LD-ld} -64"
  6627. ;;
  6628. esac
  6629. fi
  6630. fi
  6631. rm -rf conftest*
  6632. ;;
  6633. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6634. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6635. # Find out which ABI we are using.
  6636. echo 'int i;' > conftest.$ac_ext
  6637. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6638. (eval $ac_compile) 2>&5
  6639. ac_status=$?
  6640. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6641. test $ac_status = 0; }; then
  6642. case `/usr/bin/file conftest.o` in
  6643. *32-bit*)
  6644. case $host in
  6645. x86_64-*kfreebsd*-gnu)
  6646. LD="${LD-ld} -m elf_i386_fbsd"
  6647. ;;
  6648. x86_64-*linux*)
  6649. LD="${LD-ld} -m elf_i386"
  6650. ;;
  6651. ppc64-*linux*|powerpc64-*linux*)
  6652. LD="${LD-ld} -m elf32ppclinux"
  6653. ;;
  6654. s390x-*linux*)
  6655. LD="${LD-ld} -m elf_s390"
  6656. ;;
  6657. sparc64-*linux*)
  6658. LD="${LD-ld} -m elf32_sparc"
  6659. ;;
  6660. esac
  6661. ;;
  6662. *64-bit*)
  6663. case $host in
  6664. x86_64-*kfreebsd*-gnu)
  6665. LD="${LD-ld} -m elf_x86_64_fbsd"
  6666. ;;
  6667. x86_64-*linux*)
  6668. LD="${LD-ld} -m elf_x86_64"
  6669. ;;
  6670. ppc*-*linux*|powerpc*-*linux*)
  6671. LD="${LD-ld} -m elf64ppc"
  6672. ;;
  6673. s390*-*linux*|s390*-*tpf*)
  6674. LD="${LD-ld} -m elf64_s390"
  6675. ;;
  6676. sparc*-*linux*)
  6677. LD="${LD-ld} -m elf64_sparc"
  6678. ;;
  6679. esac
  6680. ;;
  6681. esac
  6682. fi
  6683. rm -rf conftest*
  6684. ;;
  6685. *-*-sco3.2v5*)
  6686. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6687. SAVE_CFLAGS="$CFLAGS"
  6688. CFLAGS="$CFLAGS -belf"
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6690. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6691. if ${lt_cv_cc_needs_belf+:} false; then :
  6692. $as_echo_n "(cached) " >&6
  6693. else
  6694. ac_ext=c
  6695. ac_cpp='$CPP $CPPFLAGS'
  6696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6700. /* end confdefs.h. */
  6701. int
  6702. main ()
  6703. {
  6704. ;
  6705. return 0;
  6706. }
  6707. _ACEOF
  6708. if ac_fn_c_try_link "$LINENO"; then :
  6709. lt_cv_cc_needs_belf=yes
  6710. else
  6711. lt_cv_cc_needs_belf=no
  6712. fi
  6713. rm -f core conftest.err conftest.$ac_objext \
  6714. conftest$ac_exeext conftest.$ac_ext
  6715. ac_ext=c
  6716. ac_cpp='$CPP $CPPFLAGS'
  6717. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6718. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6719. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6720. fi
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6722. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6723. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6724. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6725. CFLAGS="$SAVE_CFLAGS"
  6726. fi
  6727. ;;
  6728. *-*solaris*)
  6729. # Find out which ABI we are using.
  6730. echo 'int i;' > conftest.$ac_ext
  6731. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6732. (eval $ac_compile) 2>&5
  6733. ac_status=$?
  6734. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6735. test $ac_status = 0; }; then
  6736. case `/usr/bin/file conftest.o` in
  6737. *64-bit*)
  6738. case $lt_cv_prog_gnu_ld in
  6739. yes*)
  6740. case $host in
  6741. i?86-*-solaris*)
  6742. LD="${LD-ld} -m elf_x86_64"
  6743. ;;
  6744. sparc*-*-solaris*)
  6745. LD="${LD-ld} -m elf64_sparc"
  6746. ;;
  6747. esac
  6748. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6749. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6750. LD="${LD-ld}_sol2"
  6751. fi
  6752. ;;
  6753. *)
  6754. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6755. LD="${LD-ld} -64"
  6756. fi
  6757. ;;
  6758. esac
  6759. ;;
  6760. esac
  6761. fi
  6762. rm -rf conftest*
  6763. ;;
  6764. esac
  6765. need_locks="$enable_libtool_lock"
  6766. if test -n "$ac_tool_prefix"; then
  6767. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6768. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6770. $as_echo_n "checking for $ac_word... " >&6; }
  6771. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. if test -n "$MANIFEST_TOOL"; then
  6775. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6776. else
  6777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6778. for as_dir in $PATH
  6779. do
  6780. IFS=$as_save_IFS
  6781. test -z "$as_dir" && as_dir=.
  6782. for ac_exec_ext in '' $ac_executable_extensions; do
  6783. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6784. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6786. break 2
  6787. fi
  6788. done
  6789. done
  6790. IFS=$as_save_IFS
  6791. fi
  6792. fi
  6793. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6794. if test -n "$MANIFEST_TOOL"; then
  6795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6796. $as_echo "$MANIFEST_TOOL" >&6; }
  6797. else
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6799. $as_echo "no" >&6; }
  6800. fi
  6801. fi
  6802. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6803. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6804. # Extract the first word of "mt", so it can be a program name with args.
  6805. set dummy mt; ac_word=$2
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6807. $as_echo_n "checking for $ac_word... " >&6; }
  6808. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6812. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6813. else
  6814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6815. for as_dir in $PATH
  6816. do
  6817. IFS=$as_save_IFS
  6818. test -z "$as_dir" && as_dir=.
  6819. for ac_exec_ext in '' $ac_executable_extensions; do
  6820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6821. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6823. break 2
  6824. fi
  6825. done
  6826. done
  6827. IFS=$as_save_IFS
  6828. fi
  6829. fi
  6830. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6831. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6833. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6834. else
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6836. $as_echo "no" >&6; }
  6837. fi
  6838. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6839. MANIFEST_TOOL=":"
  6840. else
  6841. case $cross_compiling:$ac_tool_warned in
  6842. yes:)
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6844. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6845. ac_tool_warned=yes ;;
  6846. esac
  6847. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6848. fi
  6849. else
  6850. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6851. fi
  6852. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6854. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6855. if ${lt_cv_path_mainfest_tool+:} false; then :
  6856. $as_echo_n "(cached) " >&6
  6857. else
  6858. lt_cv_path_mainfest_tool=no
  6859. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6860. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6861. cat conftest.err >&5
  6862. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6863. lt_cv_path_mainfest_tool=yes
  6864. fi
  6865. rm -f conftest*
  6866. fi
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6868. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6869. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6870. MANIFEST_TOOL=:
  6871. fi
  6872. case $host_os in
  6873. rhapsody* | darwin*)
  6874. if test -n "$ac_tool_prefix"; then
  6875. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6876. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6878. $as_echo_n "checking for $ac_word... " >&6; }
  6879. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6880. $as_echo_n "(cached) " >&6
  6881. else
  6882. if test -n "$DSYMUTIL"; then
  6883. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6884. else
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6892. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. fi
  6900. fi
  6901. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6902. if test -n "$DSYMUTIL"; then
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6904. $as_echo "$DSYMUTIL" >&6; }
  6905. else
  6906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6907. $as_echo "no" >&6; }
  6908. fi
  6909. fi
  6910. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6911. ac_ct_DSYMUTIL=$DSYMUTIL
  6912. # Extract the first word of "dsymutil", so it can be a program name with args.
  6913. set dummy dsymutil; ac_word=$2
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6915. $as_echo_n "checking for $ac_word... " >&6; }
  6916. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6917. $as_echo_n "(cached) " >&6
  6918. else
  6919. if test -n "$ac_ct_DSYMUTIL"; then
  6920. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6921. else
  6922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6923. for as_dir in $PATH
  6924. do
  6925. IFS=$as_save_IFS
  6926. test -z "$as_dir" && as_dir=.
  6927. for ac_exec_ext in '' $ac_executable_extensions; do
  6928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6929. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6931. break 2
  6932. fi
  6933. done
  6934. done
  6935. IFS=$as_save_IFS
  6936. fi
  6937. fi
  6938. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6939. if test -n "$ac_ct_DSYMUTIL"; then
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6941. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. fi
  6946. if test "x$ac_ct_DSYMUTIL" = x; then
  6947. DSYMUTIL=":"
  6948. else
  6949. case $cross_compiling:$ac_tool_warned in
  6950. yes:)
  6951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6953. ac_tool_warned=yes ;;
  6954. esac
  6955. DSYMUTIL=$ac_ct_DSYMUTIL
  6956. fi
  6957. else
  6958. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6959. fi
  6960. if test -n "$ac_tool_prefix"; then
  6961. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6962. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6964. $as_echo_n "checking for $ac_word... " >&6; }
  6965. if ${ac_cv_prog_NMEDIT+:} false; then :
  6966. $as_echo_n "(cached) " >&6
  6967. else
  6968. if test -n "$NMEDIT"; then
  6969. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6970. else
  6971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6972. for as_dir in $PATH
  6973. do
  6974. IFS=$as_save_IFS
  6975. test -z "$as_dir" && as_dir=.
  6976. for ac_exec_ext in '' $ac_executable_extensions; do
  6977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6978. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6980. break 2
  6981. fi
  6982. done
  6983. done
  6984. IFS=$as_save_IFS
  6985. fi
  6986. fi
  6987. NMEDIT=$ac_cv_prog_NMEDIT
  6988. if test -n "$NMEDIT"; then
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6990. $as_echo "$NMEDIT" >&6; }
  6991. else
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6993. $as_echo "no" >&6; }
  6994. fi
  6995. fi
  6996. if test -z "$ac_cv_prog_NMEDIT"; then
  6997. ac_ct_NMEDIT=$NMEDIT
  6998. # Extract the first word of "nmedit", so it can be a program name with args.
  6999. set dummy nmedit; ac_word=$2
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7001. $as_echo_n "checking for $ac_word... " >&6; }
  7002. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7003. $as_echo_n "(cached) " >&6
  7004. else
  7005. if test -n "$ac_ct_NMEDIT"; then
  7006. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7007. else
  7008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7009. for as_dir in $PATH
  7010. do
  7011. IFS=$as_save_IFS
  7012. test -z "$as_dir" && as_dir=.
  7013. for ac_exec_ext in '' $ac_executable_extensions; do
  7014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7015. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7017. break 2
  7018. fi
  7019. done
  7020. done
  7021. IFS=$as_save_IFS
  7022. fi
  7023. fi
  7024. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7025. if test -n "$ac_ct_NMEDIT"; then
  7026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7027. $as_echo "$ac_ct_NMEDIT" >&6; }
  7028. else
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7030. $as_echo "no" >&6; }
  7031. fi
  7032. if test "x$ac_ct_NMEDIT" = x; then
  7033. NMEDIT=":"
  7034. else
  7035. case $cross_compiling:$ac_tool_warned in
  7036. yes:)
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7039. ac_tool_warned=yes ;;
  7040. esac
  7041. NMEDIT=$ac_ct_NMEDIT
  7042. fi
  7043. else
  7044. NMEDIT="$ac_cv_prog_NMEDIT"
  7045. fi
  7046. if test -n "$ac_tool_prefix"; then
  7047. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7048. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7050. $as_echo_n "checking for $ac_word... " >&6; }
  7051. if ${ac_cv_prog_LIPO+:} false; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. if test -n "$LIPO"; then
  7055. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7056. else
  7057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7058. for as_dir in $PATH
  7059. do
  7060. IFS=$as_save_IFS
  7061. test -z "$as_dir" && as_dir=.
  7062. for ac_exec_ext in '' $ac_executable_extensions; do
  7063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7064. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7066. break 2
  7067. fi
  7068. done
  7069. done
  7070. IFS=$as_save_IFS
  7071. fi
  7072. fi
  7073. LIPO=$ac_cv_prog_LIPO
  7074. if test -n "$LIPO"; then
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7076. $as_echo "$LIPO" >&6; }
  7077. else
  7078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7079. $as_echo "no" >&6; }
  7080. fi
  7081. fi
  7082. if test -z "$ac_cv_prog_LIPO"; then
  7083. ac_ct_LIPO=$LIPO
  7084. # Extract the first word of "lipo", so it can be a program name with args.
  7085. set dummy lipo; ac_word=$2
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7087. $as_echo_n "checking for $ac_word... " >&6; }
  7088. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. if test -n "$ac_ct_LIPO"; then
  7092. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7093. else
  7094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7095. for as_dir in $PATH
  7096. do
  7097. IFS=$as_save_IFS
  7098. test -z "$as_dir" && as_dir=.
  7099. for ac_exec_ext in '' $ac_executable_extensions; do
  7100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7101. ac_cv_prog_ac_ct_LIPO="lipo"
  7102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7103. break 2
  7104. fi
  7105. done
  7106. done
  7107. IFS=$as_save_IFS
  7108. fi
  7109. fi
  7110. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7111. if test -n "$ac_ct_LIPO"; then
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7113. $as_echo "$ac_ct_LIPO" >&6; }
  7114. else
  7115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7116. $as_echo "no" >&6; }
  7117. fi
  7118. if test "x$ac_ct_LIPO" = x; then
  7119. LIPO=":"
  7120. else
  7121. case $cross_compiling:$ac_tool_warned in
  7122. yes:)
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7125. ac_tool_warned=yes ;;
  7126. esac
  7127. LIPO=$ac_ct_LIPO
  7128. fi
  7129. else
  7130. LIPO="$ac_cv_prog_LIPO"
  7131. fi
  7132. if test -n "$ac_tool_prefix"; then
  7133. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7134. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7136. $as_echo_n "checking for $ac_word... " >&6; }
  7137. if ${ac_cv_prog_OTOOL+:} false; then :
  7138. $as_echo_n "(cached) " >&6
  7139. else
  7140. if test -n "$OTOOL"; then
  7141. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7142. else
  7143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7144. for as_dir in $PATH
  7145. do
  7146. IFS=$as_save_IFS
  7147. test -z "$as_dir" && as_dir=.
  7148. for ac_exec_ext in '' $ac_executable_extensions; do
  7149. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7150. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7151. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7152. break 2
  7153. fi
  7154. done
  7155. done
  7156. IFS=$as_save_IFS
  7157. fi
  7158. fi
  7159. OTOOL=$ac_cv_prog_OTOOL
  7160. if test -n "$OTOOL"; then
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7162. $as_echo "$OTOOL" >&6; }
  7163. else
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7165. $as_echo "no" >&6; }
  7166. fi
  7167. fi
  7168. if test -z "$ac_cv_prog_OTOOL"; then
  7169. ac_ct_OTOOL=$OTOOL
  7170. # Extract the first word of "otool", so it can be a program name with args.
  7171. set dummy otool; ac_word=$2
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7173. $as_echo_n "checking for $ac_word... " >&6; }
  7174. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. if test -n "$ac_ct_OTOOL"; then
  7178. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7179. else
  7180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7181. for as_dir in $PATH
  7182. do
  7183. IFS=$as_save_IFS
  7184. test -z "$as_dir" && as_dir=.
  7185. for ac_exec_ext in '' $ac_executable_extensions; do
  7186. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7187. ac_cv_prog_ac_ct_OTOOL="otool"
  7188. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7189. break 2
  7190. fi
  7191. done
  7192. done
  7193. IFS=$as_save_IFS
  7194. fi
  7195. fi
  7196. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7197. if test -n "$ac_ct_OTOOL"; then
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7199. $as_echo "$ac_ct_OTOOL" >&6; }
  7200. else
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7202. $as_echo "no" >&6; }
  7203. fi
  7204. if test "x$ac_ct_OTOOL" = x; then
  7205. OTOOL=":"
  7206. else
  7207. case $cross_compiling:$ac_tool_warned in
  7208. yes:)
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7210. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7211. ac_tool_warned=yes ;;
  7212. esac
  7213. OTOOL=$ac_ct_OTOOL
  7214. fi
  7215. else
  7216. OTOOL="$ac_cv_prog_OTOOL"
  7217. fi
  7218. if test -n "$ac_tool_prefix"; then
  7219. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7220. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7222. $as_echo_n "checking for $ac_word... " >&6; }
  7223. if ${ac_cv_prog_OTOOL64+:} false; then :
  7224. $as_echo_n "(cached) " >&6
  7225. else
  7226. if test -n "$OTOOL64"; then
  7227. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7228. else
  7229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7230. for as_dir in $PATH
  7231. do
  7232. IFS=$as_save_IFS
  7233. test -z "$as_dir" && as_dir=.
  7234. for ac_exec_ext in '' $ac_executable_extensions; do
  7235. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7236. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7238. break 2
  7239. fi
  7240. done
  7241. done
  7242. IFS=$as_save_IFS
  7243. fi
  7244. fi
  7245. OTOOL64=$ac_cv_prog_OTOOL64
  7246. if test -n "$OTOOL64"; then
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7248. $as_echo "$OTOOL64" >&6; }
  7249. else
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7251. $as_echo "no" >&6; }
  7252. fi
  7253. fi
  7254. if test -z "$ac_cv_prog_OTOOL64"; then
  7255. ac_ct_OTOOL64=$OTOOL64
  7256. # Extract the first word of "otool64", so it can be a program name with args.
  7257. set dummy otool64; ac_word=$2
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7259. $as_echo_n "checking for $ac_word... " >&6; }
  7260. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7261. $as_echo_n "(cached) " >&6
  7262. else
  7263. if test -n "$ac_ct_OTOOL64"; then
  7264. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7265. else
  7266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7267. for as_dir in $PATH
  7268. do
  7269. IFS=$as_save_IFS
  7270. test -z "$as_dir" && as_dir=.
  7271. for ac_exec_ext in '' $ac_executable_extensions; do
  7272. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7273. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7275. break 2
  7276. fi
  7277. done
  7278. done
  7279. IFS=$as_save_IFS
  7280. fi
  7281. fi
  7282. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7283. if test -n "$ac_ct_OTOOL64"; then
  7284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7285. $as_echo "$ac_ct_OTOOL64" >&6; }
  7286. else
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7288. $as_echo "no" >&6; }
  7289. fi
  7290. if test "x$ac_ct_OTOOL64" = x; then
  7291. OTOOL64=":"
  7292. else
  7293. case $cross_compiling:$ac_tool_warned in
  7294. yes:)
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7296. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7297. ac_tool_warned=yes ;;
  7298. esac
  7299. OTOOL64=$ac_ct_OTOOL64
  7300. fi
  7301. else
  7302. OTOOL64="$ac_cv_prog_OTOOL64"
  7303. fi
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7305. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7306. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. lt_cv_apple_cc_single_mod=no
  7310. if test -z "${LT_MULTI_MODULE}"; then
  7311. # By default we will add the -single_module flag. You can override
  7312. # by either setting the environment variable LT_MULTI_MODULE
  7313. # non-empty at configure time, or by adding -multi_module to the
  7314. # link flags.
  7315. rm -rf libconftest.dylib*
  7316. echo "int foo(void){return 1;}" > conftest.c
  7317. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7318. -dynamiclib -Wl,-single_module conftest.c" >&5
  7319. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7320. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7321. _lt_result=$?
  7322. # If there is a non-empty error log, and "single_module"
  7323. # appears in it, assume the flag caused a linker warning
  7324. if test -s conftest.err && $GREP single_module conftest.err; then
  7325. cat conftest.err >&5
  7326. # Otherwise, if the output was created with a 0 exit code from
  7327. # the compiler, it worked.
  7328. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7329. lt_cv_apple_cc_single_mod=yes
  7330. else
  7331. cat conftest.err >&5
  7332. fi
  7333. rm -rf libconftest.dylib*
  7334. rm -f conftest.*
  7335. fi
  7336. fi
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7338. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7340. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7341. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7342. $as_echo_n "(cached) " >&6
  7343. else
  7344. lt_cv_ld_exported_symbols_list=no
  7345. save_LDFLAGS=$LDFLAGS
  7346. echo "_main" > conftest.sym
  7347. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7349. /* end confdefs.h. */
  7350. int
  7351. main ()
  7352. {
  7353. ;
  7354. return 0;
  7355. }
  7356. _ACEOF
  7357. if ac_fn_c_try_link "$LINENO"; then :
  7358. lt_cv_ld_exported_symbols_list=yes
  7359. else
  7360. lt_cv_ld_exported_symbols_list=no
  7361. fi
  7362. rm -f core conftest.err conftest.$ac_objext \
  7363. conftest$ac_exeext conftest.$ac_ext
  7364. LDFLAGS="$save_LDFLAGS"
  7365. fi
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7367. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7369. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7370. if ${lt_cv_ld_force_load+:} false; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. lt_cv_ld_force_load=no
  7374. cat > conftest.c << _LT_EOF
  7375. int forced_loaded() { return 2;}
  7376. _LT_EOF
  7377. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7378. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7379. echo "$AR cru libconftest.a conftest.o" >&5
  7380. $AR cru libconftest.a conftest.o 2>&5
  7381. echo "$RANLIB libconftest.a" >&5
  7382. $RANLIB libconftest.a 2>&5
  7383. cat > conftest.c << _LT_EOF
  7384. int main() { return 0;}
  7385. _LT_EOF
  7386. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7387. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7388. _lt_result=$?
  7389. if test -s conftest.err && $GREP force_load conftest.err; then
  7390. cat conftest.err >&5
  7391. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7392. lt_cv_ld_force_load=yes
  7393. else
  7394. cat conftest.err >&5
  7395. fi
  7396. rm -f conftest.err libconftest.a conftest conftest.c
  7397. rm -rf conftest.dSYM
  7398. fi
  7399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7400. $as_echo "$lt_cv_ld_force_load" >&6; }
  7401. case $host_os in
  7402. rhapsody* | darwin1.[012])
  7403. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7404. darwin1.*)
  7405. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7406. darwin*) # darwin 5.x on
  7407. # if running on 10.5 or later, the deployment target defaults
  7408. # to the OS version, if on x86, and 10.4, the deployment
  7409. # target defaults to 10.4. Don't you love it?
  7410. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7411. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7412. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7413. 10.[012]*)
  7414. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7415. 10.*)
  7416. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7417. esac
  7418. ;;
  7419. esac
  7420. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7421. _lt_dar_single_mod='$single_module'
  7422. fi
  7423. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7424. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7425. else
  7426. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7427. fi
  7428. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7429. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7430. else
  7431. _lt_dsymutil=
  7432. fi
  7433. ;;
  7434. esac
  7435. for ac_header in dlfcn.h
  7436. do :
  7437. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7438. "
  7439. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7440. cat >>confdefs.h <<_ACEOF
  7441. #define HAVE_DLFCN_H 1
  7442. _ACEOF
  7443. fi
  7444. done
  7445. # Set options
  7446. # Check whether --enable-static was given.
  7447. if test "${enable_static+set}" = set; then :
  7448. enableval=$enable_static; p=${PACKAGE-default}
  7449. case $enableval in
  7450. yes) enable_static=yes ;;
  7451. no) enable_static=no ;;
  7452. *)
  7453. enable_static=no
  7454. # Look at the argument we got. We use all the common list separators.
  7455. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7456. for pkg in $enableval; do
  7457. IFS="$lt_save_ifs"
  7458. if test "X$pkg" = "X$p"; then
  7459. enable_static=yes
  7460. fi
  7461. done
  7462. IFS="$lt_save_ifs"
  7463. ;;
  7464. esac
  7465. else
  7466. enable_static=no
  7467. fi
  7468. # Check whether --with-pic was given.
  7469. if test "${with_pic+set}" = set; then :
  7470. withval=$with_pic; lt_p=${PACKAGE-default}
  7471. case $withval in
  7472. yes|no) pic_mode=$withval ;;
  7473. *)
  7474. pic_mode=default
  7475. # Look at the argument we got. We use all the common list separators.
  7476. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7477. for lt_pkg in $withval; do
  7478. IFS="$lt_save_ifs"
  7479. if test "X$lt_pkg" = "X$lt_p"; then
  7480. pic_mode=yes
  7481. fi
  7482. done
  7483. IFS="$lt_save_ifs"
  7484. ;;
  7485. esac
  7486. else
  7487. pic_mode=default
  7488. fi
  7489. test -z "$pic_mode" && pic_mode=yes
  7490. enable_dlopen=no
  7491. enable_win32_dll=no
  7492. # Check whether --enable-shared was given.
  7493. if test "${enable_shared+set}" = set; then :
  7494. enableval=$enable_shared; p=${PACKAGE-default}
  7495. case $enableval in
  7496. yes) enable_shared=yes ;;
  7497. no) enable_shared=no ;;
  7498. *)
  7499. enable_shared=no
  7500. # Look at the argument we got. We use all the common list separators.
  7501. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7502. for pkg in $enableval; do
  7503. IFS="$lt_save_ifs"
  7504. if test "X$pkg" = "X$p"; then
  7505. enable_shared=yes
  7506. fi
  7507. done
  7508. IFS="$lt_save_ifs"
  7509. ;;
  7510. esac
  7511. else
  7512. enable_shared=yes
  7513. fi
  7514. # Check whether --enable-fast-install was given.
  7515. if test "${enable_fast_install+set}" = set; then :
  7516. enableval=$enable_fast_install; p=${PACKAGE-default}
  7517. case $enableval in
  7518. yes) enable_fast_install=yes ;;
  7519. no) enable_fast_install=no ;;
  7520. *)
  7521. enable_fast_install=no
  7522. # Look at the argument we got. We use all the common list separators.
  7523. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7524. for pkg in $enableval; do
  7525. IFS="$lt_save_ifs"
  7526. if test "X$pkg" = "X$p"; then
  7527. enable_fast_install=yes
  7528. fi
  7529. done
  7530. IFS="$lt_save_ifs"
  7531. ;;
  7532. esac
  7533. else
  7534. enable_fast_install=yes
  7535. fi
  7536. # This can be used to rebuild libtool when needed
  7537. LIBTOOL_DEPS="$ltmain"
  7538. # Always use our own libtool.
  7539. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7540. test -z "$LN_S" && LN_S="ln -s"
  7541. if test -n "${ZSH_VERSION+set}" ; then
  7542. setopt NO_GLOB_SUBST
  7543. fi
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7545. $as_echo_n "checking for objdir... " >&6; }
  7546. if ${lt_cv_objdir+:} false; then :
  7547. $as_echo_n "(cached) " >&6
  7548. else
  7549. rm -f .libs 2>/dev/null
  7550. mkdir .libs 2>/dev/null
  7551. if test -d .libs; then
  7552. lt_cv_objdir=.libs
  7553. else
  7554. # MS-DOS does not allow filenames that begin with a dot.
  7555. lt_cv_objdir=_libs
  7556. fi
  7557. rmdir .libs 2>/dev/null
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7560. $as_echo "$lt_cv_objdir" >&6; }
  7561. objdir=$lt_cv_objdir
  7562. cat >>confdefs.h <<_ACEOF
  7563. #define LT_OBJDIR "$lt_cv_objdir/"
  7564. _ACEOF
  7565. case $host_os in
  7566. aix3*)
  7567. # AIX sometimes has problems with the GCC collect2 program. For some
  7568. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7569. # vanish in a puff of smoke.
  7570. if test "X${COLLECT_NAMES+set}" != Xset; then
  7571. COLLECT_NAMES=
  7572. export COLLECT_NAMES
  7573. fi
  7574. ;;
  7575. esac
  7576. # Global variables:
  7577. ofile=libtool
  7578. can_build_shared=yes
  7579. # All known linkers require a `.a' archive for static linking (except MSVC,
  7580. # which needs '.lib').
  7581. libext=a
  7582. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7583. old_CC="$CC"
  7584. old_CFLAGS="$CFLAGS"
  7585. # Set sane defaults for various variables
  7586. test -z "$CC" && CC=cc
  7587. test -z "$LTCC" && LTCC=$CC
  7588. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7589. test -z "$LD" && LD=ld
  7590. test -z "$ac_objext" && ac_objext=o
  7591. for cc_temp in $compiler""; do
  7592. case $cc_temp in
  7593. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7594. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7595. \-*) ;;
  7596. *) break;;
  7597. esac
  7598. done
  7599. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7600. # Only perform the check for file, if the check method requires it
  7601. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7602. case $deplibs_check_method in
  7603. file_magic*)
  7604. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7606. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7607. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7608. $as_echo_n "(cached) " >&6
  7609. else
  7610. case $MAGIC_CMD in
  7611. [\\/*] | ?:[\\/]*)
  7612. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7613. ;;
  7614. *)
  7615. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7616. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7617. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7618. for ac_dir in $ac_dummy; do
  7619. IFS="$lt_save_ifs"
  7620. test -z "$ac_dir" && ac_dir=.
  7621. if test -f $ac_dir/${ac_tool_prefix}file; then
  7622. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7623. if test -n "$file_magic_test_file"; then
  7624. case $deplibs_check_method in
  7625. "file_magic "*)
  7626. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7627. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7628. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7629. $EGREP "$file_magic_regex" > /dev/null; then
  7630. :
  7631. else
  7632. cat <<_LT_EOF 1>&2
  7633. *** Warning: the command libtool uses to detect shared libraries,
  7634. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7635. *** The result is that libtool may fail to recognize shared libraries
  7636. *** as such. This will affect the creation of libtool libraries that
  7637. *** depend on shared libraries, but programs linked with such libtool
  7638. *** libraries will work regardless of this problem. Nevertheless, you
  7639. *** may want to report the problem to your system manager and/or to
  7640. *** bug-libtool@gnu.org
  7641. _LT_EOF
  7642. fi ;;
  7643. esac
  7644. fi
  7645. break
  7646. fi
  7647. done
  7648. IFS="$lt_save_ifs"
  7649. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7650. ;;
  7651. esac
  7652. fi
  7653. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7654. if test -n "$MAGIC_CMD"; then
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7656. $as_echo "$MAGIC_CMD" >&6; }
  7657. else
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7659. $as_echo "no" >&6; }
  7660. fi
  7661. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7662. if test -n "$ac_tool_prefix"; then
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7664. $as_echo_n "checking for file... " >&6; }
  7665. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7666. $as_echo_n "(cached) " >&6
  7667. else
  7668. case $MAGIC_CMD in
  7669. [\\/*] | ?:[\\/]*)
  7670. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7671. ;;
  7672. *)
  7673. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7674. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7675. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7676. for ac_dir in $ac_dummy; do
  7677. IFS="$lt_save_ifs"
  7678. test -z "$ac_dir" && ac_dir=.
  7679. if test -f $ac_dir/file; then
  7680. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7681. if test -n "$file_magic_test_file"; then
  7682. case $deplibs_check_method in
  7683. "file_magic "*)
  7684. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7685. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7686. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7687. $EGREP "$file_magic_regex" > /dev/null; then
  7688. :
  7689. else
  7690. cat <<_LT_EOF 1>&2
  7691. *** Warning: the command libtool uses to detect shared libraries,
  7692. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7693. *** The result is that libtool may fail to recognize shared libraries
  7694. *** as such. This will affect the creation of libtool libraries that
  7695. *** depend on shared libraries, but programs linked with such libtool
  7696. *** libraries will work regardless of this problem. Nevertheless, you
  7697. *** may want to report the problem to your system manager and/or to
  7698. *** bug-libtool@gnu.org
  7699. _LT_EOF
  7700. fi ;;
  7701. esac
  7702. fi
  7703. break
  7704. fi
  7705. done
  7706. IFS="$lt_save_ifs"
  7707. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7708. ;;
  7709. esac
  7710. fi
  7711. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7712. if test -n "$MAGIC_CMD"; then
  7713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7714. $as_echo "$MAGIC_CMD" >&6; }
  7715. else
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7717. $as_echo "no" >&6; }
  7718. fi
  7719. else
  7720. MAGIC_CMD=:
  7721. fi
  7722. fi
  7723. fi
  7724. ;;
  7725. esac
  7726. # Use C for the default configuration in the libtool script
  7727. lt_save_CC="$CC"
  7728. ac_ext=c
  7729. ac_cpp='$CPP $CPPFLAGS'
  7730. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7731. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7732. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7733. # Source file extension for C test sources.
  7734. ac_ext=c
  7735. # Object file extension for compiled C test sources.
  7736. objext=o
  7737. objext=$objext
  7738. # Code to be used in simple compile tests
  7739. lt_simple_compile_test_code="int some_variable = 0;"
  7740. # Code to be used in simple link tests
  7741. lt_simple_link_test_code='int main(){return(0);}'
  7742. # If no C compiler was specified, use CC.
  7743. LTCC=${LTCC-"$CC"}
  7744. # If no C compiler flags were specified, use CFLAGS.
  7745. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7746. # Allow CC to be a program name with arguments.
  7747. compiler=$CC
  7748. # Save the default compiler, since it gets overwritten when the other
  7749. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7750. compiler_DEFAULT=$CC
  7751. # save warnings/boilerplate of simple test code
  7752. ac_outfile=conftest.$ac_objext
  7753. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7754. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7755. _lt_compiler_boilerplate=`cat conftest.err`
  7756. $RM conftest*
  7757. ac_outfile=conftest.$ac_objext
  7758. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7759. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7760. _lt_linker_boilerplate=`cat conftest.err`
  7761. $RM -r conftest*
  7762. ## CAVEAT EMPTOR:
  7763. ## There is no encapsulation within the following macros, do not change
  7764. ## the running order or otherwise move them around unless you know exactly
  7765. ## what you are doing...
  7766. if test -n "$compiler"; then
  7767. lt_prog_compiler_no_builtin_flag=
  7768. if test "$GCC" = yes; then
  7769. case $cc_basename in
  7770. nvcc*)
  7771. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7772. *)
  7773. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7774. esac
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7776. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7777. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7778. $as_echo_n "(cached) " >&6
  7779. else
  7780. lt_cv_prog_compiler_rtti_exceptions=no
  7781. ac_outfile=conftest.$ac_objext
  7782. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7783. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7784. # Insert the option either (1) after the last *FLAGS variable, or
  7785. # (2) before a word containing "conftest.", or (3) at the end.
  7786. # Note that $ac_compile itself does not contain backslashes and begins
  7787. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7788. # The option is referenced via a variable to avoid confusing sed.
  7789. lt_compile=`echo "$ac_compile" | $SED \
  7790. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7791. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7792. -e 's:$: $lt_compiler_flag:'`
  7793. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7794. (eval "$lt_compile" 2>conftest.err)
  7795. ac_status=$?
  7796. cat conftest.err >&5
  7797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7798. if (exit $ac_status) && test -s "$ac_outfile"; then
  7799. # The compiler can only warn and ignore the option if not recognized
  7800. # So say no if there are warnings other than the usual output.
  7801. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7802. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7803. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7804. lt_cv_prog_compiler_rtti_exceptions=yes
  7805. fi
  7806. fi
  7807. $RM conftest*
  7808. fi
  7809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7810. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7811. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7812. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7813. else
  7814. :
  7815. fi
  7816. fi
  7817. lt_prog_compiler_wl=
  7818. lt_prog_compiler_pic=
  7819. lt_prog_compiler_static=
  7820. if test "$GCC" = yes; then
  7821. lt_prog_compiler_wl='-Wl,'
  7822. lt_prog_compiler_static='-static'
  7823. case $host_os in
  7824. aix*)
  7825. # All AIX code is PIC.
  7826. if test "$host_cpu" = ia64; then
  7827. # AIX 5 now supports IA64 processor
  7828. lt_prog_compiler_static='-Bstatic'
  7829. fi
  7830. ;;
  7831. amigaos*)
  7832. case $host_cpu in
  7833. powerpc)
  7834. # see comment about AmigaOS4 .so support
  7835. lt_prog_compiler_pic='-fPIC'
  7836. ;;
  7837. m68k)
  7838. # FIXME: we need at least 68020 code to build shared libraries, but
  7839. # adding the `-m68020' flag to GCC prevents building anything better,
  7840. # like `-m68040'.
  7841. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7842. ;;
  7843. esac
  7844. ;;
  7845. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7846. # PIC is the default for these OSes.
  7847. ;;
  7848. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7849. # This hack is so that the source file can tell whether it is being
  7850. # built for inclusion in a dll (and should export symbols for example).
  7851. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7852. # (--disable-auto-import) libraries
  7853. lt_prog_compiler_pic='-DDLL_EXPORT'
  7854. ;;
  7855. darwin* | rhapsody*)
  7856. # PIC is the default on this platform
  7857. # Common symbols not allowed in MH_DYLIB files
  7858. lt_prog_compiler_pic='-fno-common'
  7859. ;;
  7860. haiku*)
  7861. # PIC is the default for Haiku.
  7862. # The "-static" flag exists, but is broken.
  7863. lt_prog_compiler_static=
  7864. ;;
  7865. hpux*)
  7866. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7867. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7868. # sets the default TLS model and affects inlining.
  7869. case $host_cpu in
  7870. hppa*64*)
  7871. # +Z the default
  7872. ;;
  7873. *)
  7874. lt_prog_compiler_pic='-fPIC'
  7875. ;;
  7876. esac
  7877. ;;
  7878. interix[3-9]*)
  7879. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7880. # Instead, we relocate shared libraries at runtime.
  7881. ;;
  7882. msdosdjgpp*)
  7883. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7884. # on systems that don't support them.
  7885. lt_prog_compiler_can_build_shared=no
  7886. enable_shared=no
  7887. ;;
  7888. *nto* | *qnx*)
  7889. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7890. # it will coredump.
  7891. lt_prog_compiler_pic='-fPIC -shared'
  7892. ;;
  7893. sysv4*MP*)
  7894. if test -d /usr/nec; then
  7895. lt_prog_compiler_pic=-Kconform_pic
  7896. fi
  7897. ;;
  7898. *)
  7899. lt_prog_compiler_pic='-fPIC'
  7900. ;;
  7901. esac
  7902. case $cc_basename in
  7903. nvcc*) # Cuda Compiler Driver 2.2
  7904. lt_prog_compiler_wl='-Xlinker '
  7905. if test -n "$lt_prog_compiler_pic"; then
  7906. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7907. fi
  7908. ;;
  7909. esac
  7910. else
  7911. # PORTME Check for flag to pass linker flags through the system compiler.
  7912. case $host_os in
  7913. aix*)
  7914. lt_prog_compiler_wl='-Wl,'
  7915. if test "$host_cpu" = ia64; then
  7916. # AIX 5 now supports IA64 processor
  7917. lt_prog_compiler_static='-Bstatic'
  7918. else
  7919. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7920. fi
  7921. ;;
  7922. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7923. # This hack is so that the source file can tell whether it is being
  7924. # built for inclusion in a dll (and should export symbols for example).
  7925. lt_prog_compiler_pic='-DDLL_EXPORT'
  7926. ;;
  7927. hpux9* | hpux10* | hpux11*)
  7928. lt_prog_compiler_wl='-Wl,'
  7929. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7930. # not for PA HP-UX.
  7931. case $host_cpu in
  7932. hppa*64*|ia64*)
  7933. # +Z the default
  7934. ;;
  7935. *)
  7936. lt_prog_compiler_pic='+Z'
  7937. ;;
  7938. esac
  7939. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7940. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7941. ;;
  7942. irix5* | irix6* | nonstopux*)
  7943. lt_prog_compiler_wl='-Wl,'
  7944. # PIC (with -KPIC) is the default.
  7945. lt_prog_compiler_static='-non_shared'
  7946. ;;
  7947. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7948. case $cc_basename in
  7949. # old Intel for x86_64 which still supported -KPIC.
  7950. ecc*)
  7951. lt_prog_compiler_wl='-Wl,'
  7952. lt_prog_compiler_pic='-KPIC'
  7953. lt_prog_compiler_static='-static'
  7954. ;;
  7955. # icc used to be incompatible with GCC.
  7956. # ICC 10 doesn't accept -KPIC any more.
  7957. icc* | ifort*)
  7958. lt_prog_compiler_wl='-Wl,'
  7959. lt_prog_compiler_pic='-fPIC'
  7960. lt_prog_compiler_static='-static'
  7961. ;;
  7962. # Lahey Fortran 8.1.
  7963. lf95*)
  7964. lt_prog_compiler_wl='-Wl,'
  7965. lt_prog_compiler_pic='--shared'
  7966. lt_prog_compiler_static='--static'
  7967. ;;
  7968. nagfor*)
  7969. # NAG Fortran compiler
  7970. lt_prog_compiler_wl='-Wl,-Wl,,'
  7971. lt_prog_compiler_pic='-PIC'
  7972. lt_prog_compiler_static='-Bstatic'
  7973. ;;
  7974. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7975. # Portland Group compilers (*not* the Pentium gcc compiler,
  7976. # which looks to be a dead project)
  7977. lt_prog_compiler_wl='-Wl,'
  7978. lt_prog_compiler_pic='-fpic'
  7979. lt_prog_compiler_static='-Bstatic'
  7980. ;;
  7981. ccc*)
  7982. lt_prog_compiler_wl='-Wl,'
  7983. # All Alpha code is PIC.
  7984. lt_prog_compiler_static='-non_shared'
  7985. ;;
  7986. xl* | bgxl* | bgf* | mpixl*)
  7987. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7988. lt_prog_compiler_wl='-Wl,'
  7989. lt_prog_compiler_pic='-qpic'
  7990. lt_prog_compiler_static='-qstaticlink'
  7991. ;;
  7992. *)
  7993. case `$CC -V 2>&1 | sed 5q` in
  7994. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7995. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7996. lt_prog_compiler_pic='-KPIC'
  7997. lt_prog_compiler_static='-Bstatic'
  7998. lt_prog_compiler_wl=''
  7999. ;;
  8000. *Sun\ F* | *Sun*Fortran*)
  8001. lt_prog_compiler_pic='-KPIC'
  8002. lt_prog_compiler_static='-Bstatic'
  8003. lt_prog_compiler_wl='-Qoption ld '
  8004. ;;
  8005. *Sun\ C*)
  8006. # Sun C 5.9
  8007. lt_prog_compiler_pic='-KPIC'
  8008. lt_prog_compiler_static='-Bstatic'
  8009. lt_prog_compiler_wl='-Wl,'
  8010. ;;
  8011. *Intel*\ [CF]*Compiler*)
  8012. lt_prog_compiler_wl='-Wl,'
  8013. lt_prog_compiler_pic='-fPIC'
  8014. lt_prog_compiler_static='-static'
  8015. ;;
  8016. *Portland\ Group*)
  8017. lt_prog_compiler_wl='-Wl,'
  8018. lt_prog_compiler_pic='-fpic'
  8019. lt_prog_compiler_static='-Bstatic'
  8020. ;;
  8021. esac
  8022. ;;
  8023. esac
  8024. ;;
  8025. newsos6)
  8026. lt_prog_compiler_pic='-KPIC'
  8027. lt_prog_compiler_static='-Bstatic'
  8028. ;;
  8029. *nto* | *qnx*)
  8030. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8031. # it will coredump.
  8032. lt_prog_compiler_pic='-fPIC -shared'
  8033. ;;
  8034. osf3* | osf4* | osf5*)
  8035. lt_prog_compiler_wl='-Wl,'
  8036. # All OSF/1 code is PIC.
  8037. lt_prog_compiler_static='-non_shared'
  8038. ;;
  8039. rdos*)
  8040. lt_prog_compiler_static='-non_shared'
  8041. ;;
  8042. solaris*)
  8043. lt_prog_compiler_pic='-KPIC'
  8044. lt_prog_compiler_static='-Bstatic'
  8045. case $cc_basename in
  8046. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8047. lt_prog_compiler_wl='-Qoption ld ';;
  8048. *)
  8049. lt_prog_compiler_wl='-Wl,';;
  8050. esac
  8051. ;;
  8052. sunos4*)
  8053. lt_prog_compiler_wl='-Qoption ld '
  8054. lt_prog_compiler_pic='-PIC'
  8055. lt_prog_compiler_static='-Bstatic'
  8056. ;;
  8057. sysv4 | sysv4.2uw2* | sysv4.3*)
  8058. lt_prog_compiler_wl='-Wl,'
  8059. lt_prog_compiler_pic='-KPIC'
  8060. lt_prog_compiler_static='-Bstatic'
  8061. ;;
  8062. sysv4*MP*)
  8063. if test -d /usr/nec ;then
  8064. lt_prog_compiler_pic='-Kconform_pic'
  8065. lt_prog_compiler_static='-Bstatic'
  8066. fi
  8067. ;;
  8068. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8069. lt_prog_compiler_wl='-Wl,'
  8070. lt_prog_compiler_pic='-KPIC'
  8071. lt_prog_compiler_static='-Bstatic'
  8072. ;;
  8073. unicos*)
  8074. lt_prog_compiler_wl='-Wl,'
  8075. lt_prog_compiler_can_build_shared=no
  8076. ;;
  8077. uts4*)
  8078. lt_prog_compiler_pic='-pic'
  8079. lt_prog_compiler_static='-Bstatic'
  8080. ;;
  8081. *)
  8082. lt_prog_compiler_can_build_shared=no
  8083. ;;
  8084. esac
  8085. fi
  8086. case $host_os in
  8087. # For platforms which do not support PIC, -DPIC is meaningless:
  8088. *djgpp*)
  8089. lt_prog_compiler_pic=
  8090. ;;
  8091. *)
  8092. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8093. ;;
  8094. esac
  8095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8096. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8097. if ${lt_cv_prog_compiler_pic+:} false; then :
  8098. $as_echo_n "(cached) " >&6
  8099. else
  8100. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8101. fi
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8103. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8104. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8105. #
  8106. # Check to make sure the PIC flag actually works.
  8107. #
  8108. if test -n "$lt_prog_compiler_pic"; then
  8109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8110. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8111. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8112. $as_echo_n "(cached) " >&6
  8113. else
  8114. lt_cv_prog_compiler_pic_works=no
  8115. ac_outfile=conftest.$ac_objext
  8116. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8117. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8118. # Insert the option either (1) after the last *FLAGS variable, or
  8119. # (2) before a word containing "conftest.", or (3) at the end.
  8120. # Note that $ac_compile itself does not contain backslashes and begins
  8121. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8122. # The option is referenced via a variable to avoid confusing sed.
  8123. lt_compile=`echo "$ac_compile" | $SED \
  8124. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8125. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8126. -e 's:$: $lt_compiler_flag:'`
  8127. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8128. (eval "$lt_compile" 2>conftest.err)
  8129. ac_status=$?
  8130. cat conftest.err >&5
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. if (exit $ac_status) && test -s "$ac_outfile"; then
  8133. # The compiler can only warn and ignore the option if not recognized
  8134. # So say no if there are warnings other than the usual output.
  8135. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8136. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8137. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8138. lt_cv_prog_compiler_pic_works=yes
  8139. fi
  8140. fi
  8141. $RM conftest*
  8142. fi
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8144. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8145. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8146. case $lt_prog_compiler_pic in
  8147. "" | " "*) ;;
  8148. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8149. esac
  8150. else
  8151. lt_prog_compiler_pic=
  8152. lt_prog_compiler_can_build_shared=no
  8153. fi
  8154. fi
  8155. #
  8156. # Check to make sure the static flag actually works.
  8157. #
  8158. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8160. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8161. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8162. $as_echo_n "(cached) " >&6
  8163. else
  8164. lt_cv_prog_compiler_static_works=no
  8165. save_LDFLAGS="$LDFLAGS"
  8166. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8167. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8168. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8169. # The linker can only warn and ignore the option if not recognized
  8170. # So say no if there are warnings
  8171. if test -s conftest.err; then
  8172. # Append any errors to the config.log.
  8173. cat conftest.err 1>&5
  8174. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8176. if diff conftest.exp conftest.er2 >/dev/null; then
  8177. lt_cv_prog_compiler_static_works=yes
  8178. fi
  8179. else
  8180. lt_cv_prog_compiler_static_works=yes
  8181. fi
  8182. fi
  8183. $RM -r conftest*
  8184. LDFLAGS="$save_LDFLAGS"
  8185. fi
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8187. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8188. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8189. :
  8190. else
  8191. lt_prog_compiler_static=
  8192. fi
  8193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8194. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8195. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8196. $as_echo_n "(cached) " >&6
  8197. else
  8198. lt_cv_prog_compiler_c_o=no
  8199. $RM -r conftest 2>/dev/null
  8200. mkdir conftest
  8201. cd conftest
  8202. mkdir out
  8203. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8204. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8205. # Insert the option either (1) after the last *FLAGS variable, or
  8206. # (2) before a word containing "conftest.", or (3) at the end.
  8207. # Note that $ac_compile itself does not contain backslashes and begins
  8208. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8209. lt_compile=`echo "$ac_compile" | $SED \
  8210. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8211. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8212. -e 's:$: $lt_compiler_flag:'`
  8213. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8214. (eval "$lt_compile" 2>out/conftest.err)
  8215. ac_status=$?
  8216. cat out/conftest.err >&5
  8217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8218. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8219. then
  8220. # The compiler can only warn and ignore the option if not recognized
  8221. # So say no if there are warnings
  8222. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8223. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8224. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8225. lt_cv_prog_compiler_c_o=yes
  8226. fi
  8227. fi
  8228. chmod u+w . 2>&5
  8229. $RM conftest*
  8230. # SGI C++ compiler will create directory out/ii_files/ for
  8231. # template instantiation
  8232. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8233. $RM out/* && rmdir out
  8234. cd ..
  8235. $RM -r conftest
  8236. $RM conftest*
  8237. fi
  8238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8239. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8241. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8242. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8243. $as_echo_n "(cached) " >&6
  8244. else
  8245. lt_cv_prog_compiler_c_o=no
  8246. $RM -r conftest 2>/dev/null
  8247. mkdir conftest
  8248. cd conftest
  8249. mkdir out
  8250. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8251. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8252. # Insert the option either (1) after the last *FLAGS variable, or
  8253. # (2) before a word containing "conftest.", or (3) at the end.
  8254. # Note that $ac_compile itself does not contain backslashes and begins
  8255. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8256. lt_compile=`echo "$ac_compile" | $SED \
  8257. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8258. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8259. -e 's:$: $lt_compiler_flag:'`
  8260. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8261. (eval "$lt_compile" 2>out/conftest.err)
  8262. ac_status=$?
  8263. cat out/conftest.err >&5
  8264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8265. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8266. then
  8267. # The compiler can only warn and ignore the option if not recognized
  8268. # So say no if there are warnings
  8269. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8270. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8271. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8272. lt_cv_prog_compiler_c_o=yes
  8273. fi
  8274. fi
  8275. chmod u+w . 2>&5
  8276. $RM conftest*
  8277. # SGI C++ compiler will create directory out/ii_files/ for
  8278. # template instantiation
  8279. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8280. $RM out/* && rmdir out
  8281. cd ..
  8282. $RM -r conftest
  8283. $RM conftest*
  8284. fi
  8285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8286. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8287. hard_links="nottested"
  8288. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8289. # do not overwrite the value of need_locks provided by the user
  8290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8291. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8292. hard_links=yes
  8293. $RM conftest*
  8294. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8295. touch conftest.a
  8296. ln conftest.a conftest.b 2>&5 || hard_links=no
  8297. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8299. $as_echo "$hard_links" >&6; }
  8300. if test "$hard_links" = no; then
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8302. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8303. need_locks=warn
  8304. fi
  8305. else
  8306. need_locks=no
  8307. fi
  8308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8309. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8310. runpath_var=
  8311. allow_undefined_flag=
  8312. always_export_symbols=no
  8313. archive_cmds=
  8314. archive_expsym_cmds=
  8315. compiler_needs_object=no
  8316. enable_shared_with_static_runtimes=no
  8317. export_dynamic_flag_spec=
  8318. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8319. hardcode_automatic=no
  8320. hardcode_direct=no
  8321. hardcode_direct_absolute=no
  8322. hardcode_libdir_flag_spec=
  8323. hardcode_libdir_separator=
  8324. hardcode_minus_L=no
  8325. hardcode_shlibpath_var=unsupported
  8326. inherit_rpath=no
  8327. link_all_deplibs=unknown
  8328. module_cmds=
  8329. module_expsym_cmds=
  8330. old_archive_from_new_cmds=
  8331. old_archive_from_expsyms_cmds=
  8332. thread_safe_flag_spec=
  8333. whole_archive_flag_spec=
  8334. # include_expsyms should be a list of space-separated symbols to be *always*
  8335. # included in the symbol list
  8336. include_expsyms=
  8337. # exclude_expsyms can be an extended regexp of symbols to exclude
  8338. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8339. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8340. # as well as any symbol that contains `d'.
  8341. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8342. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8343. # platforms (ab)use it in PIC code, but their linkers get confused if
  8344. # the symbol is explicitly referenced. Since portable code cannot
  8345. # rely on this symbol name, it's probably fine to never include it in
  8346. # preloaded symbol tables.
  8347. # Exclude shared library initialization/finalization symbols.
  8348. extract_expsyms_cmds=
  8349. case $host_os in
  8350. cygwin* | mingw* | pw32* | cegcc*)
  8351. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8352. # When not using gcc, we currently assume that we are using
  8353. # Microsoft Visual C++.
  8354. if test "$GCC" != yes; then
  8355. with_gnu_ld=no
  8356. fi
  8357. ;;
  8358. interix*)
  8359. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8360. with_gnu_ld=yes
  8361. ;;
  8362. openbsd*)
  8363. with_gnu_ld=no
  8364. ;;
  8365. esac
  8366. ld_shlibs=yes
  8367. # On some targets, GNU ld is compatible enough with the native linker
  8368. # that we're better off using the native interface for both.
  8369. lt_use_gnu_ld_interface=no
  8370. if test "$with_gnu_ld" = yes; then
  8371. case $host_os in
  8372. aix*)
  8373. # The AIX port of GNU ld has always aspired to compatibility
  8374. # with the native linker. However, as the warning in the GNU ld
  8375. # block says, versions before 2.19.5* couldn't really create working
  8376. # shared libraries, regardless of the interface used.
  8377. case `$LD -v 2>&1` in
  8378. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8379. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8380. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8381. *)
  8382. lt_use_gnu_ld_interface=yes
  8383. ;;
  8384. esac
  8385. ;;
  8386. *)
  8387. lt_use_gnu_ld_interface=yes
  8388. ;;
  8389. esac
  8390. fi
  8391. if test "$lt_use_gnu_ld_interface" = yes; then
  8392. # If archive_cmds runs LD, not CC, wlarc should be empty
  8393. wlarc='${wl}'
  8394. # Set some defaults for GNU ld with shared library support. These
  8395. # are reset later if shared libraries are not supported. Putting them
  8396. # here allows them to be overridden if necessary.
  8397. runpath_var=LD_RUN_PATH
  8398. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8399. export_dynamic_flag_spec='${wl}--export-dynamic'
  8400. # ancient GNU ld didn't support --whole-archive et. al.
  8401. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8402. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8403. else
  8404. whole_archive_flag_spec=
  8405. fi
  8406. supports_anon_versioning=no
  8407. case `$LD -v 2>&1` in
  8408. *GNU\ gold*) supports_anon_versioning=yes ;;
  8409. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8410. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8411. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8412. *\ 2.11.*) ;; # other 2.11 versions
  8413. *) supports_anon_versioning=yes ;;
  8414. esac
  8415. # See if GNU ld supports shared libraries.
  8416. case $host_os in
  8417. aix[3-9]*)
  8418. # On AIX/PPC, the GNU linker is very broken
  8419. if test "$host_cpu" != ia64; then
  8420. ld_shlibs=no
  8421. cat <<_LT_EOF 1>&2
  8422. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8423. *** to be unable to reliably create shared libraries on AIX.
  8424. *** Therefore, libtool is disabling shared libraries support. If you
  8425. *** really care for shared libraries, you may want to install binutils
  8426. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8427. *** You will then need to restart the configuration process.
  8428. _LT_EOF
  8429. fi
  8430. ;;
  8431. amigaos*)
  8432. case $host_cpu in
  8433. powerpc)
  8434. # see comment about AmigaOS4 .so support
  8435. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8436. archive_expsym_cmds=''
  8437. ;;
  8438. m68k)
  8439. 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)'
  8440. hardcode_libdir_flag_spec='-L$libdir'
  8441. hardcode_minus_L=yes
  8442. ;;
  8443. esac
  8444. ;;
  8445. beos*)
  8446. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8447. allow_undefined_flag=unsupported
  8448. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8449. # support --undefined. This deserves some investigation. FIXME
  8450. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8451. else
  8452. ld_shlibs=no
  8453. fi
  8454. ;;
  8455. cygwin* | mingw* | pw32* | cegcc*)
  8456. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8457. # as there is no search path for DLLs.
  8458. hardcode_libdir_flag_spec='-L$libdir'
  8459. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8460. allow_undefined_flag=unsupported
  8461. always_export_symbols=no
  8462. enable_shared_with_static_runtimes=yes
  8463. 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'
  8464. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8465. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8466. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8467. # If the export-symbols file already is a .def file (1st line
  8468. # is EXPORTS), use it as is; otherwise, prepend...
  8469. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8470. cp $export_symbols $output_objdir/$soname.def;
  8471. else
  8472. echo EXPORTS > $output_objdir/$soname.def;
  8473. cat $export_symbols >> $output_objdir/$soname.def;
  8474. fi~
  8475. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8476. else
  8477. ld_shlibs=no
  8478. fi
  8479. ;;
  8480. haiku*)
  8481. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8482. link_all_deplibs=yes
  8483. ;;
  8484. interix[3-9]*)
  8485. hardcode_direct=no
  8486. hardcode_shlibpath_var=no
  8487. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8488. export_dynamic_flag_spec='${wl}-E'
  8489. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8490. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8491. # default) and relocated if they conflict, which is a slow very memory
  8492. # consuming and fragmenting process. To avoid this, we pick a random,
  8493. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8494. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8495. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8496. 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'
  8497. ;;
  8498. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8499. tmp_diet=no
  8500. if test "$host_os" = linux-dietlibc; then
  8501. case $cc_basename in
  8502. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8503. esac
  8504. fi
  8505. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8506. && test "$tmp_diet" = no
  8507. then
  8508. tmp_addflag=' $pic_flag'
  8509. tmp_sharedflag='-shared'
  8510. case $cc_basename,$host_cpu in
  8511. pgcc*) # Portland Group C compiler
  8512. 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'
  8513. tmp_addflag=' $pic_flag'
  8514. ;;
  8515. pgf77* | pgf90* | pgf95* | pgfortran*)
  8516. # Portland Group f77 and f90 compilers
  8517. 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'
  8518. tmp_addflag=' $pic_flag -Mnomain' ;;
  8519. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8520. tmp_addflag=' -i_dynamic' ;;
  8521. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8522. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8523. ifc* | ifort*) # Intel Fortran compiler
  8524. tmp_addflag=' -nofor_main' ;;
  8525. lf95*) # Lahey Fortran 8.1
  8526. whole_archive_flag_spec=
  8527. tmp_sharedflag='--shared' ;;
  8528. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8529. tmp_sharedflag='-qmkshrobj'
  8530. tmp_addflag= ;;
  8531. nvcc*) # Cuda Compiler Driver 2.2
  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. compiler_needs_object=yes
  8534. ;;
  8535. esac
  8536. case `$CC -V 2>&1 | sed 5q` in
  8537. *Sun\ C*) # Sun C 5.9
  8538. 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'
  8539. compiler_needs_object=yes
  8540. tmp_sharedflag='-G' ;;
  8541. *Sun\ F*) # Sun Fortran 8.3
  8542. tmp_sharedflag='-G' ;;
  8543. esac
  8544. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8545. if test "x$supports_anon_versioning" = xyes; then
  8546. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8547. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8548. echo "local: *; };" >> $output_objdir/$libname.ver~
  8549. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8550. fi
  8551. case $cc_basename in
  8552. xlf* | bgf* | bgxlf* | mpixlf*)
  8553. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8554. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8555. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8556. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8557. if test "x$supports_anon_versioning" = xyes; then
  8558. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8559. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8560. echo "local: *; };" >> $output_objdir/$libname.ver~
  8561. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8562. fi
  8563. ;;
  8564. esac
  8565. else
  8566. ld_shlibs=no
  8567. fi
  8568. ;;
  8569. netbsd*)
  8570. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8571. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8572. wlarc=
  8573. else
  8574. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8575. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8576. fi
  8577. ;;
  8578. solaris*)
  8579. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8580. ld_shlibs=no
  8581. cat <<_LT_EOF 1>&2
  8582. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8583. *** create shared libraries on Solaris systems. Therefore, libtool
  8584. *** is disabling shared libraries support. We urge you to upgrade GNU
  8585. *** binutils to release 2.9.1 or newer. Another option is to modify
  8586. *** your PATH or compiler configuration so that the native linker is
  8587. *** used, and then restart.
  8588. _LT_EOF
  8589. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8590. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8591. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8592. else
  8593. ld_shlibs=no
  8594. fi
  8595. ;;
  8596. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8597. case `$LD -v 2>&1` in
  8598. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8599. ld_shlibs=no
  8600. cat <<_LT_EOF 1>&2
  8601. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8602. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8603. *** is disabling shared libraries support. We urge you to upgrade GNU
  8604. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8605. *** your PATH or compiler configuration so that the native linker is
  8606. *** used, and then restart.
  8607. _LT_EOF
  8608. ;;
  8609. *)
  8610. # For security reasons, it is highly recommended that you always
  8611. # use absolute paths for naming shared libraries, and exclude the
  8612. # DT_RUNPATH tag from executables and libraries. But doing so
  8613. # requires that you compile everything twice, which is a pain.
  8614. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8615. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8616. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8617. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8618. else
  8619. ld_shlibs=no
  8620. fi
  8621. ;;
  8622. esac
  8623. ;;
  8624. sunos4*)
  8625. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8626. wlarc=
  8627. hardcode_direct=yes
  8628. hardcode_shlibpath_var=no
  8629. ;;
  8630. *)
  8631. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8632. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8633. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8634. else
  8635. ld_shlibs=no
  8636. fi
  8637. ;;
  8638. esac
  8639. if test "$ld_shlibs" = no; then
  8640. runpath_var=
  8641. hardcode_libdir_flag_spec=
  8642. export_dynamic_flag_spec=
  8643. whole_archive_flag_spec=
  8644. fi
  8645. else
  8646. # PORTME fill in a description of your system's linker (not GNU ld)
  8647. case $host_os in
  8648. aix3*)
  8649. allow_undefined_flag=unsupported
  8650. always_export_symbols=yes
  8651. 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'
  8652. # Note: this linker hardcodes the directories in LIBPATH if there
  8653. # are no directories specified by -L.
  8654. hardcode_minus_L=yes
  8655. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8656. # Neither direct hardcoding nor static linking is supported with a
  8657. # broken collect2.
  8658. hardcode_direct=unsupported
  8659. fi
  8660. ;;
  8661. aix[4-9]*)
  8662. if test "$host_cpu" = ia64; then
  8663. # On IA64, the linker does run time linking by default, so we don't
  8664. # have to do anything special.
  8665. aix_use_runtimelinking=no
  8666. exp_sym_flag='-Bexport'
  8667. no_entry_flag=""
  8668. else
  8669. # If we're using GNU nm, then we don't want the "-C" option.
  8670. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8671. # Also, AIX nm treats weak defined symbols like other global
  8672. # defined symbols, whereas GNU nm marks them as "W".
  8673. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8674. 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'
  8675. else
  8676. 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'
  8677. fi
  8678. aix_use_runtimelinking=no
  8679. # Test if we are trying to use run time linking or normal
  8680. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8681. # need to do runtime linking.
  8682. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8683. for ld_flag in $LDFLAGS; do
  8684. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8685. aix_use_runtimelinking=yes
  8686. break
  8687. fi
  8688. done
  8689. ;;
  8690. esac
  8691. exp_sym_flag='-bexport'
  8692. no_entry_flag='-bnoentry'
  8693. fi
  8694. # When large executables or shared objects are built, AIX ld can
  8695. # have problems creating the table of contents. If linking a library
  8696. # or program results in "error TOC overflow" add -mminimal-toc to
  8697. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8698. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8699. archive_cmds=''
  8700. hardcode_direct=yes
  8701. hardcode_direct_absolute=yes
  8702. hardcode_libdir_separator=':'
  8703. link_all_deplibs=yes
  8704. file_list_spec='${wl}-f,'
  8705. if test "$GCC" = yes; then
  8706. case $host_os in aix4.[012]|aix4.[012].*)
  8707. # We only want to do this on AIX 4.2 and lower, the check
  8708. # below for broken collect2 doesn't work under 4.3+
  8709. collect2name=`${CC} -print-prog-name=collect2`
  8710. if test -f "$collect2name" &&
  8711. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8712. then
  8713. # We have reworked collect2
  8714. :
  8715. else
  8716. # We have old collect2
  8717. hardcode_direct=unsupported
  8718. # It fails to find uninstalled libraries when the uninstalled
  8719. # path is not listed in the libpath. Setting hardcode_minus_L
  8720. # to unsupported forces relinking
  8721. hardcode_minus_L=yes
  8722. hardcode_libdir_flag_spec='-L$libdir'
  8723. hardcode_libdir_separator=
  8724. fi
  8725. ;;
  8726. esac
  8727. shared_flag='-shared'
  8728. if test "$aix_use_runtimelinking" = yes; then
  8729. shared_flag="$shared_flag "'${wl}-G'
  8730. fi
  8731. else
  8732. # not using gcc
  8733. if test "$host_cpu" = ia64; then
  8734. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8735. # chokes on -Wl,-G. The following line is correct:
  8736. shared_flag='-G'
  8737. else
  8738. if test "$aix_use_runtimelinking" = yes; then
  8739. shared_flag='${wl}-G'
  8740. else
  8741. shared_flag='${wl}-bM:SRE'
  8742. fi
  8743. fi
  8744. fi
  8745. export_dynamic_flag_spec='${wl}-bexpall'
  8746. # It seems that -bexpall does not export symbols beginning with
  8747. # underscore (_), so it is better to generate a list of symbols to export.
  8748. always_export_symbols=yes
  8749. if test "$aix_use_runtimelinking" = yes; then
  8750. # Warning - without using the other runtime loading flags (-brtl),
  8751. # -berok will link without error, but may produce a broken library.
  8752. allow_undefined_flag='-berok'
  8753. # Determine the default libpath from the value encoded in an
  8754. # empty executable.
  8755. if test "${lt_cv_aix_libpath+set}" = set; then
  8756. aix_libpath=$lt_cv_aix_libpath
  8757. else
  8758. if ${lt_cv_aix_libpath_+:} false; then :
  8759. $as_echo_n "(cached) " >&6
  8760. else
  8761. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8762. /* end confdefs.h. */
  8763. int
  8764. main ()
  8765. {
  8766. ;
  8767. return 0;
  8768. }
  8769. _ACEOF
  8770. if ac_fn_c_try_link "$LINENO"; then :
  8771. lt_aix_libpath_sed='
  8772. /Import File Strings/,/^$/ {
  8773. /^0/ {
  8774. s/^0 *\([^ ]*\) *$/\1/
  8775. p
  8776. }
  8777. }'
  8778. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8779. # Check for a 64-bit object if we didn't find anything.
  8780. if test -z "$lt_cv_aix_libpath_"; then
  8781. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8782. fi
  8783. fi
  8784. rm -f core conftest.err conftest.$ac_objext \
  8785. conftest$ac_exeext conftest.$ac_ext
  8786. if test -z "$lt_cv_aix_libpath_"; then
  8787. lt_cv_aix_libpath_="/usr/lib:/lib"
  8788. fi
  8789. fi
  8790. aix_libpath=$lt_cv_aix_libpath_
  8791. fi
  8792. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8793. 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"
  8794. else
  8795. if test "$host_cpu" = ia64; then
  8796. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8797. allow_undefined_flag="-z nodefs"
  8798. 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"
  8799. else
  8800. # Determine the default libpath from the value encoded in an
  8801. # empty executable.
  8802. if test "${lt_cv_aix_libpath+set}" = set; then
  8803. aix_libpath=$lt_cv_aix_libpath
  8804. else
  8805. if ${lt_cv_aix_libpath_+:} false; then :
  8806. $as_echo_n "(cached) " >&6
  8807. else
  8808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8809. /* end confdefs.h. */
  8810. int
  8811. main ()
  8812. {
  8813. ;
  8814. return 0;
  8815. }
  8816. _ACEOF
  8817. if ac_fn_c_try_link "$LINENO"; then :
  8818. lt_aix_libpath_sed='
  8819. /Import File Strings/,/^$/ {
  8820. /^0/ {
  8821. s/^0 *\([^ ]*\) *$/\1/
  8822. p
  8823. }
  8824. }'
  8825. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8826. # Check for a 64-bit object if we didn't find anything.
  8827. if test -z "$lt_cv_aix_libpath_"; then
  8828. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8829. fi
  8830. fi
  8831. rm -f core conftest.err conftest.$ac_objext \
  8832. conftest$ac_exeext conftest.$ac_ext
  8833. if test -z "$lt_cv_aix_libpath_"; then
  8834. lt_cv_aix_libpath_="/usr/lib:/lib"
  8835. fi
  8836. fi
  8837. aix_libpath=$lt_cv_aix_libpath_
  8838. fi
  8839. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8840. # Warning - without using the other run time loading flags,
  8841. # -berok will link without error, but may produce a broken library.
  8842. no_undefined_flag=' ${wl}-bernotok'
  8843. allow_undefined_flag=' ${wl}-berok'
  8844. if test "$with_gnu_ld" = yes; then
  8845. # We only use this code for GNU lds that support --whole-archive.
  8846. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8847. else
  8848. # Exported symbols can be pulled into shared objects from archives
  8849. whole_archive_flag_spec='$convenience'
  8850. fi
  8851. archive_cmds_need_lc=yes
  8852. # This is similar to how AIX traditionally builds its shared libraries.
  8853. 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'
  8854. fi
  8855. fi
  8856. ;;
  8857. amigaos*)
  8858. case $host_cpu in
  8859. powerpc)
  8860. # see comment about AmigaOS4 .so support
  8861. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8862. archive_expsym_cmds=''
  8863. ;;
  8864. m68k)
  8865. 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)'
  8866. hardcode_libdir_flag_spec='-L$libdir'
  8867. hardcode_minus_L=yes
  8868. ;;
  8869. esac
  8870. ;;
  8871. bsdi[45]*)
  8872. export_dynamic_flag_spec=-rdynamic
  8873. ;;
  8874. cygwin* | mingw* | pw32* | cegcc*)
  8875. # When not using gcc, we currently assume that we are using
  8876. # Microsoft Visual C++.
  8877. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8878. # no search path for DLLs.
  8879. case $cc_basename in
  8880. cl*)
  8881. # Native MSVC
  8882. hardcode_libdir_flag_spec=' '
  8883. allow_undefined_flag=unsupported
  8884. always_export_symbols=yes
  8885. file_list_spec='@'
  8886. # Tell ltmain to make .lib files, not .a files.
  8887. libext=lib
  8888. # Tell ltmain to make .dll files, not .so files.
  8889. shrext_cmds=".dll"
  8890. # FIXME: Setting linknames here is a bad hack.
  8891. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8892. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8893. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8894. else
  8895. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8896. fi~
  8897. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8898. linknames='
  8899. # The linker will not automatically build a static lib if we build a DLL.
  8900. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8901. enable_shared_with_static_runtimes=yes
  8902. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8903. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8904. # Don't use ranlib
  8905. old_postinstall_cmds='chmod 644 $oldlib'
  8906. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8907. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8908. case $lt_outputfile in
  8909. *.exe|*.EXE) ;;
  8910. *)
  8911. lt_outputfile="$lt_outputfile.exe"
  8912. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8913. ;;
  8914. esac~
  8915. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8916. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8917. $RM "$lt_outputfile.manifest";
  8918. fi'
  8919. ;;
  8920. *)
  8921. # Assume MSVC wrapper
  8922. hardcode_libdir_flag_spec=' '
  8923. allow_undefined_flag=unsupported
  8924. # Tell ltmain to make .lib files, not .a files.
  8925. libext=lib
  8926. # Tell ltmain to make .dll files, not .so files.
  8927. shrext_cmds=".dll"
  8928. # FIXME: Setting linknames here is a bad hack.
  8929. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8930. # The linker will automatically build a .lib file if we build a DLL.
  8931. old_archive_from_new_cmds='true'
  8932. # FIXME: Should let the user specify the lib program.
  8933. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8934. enable_shared_with_static_runtimes=yes
  8935. ;;
  8936. esac
  8937. ;;
  8938. darwin* | rhapsody*)
  8939. archive_cmds_need_lc=no
  8940. hardcode_direct=no
  8941. hardcode_automatic=yes
  8942. hardcode_shlibpath_var=unsupported
  8943. if test "$lt_cv_ld_force_load" = "yes"; then
  8944. 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\"`'
  8945. else
  8946. whole_archive_flag_spec=''
  8947. fi
  8948. link_all_deplibs=yes
  8949. allow_undefined_flag="$_lt_dar_allow_undefined"
  8950. case $cc_basename in
  8951. ifort*) _lt_dar_can_shared=yes ;;
  8952. *) _lt_dar_can_shared=$GCC ;;
  8953. esac
  8954. if test "$_lt_dar_can_shared" = "yes"; then
  8955. output_verbose_link_cmd=func_echo_all
  8956. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8957. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8958. 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}"
  8959. 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}"
  8960. else
  8961. ld_shlibs=no
  8962. fi
  8963. ;;
  8964. dgux*)
  8965. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8966. hardcode_libdir_flag_spec='-L$libdir'
  8967. hardcode_shlibpath_var=no
  8968. ;;
  8969. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8970. # support. Future versions do this automatically, but an explicit c++rt0.o
  8971. # does not break anything, and helps significantly (at the cost of a little
  8972. # extra space).
  8973. freebsd2.2*)
  8974. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8975. hardcode_libdir_flag_spec='-R$libdir'
  8976. hardcode_direct=yes
  8977. hardcode_shlibpath_var=no
  8978. ;;
  8979. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8980. freebsd2.*)
  8981. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8982. hardcode_direct=yes
  8983. hardcode_minus_L=yes
  8984. hardcode_shlibpath_var=no
  8985. ;;
  8986. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8987. freebsd* | dragonfly*)
  8988. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8989. hardcode_libdir_flag_spec='-R$libdir'
  8990. hardcode_direct=yes
  8991. hardcode_shlibpath_var=no
  8992. ;;
  8993. hpux9*)
  8994. if test "$GCC" = yes; then
  8995. 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'
  8996. else
  8997. 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'
  8998. fi
  8999. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9000. hardcode_libdir_separator=:
  9001. hardcode_direct=yes
  9002. # hardcode_minus_L: Not really in the search PATH,
  9003. # but as the default location of the library.
  9004. hardcode_minus_L=yes
  9005. export_dynamic_flag_spec='${wl}-E'
  9006. ;;
  9007. hpux10*)
  9008. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9009. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9010. else
  9011. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9012. fi
  9013. if test "$with_gnu_ld" = no; then
  9014. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9015. hardcode_libdir_separator=:
  9016. hardcode_direct=yes
  9017. hardcode_direct_absolute=yes
  9018. export_dynamic_flag_spec='${wl}-E'
  9019. # hardcode_minus_L: Not really in the search PATH,
  9020. # but as the default location of the library.
  9021. hardcode_minus_L=yes
  9022. fi
  9023. ;;
  9024. hpux11*)
  9025. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9026. case $host_cpu in
  9027. hppa*64*)
  9028. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9029. ;;
  9030. ia64*)
  9031. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9032. ;;
  9033. *)
  9034. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9035. ;;
  9036. esac
  9037. else
  9038. case $host_cpu in
  9039. hppa*64*)
  9040. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9041. ;;
  9042. ia64*)
  9043. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9044. ;;
  9045. *)
  9046. # Older versions of the 11.00 compiler do not understand -b yet
  9047. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9049. $as_echo_n "checking if $CC understands -b... " >&6; }
  9050. if ${lt_cv_prog_compiler__b+:} false; then :
  9051. $as_echo_n "(cached) " >&6
  9052. else
  9053. lt_cv_prog_compiler__b=no
  9054. save_LDFLAGS="$LDFLAGS"
  9055. LDFLAGS="$LDFLAGS -b"
  9056. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9057. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9058. # The linker can only warn and ignore the option if not recognized
  9059. # So say no if there are warnings
  9060. if test -s conftest.err; then
  9061. # Append any errors to the config.log.
  9062. cat conftest.err 1>&5
  9063. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9065. if diff conftest.exp conftest.er2 >/dev/null; then
  9066. lt_cv_prog_compiler__b=yes
  9067. fi
  9068. else
  9069. lt_cv_prog_compiler__b=yes
  9070. fi
  9071. fi
  9072. $RM -r conftest*
  9073. LDFLAGS="$save_LDFLAGS"
  9074. fi
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9076. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9077. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9078. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9079. else
  9080. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9081. fi
  9082. ;;
  9083. esac
  9084. fi
  9085. if test "$with_gnu_ld" = no; then
  9086. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9087. hardcode_libdir_separator=:
  9088. case $host_cpu in
  9089. hppa*64*|ia64*)
  9090. hardcode_direct=no
  9091. hardcode_shlibpath_var=no
  9092. ;;
  9093. *)
  9094. hardcode_direct=yes
  9095. hardcode_direct_absolute=yes
  9096. export_dynamic_flag_spec='${wl}-E'
  9097. # hardcode_minus_L: Not really in the search PATH,
  9098. # but as the default location of the library.
  9099. hardcode_minus_L=yes
  9100. ;;
  9101. esac
  9102. fi
  9103. ;;
  9104. irix5* | irix6* | nonstopux*)
  9105. if test "$GCC" = yes; then
  9106. 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'
  9107. # Try to use the -exported_symbol ld option, if it does not
  9108. # work, assume that -exports_file does not work either and
  9109. # implicitly export all symbols.
  9110. # This should be the same for all languages, so no per-tag cache variable.
  9111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9112. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9113. if ${lt_cv_irix_exported_symbol+:} false; then :
  9114. $as_echo_n "(cached) " >&6
  9115. else
  9116. save_LDFLAGS="$LDFLAGS"
  9117. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9119. /* end confdefs.h. */
  9120. int foo (void) { return 0; }
  9121. _ACEOF
  9122. if ac_fn_c_try_link "$LINENO"; then :
  9123. lt_cv_irix_exported_symbol=yes
  9124. else
  9125. lt_cv_irix_exported_symbol=no
  9126. fi
  9127. rm -f core conftest.err conftest.$ac_objext \
  9128. conftest$ac_exeext conftest.$ac_ext
  9129. LDFLAGS="$save_LDFLAGS"
  9130. fi
  9131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9132. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9133. if test "$lt_cv_irix_exported_symbol" = yes; then
  9134. 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'
  9135. fi
  9136. else
  9137. 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'
  9138. 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'
  9139. fi
  9140. archive_cmds_need_lc='no'
  9141. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9142. hardcode_libdir_separator=:
  9143. inherit_rpath=yes
  9144. link_all_deplibs=yes
  9145. ;;
  9146. netbsd*)
  9147. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9148. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9149. else
  9150. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9151. fi
  9152. hardcode_libdir_flag_spec='-R$libdir'
  9153. hardcode_direct=yes
  9154. hardcode_shlibpath_var=no
  9155. ;;
  9156. newsos6)
  9157. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9158. hardcode_direct=yes
  9159. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9160. hardcode_libdir_separator=:
  9161. hardcode_shlibpath_var=no
  9162. ;;
  9163. *nto* | *qnx*)
  9164. ;;
  9165. openbsd*)
  9166. if test -f /usr/libexec/ld.so; then
  9167. hardcode_direct=yes
  9168. hardcode_shlibpath_var=no
  9169. hardcode_direct_absolute=yes
  9170. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9171. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9172. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9173. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9174. export_dynamic_flag_spec='${wl}-E'
  9175. else
  9176. case $host_os in
  9177. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9178. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9179. hardcode_libdir_flag_spec='-R$libdir'
  9180. ;;
  9181. *)
  9182. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9183. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9184. ;;
  9185. esac
  9186. fi
  9187. else
  9188. ld_shlibs=no
  9189. fi
  9190. ;;
  9191. os2*)
  9192. hardcode_libdir_flag_spec='-L$libdir'
  9193. hardcode_minus_L=yes
  9194. allow_undefined_flag=unsupported
  9195. 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'
  9196. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9197. ;;
  9198. osf3*)
  9199. if test "$GCC" = yes; then
  9200. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9201. 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'
  9202. else
  9203. allow_undefined_flag=' -expect_unresolved \*'
  9204. 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'
  9205. fi
  9206. archive_cmds_need_lc='no'
  9207. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9208. hardcode_libdir_separator=:
  9209. ;;
  9210. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9211. if test "$GCC" = yes; then
  9212. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9213. 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'
  9214. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9215. else
  9216. allow_undefined_flag=' -expect_unresolved \*'
  9217. 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'
  9218. 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~
  9219. $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'
  9220. # Both c and cxx compiler support -rpath directly
  9221. hardcode_libdir_flag_spec='-rpath $libdir'
  9222. fi
  9223. archive_cmds_need_lc='no'
  9224. hardcode_libdir_separator=:
  9225. ;;
  9226. solaris*)
  9227. no_undefined_flag=' -z defs'
  9228. if test "$GCC" = yes; then
  9229. wlarc='${wl}'
  9230. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9231. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9232. $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'
  9233. else
  9234. case `$CC -V 2>&1` in
  9235. *"Compilers 5.0"*)
  9236. wlarc=''
  9237. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9238. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9239. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9240. ;;
  9241. *)
  9242. wlarc='${wl}'
  9243. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9244. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9245. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9246. ;;
  9247. esac
  9248. fi
  9249. hardcode_libdir_flag_spec='-R$libdir'
  9250. hardcode_shlibpath_var=no
  9251. case $host_os in
  9252. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9253. *)
  9254. # The compiler driver will combine and reorder linker options,
  9255. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9256. # but is careful enough not to reorder.
  9257. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9258. if test "$GCC" = yes; then
  9259. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9260. else
  9261. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9262. fi
  9263. ;;
  9264. esac
  9265. link_all_deplibs=yes
  9266. ;;
  9267. sunos4*)
  9268. if test "x$host_vendor" = xsequent; then
  9269. # Use $CC to link under sequent, because it throws in some extra .o
  9270. # files that make .init and .fini sections work.
  9271. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9272. else
  9273. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9274. fi
  9275. hardcode_libdir_flag_spec='-L$libdir'
  9276. hardcode_direct=yes
  9277. hardcode_minus_L=yes
  9278. hardcode_shlibpath_var=no
  9279. ;;
  9280. sysv4)
  9281. case $host_vendor in
  9282. sni)
  9283. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9284. hardcode_direct=yes # is this really true???
  9285. ;;
  9286. siemens)
  9287. ## LD is ld it makes a PLAMLIB
  9288. ## CC just makes a GrossModule.
  9289. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9290. reload_cmds='$CC -r -o $output$reload_objs'
  9291. hardcode_direct=no
  9292. ;;
  9293. motorola)
  9294. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9295. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9296. ;;
  9297. esac
  9298. runpath_var='LD_RUN_PATH'
  9299. hardcode_shlibpath_var=no
  9300. ;;
  9301. sysv4.3*)
  9302. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9303. hardcode_shlibpath_var=no
  9304. export_dynamic_flag_spec='-Bexport'
  9305. ;;
  9306. sysv4*MP*)
  9307. if test -d /usr/nec; then
  9308. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9309. hardcode_shlibpath_var=no
  9310. runpath_var=LD_RUN_PATH
  9311. hardcode_runpath_var=yes
  9312. ld_shlibs=yes
  9313. fi
  9314. ;;
  9315. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9316. no_undefined_flag='${wl}-z,text'
  9317. archive_cmds_need_lc=no
  9318. hardcode_shlibpath_var=no
  9319. runpath_var='LD_RUN_PATH'
  9320. if test "$GCC" = yes; then
  9321. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9322. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9323. else
  9324. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9325. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9326. fi
  9327. ;;
  9328. sysv5* | sco3.2v5* | sco5v6*)
  9329. # Note: We can NOT use -z defs as we might desire, because we do not
  9330. # link with -lc, and that would cause any symbols used from libc to
  9331. # always be unresolved, which means just about no library would
  9332. # ever link correctly. If we're not using GNU ld we use -z text
  9333. # though, which does catch some bad symbols but isn't as heavy-handed
  9334. # as -z defs.
  9335. no_undefined_flag='${wl}-z,text'
  9336. allow_undefined_flag='${wl}-z,nodefs'
  9337. archive_cmds_need_lc=no
  9338. hardcode_shlibpath_var=no
  9339. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9340. hardcode_libdir_separator=':'
  9341. link_all_deplibs=yes
  9342. export_dynamic_flag_spec='${wl}-Bexport'
  9343. runpath_var='LD_RUN_PATH'
  9344. if test "$GCC" = yes; then
  9345. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9346. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9347. else
  9348. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9349. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9350. fi
  9351. ;;
  9352. uts4*)
  9353. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9354. hardcode_libdir_flag_spec='-L$libdir'
  9355. hardcode_shlibpath_var=no
  9356. ;;
  9357. *)
  9358. ld_shlibs=no
  9359. ;;
  9360. esac
  9361. if test x$host_vendor = xsni; then
  9362. case $host in
  9363. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9364. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9365. ;;
  9366. esac
  9367. fi
  9368. fi
  9369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9370. $as_echo "$ld_shlibs" >&6; }
  9371. test "$ld_shlibs" = no && can_build_shared=no
  9372. with_gnu_ld=$with_gnu_ld
  9373. #
  9374. # Do we need to explicitly link libc?
  9375. #
  9376. case "x$archive_cmds_need_lc" in
  9377. x|xyes)
  9378. # Assume -lc should be added
  9379. archive_cmds_need_lc=yes
  9380. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9381. case $archive_cmds in
  9382. *'~'*)
  9383. # FIXME: we may have to deal with multi-command sequences.
  9384. ;;
  9385. '$CC '*)
  9386. # Test whether the compiler implicitly links with -lc since on some
  9387. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9388. # to ld, don't add -lc before -lgcc.
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9390. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9391. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9392. $as_echo_n "(cached) " >&6
  9393. else
  9394. $RM conftest*
  9395. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9396. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9397. (eval $ac_compile) 2>&5
  9398. ac_status=$?
  9399. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9400. test $ac_status = 0; } 2>conftest.err; then
  9401. soname=conftest
  9402. lib=conftest
  9403. libobjs=conftest.$ac_objext
  9404. deplibs=
  9405. wl=$lt_prog_compiler_wl
  9406. pic_flag=$lt_prog_compiler_pic
  9407. compiler_flags=-v
  9408. linker_flags=-v
  9409. verstring=
  9410. output_objdir=.
  9411. libname=conftest
  9412. lt_save_allow_undefined_flag=$allow_undefined_flag
  9413. allow_undefined_flag=
  9414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9415. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9416. ac_status=$?
  9417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9418. test $ac_status = 0; }
  9419. then
  9420. lt_cv_archive_cmds_need_lc=no
  9421. else
  9422. lt_cv_archive_cmds_need_lc=yes
  9423. fi
  9424. allow_undefined_flag=$lt_save_allow_undefined_flag
  9425. else
  9426. cat conftest.err 1>&5
  9427. fi
  9428. $RM conftest*
  9429. fi
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9431. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9432. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9433. ;;
  9434. esac
  9435. fi
  9436. ;;
  9437. esac
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9439. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9440. if test "$GCC" = yes; then
  9441. case $host_os in
  9442. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9443. *) lt_awk_arg="/^libraries:/" ;;
  9444. esac
  9445. case $host_os in
  9446. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9447. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9448. esac
  9449. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9450. case $lt_search_path_spec in
  9451. *\;*)
  9452. # if the path contains ";" then we assume it to be the separator
  9453. # otherwise default to the standard path separator (i.e. ":") - it is
  9454. # assumed that no part of a normal pathname contains ";" but that should
  9455. # okay in the real world where ";" in dirpaths is itself problematic.
  9456. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9457. ;;
  9458. *)
  9459. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9460. ;;
  9461. esac
  9462. # Ok, now we have the path, separated by spaces, we can step through it
  9463. # and add multilib dir if necessary.
  9464. lt_tmp_lt_search_path_spec=
  9465. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9466. for lt_sys_path in $lt_search_path_spec; do
  9467. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9468. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9469. else
  9470. test -d "$lt_sys_path" && \
  9471. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9472. fi
  9473. done
  9474. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9475. BEGIN {RS=" "; FS="/|\n";} {
  9476. lt_foo="";
  9477. lt_count=0;
  9478. for (lt_i = NF; lt_i > 0; lt_i--) {
  9479. if ($lt_i != "" && $lt_i != ".") {
  9480. if ($lt_i == "..") {
  9481. lt_count++;
  9482. } else {
  9483. if (lt_count == 0) {
  9484. lt_foo="/" $lt_i lt_foo;
  9485. } else {
  9486. lt_count--;
  9487. }
  9488. }
  9489. }
  9490. }
  9491. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9492. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9493. }'`
  9494. # AWK program above erroneously prepends '/' to C:/dos/paths
  9495. # for these hosts.
  9496. case $host_os in
  9497. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9498. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9499. esac
  9500. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9501. else
  9502. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9503. fi
  9504. library_names_spec=
  9505. libname_spec='lib$name'
  9506. soname_spec=
  9507. shrext_cmds=".so"
  9508. postinstall_cmds=
  9509. postuninstall_cmds=
  9510. finish_cmds=
  9511. finish_eval=
  9512. shlibpath_var=
  9513. shlibpath_overrides_runpath=unknown
  9514. version_type=none
  9515. dynamic_linker="$host_os ld.so"
  9516. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9517. need_lib_prefix=unknown
  9518. hardcode_into_libs=no
  9519. # when you set need_version to no, make sure it does not cause -set_version
  9520. # flags to be left without arguments
  9521. need_version=unknown
  9522. case $host_os in
  9523. aix3*)
  9524. version_type=linux # correct to gnu/linux during the next big refactor
  9525. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9526. shlibpath_var=LIBPATH
  9527. # AIX 3 has no versioning support, so we append a major version to the name.
  9528. soname_spec='${libname}${release}${shared_ext}$major'
  9529. ;;
  9530. aix[4-9]*)
  9531. version_type=linux # correct to gnu/linux during the next big refactor
  9532. need_lib_prefix=no
  9533. need_version=no
  9534. hardcode_into_libs=yes
  9535. if test "$host_cpu" = ia64; then
  9536. # AIX 5 supports IA64
  9537. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9538. shlibpath_var=LD_LIBRARY_PATH
  9539. else
  9540. # With GCC up to 2.95.x, collect2 would create an import file
  9541. # for dependence libraries. The import file would start with
  9542. # the line `#! .'. This would cause the generated library to
  9543. # depend on `.', always an invalid library. This was fixed in
  9544. # development snapshots of GCC prior to 3.0.
  9545. case $host_os in
  9546. aix4 | aix4.[01] | aix4.[01].*)
  9547. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9548. echo ' yes '
  9549. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9550. :
  9551. else
  9552. can_build_shared=no
  9553. fi
  9554. ;;
  9555. esac
  9556. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9557. # soname into executable. Probably we can add versioning support to
  9558. # collect2, so additional links can be useful in future.
  9559. if test "$aix_use_runtimelinking" = yes; then
  9560. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9561. # instead of lib<name>.a to let people know that these are not
  9562. # typical AIX shared libraries.
  9563. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9564. else
  9565. # We preserve .a as extension for shared libraries through AIX4.2
  9566. # and later when we are not doing run time linking.
  9567. library_names_spec='${libname}${release}.a $libname.a'
  9568. soname_spec='${libname}${release}${shared_ext}$major'
  9569. fi
  9570. shlibpath_var=LIBPATH
  9571. fi
  9572. ;;
  9573. amigaos*)
  9574. case $host_cpu in
  9575. powerpc)
  9576. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9577. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9579. ;;
  9580. m68k)
  9581. library_names_spec='$libname.ixlibrary $libname.a'
  9582. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9583. 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'
  9584. ;;
  9585. esac
  9586. ;;
  9587. beos*)
  9588. library_names_spec='${libname}${shared_ext}'
  9589. dynamic_linker="$host_os ld.so"
  9590. shlibpath_var=LIBRARY_PATH
  9591. ;;
  9592. bsdi[45]*)
  9593. version_type=linux # correct to gnu/linux during the next big refactor
  9594. need_version=no
  9595. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9596. soname_spec='${libname}${release}${shared_ext}$major'
  9597. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9600. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9601. # the default ld.so.conf also contains /usr/contrib/lib and
  9602. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9603. # libtool to hard-code these into programs
  9604. ;;
  9605. cygwin* | mingw* | pw32* | cegcc*)
  9606. version_type=windows
  9607. shrext_cmds=".dll"
  9608. need_version=no
  9609. need_lib_prefix=no
  9610. case $GCC,$cc_basename in
  9611. yes,*)
  9612. # gcc
  9613. library_names_spec='$libname.dll.a'
  9614. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9615. postinstall_cmds='base_file=`basename \${file}`~
  9616. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9617. dldir=$destdir/`dirname \$dlpath`~
  9618. test -d \$dldir || mkdir -p \$dldir~
  9619. $install_prog $dir/$dlname \$dldir/$dlname~
  9620. chmod a+x \$dldir/$dlname~
  9621. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9622. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9623. fi'
  9624. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9625. dlpath=$dir/\$dldll~
  9626. $RM \$dlpath'
  9627. shlibpath_overrides_runpath=yes
  9628. case $host_os in
  9629. cygwin*)
  9630. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9631. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9632. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9633. ;;
  9634. mingw* | cegcc*)
  9635. # MinGW DLLs use traditional 'lib' prefix
  9636. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9637. ;;
  9638. pw32*)
  9639. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9640. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9641. ;;
  9642. esac
  9643. dynamic_linker='Win32 ld.exe'
  9644. ;;
  9645. *,cl*)
  9646. # Native MSVC
  9647. libname_spec='$name'
  9648. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9649. library_names_spec='${libname}.dll.lib'
  9650. case $build_os in
  9651. mingw*)
  9652. sys_lib_search_path_spec=
  9653. lt_save_ifs=$IFS
  9654. IFS=';'
  9655. for lt_path in $LIB
  9656. do
  9657. IFS=$lt_save_ifs
  9658. # Let DOS variable expansion print the short 8.3 style file name.
  9659. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9660. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9661. done
  9662. IFS=$lt_save_ifs
  9663. # Convert to MSYS style.
  9664. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9665. ;;
  9666. cygwin*)
  9667. # Convert to unix form, then to dos form, then back to unix form
  9668. # but this time dos style (no spaces!) so that the unix form looks
  9669. # like /cygdrive/c/PROGRA~1:/cygdr...
  9670. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9671. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9672. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9673. ;;
  9674. *)
  9675. sys_lib_search_path_spec="$LIB"
  9676. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9677. # It is most probably a Windows format PATH.
  9678. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9679. else
  9680. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9681. fi
  9682. # FIXME: find the short name or the path components, as spaces are
  9683. # common. (e.g. "Program Files" -> "PROGRA~1")
  9684. ;;
  9685. esac
  9686. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9687. postinstall_cmds='base_file=`basename \${file}`~
  9688. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9689. dldir=$destdir/`dirname \$dlpath`~
  9690. test -d \$dldir || mkdir -p \$dldir~
  9691. $install_prog $dir/$dlname \$dldir/$dlname'
  9692. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9693. dlpath=$dir/\$dldll~
  9694. $RM \$dlpath'
  9695. shlibpath_overrides_runpath=yes
  9696. dynamic_linker='Win32 link.exe'
  9697. ;;
  9698. *)
  9699. # Assume MSVC wrapper
  9700. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9701. dynamic_linker='Win32 ld.exe'
  9702. ;;
  9703. esac
  9704. # FIXME: first we should search . and the directory the executable is in
  9705. shlibpath_var=PATH
  9706. ;;
  9707. darwin* | rhapsody*)
  9708. dynamic_linker="$host_os dyld"
  9709. version_type=darwin
  9710. need_lib_prefix=no
  9711. need_version=no
  9712. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9713. soname_spec='${libname}${release}${major}$shared_ext'
  9714. shlibpath_overrides_runpath=yes
  9715. shlibpath_var=DYLD_LIBRARY_PATH
  9716. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9717. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9718. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9719. ;;
  9720. dgux*)
  9721. version_type=linux # correct to gnu/linux during the next big refactor
  9722. need_lib_prefix=no
  9723. need_version=no
  9724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9725. soname_spec='${libname}${release}${shared_ext}$major'
  9726. shlibpath_var=LD_LIBRARY_PATH
  9727. ;;
  9728. freebsd* | dragonfly*)
  9729. # DragonFly does not have aout. When/if they implement a new
  9730. # versioning mechanism, adjust this.
  9731. if test -x /usr/bin/objformat; then
  9732. objformat=`/usr/bin/objformat`
  9733. else
  9734. case $host_os in
  9735. freebsd[23].*) objformat=aout ;;
  9736. *) objformat=elf ;;
  9737. esac
  9738. fi
  9739. version_type=freebsd-$objformat
  9740. case $version_type in
  9741. freebsd-elf*)
  9742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9743. need_version=no
  9744. need_lib_prefix=no
  9745. ;;
  9746. freebsd-*)
  9747. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9748. need_version=yes
  9749. ;;
  9750. esac
  9751. shlibpath_var=LD_LIBRARY_PATH
  9752. case $host_os in
  9753. freebsd2.*)
  9754. shlibpath_overrides_runpath=yes
  9755. ;;
  9756. freebsd3.[01]* | freebsdelf3.[01]*)
  9757. shlibpath_overrides_runpath=yes
  9758. hardcode_into_libs=yes
  9759. ;;
  9760. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9761. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9762. shlibpath_overrides_runpath=no
  9763. hardcode_into_libs=yes
  9764. ;;
  9765. *) # from 4.6 on, and DragonFly
  9766. shlibpath_overrides_runpath=yes
  9767. hardcode_into_libs=yes
  9768. ;;
  9769. esac
  9770. ;;
  9771. gnu*)
  9772. version_type=linux # correct to gnu/linux during the next big refactor
  9773. need_lib_prefix=no
  9774. need_version=no
  9775. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9776. soname_spec='${libname}${release}${shared_ext}$major'
  9777. shlibpath_var=LD_LIBRARY_PATH
  9778. shlibpath_overrides_runpath=no
  9779. hardcode_into_libs=yes
  9780. ;;
  9781. haiku*)
  9782. version_type=linux # correct to gnu/linux during the next big refactor
  9783. need_lib_prefix=no
  9784. need_version=no
  9785. dynamic_linker="$host_os runtime_loader"
  9786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9787. soname_spec='${libname}${release}${shared_ext}$major'
  9788. shlibpath_var=LIBRARY_PATH
  9789. shlibpath_overrides_runpath=yes
  9790. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. hpux9* | hpux10* | hpux11*)
  9794. # Give a soname corresponding to the major version so that dld.sl refuses to
  9795. # link against other versions.
  9796. version_type=sunos
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. case $host_cpu in
  9800. ia64*)
  9801. shrext_cmds='.so'
  9802. hardcode_into_libs=yes
  9803. dynamic_linker="$host_os dld.so"
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  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. if test "X$HPUX_IA64_MODE" = X32; then
  9809. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9810. else
  9811. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9812. fi
  9813. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9814. ;;
  9815. hppa*64*)
  9816. shrext_cmds='.sl'
  9817. hardcode_into_libs=yes
  9818. dynamic_linker="$host_os dld.sl"
  9819. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9820. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9822. soname_spec='${libname}${release}${shared_ext}$major'
  9823. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9824. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9825. ;;
  9826. *)
  9827. shrext_cmds='.sl'
  9828. dynamic_linker="$host_os dld.sl"
  9829. shlibpath_var=SHLIB_PATH
  9830. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9832. soname_spec='${libname}${release}${shared_ext}$major'
  9833. ;;
  9834. esac
  9835. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9836. postinstall_cmds='chmod 555 $lib'
  9837. # or fails outright, so override atomically:
  9838. install_override_mode=555
  9839. ;;
  9840. interix[3-9]*)
  9841. version_type=linux # correct to gnu/linux during the next big refactor
  9842. need_lib_prefix=no
  9843. need_version=no
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9845. soname_spec='${libname}${release}${shared_ext}$major'
  9846. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9847. shlibpath_var=LD_LIBRARY_PATH
  9848. shlibpath_overrides_runpath=no
  9849. hardcode_into_libs=yes
  9850. ;;
  9851. irix5* | irix6* | nonstopux*)
  9852. case $host_os in
  9853. nonstopux*) version_type=nonstopux ;;
  9854. *)
  9855. if test "$lt_cv_prog_gnu_ld" = yes; then
  9856. version_type=linux # correct to gnu/linux during the next big refactor
  9857. else
  9858. version_type=irix
  9859. fi ;;
  9860. esac
  9861. need_lib_prefix=no
  9862. need_version=no
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9865. case $host_os in
  9866. irix5* | nonstopux*)
  9867. libsuff= shlibsuff=
  9868. ;;
  9869. *)
  9870. case $LD in # libtool.m4 will add one of these switches to LD
  9871. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9872. libsuff= shlibsuff= libmagic=32-bit;;
  9873. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9874. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9875. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9876. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9877. *) libsuff= shlibsuff= libmagic=never-match;;
  9878. esac
  9879. ;;
  9880. esac
  9881. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9882. shlibpath_overrides_runpath=no
  9883. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9884. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9885. hardcode_into_libs=yes
  9886. ;;
  9887. # No shared lib support for Linux oldld, aout, or coff.
  9888. linux*oldld* | linux*aout* | linux*coff*)
  9889. dynamic_linker=no
  9890. ;;
  9891. # This must be glibc/ELF.
  9892. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9893. version_type=linux # correct to gnu/linux during the next big refactor
  9894. need_lib_prefix=no
  9895. need_version=no
  9896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9897. soname_spec='${libname}${release}${shared_ext}$major'
  9898. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9899. shlibpath_var=LD_LIBRARY_PATH
  9900. shlibpath_overrides_runpath=no
  9901. # Some binutils ld are patched to set DT_RUNPATH
  9902. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9903. $as_echo_n "(cached) " >&6
  9904. else
  9905. lt_cv_shlibpath_overrides_runpath=no
  9906. save_LDFLAGS=$LDFLAGS
  9907. save_libdir=$libdir
  9908. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9909. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9911. /* end confdefs.h. */
  9912. int
  9913. main ()
  9914. {
  9915. ;
  9916. return 0;
  9917. }
  9918. _ACEOF
  9919. if ac_fn_c_try_link "$LINENO"; then :
  9920. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9921. lt_cv_shlibpath_overrides_runpath=yes
  9922. fi
  9923. fi
  9924. rm -f core conftest.err conftest.$ac_objext \
  9925. conftest$ac_exeext conftest.$ac_ext
  9926. LDFLAGS=$save_LDFLAGS
  9927. libdir=$save_libdir
  9928. fi
  9929. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9930. # This implies no fast_install, which is unacceptable.
  9931. # Some rework will be needed to allow for fast_install
  9932. # before this can be enabled.
  9933. hardcode_into_libs=yes
  9934. # Append ld.so.conf contents to the search path
  9935. if test -f /etc/ld.so.conf; then
  9936. 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' ' '`
  9937. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9938. fi
  9939. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9940. # powerpc, because MkLinux only supported shared libraries with the
  9941. # GNU dynamic linker. Since this was broken with cross compilers,
  9942. # most powerpc-linux boxes support dynamic linking these days and
  9943. # people can always --disable-shared, the test was removed, and we
  9944. # assume the GNU/Linux dynamic linker is in use.
  9945. dynamic_linker='GNU/Linux ld.so'
  9946. ;;
  9947. netbsd*)
  9948. version_type=sunos
  9949. need_lib_prefix=no
  9950. need_version=no
  9951. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9952. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9953. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9954. dynamic_linker='NetBSD (a.out) ld.so'
  9955. else
  9956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9957. soname_spec='${libname}${release}${shared_ext}$major'
  9958. dynamic_linker='NetBSD ld.elf_so'
  9959. fi
  9960. shlibpath_var=LD_LIBRARY_PATH
  9961. shlibpath_overrides_runpath=yes
  9962. hardcode_into_libs=yes
  9963. ;;
  9964. newsos6)
  9965. version_type=linux # correct to gnu/linux during the next big refactor
  9966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9967. shlibpath_var=LD_LIBRARY_PATH
  9968. shlibpath_overrides_runpath=yes
  9969. ;;
  9970. *nto* | *qnx*)
  9971. version_type=qnx
  9972. need_lib_prefix=no
  9973. need_version=no
  9974. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9975. soname_spec='${libname}${release}${shared_ext}$major'
  9976. shlibpath_var=LD_LIBRARY_PATH
  9977. shlibpath_overrides_runpath=no
  9978. hardcode_into_libs=yes
  9979. dynamic_linker='ldqnx.so'
  9980. ;;
  9981. openbsd*)
  9982. version_type=sunos
  9983. sys_lib_dlsearch_path_spec="/usr/lib"
  9984. need_lib_prefix=no
  9985. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9986. case $host_os in
  9987. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9988. *) need_version=no ;;
  9989. esac
  9990. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9991. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9992. shlibpath_var=LD_LIBRARY_PATH
  9993. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9994. case $host_os in
  9995. openbsd2.[89] | openbsd2.[89].*)
  9996. shlibpath_overrides_runpath=no
  9997. ;;
  9998. *)
  9999. shlibpath_overrides_runpath=yes
  10000. ;;
  10001. esac
  10002. else
  10003. shlibpath_overrides_runpath=yes
  10004. fi
  10005. ;;
  10006. os2*)
  10007. libname_spec='$name'
  10008. shrext_cmds=".dll"
  10009. need_lib_prefix=no
  10010. library_names_spec='$libname${shared_ext} $libname.a'
  10011. dynamic_linker='OS/2 ld.exe'
  10012. shlibpath_var=LIBPATH
  10013. ;;
  10014. osf3* | osf4* | osf5*)
  10015. version_type=osf
  10016. need_lib_prefix=no
  10017. need_version=no
  10018. soname_spec='${libname}${release}${shared_ext}$major'
  10019. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10020. shlibpath_var=LD_LIBRARY_PATH
  10021. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10022. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10023. ;;
  10024. rdos*)
  10025. dynamic_linker=no
  10026. ;;
  10027. solaris*)
  10028. version_type=linux # correct to gnu/linux during the next big refactor
  10029. need_lib_prefix=no
  10030. need_version=no
  10031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10032. soname_spec='${libname}${release}${shared_ext}$major'
  10033. shlibpath_var=LD_LIBRARY_PATH
  10034. shlibpath_overrides_runpath=yes
  10035. hardcode_into_libs=yes
  10036. # ldd complains unless libraries are executable
  10037. postinstall_cmds='chmod +x $lib'
  10038. ;;
  10039. sunos4*)
  10040. version_type=sunos
  10041. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10042. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10043. shlibpath_var=LD_LIBRARY_PATH
  10044. shlibpath_overrides_runpath=yes
  10045. if test "$with_gnu_ld" = yes; then
  10046. need_lib_prefix=no
  10047. fi
  10048. need_version=yes
  10049. ;;
  10050. sysv4 | sysv4.3*)
  10051. version_type=linux # correct to gnu/linux during the next big refactor
  10052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10053. soname_spec='${libname}${release}${shared_ext}$major'
  10054. shlibpath_var=LD_LIBRARY_PATH
  10055. case $host_vendor in
  10056. sni)
  10057. shlibpath_overrides_runpath=no
  10058. need_lib_prefix=no
  10059. runpath_var=LD_RUN_PATH
  10060. ;;
  10061. siemens)
  10062. need_lib_prefix=no
  10063. ;;
  10064. motorola)
  10065. need_lib_prefix=no
  10066. need_version=no
  10067. shlibpath_overrides_runpath=no
  10068. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10069. ;;
  10070. esac
  10071. ;;
  10072. sysv4*MP*)
  10073. if test -d /usr/nec ;then
  10074. version_type=linux # correct to gnu/linux during the next big refactor
  10075. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10076. soname_spec='$libname${shared_ext}.$major'
  10077. shlibpath_var=LD_LIBRARY_PATH
  10078. fi
  10079. ;;
  10080. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10081. version_type=freebsd-elf
  10082. need_lib_prefix=no
  10083. need_version=no
  10084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10085. soname_spec='${libname}${release}${shared_ext}$major'
  10086. shlibpath_var=LD_LIBRARY_PATH
  10087. shlibpath_overrides_runpath=yes
  10088. hardcode_into_libs=yes
  10089. if test "$with_gnu_ld" = yes; then
  10090. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10091. else
  10092. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10093. case $host_os in
  10094. sco3.2v5*)
  10095. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10096. ;;
  10097. esac
  10098. fi
  10099. sys_lib_dlsearch_path_spec='/usr/lib'
  10100. ;;
  10101. tpf*)
  10102. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10103. version_type=linux # correct to gnu/linux during the next big refactor
  10104. need_lib_prefix=no
  10105. need_version=no
  10106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10107. shlibpath_var=LD_LIBRARY_PATH
  10108. shlibpath_overrides_runpath=no
  10109. hardcode_into_libs=yes
  10110. ;;
  10111. uts4*)
  10112. version_type=linux # correct to gnu/linux during the next big refactor
  10113. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10114. soname_spec='${libname}${release}${shared_ext}$major'
  10115. shlibpath_var=LD_LIBRARY_PATH
  10116. ;;
  10117. *)
  10118. dynamic_linker=no
  10119. ;;
  10120. esac
  10121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10122. $as_echo "$dynamic_linker" >&6; }
  10123. test "$dynamic_linker" = no && can_build_shared=no
  10124. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10125. if test "$GCC" = yes; then
  10126. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10127. fi
  10128. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10129. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10130. fi
  10131. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10132. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10133. fi
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10135. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10136. hardcode_action=
  10137. if test -n "$hardcode_libdir_flag_spec" ||
  10138. test -n "$runpath_var" ||
  10139. test "X$hardcode_automatic" = "Xyes" ; then
  10140. # We can hardcode non-existent directories.
  10141. if test "$hardcode_direct" != no &&
  10142. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10143. # have to relink, otherwise we might link with an installed library
  10144. # when we should be linking with a yet-to-be-installed one
  10145. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10146. test "$hardcode_minus_L" != no; then
  10147. # Linking always hardcodes the temporary library directory.
  10148. hardcode_action=relink
  10149. else
  10150. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10151. hardcode_action=immediate
  10152. fi
  10153. else
  10154. # We cannot hardcode anything, or else we can only hardcode existing
  10155. # directories.
  10156. hardcode_action=unsupported
  10157. fi
  10158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10159. $as_echo "$hardcode_action" >&6; }
  10160. if test "$hardcode_action" = relink ||
  10161. test "$inherit_rpath" = yes; then
  10162. # Fast installation is not supported
  10163. enable_fast_install=no
  10164. elif test "$shlibpath_overrides_runpath" = yes ||
  10165. test "$enable_shared" = no; then
  10166. # Fast installation is not necessary
  10167. enable_fast_install=needless
  10168. fi
  10169. if test "x$enable_dlopen" != xyes; then
  10170. enable_dlopen=unknown
  10171. enable_dlopen_self=unknown
  10172. enable_dlopen_self_static=unknown
  10173. else
  10174. lt_cv_dlopen=no
  10175. lt_cv_dlopen_libs=
  10176. case $host_os in
  10177. beos*)
  10178. lt_cv_dlopen="load_add_on"
  10179. lt_cv_dlopen_libs=
  10180. lt_cv_dlopen_self=yes
  10181. ;;
  10182. mingw* | pw32* | cegcc*)
  10183. lt_cv_dlopen="LoadLibrary"
  10184. lt_cv_dlopen_libs=
  10185. ;;
  10186. cygwin*)
  10187. lt_cv_dlopen="dlopen"
  10188. lt_cv_dlopen_libs=
  10189. ;;
  10190. darwin*)
  10191. # if libdl is installed we need to link against it
  10192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10193. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10194. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10195. $as_echo_n "(cached) " >&6
  10196. else
  10197. ac_check_lib_save_LIBS=$LIBS
  10198. LIBS="-ldl $LIBS"
  10199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10200. /* end confdefs.h. */
  10201. /* Override any GCC internal prototype to avoid an error.
  10202. Use char because int might match the return type of a GCC
  10203. builtin and then its argument prototype would still apply. */
  10204. #ifdef __cplusplus
  10205. extern "C"
  10206. #endif
  10207. char dlopen ();
  10208. int
  10209. main ()
  10210. {
  10211. return dlopen ();
  10212. ;
  10213. return 0;
  10214. }
  10215. _ACEOF
  10216. if ac_fn_c_try_link "$LINENO"; then :
  10217. ac_cv_lib_dl_dlopen=yes
  10218. else
  10219. ac_cv_lib_dl_dlopen=no
  10220. fi
  10221. rm -f core conftest.err conftest.$ac_objext \
  10222. conftest$ac_exeext conftest.$ac_ext
  10223. LIBS=$ac_check_lib_save_LIBS
  10224. fi
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10226. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10227. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10228. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10229. else
  10230. lt_cv_dlopen="dyld"
  10231. lt_cv_dlopen_libs=
  10232. lt_cv_dlopen_self=yes
  10233. fi
  10234. ;;
  10235. *)
  10236. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10237. if test "x$ac_cv_func_shl_load" = xyes; then :
  10238. lt_cv_dlopen="shl_load"
  10239. else
  10240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10241. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10242. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10243. $as_echo_n "(cached) " >&6
  10244. else
  10245. ac_check_lib_save_LIBS=$LIBS
  10246. LIBS="-ldld $LIBS"
  10247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10248. /* end confdefs.h. */
  10249. /* Override any GCC internal prototype to avoid an error.
  10250. Use char because int might match the return type of a GCC
  10251. builtin and then its argument prototype would still apply. */
  10252. #ifdef __cplusplus
  10253. extern "C"
  10254. #endif
  10255. char shl_load ();
  10256. int
  10257. main ()
  10258. {
  10259. return shl_load ();
  10260. ;
  10261. return 0;
  10262. }
  10263. _ACEOF
  10264. if ac_fn_c_try_link "$LINENO"; then :
  10265. ac_cv_lib_dld_shl_load=yes
  10266. else
  10267. ac_cv_lib_dld_shl_load=no
  10268. fi
  10269. rm -f core conftest.err conftest.$ac_objext \
  10270. conftest$ac_exeext conftest.$ac_ext
  10271. LIBS=$ac_check_lib_save_LIBS
  10272. fi
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10274. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10275. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10276. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10277. else
  10278. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10279. if test "x$ac_cv_func_dlopen" = xyes; then :
  10280. lt_cv_dlopen="dlopen"
  10281. else
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10283. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10284. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10285. $as_echo_n "(cached) " >&6
  10286. else
  10287. ac_check_lib_save_LIBS=$LIBS
  10288. LIBS="-ldl $LIBS"
  10289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10290. /* end confdefs.h. */
  10291. /* Override any GCC internal prototype to avoid an error.
  10292. Use char because int might match the return type of a GCC
  10293. builtin and then its argument prototype would still apply. */
  10294. #ifdef __cplusplus
  10295. extern "C"
  10296. #endif
  10297. char dlopen ();
  10298. int
  10299. main ()
  10300. {
  10301. return dlopen ();
  10302. ;
  10303. return 0;
  10304. }
  10305. _ACEOF
  10306. if ac_fn_c_try_link "$LINENO"; then :
  10307. ac_cv_lib_dl_dlopen=yes
  10308. else
  10309. ac_cv_lib_dl_dlopen=no
  10310. fi
  10311. rm -f core conftest.err conftest.$ac_objext \
  10312. conftest$ac_exeext conftest.$ac_ext
  10313. LIBS=$ac_check_lib_save_LIBS
  10314. fi
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10316. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10317. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10318. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10319. else
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10321. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10322. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10323. $as_echo_n "(cached) " >&6
  10324. else
  10325. ac_check_lib_save_LIBS=$LIBS
  10326. LIBS="-lsvld $LIBS"
  10327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10328. /* end confdefs.h. */
  10329. /* Override any GCC internal prototype to avoid an error.
  10330. Use char because int might match the return type of a GCC
  10331. builtin and then its argument prototype would still apply. */
  10332. #ifdef __cplusplus
  10333. extern "C"
  10334. #endif
  10335. char dlopen ();
  10336. int
  10337. main ()
  10338. {
  10339. return dlopen ();
  10340. ;
  10341. return 0;
  10342. }
  10343. _ACEOF
  10344. if ac_fn_c_try_link "$LINENO"; then :
  10345. ac_cv_lib_svld_dlopen=yes
  10346. else
  10347. ac_cv_lib_svld_dlopen=no
  10348. fi
  10349. rm -f core conftest.err conftest.$ac_objext \
  10350. conftest$ac_exeext conftest.$ac_ext
  10351. LIBS=$ac_check_lib_save_LIBS
  10352. fi
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10354. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10355. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10356. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10357. else
  10358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10359. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10360. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10361. $as_echo_n "(cached) " >&6
  10362. else
  10363. ac_check_lib_save_LIBS=$LIBS
  10364. LIBS="-ldld $LIBS"
  10365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10366. /* end confdefs.h. */
  10367. /* Override any GCC internal prototype to avoid an error.
  10368. Use char because int might match the return type of a GCC
  10369. builtin and then its argument prototype would still apply. */
  10370. #ifdef __cplusplus
  10371. extern "C"
  10372. #endif
  10373. char dld_link ();
  10374. int
  10375. main ()
  10376. {
  10377. return dld_link ();
  10378. ;
  10379. return 0;
  10380. }
  10381. _ACEOF
  10382. if ac_fn_c_try_link "$LINENO"; then :
  10383. ac_cv_lib_dld_dld_link=yes
  10384. else
  10385. ac_cv_lib_dld_dld_link=no
  10386. fi
  10387. rm -f core conftest.err conftest.$ac_objext \
  10388. conftest$ac_exeext conftest.$ac_ext
  10389. LIBS=$ac_check_lib_save_LIBS
  10390. fi
  10391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10392. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10393. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10394. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10395. fi
  10396. fi
  10397. fi
  10398. fi
  10399. fi
  10400. fi
  10401. ;;
  10402. esac
  10403. if test "x$lt_cv_dlopen" != xno; then
  10404. enable_dlopen=yes
  10405. else
  10406. enable_dlopen=no
  10407. fi
  10408. case $lt_cv_dlopen in
  10409. dlopen)
  10410. save_CPPFLAGS="$CPPFLAGS"
  10411. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10412. save_LDFLAGS="$LDFLAGS"
  10413. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10414. save_LIBS="$LIBS"
  10415. LIBS="$lt_cv_dlopen_libs $LIBS"
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10417. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10418. if ${lt_cv_dlopen_self+:} false; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. if test "$cross_compiling" = yes; then :
  10422. lt_cv_dlopen_self=cross
  10423. else
  10424. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10425. lt_status=$lt_dlunknown
  10426. cat > conftest.$ac_ext <<_LT_EOF
  10427. #line $LINENO "configure"
  10428. #include "confdefs.h"
  10429. #if HAVE_DLFCN_H
  10430. #include <dlfcn.h>
  10431. #endif
  10432. #include <stdio.h>
  10433. #ifdef RTLD_GLOBAL
  10434. # define LT_DLGLOBAL RTLD_GLOBAL
  10435. #else
  10436. # ifdef DL_GLOBAL
  10437. # define LT_DLGLOBAL DL_GLOBAL
  10438. # else
  10439. # define LT_DLGLOBAL 0
  10440. # endif
  10441. #endif
  10442. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10443. find out it does not work in some platform. */
  10444. #ifndef LT_DLLAZY_OR_NOW
  10445. # ifdef RTLD_LAZY
  10446. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10447. # else
  10448. # ifdef DL_LAZY
  10449. # define LT_DLLAZY_OR_NOW DL_LAZY
  10450. # else
  10451. # ifdef RTLD_NOW
  10452. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10453. # else
  10454. # ifdef DL_NOW
  10455. # define LT_DLLAZY_OR_NOW DL_NOW
  10456. # else
  10457. # define LT_DLLAZY_OR_NOW 0
  10458. # endif
  10459. # endif
  10460. # endif
  10461. # endif
  10462. #endif
  10463. /* When -fvisbility=hidden is used, assume the code has been annotated
  10464. correspondingly for the symbols needed. */
  10465. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10466. int fnord () __attribute__((visibility("default")));
  10467. #endif
  10468. int fnord () { return 42; }
  10469. int main ()
  10470. {
  10471. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10472. int status = $lt_dlunknown;
  10473. if (self)
  10474. {
  10475. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10476. else
  10477. {
  10478. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10479. else puts (dlerror ());
  10480. }
  10481. /* dlclose (self); */
  10482. }
  10483. else
  10484. puts (dlerror ());
  10485. return status;
  10486. }
  10487. _LT_EOF
  10488. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10489. (eval $ac_link) 2>&5
  10490. ac_status=$?
  10491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10492. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10493. (./conftest; exit; ) >&5 2>/dev/null
  10494. lt_status=$?
  10495. case x$lt_status in
  10496. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10497. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10498. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10499. esac
  10500. else :
  10501. # compilation failed
  10502. lt_cv_dlopen_self=no
  10503. fi
  10504. fi
  10505. rm -fr conftest*
  10506. fi
  10507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10508. $as_echo "$lt_cv_dlopen_self" >&6; }
  10509. if test "x$lt_cv_dlopen_self" = xyes; then
  10510. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10512. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10513. if ${lt_cv_dlopen_self_static+:} false; then :
  10514. $as_echo_n "(cached) " >&6
  10515. else
  10516. if test "$cross_compiling" = yes; then :
  10517. lt_cv_dlopen_self_static=cross
  10518. else
  10519. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10520. lt_status=$lt_dlunknown
  10521. cat > conftest.$ac_ext <<_LT_EOF
  10522. #line $LINENO "configure"
  10523. #include "confdefs.h"
  10524. #if HAVE_DLFCN_H
  10525. #include <dlfcn.h>
  10526. #endif
  10527. #include <stdio.h>
  10528. #ifdef RTLD_GLOBAL
  10529. # define LT_DLGLOBAL RTLD_GLOBAL
  10530. #else
  10531. # ifdef DL_GLOBAL
  10532. # define LT_DLGLOBAL DL_GLOBAL
  10533. # else
  10534. # define LT_DLGLOBAL 0
  10535. # endif
  10536. #endif
  10537. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10538. find out it does not work in some platform. */
  10539. #ifndef LT_DLLAZY_OR_NOW
  10540. # ifdef RTLD_LAZY
  10541. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10542. # else
  10543. # ifdef DL_LAZY
  10544. # define LT_DLLAZY_OR_NOW DL_LAZY
  10545. # else
  10546. # ifdef RTLD_NOW
  10547. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10548. # else
  10549. # ifdef DL_NOW
  10550. # define LT_DLLAZY_OR_NOW DL_NOW
  10551. # else
  10552. # define LT_DLLAZY_OR_NOW 0
  10553. # endif
  10554. # endif
  10555. # endif
  10556. # endif
  10557. #endif
  10558. /* When -fvisbility=hidden is used, assume the code has been annotated
  10559. correspondingly for the symbols needed. */
  10560. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10561. int fnord () __attribute__((visibility("default")));
  10562. #endif
  10563. int fnord () { return 42; }
  10564. int main ()
  10565. {
  10566. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10567. int status = $lt_dlunknown;
  10568. if (self)
  10569. {
  10570. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10571. else
  10572. {
  10573. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10574. else puts (dlerror ());
  10575. }
  10576. /* dlclose (self); */
  10577. }
  10578. else
  10579. puts (dlerror ());
  10580. return status;
  10581. }
  10582. _LT_EOF
  10583. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10584. (eval $ac_link) 2>&5
  10585. ac_status=$?
  10586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10587. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10588. (./conftest; exit; ) >&5 2>/dev/null
  10589. lt_status=$?
  10590. case x$lt_status in
  10591. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10592. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10593. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10594. esac
  10595. else :
  10596. # compilation failed
  10597. lt_cv_dlopen_self_static=no
  10598. fi
  10599. fi
  10600. rm -fr conftest*
  10601. fi
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10603. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10604. fi
  10605. CPPFLAGS="$save_CPPFLAGS"
  10606. LDFLAGS="$save_LDFLAGS"
  10607. LIBS="$save_LIBS"
  10608. ;;
  10609. esac
  10610. case $lt_cv_dlopen_self in
  10611. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10612. *) enable_dlopen_self=unknown ;;
  10613. esac
  10614. case $lt_cv_dlopen_self_static in
  10615. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10616. *) enable_dlopen_self_static=unknown ;;
  10617. esac
  10618. fi
  10619. striplib=
  10620. old_striplib=
  10621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10622. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10623. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10624. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10625. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10627. $as_echo "yes" >&6; }
  10628. else
  10629. # FIXME - insert some real tests, host_os isn't really good enough
  10630. case $host_os in
  10631. darwin*)
  10632. if test -n "$STRIP" ; then
  10633. striplib="$STRIP -x"
  10634. old_striplib="$STRIP -S"
  10635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10636. $as_echo "yes" >&6; }
  10637. else
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10639. $as_echo "no" >&6; }
  10640. fi
  10641. ;;
  10642. *)
  10643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10644. $as_echo "no" >&6; }
  10645. ;;
  10646. esac
  10647. fi
  10648. # Report which library types will actually be built
  10649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10650. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10652. $as_echo "$can_build_shared" >&6; }
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10654. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10655. test "$can_build_shared" = "no" && enable_shared=no
  10656. # On AIX, shared libraries and static libraries use the same namespace, and
  10657. # are all built from PIC.
  10658. case $host_os in
  10659. aix3*)
  10660. test "$enable_shared" = yes && enable_static=no
  10661. if test -n "$RANLIB"; then
  10662. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10663. postinstall_cmds='$RANLIB $lib'
  10664. fi
  10665. ;;
  10666. aix[4-9]*)
  10667. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10668. test "$enable_shared" = yes && enable_static=no
  10669. fi
  10670. ;;
  10671. esac
  10672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10673. $as_echo "$enable_shared" >&6; }
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10675. $as_echo_n "checking whether to build static libraries... " >&6; }
  10676. # Make sure either enable_shared or enable_static is yes.
  10677. test "$enable_shared" = yes || enable_static=yes
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10679. $as_echo "$enable_static" >&6; }
  10680. fi
  10681. ac_ext=c
  10682. ac_cpp='$CPP $CPPFLAGS'
  10683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10686. CC="$lt_save_CC"
  10687. ac_config_commands="$ac_config_commands libtool"
  10688. # Only expand once:
  10689. CFLAG_VISIBILITY=
  10690. HAVE_VISIBILITY=0
  10691. if test -n "$GCC"; then
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
  10693. $as_echo_n "checking whether the -Werror option is usable... " >&6; }
  10694. if ${gl_cv_cc_vis_werror+:} false; then :
  10695. $as_echo_n "(cached) " >&6
  10696. else
  10697. gl_save_CFLAGS="$CFLAGS"
  10698. CFLAGS="$CFLAGS -Werror"
  10699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10700. /* end confdefs.h. */
  10701. int
  10702. main ()
  10703. {
  10704. ;
  10705. return 0;
  10706. }
  10707. _ACEOF
  10708. if ac_fn_c_try_compile "$LINENO"; then :
  10709. gl_cv_cc_vis_werror=yes
  10710. else
  10711. gl_cv_cc_vis_werror=no
  10712. fi
  10713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10714. CFLAGS="$gl_save_CFLAGS"
  10715. fi
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
  10717. $as_echo "$gl_cv_cc_vis_werror" >&6; }
  10718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
  10719. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10720. if ${gl_cv_cc_visibility+:} false; then :
  10721. $as_echo_n "(cached) " >&6
  10722. else
  10723. gl_save_CFLAGS="$CFLAGS"
  10724. CFLAGS="$CFLAGS -fvisibility=hidden"
  10725. if test $gl_cv_cc_vis_werror = yes; then
  10726. CFLAGS="$CFLAGS -Werror"
  10727. fi
  10728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10729. /* end confdefs.h. */
  10730. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10731. extern __attribute__((__visibility__("default"))) int exportedvar;
  10732. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10733. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10734. void dummyfunc (void) {}
  10735. int
  10736. main ()
  10737. {
  10738. ;
  10739. return 0;
  10740. }
  10741. _ACEOF
  10742. if ac_fn_c_try_compile "$LINENO"; then :
  10743. gl_cv_cc_visibility=yes
  10744. else
  10745. gl_cv_cc_visibility=no
  10746. fi
  10747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10748. CFLAGS="$gl_save_CFLAGS"
  10749. fi
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
  10751. $as_echo "$gl_cv_cc_visibility" >&6; }
  10752. if test $gl_cv_cc_visibility = yes; then
  10753. CFLAG_VISIBILITY="-fvisibility=hidden"
  10754. HAVE_VISIBILITY=1
  10755. fi
  10756. fi
  10757. cat >>confdefs.h <<_ACEOF
  10758. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10759. _ACEOF
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  10761. $as_echo_n "checking for ANSI C header files... " >&6; }
  10762. if ${ac_cv_header_stdc+:} false; then :
  10763. $as_echo_n "(cached) " >&6
  10764. else
  10765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10766. /* end confdefs.h. */
  10767. #include <stdlib.h>
  10768. #include <stdarg.h>
  10769. #include <string.h>
  10770. #include <float.h>
  10771. int
  10772. main ()
  10773. {
  10774. ;
  10775. return 0;
  10776. }
  10777. _ACEOF
  10778. if ac_fn_c_try_compile "$LINENO"; then :
  10779. ac_cv_header_stdc=yes
  10780. else
  10781. ac_cv_header_stdc=no
  10782. fi
  10783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10784. if test $ac_cv_header_stdc = yes; then
  10785. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  10786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10787. /* end confdefs.h. */
  10788. #include <string.h>
  10789. _ACEOF
  10790. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10791. $EGREP "memchr" >/dev/null 2>&1; then :
  10792. else
  10793. ac_cv_header_stdc=no
  10794. fi
  10795. rm -f conftest*
  10796. fi
  10797. if test $ac_cv_header_stdc = yes; then
  10798. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  10799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10800. /* end confdefs.h. */
  10801. #include <stdlib.h>
  10802. _ACEOF
  10803. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10804. $EGREP "free" >/dev/null 2>&1; then :
  10805. else
  10806. ac_cv_header_stdc=no
  10807. fi
  10808. rm -f conftest*
  10809. fi
  10810. if test $ac_cv_header_stdc = yes; then
  10811. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  10812. if test "$cross_compiling" = yes; then :
  10813. :
  10814. else
  10815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10816. /* end confdefs.h. */
  10817. #include <ctype.h>
  10818. #include <stdlib.h>
  10819. #if ((' ' & 0x0FF) == 0x020)
  10820. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  10821. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  10822. #else
  10823. # define ISLOWER(c) \
  10824. (('a' <= (c) && (c) <= 'i') \
  10825. || ('j' <= (c) && (c) <= 'r') \
  10826. || ('s' <= (c) && (c) <= 'z'))
  10827. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  10828. #endif
  10829. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  10830. int
  10831. main ()
  10832. {
  10833. int i;
  10834. for (i = 0; i < 256; i++)
  10835. if (XOR (islower (i), ISLOWER (i))
  10836. || toupper (i) != TOUPPER (i))
  10837. return 2;
  10838. return 0;
  10839. }
  10840. _ACEOF
  10841. if ac_fn_c_try_run "$LINENO"; then :
  10842. else
  10843. ac_cv_header_stdc=no
  10844. fi
  10845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10846. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10847. fi
  10848. fi
  10849. fi
  10850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  10851. $as_echo "$ac_cv_header_stdc" >&6; }
  10852. if test $ac_cv_header_stdc = yes; then
  10853. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  10854. fi
  10855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
  10856. $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
  10857. if ${ac_cv_header_sys_types_h_makedev+:} false; then :
  10858. $as_echo_n "(cached) " >&6
  10859. else
  10860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10861. /* end confdefs.h. */
  10862. #include <sys/types.h>
  10863. int
  10864. main ()
  10865. {
  10866. return makedev(0, 0);
  10867. ;
  10868. return 0;
  10869. }
  10870. _ACEOF
  10871. if ac_fn_c_try_link "$LINENO"; then :
  10872. ac_cv_header_sys_types_h_makedev=yes
  10873. else
  10874. ac_cv_header_sys_types_h_makedev=no
  10875. fi
  10876. rm -f core conftest.err conftest.$ac_objext \
  10877. conftest$ac_exeext conftest.$ac_ext
  10878. fi
  10879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
  10880. $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
  10881. if test $ac_cv_header_sys_types_h_makedev = no; then
  10882. ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
  10883. if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
  10884. $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
  10885. fi
  10886. if test $ac_cv_header_sys_mkdev_h = no; then
  10887. ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
  10888. if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
  10889. $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
  10890. fi
  10891. fi
  10892. fi
  10893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10894. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10895. if ${ac_cv_header_sys_wait_h+:} false; then :
  10896. $as_echo_n "(cached) " >&6
  10897. else
  10898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10899. /* end confdefs.h. */
  10900. #include <sys/types.h>
  10901. #include <sys/wait.h>
  10902. #ifndef WEXITSTATUS
  10903. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10904. #endif
  10905. #ifndef WIFEXITED
  10906. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10907. #endif
  10908. int
  10909. main ()
  10910. {
  10911. int s;
  10912. wait (&s);
  10913. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10914. ;
  10915. return 0;
  10916. }
  10917. _ACEOF
  10918. if ac_fn_c_try_compile "$LINENO"; then :
  10919. ac_cv_header_sys_wait_h=yes
  10920. else
  10921. ac_cv_header_sys_wait_h=no
  10922. fi
  10923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10924. fi
  10925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10926. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10927. if test $ac_cv_header_sys_wait_h = yes; then
  10928. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10929. fi
  10930. for ac_header in stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h
  10931. do :
  10932. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10933. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10934. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10935. cat >>confdefs.h <<_ACEOF
  10936. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10937. _ACEOF
  10938. fi
  10939. done
  10940. for ac_header in stddef.h utime.h wchar.h wctype.h limits.h
  10941. do :
  10942. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10943. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10944. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10945. cat >>confdefs.h <<_ACEOF
  10946. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10947. _ACEOF
  10948. fi
  10949. done
  10950. for ac_header in getopt.h err.h xlocale.h signal.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 sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.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 zlib.h
  10971. do :
  10972. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10973. if test "x$ac_cv_header_zlib_h" = xyes; then :
  10974. cat >>confdefs.h <<_ACEOF
  10975. #define HAVE_ZLIB_H 1
  10976. _ACEOF
  10977. fi
  10978. done
  10979. ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "
  10980. #ifdef HAVE_SIGNAL_H
  10981. #include <signal.h>
  10982. #endif
  10983. "
  10984. if test "x$ac_cv_type_sig_t" = xyes; then :
  10985. $as_echo "#define HAVE_SIG_T 1" >>confdefs.h
  10986. fi
  10987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10988. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10989. if ${ac_cv_c_const+:} false; then :
  10990. $as_echo_n "(cached) " >&6
  10991. else
  10992. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10993. /* end confdefs.h. */
  10994. int
  10995. main ()
  10996. {
  10997. #ifndef __cplusplus
  10998. /* Ultrix mips cc rejects this sort of thing. */
  10999. typedef int charset[2];
  11000. const charset cs = { 0, 0 };
  11001. /* SunOS 4.1.1 cc rejects this. */
  11002. char const *const *pcpcc;
  11003. char **ppc;
  11004. /* NEC SVR4.0.2 mips cc rejects this. */
  11005. struct point {int x, y;};
  11006. static struct point const zero = {0,0};
  11007. /* AIX XL C 1.02.0.0 rejects this.
  11008. It does not let you subtract one const X* pointer from another in
  11009. an arm of an if-expression whose if-part is not a constant
  11010. expression */
  11011. const char *g = "string";
  11012. pcpcc = &g + (g ? g-g : 0);
  11013. /* HPUX 7.0 cc rejects these. */
  11014. ++pcpcc;
  11015. ppc = (char**) pcpcc;
  11016. pcpcc = (char const *const *) ppc;
  11017. { /* SCO 3.2v4 cc rejects this sort of thing. */
  11018. char tx;
  11019. char *t = &tx;
  11020. char const *s = 0 ? (char *) 0 : (char const *) 0;
  11021. *t++ = 0;
  11022. if (s) return 0;
  11023. }
  11024. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  11025. int x[] = {25, 17};
  11026. const int *foo = &x[0];
  11027. ++foo;
  11028. }
  11029. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  11030. typedef const int *iptr;
  11031. iptr p = 0;
  11032. ++p;
  11033. }
  11034. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  11035. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  11036. struct s { int j; const int *ap[3]; } bx;
  11037. struct s *b = &bx; b->j = 5;
  11038. }
  11039. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  11040. const int foo = 10;
  11041. if (!foo) return 0;
  11042. }
  11043. return !cs[0] && !zero.x;
  11044. #endif
  11045. ;
  11046. return 0;
  11047. }
  11048. _ACEOF
  11049. if ac_fn_c_try_compile "$LINENO"; then :
  11050. ac_cv_c_const=yes
  11051. else
  11052. ac_cv_c_const=no
  11053. fi
  11054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11055. fi
  11056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  11057. $as_echo "$ac_cv_c_const" >&6; }
  11058. if test $ac_cv_c_const = no; then
  11059. $as_echo "#define const /**/" >>confdefs.h
  11060. fi
  11061. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  11062. if test "x$ac_cv_type_off_t" = xyes; then :
  11063. else
  11064. cat >>confdefs.h <<_ACEOF
  11065. #define off_t long int
  11066. _ACEOF
  11067. fi
  11068. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  11069. if test "x$ac_cv_type_size_t" = xyes; then :
  11070. else
  11071. cat >>confdefs.h <<_ACEOF
  11072. #define size_t unsigned int
  11073. _ACEOF
  11074. fi
  11075. ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
  11076. if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
  11077. cat >>confdefs.h <<_ACEOF
  11078. #define HAVE_STRUCT_STAT_ST_RDEV 1
  11079. _ACEOF
  11080. fi
  11081. ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
  11082. if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
  11083. cat >>confdefs.h <<_ACEOF
  11084. #define HAVE_STRUCT_TM_TM_GMTOFF 1
  11085. _ACEOF
  11086. fi
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  11088. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  11089. if ${ac_cv_struct_tm+:} false; then :
  11090. $as_echo_n "(cached) " >&6
  11091. else
  11092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11093. /* end confdefs.h. */
  11094. #include <sys/types.h>
  11095. #include <time.h>
  11096. int
  11097. main ()
  11098. {
  11099. struct tm tm;
  11100. int *p = &tm.tm_sec;
  11101. return !p;
  11102. ;
  11103. return 0;
  11104. }
  11105. _ACEOF
  11106. if ac_fn_c_try_compile "$LINENO"; then :
  11107. ac_cv_struct_tm=time.h
  11108. else
  11109. ac_cv_struct_tm=sys/time.h
  11110. fi
  11111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  11114. $as_echo "$ac_cv_struct_tm" >&6; }
  11115. if test $ac_cv_struct_tm = sys/time.h; then
  11116. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  11117. fi
  11118. ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  11119. #include <$ac_cv_struct_tm>
  11120. "
  11121. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  11122. cat >>confdefs.h <<_ACEOF
  11123. #define HAVE_STRUCT_TM_TM_ZONE 1
  11124. _ACEOF
  11125. fi
  11126. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  11127. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11128. else
  11129. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11130. "
  11131. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11132. ac_have_decl=1
  11133. else
  11134. ac_have_decl=0
  11135. fi
  11136. cat >>confdefs.h <<_ACEOF
  11137. #define HAVE_DECL_TZNAME $ac_have_decl
  11138. _ACEOF
  11139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11140. $as_echo_n "checking for tzname... " >&6; }
  11141. if ${ac_cv_var_tzname+:} false; then :
  11142. $as_echo_n "(cached) " >&6
  11143. else
  11144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11145. /* end confdefs.h. */
  11146. #include <time.h>
  11147. #if !HAVE_DECL_TZNAME
  11148. extern char *tzname[];
  11149. #endif
  11150. int
  11151. main ()
  11152. {
  11153. return tzname[0][0];
  11154. ;
  11155. return 0;
  11156. }
  11157. _ACEOF
  11158. if ac_fn_c_try_link "$LINENO"; then :
  11159. ac_cv_var_tzname=yes
  11160. else
  11161. ac_cv_var_tzname=no
  11162. fi
  11163. rm -f core conftest.err conftest.$ac_objext \
  11164. conftest$ac_exeext conftest.$ac_ext
  11165. fi
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11167. $as_echo "$ac_cv_var_tzname" >&6; }
  11168. if test $ac_cv_var_tzname = yes; then
  11169. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11170. fi
  11171. fi
  11172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
  11173. $as_echo_n "checking for tm_zone in struct tm... " >&6; }
  11174. if ${ac_cv_struct_tm_zone+:} false; then :
  11175. $as_echo_n "(cached) " >&6
  11176. else
  11177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11178. /* end confdefs.h. */
  11179. #include <sys/types.h>
  11180. #include <$ac_cv_struct_tm>
  11181. int
  11182. main ()
  11183. {
  11184. struct tm tm; tm.tm_zone;
  11185. ;
  11186. return 0;
  11187. }
  11188. _ACEOF
  11189. if ac_fn_c_try_compile "$LINENO"; then :
  11190. ac_cv_struct_tm_zone=yes
  11191. else
  11192. ac_cv_struct_tm_zone=no
  11193. fi
  11194. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11195. fi
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
  11197. $as_echo "$ac_cv_struct_tm_zone" >&6; }
  11198. if test "$ac_cv_struct_tm_zone" = yes; then
  11199. $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
  11200. fi
  11201. # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
  11202. # consider it declared and we won't give our own extern.
  11203. ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  11204. "
  11205. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  11206. ac_have_decl=1
  11207. else
  11208. ac_have_decl=0
  11209. fi
  11210. cat >>confdefs.h <<_ACEOF
  11211. #define HAVE_DECL_TZNAME $ac_have_decl
  11212. _ACEOF
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  11214. $as_echo_n "checking for tzname... " >&6; }
  11215. if ${ac_cv_var_tzname+:} false; then :
  11216. $as_echo_n "(cached) " >&6
  11217. else
  11218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11219. /* end confdefs.h. */
  11220. #include <time.h>
  11221. #if !HAVE_DECL_TZNAME
  11222. extern char *tzname[];
  11223. #endif
  11224. int
  11225. main ()
  11226. {
  11227. return tzname[0][0];
  11228. ;
  11229. return 0;
  11230. }
  11231. _ACEOF
  11232. if ac_fn_c_try_link "$LINENO"; then :
  11233. ac_cv_var_tzname=yes
  11234. else
  11235. ac_cv_var_tzname=no
  11236. fi
  11237. rm -f core conftest.err conftest.$ac_objext \
  11238. conftest$ac_exeext conftest.$ac_ext
  11239. fi
  11240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  11241. $as_echo "$ac_cv_var_tzname" >&6; }
  11242. if test $ac_cv_var_tzname = yes; then
  11243. $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
  11244. fi
  11245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
  11246. $as_echo_n "checking for tm_isdst in struct tm... " >&6; }
  11247. if ${ac_cv_struct_tm_isdst+:} false; then :
  11248. $as_echo_n "(cached) " >&6
  11249. else
  11250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11251. /* end confdefs.h. */
  11252. #include <sys/types.h>
  11253. #include <$ac_cv_struct_tm>
  11254. int
  11255. main ()
  11256. {
  11257. struct tm tm; tm.tm_isdst;
  11258. ;
  11259. return 0;
  11260. }
  11261. _ACEOF
  11262. if ac_fn_c_try_compile "$LINENO"; then :
  11263. ac_cv_struct_tm_isdst=yes
  11264. else
  11265. ac_cv_struct_tm_isdst=no
  11266. fi
  11267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11268. fi
  11269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
  11270. $as_echo "$ac_cv_struct_tm_isdst" >&6; }
  11271. if test "$ac_cv_struct_tm_isdst" = yes; then
  11272. $as_echo "#define HAVE_TM_ISDST 1" >>confdefs.h
  11273. fi
  11274. ac_fn_c_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
  11275. "
  11276. if test "x$ac_cv_have_decl_daylight" = xyes; then :
  11277. ac_have_decl=1
  11278. else
  11279. ac_have_decl=0
  11280. fi
  11281. cat >>confdefs.h <<_ACEOF
  11282. #define HAVE_DECL_DAYLIGHT $ac_have_decl
  11283. _ACEOF
  11284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
  11285. $as_echo_n "checking for daylight... " >&6; }
  11286. if ${ac_cv_var_daylight+:} false; then :
  11287. $as_echo_n "(cached) " >&6
  11288. else
  11289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11290. /* end confdefs.h. */
  11291. #include <time.h>
  11292. #if !HAVE_DECL_DAYLIGHT
  11293. extern int daylight;
  11294. #endif
  11295. int
  11296. main ()
  11297. {
  11298. atoi(daylight);
  11299. ;
  11300. return 0;
  11301. }
  11302. _ACEOF
  11303. if ac_fn_c_try_link "$LINENO"; then :
  11304. ac_cv_var_daylight=yes
  11305. else
  11306. ac_cv_var_daylight=no
  11307. fi
  11308. rm -f core conftest.err conftest.$ac_objext \
  11309. conftest$ac_exeext conftest.$ac_ext
  11310. fi
  11311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
  11312. $as_echo "$ac_cv_var_daylight" >&6; }
  11313. if test $ac_cv_var_daylight = yes; then
  11314. $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
  11315. fi
  11316. # Check whether --enable-largefile was given.
  11317. if test "${enable_largefile+set}" = set; then :
  11318. enableval=$enable_largefile;
  11319. fi
  11320. if test "$enable_largefile" != no; then
  11321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  11322. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  11323. if ${ac_cv_sys_largefile_CC+:} false; then :
  11324. $as_echo_n "(cached) " >&6
  11325. else
  11326. ac_cv_sys_largefile_CC=no
  11327. if test "$GCC" != yes; then
  11328. ac_save_CC=$CC
  11329. while :; do
  11330. # IRIX 6.2 and later do not support large files by default,
  11331. # so use the C compiler's -n32 option if that helps.
  11332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11333. /* end confdefs.h. */
  11334. #include <sys/types.h>
  11335. /* Check that off_t can represent 2**63 - 1 correctly.
  11336. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11337. since some C++ compilers masquerading as C compilers
  11338. incorrectly reject 9223372036854775807. */
  11339. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11340. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11341. && LARGE_OFF_T % 2147483647 == 1)
  11342. ? 1 : -1];
  11343. int
  11344. main ()
  11345. {
  11346. ;
  11347. return 0;
  11348. }
  11349. _ACEOF
  11350. if ac_fn_c_try_compile "$LINENO"; then :
  11351. break
  11352. fi
  11353. rm -f core conftest.err conftest.$ac_objext
  11354. CC="$CC -n32"
  11355. if ac_fn_c_try_compile "$LINENO"; then :
  11356. ac_cv_sys_largefile_CC=' -n32'; break
  11357. fi
  11358. rm -f core conftest.err conftest.$ac_objext
  11359. break
  11360. done
  11361. CC=$ac_save_CC
  11362. rm -f conftest.$ac_ext
  11363. fi
  11364. fi
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  11366. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  11367. if test "$ac_cv_sys_largefile_CC" != no; then
  11368. CC=$CC$ac_cv_sys_largefile_CC
  11369. fi
  11370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  11371. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  11372. if ${ac_cv_sys_file_offset_bits+:} false; then :
  11373. $as_echo_n "(cached) " >&6
  11374. else
  11375. while :; do
  11376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11377. /* end confdefs.h. */
  11378. #include <sys/types.h>
  11379. /* Check that off_t can represent 2**63 - 1 correctly.
  11380. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11381. since some C++ compilers masquerading as C compilers
  11382. incorrectly reject 9223372036854775807. */
  11383. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11384. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11385. && LARGE_OFF_T % 2147483647 == 1)
  11386. ? 1 : -1];
  11387. int
  11388. main ()
  11389. {
  11390. ;
  11391. return 0;
  11392. }
  11393. _ACEOF
  11394. if ac_fn_c_try_compile "$LINENO"; then :
  11395. ac_cv_sys_file_offset_bits=no; break
  11396. fi
  11397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11399. /* end confdefs.h. */
  11400. #define _FILE_OFFSET_BITS 64
  11401. #include <sys/types.h>
  11402. /* Check that off_t can represent 2**63 - 1 correctly.
  11403. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11404. since some C++ compilers masquerading as C compilers
  11405. incorrectly reject 9223372036854775807. */
  11406. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11407. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11408. && LARGE_OFF_T % 2147483647 == 1)
  11409. ? 1 : -1];
  11410. int
  11411. main ()
  11412. {
  11413. ;
  11414. return 0;
  11415. }
  11416. _ACEOF
  11417. if ac_fn_c_try_compile "$LINENO"; then :
  11418. ac_cv_sys_file_offset_bits=64; break
  11419. fi
  11420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11421. ac_cv_sys_file_offset_bits=unknown
  11422. break
  11423. done
  11424. fi
  11425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  11426. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  11427. case $ac_cv_sys_file_offset_bits in #(
  11428. no | unknown) ;;
  11429. *)
  11430. cat >>confdefs.h <<_ACEOF
  11431. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  11432. _ACEOF
  11433. ;;
  11434. esac
  11435. rm -rf conftest*
  11436. if test $ac_cv_sys_file_offset_bits = unknown; then
  11437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  11438. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  11439. if ${ac_cv_sys_large_files+:} false; then :
  11440. $as_echo_n "(cached) " >&6
  11441. else
  11442. while :; do
  11443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11444. /* end confdefs.h. */
  11445. #include <sys/types.h>
  11446. /* Check that off_t can represent 2**63 - 1 correctly.
  11447. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11448. since some C++ compilers masquerading as C compilers
  11449. incorrectly reject 9223372036854775807. */
  11450. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11451. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11452. && LARGE_OFF_T % 2147483647 == 1)
  11453. ? 1 : -1];
  11454. int
  11455. main ()
  11456. {
  11457. ;
  11458. return 0;
  11459. }
  11460. _ACEOF
  11461. if ac_fn_c_try_compile "$LINENO"; then :
  11462. ac_cv_sys_large_files=no; break
  11463. fi
  11464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11466. /* end confdefs.h. */
  11467. #define _LARGE_FILES 1
  11468. #include <sys/types.h>
  11469. /* Check that off_t can represent 2**63 - 1 correctly.
  11470. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  11471. since some C++ compilers masquerading as C compilers
  11472. incorrectly reject 9223372036854775807. */
  11473. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  11474. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  11475. && LARGE_OFF_T % 2147483647 == 1)
  11476. ? 1 : -1];
  11477. int
  11478. main ()
  11479. {
  11480. ;
  11481. return 0;
  11482. }
  11483. _ACEOF
  11484. if ac_fn_c_try_compile "$LINENO"; then :
  11485. ac_cv_sys_large_files=1; break
  11486. fi
  11487. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11488. ac_cv_sys_large_files=unknown
  11489. break
  11490. done
  11491. fi
  11492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  11493. $as_echo "$ac_cv_sys_large_files" >&6; }
  11494. case $ac_cv_sys_large_files in #(
  11495. no | unknown) ;;
  11496. *)
  11497. cat >>confdefs.h <<_ACEOF
  11498. #define _LARGE_FILES $ac_cv_sys_large_files
  11499. _ACEOF
  11500. ;;
  11501. esac
  11502. rm -rf conftest*
  11503. fi
  11504. fi
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  11506. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  11507. if ${ac_cv_sys_largefile_source+:} false; then :
  11508. $as_echo_n "(cached) " >&6
  11509. else
  11510. while :; do
  11511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11512. /* end confdefs.h. */
  11513. #include <sys/types.h> /* for off_t */
  11514. #include <stdio.h>
  11515. int
  11516. main ()
  11517. {
  11518. int (*fp) (FILE *, off_t, int) = fseeko;
  11519. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11520. ;
  11521. return 0;
  11522. }
  11523. _ACEOF
  11524. if ac_fn_c_try_link "$LINENO"; then :
  11525. ac_cv_sys_largefile_source=no; break
  11526. fi
  11527. rm -f core conftest.err conftest.$ac_objext \
  11528. conftest$ac_exeext conftest.$ac_ext
  11529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11530. /* end confdefs.h. */
  11531. #define _LARGEFILE_SOURCE 1
  11532. #include <sys/types.h> /* for off_t */
  11533. #include <stdio.h>
  11534. int
  11535. main ()
  11536. {
  11537. int (*fp) (FILE *, off_t, int) = fseeko;
  11538. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  11539. ;
  11540. return 0;
  11541. }
  11542. _ACEOF
  11543. if ac_fn_c_try_link "$LINENO"; then :
  11544. ac_cv_sys_largefile_source=1; break
  11545. fi
  11546. rm -f core conftest.err conftest.$ac_objext \
  11547. conftest$ac_exeext conftest.$ac_ext
  11548. ac_cv_sys_largefile_source=unknown
  11549. break
  11550. done
  11551. fi
  11552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  11553. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  11554. case $ac_cv_sys_largefile_source in #(
  11555. no | unknown) ;;
  11556. *)
  11557. cat >>confdefs.h <<_ACEOF
  11558. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  11559. _ACEOF
  11560. ;;
  11561. esac
  11562. rm -rf conftest*
  11563. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  11564. # in glibc 2.1.3, but that breaks too many other things.
  11565. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  11566. if test $ac_cv_sys_largefile_source != unknown; then
  11567. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  11568. fi
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
  11570. $as_echo_n "checking for mbstate_t... " >&6; }
  11571. if ${ac_cv_type_mbstate_t+:} false; then :
  11572. $as_echo_n "(cached) " >&6
  11573. else
  11574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11575. /* end confdefs.h. */
  11576. $ac_includes_default
  11577. # include <wchar.h>
  11578. int
  11579. main ()
  11580. {
  11581. mbstate_t x; return sizeof x;
  11582. ;
  11583. return 0;
  11584. }
  11585. _ACEOF
  11586. if ac_fn_c_try_compile "$LINENO"; then :
  11587. ac_cv_type_mbstate_t=yes
  11588. else
  11589. ac_cv_type_mbstate_t=no
  11590. fi
  11591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11592. fi
  11593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
  11594. $as_echo "$ac_cv_type_mbstate_t" >&6; }
  11595. if test $ac_cv_type_mbstate_t = yes; then
  11596. $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
  11597. else
  11598. $as_echo "#define mbstate_t int" >>confdefs.h
  11599. fi
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
  11601. $as_echo_n "checking for struct option in getopt... " >&6; }
  11602. if ${ac_cv_struct_option_getopt_h+:} false; then :
  11603. $as_echo_n "(cached) " >&6
  11604. else
  11605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11606. /* end confdefs.h. */
  11607. #include <getopt.h>
  11608. int
  11609. main ()
  11610. {
  11611. struct option op; op.name;
  11612. ;
  11613. return 0;
  11614. }
  11615. _ACEOF
  11616. if ac_fn_c_try_compile "$LINENO"; then :
  11617. ac_cv_struct_option_getopt_h=yes
  11618. else
  11619. ac_cv_struct_option_getopt_h=no
  11620. fi
  11621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11622. fi
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
  11624. $as_echo "$ac_cv_struct_option_getopt_h" >&6; }
  11625. if test "$ac_cv_struct_option_getopt_h" = yes; then
  11626. $as_echo "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
  11627. fi
  11628. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  11629. if test "x$ac_cv_type_pid_t" = xyes; then :
  11630. else
  11631. cat >>confdefs.h <<_ACEOF
  11632. #define pid_t int
  11633. _ACEOF
  11634. fi
  11635. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  11636. case $ac_cv_c_uint8_t in #(
  11637. no|yes) ;; #(
  11638. *)
  11639. $as_echo "#define _UINT8_T 1" >>confdefs.h
  11640. cat >>confdefs.h <<_ACEOF
  11641. #define uint8_t $ac_cv_c_uint8_t
  11642. _ACEOF
  11643. ;;
  11644. esac
  11645. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  11646. case $ac_cv_c_uint16_t in #(
  11647. no|yes) ;; #(
  11648. *)
  11649. cat >>confdefs.h <<_ACEOF
  11650. #define uint16_t $ac_cv_c_uint16_t
  11651. _ACEOF
  11652. ;;
  11653. esac
  11654. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  11655. case $ac_cv_c_uint32_t in #(
  11656. no|yes) ;; #(
  11657. *)
  11658. $as_echo "#define _UINT32_T 1" >>confdefs.h
  11659. cat >>confdefs.h <<_ACEOF
  11660. #define uint32_t $ac_cv_c_uint32_t
  11661. _ACEOF
  11662. ;;
  11663. esac
  11664. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  11665. case $ac_cv_c_int32_t in #(
  11666. no|yes) ;; #(
  11667. *)
  11668. cat >>confdefs.h <<_ACEOF
  11669. #define int32_t $ac_cv_c_int32_t
  11670. _ACEOF
  11671. ;;
  11672. esac
  11673. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  11674. case $ac_cv_c_uint64_t in #(
  11675. no|yes) ;; #(
  11676. *)
  11677. $as_echo "#define _UINT64_T 1" >>confdefs.h
  11678. cat >>confdefs.h <<_ACEOF
  11679. #define uint64_t $ac_cv_c_uint64_t
  11680. _ACEOF
  11681. ;;
  11682. esac
  11683. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  11684. case $ac_cv_c_int64_t in #(
  11685. no|yes) ;; #(
  11686. *)
  11687. cat >>confdefs.h <<_ACEOF
  11688. #define int64_t $ac_cv_c_int64_t
  11689. _ACEOF
  11690. ;;
  11691. esac
  11692. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11693. if test "x$ac_cv_type_intptr_t" = xyes; then :
  11694. $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
  11695. else
  11696. for ac_type in 'int' 'long int' 'long long int'; do
  11697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11698. /* end confdefs.h. */
  11699. $ac_includes_default
  11700. int
  11701. main ()
  11702. {
  11703. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11704. test_array [0] = 0;
  11705. return test_array [0];
  11706. ;
  11707. return 0;
  11708. }
  11709. _ACEOF
  11710. if ac_fn_c_try_compile "$LINENO"; then :
  11711. cat >>confdefs.h <<_ACEOF
  11712. #define intptr_t $ac_type
  11713. _ACEOF
  11714. ac_type=
  11715. fi
  11716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11717. test -z "$ac_type" && break
  11718. done
  11719. fi
  11720. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11721. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  11722. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  11723. else
  11724. for ac_type in 'unsigned int' 'unsigned long int' \
  11725. 'unsigned long long int'; do
  11726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11727. /* end confdefs.h. */
  11728. $ac_includes_default
  11729. int
  11730. main ()
  11731. {
  11732. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  11733. test_array [0] = 0;
  11734. return test_array [0];
  11735. ;
  11736. return 0;
  11737. }
  11738. _ACEOF
  11739. if ac_fn_c_try_compile "$LINENO"; then :
  11740. cat >>confdefs.h <<_ACEOF
  11741. #define uintptr_t $ac_type
  11742. _ACEOF
  11743. ac_type=
  11744. fi
  11745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11746. test -z "$ac_type" && break
  11747. done
  11748. fi
  11749. for ac_header in $ac_header_list
  11750. do :
  11751. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11752. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  11753. "
  11754. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  11755. cat >>confdefs.h <<_ACEOF
  11756. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11757. _ACEOF
  11758. fi
  11759. done
  11760. for ac_func in getpagesize
  11761. do :
  11762. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  11763. if test "x$ac_cv_func_getpagesize" = xyes; then :
  11764. cat >>confdefs.h <<_ACEOF
  11765. #define HAVE_GETPAGESIZE 1
  11766. _ACEOF
  11767. fi
  11768. done
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  11770. $as_echo_n "checking for working mmap... " >&6; }
  11771. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  11772. $as_echo_n "(cached) " >&6
  11773. else
  11774. if test "$cross_compiling" = yes; then :
  11775. ac_cv_func_mmap_fixed_mapped=no
  11776. else
  11777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11778. /* end confdefs.h. */
  11779. $ac_includes_default
  11780. /* malloc might have been renamed as rpl_malloc. */
  11781. #undef malloc
  11782. /* Thanks to Mike Haertel and Jim Avera for this test.
  11783. Here is a matrix of mmap possibilities:
  11784. mmap private not fixed
  11785. mmap private fixed at somewhere currently unmapped
  11786. mmap private fixed at somewhere already mapped
  11787. mmap shared not fixed
  11788. mmap shared fixed at somewhere currently unmapped
  11789. mmap shared fixed at somewhere already mapped
  11790. For private mappings, we should verify that changes cannot be read()
  11791. back from the file, nor mmap's back from the file at a different
  11792. address. (There have been systems where private was not correctly
  11793. implemented like the infamous i386 svr4.0, and systems where the
  11794. VM page cache was not coherent with the file system buffer cache
  11795. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11796. For shared mappings, we should conversely verify that changes get
  11797. propagated back to all the places they're supposed to be.
  11798. Grep wants private fixed already mapped.
  11799. The main things grep needs to know about mmap are:
  11800. * does it exist and is it safe to write into the mmap'd area
  11801. * how to use it (BSD variants) */
  11802. #include <fcntl.h>
  11803. #include <sys/mman.h>
  11804. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11805. char *malloc ();
  11806. #endif
  11807. /* This mess was copied from the GNU getpagesize.h. */
  11808. #ifndef HAVE_GETPAGESIZE
  11809. # ifdef _SC_PAGESIZE
  11810. # define getpagesize() sysconf(_SC_PAGESIZE)
  11811. # else /* no _SC_PAGESIZE */
  11812. # ifdef HAVE_SYS_PARAM_H
  11813. # include <sys/param.h>
  11814. # ifdef EXEC_PAGESIZE
  11815. # define getpagesize() EXEC_PAGESIZE
  11816. # else /* no EXEC_PAGESIZE */
  11817. # ifdef NBPG
  11818. # define getpagesize() NBPG * CLSIZE
  11819. # ifndef CLSIZE
  11820. # define CLSIZE 1
  11821. # endif /* no CLSIZE */
  11822. # else /* no NBPG */
  11823. # ifdef NBPC
  11824. # define getpagesize() NBPC
  11825. # else /* no NBPC */
  11826. # ifdef PAGESIZE
  11827. # define getpagesize() PAGESIZE
  11828. # endif /* PAGESIZE */
  11829. # endif /* no NBPC */
  11830. # endif /* no NBPG */
  11831. # endif /* no EXEC_PAGESIZE */
  11832. # else /* no HAVE_SYS_PARAM_H */
  11833. # define getpagesize() 8192 /* punt totally */
  11834. # endif /* no HAVE_SYS_PARAM_H */
  11835. # endif /* no _SC_PAGESIZE */
  11836. #endif /* no HAVE_GETPAGESIZE */
  11837. int
  11838. main ()
  11839. {
  11840. char *data, *data2, *data3;
  11841. const char *cdata2;
  11842. int i, pagesize;
  11843. int fd, fd2;
  11844. pagesize = getpagesize ();
  11845. /* First, make a file with some known garbage in it. */
  11846. data = (char *) malloc (pagesize);
  11847. if (!data)
  11848. return 1;
  11849. for (i = 0; i < pagesize; ++i)
  11850. *(data + i) = rand ();
  11851. umask (0);
  11852. fd = creat ("conftest.mmap", 0600);
  11853. if (fd < 0)
  11854. return 2;
  11855. if (write (fd, data, pagesize) != pagesize)
  11856. return 3;
  11857. close (fd);
  11858. /* Next, check that the tail of a page is zero-filled. File must have
  11859. non-zero length, otherwise we risk SIGBUS for entire page. */
  11860. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  11861. if (fd2 < 0)
  11862. return 4;
  11863. cdata2 = "";
  11864. if (write (fd2, cdata2, 1) != 1)
  11865. return 5;
  11866. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  11867. if (data2 == MAP_FAILED)
  11868. return 6;
  11869. for (i = 0; i < pagesize; ++i)
  11870. if (*(data2 + i))
  11871. return 7;
  11872. close (fd2);
  11873. if (munmap (data2, pagesize))
  11874. return 8;
  11875. /* Next, try to mmap the file at a fixed address which already has
  11876. something else allocated at it. If we can, also make sure that
  11877. we see the same garbage. */
  11878. fd = open ("conftest.mmap", O_RDWR);
  11879. if (fd < 0)
  11880. return 9;
  11881. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11882. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11883. return 10;
  11884. for (i = 0; i < pagesize; ++i)
  11885. if (*(data + i) != *(data2 + i))
  11886. return 11;
  11887. /* Finally, make sure that changes to the mapped area do not
  11888. percolate back to the file as seen by read(). (This is a bug on
  11889. some variants of i386 svr4.0.) */
  11890. for (i = 0; i < pagesize; ++i)
  11891. *(data2 + i) = *(data2 + i) + 1;
  11892. data3 = (char *) malloc (pagesize);
  11893. if (!data3)
  11894. return 12;
  11895. if (read (fd, data3, pagesize) != pagesize)
  11896. return 13;
  11897. for (i = 0; i < pagesize; ++i)
  11898. if (*(data + i) != *(data3 + i))
  11899. return 14;
  11900. close (fd);
  11901. return 0;
  11902. }
  11903. _ACEOF
  11904. if ac_fn_c_try_run "$LINENO"; then :
  11905. ac_cv_func_mmap_fixed_mapped=yes
  11906. else
  11907. ac_cv_func_mmap_fixed_mapped=no
  11908. fi
  11909. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11910. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11911. fi
  11912. fi
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11914. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11915. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11916. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  11917. fi
  11918. rm -f conftest.mmap conftest.txt
  11919. for ac_header in vfork.h
  11920. do :
  11921. ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  11922. if test "x$ac_cv_header_vfork_h" = xyes; then :
  11923. cat >>confdefs.h <<_ACEOF
  11924. #define HAVE_VFORK_H 1
  11925. _ACEOF
  11926. fi
  11927. done
  11928. for ac_func in fork vfork
  11929. do :
  11930. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11931. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11932. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  11933. cat >>confdefs.h <<_ACEOF
  11934. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11935. _ACEOF
  11936. fi
  11937. done
  11938. if test "x$ac_cv_func_fork" = xyes; then
  11939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  11940. $as_echo_n "checking for working fork... " >&6; }
  11941. if ${ac_cv_func_fork_works+:} false; then :
  11942. $as_echo_n "(cached) " >&6
  11943. else
  11944. if test "$cross_compiling" = yes; then :
  11945. ac_cv_func_fork_works=cross
  11946. else
  11947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11948. /* end confdefs.h. */
  11949. $ac_includes_default
  11950. int
  11951. main ()
  11952. {
  11953. /* By Ruediger Kuhlmann. */
  11954. return fork () < 0;
  11955. ;
  11956. return 0;
  11957. }
  11958. _ACEOF
  11959. if ac_fn_c_try_run "$LINENO"; then :
  11960. ac_cv_func_fork_works=yes
  11961. else
  11962. ac_cv_func_fork_works=no
  11963. fi
  11964. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11965. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11966. fi
  11967. fi
  11968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  11969. $as_echo "$ac_cv_func_fork_works" >&6; }
  11970. else
  11971. ac_cv_func_fork_works=$ac_cv_func_fork
  11972. fi
  11973. if test "x$ac_cv_func_fork_works" = xcross; then
  11974. case $host in
  11975. *-*-amigaos* | *-*-msdosdjgpp*)
  11976. # Override, as these systems have only a dummy fork() stub
  11977. ac_cv_func_fork_works=no
  11978. ;;
  11979. *)
  11980. ac_cv_func_fork_works=yes
  11981. ;;
  11982. esac
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  11984. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  11985. fi
  11986. ac_cv_func_vfork_works=$ac_cv_func_vfork
  11987. if test "x$ac_cv_func_vfork" = xyes; then
  11988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  11989. $as_echo_n "checking for working vfork... " >&6; }
  11990. if ${ac_cv_func_vfork_works+:} false; then :
  11991. $as_echo_n "(cached) " >&6
  11992. else
  11993. if test "$cross_compiling" = yes; then :
  11994. ac_cv_func_vfork_works=cross
  11995. else
  11996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11997. /* end confdefs.h. */
  11998. /* Thanks to Paul Eggert for this test. */
  11999. $ac_includes_default
  12000. #include <sys/wait.h>
  12001. #ifdef HAVE_VFORK_H
  12002. # include <vfork.h>
  12003. #endif
  12004. /* On some sparc systems, changes by the child to local and incoming
  12005. argument registers are propagated back to the parent. The compiler
  12006. is told about this with #include <vfork.h>, but some compilers
  12007. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  12008. static variable whose address is put into a register that is
  12009. clobbered by the vfork. */
  12010. static void
  12011. #ifdef __cplusplus
  12012. sparc_address_test (int arg)
  12013. # else
  12014. sparc_address_test (arg) int arg;
  12015. #endif
  12016. {
  12017. static pid_t child;
  12018. if (!child) {
  12019. child = vfork ();
  12020. if (child < 0) {
  12021. perror ("vfork");
  12022. _exit(2);
  12023. }
  12024. if (!child) {
  12025. arg = getpid();
  12026. write(-1, "", 0);
  12027. _exit (arg);
  12028. }
  12029. }
  12030. }
  12031. int
  12032. main ()
  12033. {
  12034. pid_t parent = getpid ();
  12035. pid_t child;
  12036. sparc_address_test (0);
  12037. child = vfork ();
  12038. if (child == 0) {
  12039. /* Here is another test for sparc vfork register problems. This
  12040. test uses lots of local variables, at least as many local
  12041. variables as main has allocated so far including compiler
  12042. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  12043. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  12044. reuse the register of parent for one of the local variables,
  12045. since it will think that parent can't possibly be used any more
  12046. in this routine. Assigning to the local variable will thus
  12047. munge parent in the parent process. */
  12048. pid_t
  12049. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  12050. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  12051. /* Convince the compiler that p..p7 are live; otherwise, it might
  12052. use the same hardware register for all 8 local variables. */
  12053. if (p != p1 || p != p2 || p != p3 || p != p4
  12054. || p != p5 || p != p6 || p != p7)
  12055. _exit(1);
  12056. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  12057. from child file descriptors. If the child closes a descriptor
  12058. before it execs or exits, this munges the parent's descriptor
  12059. as well. Test for this by closing stdout in the child. */
  12060. _exit(close(fileno(stdout)) != 0);
  12061. } else {
  12062. int status;
  12063. struct stat st;
  12064. while (wait(&status) != child)
  12065. ;
  12066. return (
  12067. /* Was there some problem with vforking? */
  12068. child < 0
  12069. /* Did the child fail? (This shouldn't happen.) */
  12070. || status
  12071. /* Did the vfork/compiler bug occur? */
  12072. || parent != getpid()
  12073. /* Did the file descriptor bug occur? */
  12074. || fstat(fileno(stdout), &st) != 0
  12075. );
  12076. }
  12077. }
  12078. _ACEOF
  12079. if ac_fn_c_try_run "$LINENO"; then :
  12080. ac_cv_func_vfork_works=yes
  12081. else
  12082. ac_cv_func_vfork_works=no
  12083. fi
  12084. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12085. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12086. fi
  12087. fi
  12088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  12089. $as_echo "$ac_cv_func_vfork_works" >&6; }
  12090. fi;
  12091. if test "x$ac_cv_func_fork_works" = xcross; then
  12092. ac_cv_func_vfork_works=$ac_cv_func_vfork
  12093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  12094. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  12095. fi
  12096. if test "x$ac_cv_func_vfork_works" = xyes; then
  12097. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  12098. else
  12099. $as_echo "#define vfork fork" >>confdefs.h
  12100. fi
  12101. if test "x$ac_cv_func_fork_works" = xyes; then
  12102. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  12103. fi
  12104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
  12105. $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
  12106. if ${ac_cv_func_mbrtowc+:} false; then :
  12107. $as_echo_n "(cached) " >&6
  12108. else
  12109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12110. /* end confdefs.h. */
  12111. #include <wchar.h>
  12112. int
  12113. main ()
  12114. {
  12115. wchar_t wc;
  12116. char const s[] = "";
  12117. size_t n = 1;
  12118. mbstate_t state;
  12119. return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
  12120. ;
  12121. return 0;
  12122. }
  12123. _ACEOF
  12124. if ac_fn_c_try_link "$LINENO"; then :
  12125. ac_cv_func_mbrtowc=yes
  12126. else
  12127. ac_cv_func_mbrtowc=no
  12128. fi
  12129. rm -f core conftest.err conftest.$ac_objext \
  12130. conftest$ac_exeext conftest.$ac_ext
  12131. fi
  12132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
  12133. $as_echo "$ac_cv_func_mbrtowc" >&6; }
  12134. if test $ac_cv_func_mbrtowc = yes; then
  12135. $as_echo "#define HAVE_MBRTOWC 1" >>confdefs.h
  12136. fi
  12137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
  12138. $as_echo_n "checking for gcc compiler warnings... " >&6; }
  12139. # Check whether --enable-warnings was given.
  12140. if test "${enable_warnings+set}" = set; then :
  12141. enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
  12142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12143. $as_echo "no" >&6; }
  12144. WARNINGS=
  12145. else
  12146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12147. $as_echo "yes" >&6; }
  12148. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12149. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12150. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12151. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12152. fi
  12153. else
  12154. if test "$GCC" = yes; then
  12155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12156. $as_echo "yes" >&6; }
  12157. WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
  12158. -Wmissing-declarations -Wredundant-decls -Wnested-externs \
  12159. -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
  12160. -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
  12161. else
  12162. WARNINGS=
  12163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12164. $as_echo "no" >&6; }
  12165. fi
  12166. fi
  12167. for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
  12168. do :
  12169. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12170. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12171. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  12172. cat >>confdefs.h <<_ACEOF
  12173. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12174. _ACEOF
  12175. fi
  12176. done
  12177. ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
  12178. if test "x$ac_cv_func_getopt_long" = xyes; then :
  12179. $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
  12180. else
  12181. case " $LIBOBJS " in
  12182. *" getopt_long.$ac_objext "* ) ;;
  12183. *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
  12184. ;;
  12185. esac
  12186. fi
  12187. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  12188. if test "x$ac_cv_func_asprintf" = xyes; then :
  12189. $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h
  12190. else
  12191. case " $LIBOBJS " in
  12192. *" asprintf.$ac_objext "* ) ;;
  12193. *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
  12194. ;;
  12195. esac
  12196. fi
  12197. ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
  12198. if test "x$ac_cv_func_vasprintf" = xyes; then :
  12199. $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
  12200. else
  12201. case " $LIBOBJS " in
  12202. *" vasprintf.$ac_objext "* ) ;;
  12203. *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
  12204. ;;
  12205. esac
  12206. fi
  12207. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  12208. if test "x$ac_cv_func_strlcpy" = xyes; then :
  12209. $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
  12210. else
  12211. case " $LIBOBJS " in
  12212. *" strlcpy.$ac_objext "* ) ;;
  12213. *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
  12214. ;;
  12215. esac
  12216. fi
  12217. ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
  12218. if test "x$ac_cv_func_strlcat" = xyes; then :
  12219. $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
  12220. else
  12221. case " $LIBOBJS " in
  12222. *" strlcat.$ac_objext "* ) ;;
  12223. *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
  12224. ;;
  12225. esac
  12226. fi
  12227. ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
  12228. if test "x$ac_cv_func_getline" = xyes; then :
  12229. $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
  12230. else
  12231. case " $LIBOBJS " in
  12232. *" getline.$ac_objext "* ) ;;
  12233. *) LIBOBJS="$LIBOBJS getline.$ac_objext"
  12234. ;;
  12235. esac
  12236. fi
  12237. ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
  12238. if test "x$ac_cv_func_ctime_r" = xyes; then :
  12239. $as_echo "#define HAVE_CTIME_R 1" >>confdefs.h
  12240. else
  12241. case " $LIBOBJS " in
  12242. *" ctime_r.$ac_objext "* ) ;;
  12243. *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
  12244. ;;
  12245. esac
  12246. fi
  12247. ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
  12248. if test "x$ac_cv_func_asctime_r" = xyes; then :
  12249. $as_echo "#define HAVE_ASCTIME_R 1" >>confdefs.h
  12250. else
  12251. case " $LIBOBJS " in
  12252. *" asctime_r.$ac_objext "* ) ;;
  12253. *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
  12254. ;;
  12255. esac
  12256. fi
  12257. ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  12258. if test "x$ac_cv_func_localtime_r" = xyes; then :
  12259. $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
  12260. else
  12261. case " $LIBOBJS " in
  12262. *" localtime_r.$ac_objext "* ) ;;
  12263. *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
  12264. ;;
  12265. esac
  12266. fi
  12267. ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  12268. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  12269. $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
  12270. else
  12271. case " $LIBOBJS " in
  12272. *" gmtime_r.$ac_objext "* ) ;;
  12273. *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
  12274. ;;
  12275. esac
  12276. fi
  12277. ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
  12278. if test "x$ac_cv_func_pread" = xyes; then :
  12279. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  12280. else
  12281. case " $LIBOBJS " in
  12282. *" pread.$ac_objext "* ) ;;
  12283. *) LIBOBJS="$LIBOBJS pread.$ac_objext"
  12284. ;;
  12285. esac
  12286. fi
  12287. ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
  12288. if test "x$ac_cv_func_strcasestr" = xyes; then :
  12289. $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
  12290. else
  12291. case " $LIBOBJS " in
  12292. *" strcasestr.$ac_objext "* ) ;;
  12293. *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
  12294. ;;
  12295. esac
  12296. fi
  12297. ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
  12298. if test "x$ac_cv_func_fmtcheck" = xyes; then :
  12299. $as_echo "#define HAVE_FMTCHECK 1" >>confdefs.h
  12300. else
  12301. case " $LIBOBJS " in
  12302. *" fmtcheck.$ac_objext "* ) ;;
  12303. *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
  12304. ;;
  12305. esac
  12306. fi
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
  12308. $as_echo_n "checking for gzopen in -lz... " >&6; }
  12309. if ${ac_cv_lib_z_gzopen+:} false; then :
  12310. $as_echo_n "(cached) " >&6
  12311. else
  12312. ac_check_lib_save_LIBS=$LIBS
  12313. LIBS="-lz $LIBS"
  12314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12315. /* end confdefs.h. */
  12316. /* Override any GCC internal prototype to avoid an error.
  12317. Use char because int might match the return type of a GCC
  12318. builtin and then its argument prototype would still apply. */
  12319. #ifdef __cplusplus
  12320. extern "C"
  12321. #endif
  12322. char gzopen ();
  12323. int
  12324. main ()
  12325. {
  12326. return gzopen ();
  12327. ;
  12328. return 0;
  12329. }
  12330. _ACEOF
  12331. if ac_fn_c_try_link "$LINENO"; then :
  12332. ac_cv_lib_z_gzopen=yes
  12333. else
  12334. ac_cv_lib_z_gzopen=no
  12335. fi
  12336. rm -f core conftest.err conftest.$ac_objext \
  12337. conftest$ac_exeext conftest.$ac_ext
  12338. LIBS=$ac_check_lib_save_LIBS
  12339. fi
  12340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
  12341. $as_echo "$ac_cv_lib_z_gzopen" >&6; }
  12342. if test "x$ac_cv_lib_z_gzopen" = xyes; then :
  12343. cat >>confdefs.h <<_ACEOF
  12344. #define HAVE_LIBZ 1
  12345. _ACEOF
  12346. LIBS="-lz $LIBS"
  12347. fi
  12348. if test "$MINGW" = 1; then
  12349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
  12350. $as_echo_n "checking for regexec in -lgnurx... " >&6; }
  12351. if ${ac_cv_lib_gnurx_regexec+:} false; then :
  12352. $as_echo_n "(cached) " >&6
  12353. else
  12354. ac_check_lib_save_LIBS=$LIBS
  12355. LIBS="-lgnurx $LIBS"
  12356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12357. /* end confdefs.h. */
  12358. /* Override any GCC internal prototype to avoid an error.
  12359. Use char because int might match the return type of a GCC
  12360. builtin and then its argument prototype would still apply. */
  12361. #ifdef __cplusplus
  12362. extern "C"
  12363. #endif
  12364. char regexec ();
  12365. int
  12366. main ()
  12367. {
  12368. return regexec ();
  12369. ;
  12370. return 0;
  12371. }
  12372. _ACEOF
  12373. if ac_fn_c_try_link "$LINENO"; then :
  12374. ac_cv_lib_gnurx_regexec=yes
  12375. else
  12376. ac_cv_lib_gnurx_regexec=no
  12377. fi
  12378. rm -f core conftest.err conftest.$ac_objext \
  12379. conftest$ac_exeext conftest.$ac_ext
  12380. LIBS=$ac_check_lib_save_LIBS
  12381. fi
  12382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
  12383. $as_echo "$ac_cv_lib_gnurx_regexec" >&6; }
  12384. if test "x$ac_cv_lib_gnurx_regexec" = xyes; then :
  12385. cat >>confdefs.h <<_ACEOF
  12386. #define HAVE_LIBGNURX 1
  12387. _ACEOF
  12388. LIBS="-lgnurx $LIBS"
  12389. else
  12390. as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
  12391. fi
  12392. fi
  12393. if test "$cross_compiling" = yes; then
  12394. IS_CROSS_COMPILE_TRUE=
  12395. IS_CROSS_COMPILE_FALSE='#'
  12396. else
  12397. IS_CROSS_COMPILE_TRUE='#'
  12398. IS_CROSS_COMPILE_FALSE=
  12399. fi
  12400. ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile"
  12401. cat >confcache <<\_ACEOF
  12402. # This file is a shell script that caches the results of configure
  12403. # tests run on this system so they can be shared between configure
  12404. # scripts and configure runs, see configure's option --config-cache.
  12405. # It is not useful on other systems. If it contains results you don't
  12406. # want to keep, you may remove or edit it.
  12407. #
  12408. # config.status only pays attention to the cache file if you give it
  12409. # the --recheck option to rerun configure.
  12410. #
  12411. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12412. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12413. # following values.
  12414. _ACEOF
  12415. # The following way of writing the cache mishandles newlines in values,
  12416. # but we know of no workaround that is simple, portable, and efficient.
  12417. # So, we kill variables containing newlines.
  12418. # Ultrix sh set writes to stderr and can't be redirected directly,
  12419. # and sets the high bit in the cache file unless we assign to the vars.
  12420. (
  12421. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12422. eval ac_val=\$$ac_var
  12423. case $ac_val in #(
  12424. *${as_nl}*)
  12425. case $ac_var in #(
  12426. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12427. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12428. esac
  12429. case $ac_var in #(
  12430. _ | IFS | as_nl) ;; #(
  12431. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12432. *) { eval $ac_var=; unset $ac_var;} ;;
  12433. esac ;;
  12434. esac
  12435. done
  12436. (set) 2>&1 |
  12437. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12438. *${as_nl}ac_space=\ *)
  12439. # `set' does not quote correctly, so add quotes: double-quote
  12440. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12441. sed -n \
  12442. "s/'/'\\\\''/g;
  12443. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12444. ;; #(
  12445. *)
  12446. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12447. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12448. ;;
  12449. esac |
  12450. sort
  12451. ) |
  12452. sed '
  12453. /^ac_cv_env_/b end
  12454. t clear
  12455. :clear
  12456. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12457. t end
  12458. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12459. :end' >>confcache
  12460. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12461. if test -w "$cache_file"; then
  12462. if test "x$cache_file" != "x/dev/null"; then
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12464. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12465. if test ! -f "$cache_file" || test -h "$cache_file"; then
  12466. cat confcache >"$cache_file"
  12467. else
  12468. case $cache_file in #(
  12469. */* | ?:*)
  12470. mv -f confcache "$cache_file"$$ &&
  12471. mv -f "$cache_file"$$ "$cache_file" ;; #(
  12472. *)
  12473. mv -f confcache "$cache_file" ;;
  12474. esac
  12475. fi
  12476. fi
  12477. else
  12478. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12479. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12480. fi
  12481. fi
  12482. rm -f confcache
  12483. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12484. # Let make expand exec_prefix.
  12485. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12486. DEFS=-DHAVE_CONFIG_H
  12487. ac_libobjs=
  12488. ac_ltlibobjs=
  12489. U=
  12490. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12491. # 1. Remove the extension, and $U if already installed.
  12492. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12493. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12494. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12495. # will be set to the directory where LIBOBJS objects are built.
  12496. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12497. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12498. done
  12499. LIBOBJS=$ac_libobjs
  12500. LTLIBOBJS=$ac_ltlibobjs
  12501. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  12502. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  12503. if test -n "$am_sleep_pid"; then
  12504. # Hide warnings about reused PIDs.
  12505. wait $am_sleep_pid 2>/dev/null
  12506. fi
  12507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  12508. $as_echo "done" >&6; }
  12509. if test -n "$EXEEXT"; then
  12510. am__EXEEXT_TRUE=
  12511. am__EXEEXT_FALSE='#'
  12512. else
  12513. am__EXEEXT_TRUE='#'
  12514. am__EXEEXT_FALSE=
  12515. fi
  12516. if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
  12517. as_fn_error $? "conditional \"MINGW\" was never defined.
  12518. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12519. fi
  12520. if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
  12521. as_fn_error $? "conditional \"FSECT5\" was never defined.
  12522. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12523. fi
  12524. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12525. as_fn_error $? "conditional \"AMDEP\" was never defined.
  12526. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12527. fi
  12528. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12529. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  12530. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12531. fi
  12532. if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
  12533. as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
  12534. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12535. fi
  12536. : "${CONFIG_STATUS=./config.status}"
  12537. ac_write_fail=0
  12538. ac_clean_files_save=$ac_clean_files
  12539. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12540. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12541. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12542. as_write_fail=0
  12543. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12544. #! $SHELL
  12545. # Generated by $as_me.
  12546. # Run this file to recreate the current configuration.
  12547. # Compiler output produced by configure, useful for debugging
  12548. # configure, is in config.log if it exists.
  12549. debug=false
  12550. ac_cs_recheck=false
  12551. ac_cs_silent=false
  12552. SHELL=\${CONFIG_SHELL-$SHELL}
  12553. export SHELL
  12554. _ASEOF
  12555. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12556. ## -------------------- ##
  12557. ## M4sh Initialization. ##
  12558. ## -------------------- ##
  12559. # Be more Bourne compatible
  12560. DUALCASE=1; export DUALCASE # for MKS sh
  12561. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12562. emulate sh
  12563. NULLCMD=:
  12564. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12565. # is contrary to our usage. Disable this feature.
  12566. alias -g '${1+"$@"}'='"$@"'
  12567. setopt NO_GLOB_SUBST
  12568. else
  12569. case `(set -o) 2>/dev/null` in #(
  12570. *posix*) :
  12571. set -o posix ;; #(
  12572. *) :
  12573. ;;
  12574. esac
  12575. fi
  12576. as_nl='
  12577. '
  12578. export as_nl
  12579. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12580. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12581. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12582. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12583. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12584. # but without wasting forks for bash or zsh.
  12585. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12586. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12587. as_echo='print -r --'
  12588. as_echo_n='print -rn --'
  12589. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12590. as_echo='printf %s\n'
  12591. as_echo_n='printf %s'
  12592. else
  12593. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12594. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12595. as_echo_n='/usr/ucb/echo -n'
  12596. else
  12597. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12598. as_echo_n_body='eval
  12599. arg=$1;
  12600. case $arg in #(
  12601. *"$as_nl"*)
  12602. expr "X$arg" : "X\\(.*\\)$as_nl";
  12603. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12604. esac;
  12605. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12606. '
  12607. export as_echo_n_body
  12608. as_echo_n='sh -c $as_echo_n_body as_echo'
  12609. fi
  12610. export as_echo_body
  12611. as_echo='sh -c $as_echo_body as_echo'
  12612. fi
  12613. # The user is always right.
  12614. if test "${PATH_SEPARATOR+set}" != set; then
  12615. PATH_SEPARATOR=:
  12616. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  12617. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  12618. PATH_SEPARATOR=';'
  12619. }
  12620. fi
  12621. # IFS
  12622. # We need space, tab and new line, in precisely that order. Quoting is
  12623. # there to prevent editors from complaining about space-tab.
  12624. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12625. # splitting by setting IFS to empty value.)
  12626. IFS=" "" $as_nl"
  12627. # Find who we are. Look in the path if we contain no directory separator.
  12628. as_myself=
  12629. case $0 in #((
  12630. *[\\/]* ) as_myself=$0 ;;
  12631. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12632. for as_dir in $PATH
  12633. do
  12634. IFS=$as_save_IFS
  12635. test -z "$as_dir" && as_dir=.
  12636. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12637. done
  12638. IFS=$as_save_IFS
  12639. ;;
  12640. esac
  12641. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12642. # in which case we are not to be found in the path.
  12643. if test "x$as_myself" = x; then
  12644. as_myself=$0
  12645. fi
  12646. if test ! -f "$as_myself"; then
  12647. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12648. exit 1
  12649. fi
  12650. # Unset variables that we do not need and which cause bugs (e.g. in
  12651. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  12652. # suppresses any "Segmentation fault" message there. '((' could
  12653. # trigger a bug in pdksh 5.2.14.
  12654. for as_var in BASH_ENV ENV MAIL MAILPATH
  12655. do eval test x\${$as_var+set} = xset \
  12656. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  12657. done
  12658. PS1='$ '
  12659. PS2='> '
  12660. PS4='+ '
  12661. # NLS nuisances.
  12662. LC_ALL=C
  12663. export LC_ALL
  12664. LANGUAGE=C
  12665. export LANGUAGE
  12666. # CDPATH.
  12667. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  12668. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  12669. # ----------------------------------------
  12670. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  12671. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  12672. # script with STATUS, using 1 if that was 0.
  12673. as_fn_error ()
  12674. {
  12675. as_status=$1; test $as_status -eq 0 && as_status=1
  12676. if test "$4"; then
  12677. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  12678. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  12679. fi
  12680. $as_echo "$as_me: error: $2" >&2
  12681. as_fn_exit $as_status
  12682. } # as_fn_error
  12683. # as_fn_set_status STATUS
  12684. # -----------------------
  12685. # Set $? to STATUS, without forking.
  12686. as_fn_set_status ()
  12687. {
  12688. return $1
  12689. } # as_fn_set_status
  12690. # as_fn_exit STATUS
  12691. # -----------------
  12692. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  12693. as_fn_exit ()
  12694. {
  12695. set +e
  12696. as_fn_set_status $1
  12697. exit $1
  12698. } # as_fn_exit
  12699. # as_fn_unset VAR
  12700. # ---------------
  12701. # Portably unset VAR.
  12702. as_fn_unset ()
  12703. {
  12704. { eval $1=; unset $1;}
  12705. }
  12706. as_unset=as_fn_unset
  12707. # as_fn_append VAR VALUE
  12708. # ----------------------
  12709. # Append the text in VALUE to the end of the definition contained in VAR. Take
  12710. # advantage of any shell optimizations that allow amortized linear growth over
  12711. # repeated appends, instead of the typical quadratic growth present in naive
  12712. # implementations.
  12713. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  12714. eval 'as_fn_append ()
  12715. {
  12716. eval $1+=\$2
  12717. }'
  12718. else
  12719. as_fn_append ()
  12720. {
  12721. eval $1=\$$1\$2
  12722. }
  12723. fi # as_fn_append
  12724. # as_fn_arith ARG...
  12725. # ------------------
  12726. # Perform arithmetic evaluation on the ARGs, and store the result in the
  12727. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  12728. # must be portable across $(()) and expr.
  12729. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  12730. eval 'as_fn_arith ()
  12731. {
  12732. as_val=$(( $* ))
  12733. }'
  12734. else
  12735. as_fn_arith ()
  12736. {
  12737. as_val=`expr "$@" || test $? -eq 1`
  12738. }
  12739. fi # as_fn_arith
  12740. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12741. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12742. as_expr=expr
  12743. else
  12744. as_expr=false
  12745. fi
  12746. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12747. as_basename=basename
  12748. else
  12749. as_basename=false
  12750. fi
  12751. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12752. as_dirname=dirname
  12753. else
  12754. as_dirname=false
  12755. fi
  12756. as_me=`$as_basename -- "$0" ||
  12757. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12758. X"$0" : 'X\(//\)$' \| \
  12759. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12760. $as_echo X/"$0" |
  12761. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12762. s//\1/
  12763. q
  12764. }
  12765. /^X\/\(\/\/\)$/{
  12766. s//\1/
  12767. q
  12768. }
  12769. /^X\/\(\/\).*/{
  12770. s//\1/
  12771. q
  12772. }
  12773. s/.*/./; q'`
  12774. # Avoid depending upon Character Ranges.
  12775. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12776. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12777. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12778. as_cr_digits='0123456789'
  12779. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12780. ECHO_C= ECHO_N= ECHO_T=
  12781. case `echo -n x` in #(((((
  12782. -n*)
  12783. case `echo 'xy\c'` in
  12784. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12785. xy) ECHO_C='\c';;
  12786. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  12787. ECHO_T=' ';;
  12788. esac;;
  12789. *)
  12790. ECHO_N='-n';;
  12791. esac
  12792. rm -f conf$$ conf$$.exe conf$$.file
  12793. if test -d conf$$.dir; then
  12794. rm -f conf$$.dir/conf$$.file
  12795. else
  12796. rm -f conf$$.dir
  12797. mkdir conf$$.dir 2>/dev/null
  12798. fi
  12799. if (echo >conf$$.file) 2>/dev/null; then
  12800. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12801. as_ln_s='ln -s'
  12802. # ... but there are two gotchas:
  12803. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12804. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12805. # In both cases, we have to default to `cp -pR'.
  12806. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12807. as_ln_s='cp -pR'
  12808. elif ln conf$$.file conf$$ 2>/dev/null; then
  12809. as_ln_s=ln
  12810. else
  12811. as_ln_s='cp -pR'
  12812. fi
  12813. else
  12814. as_ln_s='cp -pR'
  12815. fi
  12816. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12817. rmdir conf$$.dir 2>/dev/null
  12818. # as_fn_mkdir_p
  12819. # -------------
  12820. # Create "$as_dir" as a directory, including parents if necessary.
  12821. as_fn_mkdir_p ()
  12822. {
  12823. case $as_dir in #(
  12824. -*) as_dir=./$as_dir;;
  12825. esac
  12826. test -d "$as_dir" || eval $as_mkdir_p || {
  12827. as_dirs=
  12828. while :; do
  12829. case $as_dir in #(
  12830. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12831. *) as_qdir=$as_dir;;
  12832. esac
  12833. as_dirs="'$as_qdir' $as_dirs"
  12834. as_dir=`$as_dirname -- "$as_dir" ||
  12835. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12836. X"$as_dir" : 'X\(//\)[^/]' \| \
  12837. X"$as_dir" : 'X\(//\)$' \| \
  12838. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12839. $as_echo X"$as_dir" |
  12840. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12841. s//\1/
  12842. q
  12843. }
  12844. /^X\(\/\/\)[^/].*/{
  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. test -d "$as_dir" && break
  12858. done
  12859. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12860. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  12861. } # as_fn_mkdir_p
  12862. if mkdir -p . 2>/dev/null; then
  12863. as_mkdir_p='mkdir -p "$as_dir"'
  12864. else
  12865. test -d ./-p && rmdir ./-p
  12866. as_mkdir_p=false
  12867. fi
  12868. # as_fn_executable_p FILE
  12869. # -----------------------
  12870. # Test if FILE is an executable regular file.
  12871. as_fn_executable_p ()
  12872. {
  12873. test -f "$1" && test -x "$1"
  12874. } # as_fn_executable_p
  12875. as_test_x='test -x'
  12876. as_executable_p=as_fn_executable_p
  12877. # Sed expression to map a string onto a valid CPP name.
  12878. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12879. # Sed expression to map a string onto a valid variable name.
  12880. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12881. exec 6>&1
  12882. ## ----------------------------------- ##
  12883. ## Main body of $CONFIG_STATUS script. ##
  12884. ## ----------------------------------- ##
  12885. _ASEOF
  12886. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  12887. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12888. # Save the log message, to keep $0 and so on meaningful, and to
  12889. # report actual input values of CONFIG_FILES etc. instead of their
  12890. # values after options handling.
  12891. ac_log="
  12892. This file was extended by file $as_me 5.24, which was
  12893. generated by GNU Autoconf 2.69. Invocation command line was
  12894. CONFIG_FILES = $CONFIG_FILES
  12895. CONFIG_HEADERS = $CONFIG_HEADERS
  12896. CONFIG_LINKS = $CONFIG_LINKS
  12897. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12898. $ $0 $@
  12899. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12900. "
  12901. _ACEOF
  12902. case $ac_config_files in *"
  12903. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  12904. esac
  12905. case $ac_config_headers in *"
  12906. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  12907. esac
  12908. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12909. # Files that config.status was made for.
  12910. config_files="$ac_config_files"
  12911. config_headers="$ac_config_headers"
  12912. config_commands="$ac_config_commands"
  12913. _ACEOF
  12914. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12915. ac_cs_usage="\
  12916. \`$as_me' instantiates files and other configuration actions
  12917. from templates according to the current configuration. Unless the files
  12918. and actions are specified as TAGs, all are instantiated by default.
  12919. Usage: $0 [OPTION]... [TAG]...
  12920. -h, --help print this help, then exit
  12921. -V, --version print version number and configuration settings, then exit
  12922. --config print configuration, then exit
  12923. -q, --quiet, --silent
  12924. do not print progress messages
  12925. -d, --debug don't remove temporary files
  12926. --recheck update $as_me by reconfiguring in the same conditions
  12927. --file=FILE[:TEMPLATE]
  12928. instantiate the configuration file FILE
  12929. --header=FILE[:TEMPLATE]
  12930. instantiate the configuration header FILE
  12931. Configuration files:
  12932. $config_files
  12933. Configuration headers:
  12934. $config_headers
  12935. Configuration commands:
  12936. $config_commands
  12937. Report bugs to <christos@astron.com>."
  12938. _ACEOF
  12939. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12940. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  12941. ac_cs_version="\\
  12942. file config.status 5.24
  12943. configured by $0, generated by GNU Autoconf 2.69,
  12944. with options \\"\$ac_cs_config\\"
  12945. Copyright (C) 2012 Free Software Foundation, Inc.
  12946. This config.status script is free software; the Free Software Foundation
  12947. gives unlimited permission to copy, distribute and modify it."
  12948. ac_pwd='$ac_pwd'
  12949. srcdir='$srcdir'
  12950. INSTALL='$INSTALL'
  12951. MKDIR_P='$MKDIR_P'
  12952. AWK='$AWK'
  12953. test -n "\$AWK" || AWK=awk
  12954. _ACEOF
  12955. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12956. # The default lists apply if the user does not specify any file.
  12957. ac_need_defaults=:
  12958. while test $# != 0
  12959. do
  12960. case $1 in
  12961. --*=?*)
  12962. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12963. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12964. ac_shift=:
  12965. ;;
  12966. --*=)
  12967. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12968. ac_optarg=
  12969. ac_shift=:
  12970. ;;
  12971. *)
  12972. ac_option=$1
  12973. ac_optarg=$2
  12974. ac_shift=shift
  12975. ;;
  12976. esac
  12977. case $ac_option in
  12978. # Handling of the options.
  12979. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12980. ac_cs_recheck=: ;;
  12981. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12982. $as_echo "$ac_cs_version"; exit ;;
  12983. --config | --confi | --conf | --con | --co | --c )
  12984. $as_echo "$ac_cs_config"; exit ;;
  12985. --debug | --debu | --deb | --de | --d | -d )
  12986. debug=: ;;
  12987. --file | --fil | --fi | --f )
  12988. $ac_shift
  12989. case $ac_optarg in
  12990. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12991. '') as_fn_error $? "missing file argument" ;;
  12992. esac
  12993. as_fn_append CONFIG_FILES " '$ac_optarg'"
  12994. ac_need_defaults=false;;
  12995. --header | --heade | --head | --hea )
  12996. $ac_shift
  12997. case $ac_optarg in
  12998. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12999. esac
  13000. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13001. ac_need_defaults=false;;
  13002. --he | --h)
  13003. # Conflict between --help and --header
  13004. as_fn_error $? "ambiguous option: \`$1'
  13005. Try \`$0 --help' for more information.";;
  13006. --help | --hel | -h )
  13007. $as_echo "$ac_cs_usage"; exit ;;
  13008. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13009. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13010. ac_cs_silent=: ;;
  13011. # This is an error.
  13012. -*) as_fn_error $? "unrecognized option: \`$1'
  13013. Try \`$0 --help' for more information." ;;
  13014. *) as_fn_append ac_config_targets " $1"
  13015. ac_need_defaults=false ;;
  13016. esac
  13017. shift
  13018. done
  13019. ac_configure_extra_args=
  13020. if $ac_cs_silent; then
  13021. exec 6>/dev/null
  13022. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13023. fi
  13024. _ACEOF
  13025. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13026. if \$ac_cs_recheck; then
  13027. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13028. shift
  13029. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13030. CONFIG_SHELL='$SHELL'
  13031. export CONFIG_SHELL
  13032. exec "\$@"
  13033. fi
  13034. _ACEOF
  13035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13036. exec 5>>config.log
  13037. {
  13038. echo
  13039. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13040. ## Running $as_me. ##
  13041. _ASBOX
  13042. $as_echo "$ac_log"
  13043. } >&5
  13044. _ACEOF
  13045. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13046. #
  13047. # INIT-COMMANDS
  13048. #
  13049. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13050. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13051. # if CDPATH is set.
  13052. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13053. sed_quote_subst='$sed_quote_subst'
  13054. double_quote_subst='$double_quote_subst'
  13055. delay_variable_subst='$delay_variable_subst'
  13056. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13057. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13058. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13059. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13060. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13061. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13062. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13063. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13064. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13065. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13066. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13067. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13068. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13069. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13070. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13071. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13072. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13073. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13074. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13075. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13076. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13077. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13078. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13079. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13080. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13081. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13082. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13083. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13084. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13085. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13086. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13087. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13088. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13089. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13090. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13091. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13092. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13093. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13094. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13095. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13096. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13097. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13098. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  13099. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  13100. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  13101. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13102. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13103. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  13104. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  13105. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  13106. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  13107. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  13108. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  13109. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  13110. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  13111. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  13112. 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"`'
  13113. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  13114. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  13115. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  13116. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  13117. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  13118. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  13119. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  13120. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  13121. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  13122. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  13123. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  13124. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  13125. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  13126. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  13127. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  13128. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  13129. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  13130. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  13131. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13132. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  13133. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  13134. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  13135. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  13136. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  13137. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  13138. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  13139. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  13140. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13141. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  13142. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  13143. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  13144. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13145. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  13146. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  13147. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  13148. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  13149. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  13150. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  13151. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13152. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  13153. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  13154. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  13155. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  13156. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  13157. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  13158. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  13159. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  13160. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  13161. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  13162. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  13163. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  13164. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  13165. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  13166. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  13167. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  13168. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  13169. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  13170. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  13171. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  13172. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  13173. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  13174. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  13175. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  13176. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  13177. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  13178. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  13179. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  13180. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  13181. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  13182. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  13183. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  13184. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  13185. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  13186. LTCC='$LTCC'
  13187. LTCFLAGS='$LTCFLAGS'
  13188. compiler='$compiler_DEFAULT'
  13189. # A function that is used when there is no print builtin or printf.
  13190. func_fallback_echo ()
  13191. {
  13192. eval 'cat <<_LTECHO_EOF
  13193. \$1
  13194. _LTECHO_EOF'
  13195. }
  13196. # Quote evaled strings.
  13197. for var in SHELL \
  13198. ECHO \
  13199. PATH_SEPARATOR \
  13200. SED \
  13201. GREP \
  13202. EGREP \
  13203. FGREP \
  13204. LD \
  13205. NM \
  13206. LN_S \
  13207. lt_SP2NL \
  13208. lt_NL2SP \
  13209. reload_flag \
  13210. OBJDUMP \
  13211. deplibs_check_method \
  13212. file_magic_cmd \
  13213. file_magic_glob \
  13214. want_nocaseglob \
  13215. DLLTOOL \
  13216. sharedlib_from_linklib_cmd \
  13217. AR \
  13218. AR_FLAGS \
  13219. archiver_list_spec \
  13220. STRIP \
  13221. RANLIB \
  13222. CC \
  13223. CFLAGS \
  13224. compiler \
  13225. lt_cv_sys_global_symbol_pipe \
  13226. lt_cv_sys_global_symbol_to_cdecl \
  13227. lt_cv_sys_global_symbol_to_c_name_address \
  13228. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13229. nm_file_list_spec \
  13230. lt_prog_compiler_no_builtin_flag \
  13231. lt_prog_compiler_pic \
  13232. lt_prog_compiler_wl \
  13233. lt_prog_compiler_static \
  13234. lt_cv_prog_compiler_c_o \
  13235. need_locks \
  13236. MANIFEST_TOOL \
  13237. DSYMUTIL \
  13238. NMEDIT \
  13239. LIPO \
  13240. OTOOL \
  13241. OTOOL64 \
  13242. shrext_cmds \
  13243. export_dynamic_flag_spec \
  13244. whole_archive_flag_spec \
  13245. compiler_needs_object \
  13246. with_gnu_ld \
  13247. allow_undefined_flag \
  13248. no_undefined_flag \
  13249. hardcode_libdir_flag_spec \
  13250. hardcode_libdir_separator \
  13251. exclude_expsyms \
  13252. include_expsyms \
  13253. file_list_spec \
  13254. variables_saved_for_relink \
  13255. libname_spec \
  13256. library_names_spec \
  13257. soname_spec \
  13258. install_override_mode \
  13259. finish_eval \
  13260. old_striplib \
  13261. striplib; do
  13262. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13263. *[\\\\\\\`\\"\\\$]*)
  13264. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13265. ;;
  13266. *)
  13267. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13268. ;;
  13269. esac
  13270. done
  13271. # Double-quote double-evaled strings.
  13272. for var in reload_cmds \
  13273. old_postinstall_cmds \
  13274. old_postuninstall_cmds \
  13275. old_archive_cmds \
  13276. extract_expsyms_cmds \
  13277. old_archive_from_new_cmds \
  13278. old_archive_from_expsyms_cmds \
  13279. archive_cmds \
  13280. archive_expsym_cmds \
  13281. module_cmds \
  13282. module_expsym_cmds \
  13283. export_symbols_cmds \
  13284. prelink_cmds \
  13285. postlink_cmds \
  13286. postinstall_cmds \
  13287. postuninstall_cmds \
  13288. finish_cmds \
  13289. sys_lib_search_path_spec \
  13290. sys_lib_dlsearch_path_spec; do
  13291. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  13292. *[\\\\\\\`\\"\\\$]*)
  13293. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13294. ;;
  13295. *)
  13296. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13297. ;;
  13298. esac
  13299. done
  13300. ac_aux_dir='$ac_aux_dir'
  13301. xsi_shell='$xsi_shell'
  13302. lt_shell_append='$lt_shell_append'
  13303. # See if we are running on zsh, and set the options which allow our
  13304. # commands through without removal of \ escapes INIT.
  13305. if test -n "\${ZSH_VERSION+set}" ; then
  13306. setopt NO_GLOB_SUBST
  13307. fi
  13308. PACKAGE='$PACKAGE'
  13309. VERSION='$VERSION'
  13310. TIMESTAMP='$TIMESTAMP'
  13311. RM='$RM'
  13312. ofile='$ofile'
  13313. _ACEOF
  13314. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13315. # Handling of arguments.
  13316. for ac_config_target in $ac_config_targets
  13317. do
  13318. case $ac_config_target in
  13319. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  13320. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13321. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13322. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13323. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  13324. "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
  13325. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  13326. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13327. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  13328. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13329. esac
  13330. done
  13331. # If the user did not use the arguments to specify the items to instantiate,
  13332. # then the envvar interface is used. Set only those that are not.
  13333. # We use the long form for the default assignment because of an extremely
  13334. # bizarre bug on SunOS 4.1.3.
  13335. if $ac_need_defaults; then
  13336. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13337. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13338. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13339. fi
  13340. # Have a temporary directory for convenience. Make it in the build tree
  13341. # simply because there is no reason against having it here, and in addition,
  13342. # creating and moving files from /tmp can sometimes cause problems.
  13343. # Hook for its removal unless debugging.
  13344. # Note that there is a small window in which the directory will not be cleaned:
  13345. # after its creation but before its name has been assigned to `$tmp'.
  13346. $debug ||
  13347. {
  13348. tmp= ac_tmp=
  13349. trap 'exit_status=$?
  13350. : "${ac_tmp:=$tmp}"
  13351. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  13352. ' 0
  13353. trap 'as_fn_exit 1' 1 2 13 15
  13354. }
  13355. # Create a (secure) tmp directory for tmp files.
  13356. {
  13357. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13358. test -d "$tmp"
  13359. } ||
  13360. {
  13361. tmp=./conf$$-$RANDOM
  13362. (umask 077 && mkdir "$tmp")
  13363. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  13364. ac_tmp=$tmp
  13365. # Set up the scripts for CONFIG_FILES section.
  13366. # No need to generate them if there are no CONFIG_FILES.
  13367. # This happens for instance with `./config.status config.h'.
  13368. if test -n "$CONFIG_FILES"; then
  13369. ac_cr=`echo X | tr X '\015'`
  13370. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13371. # But we know of no other shell where ac_cr would be empty at this
  13372. # point, so we can use a bashism as a fallback.
  13373. if test "x$ac_cr" = x; then
  13374. eval ac_cr=\$\'\\r\'
  13375. fi
  13376. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13377. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13378. ac_cs_awk_cr='\\r'
  13379. else
  13380. ac_cs_awk_cr=$ac_cr
  13381. fi
  13382. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  13383. _ACEOF
  13384. {
  13385. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13386. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13387. echo "_ACEOF"
  13388. } >conf$$subs.sh ||
  13389. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13390. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  13391. ac_delim='%!_!# '
  13392. for ac_last_try in false false false false false :; do
  13393. . ./conf$$subs.sh ||
  13394. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13395. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13396. if test $ac_delim_n = $ac_delim_num; then
  13397. break
  13398. elif $ac_last_try; then
  13399. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  13400. else
  13401. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13402. fi
  13403. done
  13404. rm -f conf$$subs.sh
  13405. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13406. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  13407. _ACEOF
  13408. sed -n '
  13409. h
  13410. s/^/S["/; s/!.*/"]=/
  13411. p
  13412. g
  13413. s/^[^!]*!//
  13414. :repl
  13415. t repl
  13416. s/'"$ac_delim"'$//
  13417. t delim
  13418. :nl
  13419. h
  13420. s/\(.\{148\}\)..*/\1/
  13421. t more1
  13422. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13423. p
  13424. n
  13425. b repl
  13426. :more1
  13427. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13428. p
  13429. g
  13430. s/.\{148\}//
  13431. t nl
  13432. :delim
  13433. h
  13434. s/\(.\{148\}\)..*/\1/
  13435. t more2
  13436. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13437. p
  13438. b
  13439. :more2
  13440. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13441. p
  13442. g
  13443. s/.\{148\}//
  13444. t delim
  13445. ' <conf$$subs.awk | sed '
  13446. /^[^""]/{
  13447. N
  13448. s/\n//
  13449. }
  13450. ' >>$CONFIG_STATUS || ac_write_fail=1
  13451. rm -f conf$$subs.awk
  13452. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13453. _ACAWK
  13454. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  13455. for (key in S) S_is_set[key] = 1
  13456. FS = ""
  13457. }
  13458. {
  13459. line = $ 0
  13460. nfields = split(line, field, "@")
  13461. substed = 0
  13462. len = length(field[1])
  13463. for (i = 2; i < nfields; i++) {
  13464. key = field[i]
  13465. keylen = length(key)
  13466. if (S_is_set[key]) {
  13467. value = S[key]
  13468. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13469. len += length(value) + length(field[++i])
  13470. substed = 1
  13471. } else
  13472. len += 1 + keylen
  13473. }
  13474. print line
  13475. }
  13476. _ACAWK
  13477. _ACEOF
  13478. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13479. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13480. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13481. else
  13482. cat
  13483. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  13484. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  13485. _ACEOF
  13486. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  13487. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  13488. # trailing colons and then remove the whole line if VPATH becomes empty
  13489. # (actually we leave an empty line to preserve line numbers).
  13490. if test "x$srcdir" = x.; then
  13491. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  13492. h
  13493. s///
  13494. s/^/:/
  13495. s/[ ]*$/:/
  13496. s/:\$(srcdir):/:/g
  13497. s/:\${srcdir}:/:/g
  13498. s/:@srcdir@:/:/g
  13499. s/^:*//
  13500. s/:*$//
  13501. x
  13502. s/\(=[ ]*\).*/\1/
  13503. G
  13504. s/\n//
  13505. s/^[^=]*=[ ]*$//
  13506. }'
  13507. fi
  13508. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13509. fi # test -n "$CONFIG_FILES"
  13510. # Set up the scripts for CONFIG_HEADERS section.
  13511. # No need to generate them if there are no CONFIG_HEADERS.
  13512. # This happens for instance with `./config.status Makefile'.
  13513. if test -n "$CONFIG_HEADERS"; then
  13514. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  13515. BEGIN {
  13516. _ACEOF
  13517. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13518. # here-document in config.status, that substitutes the proper values into
  13519. # config.h.in to produce config.h.
  13520. # Create a delimiter string that does not exist in confdefs.h, to ease
  13521. # handling of long lines.
  13522. ac_delim='%!_!# '
  13523. for ac_last_try in false false :; do
  13524. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  13525. if test -z "$ac_tt"; then
  13526. break
  13527. elif $ac_last_try; then
  13528. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  13529. else
  13530. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13531. fi
  13532. done
  13533. # For the awk script, D is an array of macro values keyed by name,
  13534. # likewise P contains macro parameters if any. Preserve backslash
  13535. # newline sequences.
  13536. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13537. sed -n '
  13538. s/.\{148\}/&'"$ac_delim"'/g
  13539. t rset
  13540. :rset
  13541. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13542. t def
  13543. d
  13544. :def
  13545. s/\\$//
  13546. t bsnl
  13547. s/["\\]/\\&/g
  13548. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13549. D["\1"]=" \3"/p
  13550. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  13551. d
  13552. :bsnl
  13553. s/["\\]/\\&/g
  13554. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  13555. D["\1"]=" \3\\\\\\n"\\/p
  13556. t cont
  13557. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  13558. t cont
  13559. d
  13560. :cont
  13561. n
  13562. s/.\{148\}/&'"$ac_delim"'/g
  13563. t clear
  13564. :clear
  13565. s/\\$//
  13566. t bsnlc
  13567. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  13568. d
  13569. :bsnlc
  13570. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  13571. b cont
  13572. ' <confdefs.h | sed '
  13573. s/'"$ac_delim"'/"\\\
  13574. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  13575. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13576. for (key in D) D_is_set[key] = 1
  13577. FS = ""
  13578. }
  13579. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  13580. line = \$ 0
  13581. split(line, arg, " ")
  13582. if (arg[1] == "#") {
  13583. defundef = arg[2]
  13584. mac1 = arg[3]
  13585. } else {
  13586. defundef = substr(arg[1], 2)
  13587. mac1 = arg[2]
  13588. }
  13589. split(mac1, mac2, "(") #)
  13590. macro = mac2[1]
  13591. prefix = substr(line, 1, index(line, defundef) - 1)
  13592. if (D_is_set[macro]) {
  13593. # Preserve the white space surrounding the "#".
  13594. print prefix "define", macro P[macro] D[macro]
  13595. next
  13596. } else {
  13597. # Replace #undef with comments. This is necessary, for example,
  13598. # in the case of _POSIX_SOURCE, which is predefined and required
  13599. # on some systems where configure will not decide to define it.
  13600. if (defundef == "undef") {
  13601. print "/*", prefix defundef, macro, "*/"
  13602. next
  13603. }
  13604. }
  13605. }
  13606. { print }
  13607. _ACAWK
  13608. _ACEOF
  13609. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13610. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  13611. fi # test -n "$CONFIG_HEADERS"
  13612. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  13613. shift
  13614. for ac_tag
  13615. do
  13616. case $ac_tag in
  13617. :[FHLC]) ac_mode=$ac_tag; continue;;
  13618. esac
  13619. case $ac_mode$ac_tag in
  13620. :[FHL]*:*);;
  13621. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13622. :[FH]-) ac_tag=-:-;;
  13623. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13624. esac
  13625. ac_save_IFS=$IFS
  13626. IFS=:
  13627. set x $ac_tag
  13628. IFS=$ac_save_IFS
  13629. shift
  13630. ac_file=$1
  13631. shift
  13632. case $ac_mode in
  13633. :L) ac_source=$1;;
  13634. :[FH])
  13635. ac_file_inputs=
  13636. for ac_f
  13637. do
  13638. case $ac_f in
  13639. -) ac_f="$ac_tmp/stdin";;
  13640. *) # Look for the file first in the build tree, then in the source tree
  13641. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13642. # because $ac_f cannot contain `:'.
  13643. test -f "$ac_f" ||
  13644. case $ac_f in
  13645. [\\/$]*) false;;
  13646. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13647. esac ||
  13648. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13649. esac
  13650. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  13651. as_fn_append ac_file_inputs " '$ac_f'"
  13652. done
  13653. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13654. # use $as_me), people would be surprised to read:
  13655. # /* config.h. Generated by config.status. */
  13656. configure_input='Generated from '`
  13657. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  13658. `' by configure.'
  13659. if test x"$ac_file" != x-; then
  13660. configure_input="$ac_file. $configure_input"
  13661. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  13662. $as_echo "$as_me: creating $ac_file" >&6;}
  13663. fi
  13664. # Neutralize special characters interpreted by sed in replacement strings.
  13665. case $configure_input in #(
  13666. *\&* | *\|* | *\\* )
  13667. ac_sed_conf_input=`$as_echo "$configure_input" |
  13668. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  13669. *) ac_sed_conf_input=$configure_input;;
  13670. esac
  13671. case $ac_tag in
  13672. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  13673. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  13674. esac
  13675. ;;
  13676. esac
  13677. ac_dir=`$as_dirname -- "$ac_file" ||
  13678. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13679. X"$ac_file" : 'X\(//\)[^/]' \| \
  13680. X"$ac_file" : 'X\(//\)$' \| \
  13681. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13682. $as_echo X"$ac_file" |
  13683. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13684. s//\1/
  13685. q
  13686. }
  13687. /^X\(\/\/\)[^/].*/{
  13688. s//\1/
  13689. q
  13690. }
  13691. /^X\(\/\/\)$/{
  13692. s//\1/
  13693. q
  13694. }
  13695. /^X\(\/\).*/{
  13696. s//\1/
  13697. q
  13698. }
  13699. s/.*/./; q'`
  13700. as_dir="$ac_dir"; as_fn_mkdir_p
  13701. ac_builddir=.
  13702. case "$ac_dir" in
  13703. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13704. *)
  13705. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13706. # A ".." for each directory in $ac_dir_suffix.
  13707. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13708. case $ac_top_builddir_sub in
  13709. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13710. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13711. esac ;;
  13712. esac
  13713. ac_abs_top_builddir=$ac_pwd
  13714. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13715. # for backward compatibility:
  13716. ac_top_builddir=$ac_top_build_prefix
  13717. case $srcdir in
  13718. .) # We are building in place.
  13719. ac_srcdir=.
  13720. ac_top_srcdir=$ac_top_builddir_sub
  13721. ac_abs_top_srcdir=$ac_pwd ;;
  13722. [\\/]* | ?:[\\/]* ) # Absolute name.
  13723. ac_srcdir=$srcdir$ac_dir_suffix;
  13724. ac_top_srcdir=$srcdir
  13725. ac_abs_top_srcdir=$srcdir ;;
  13726. *) # Relative name.
  13727. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13728. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13729. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13730. esac
  13731. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13732. case $ac_mode in
  13733. :F)
  13734. #
  13735. # CONFIG_FILE
  13736. #
  13737. case $INSTALL in
  13738. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13739. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13740. esac
  13741. ac_MKDIR_P=$MKDIR_P
  13742. case $MKDIR_P in
  13743. [\\/$]* | ?:[\\/]* ) ;;
  13744. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  13745. esac
  13746. _ACEOF
  13747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13748. # If the template does not know about datarootdir, expand it.
  13749. # FIXME: This hack should be removed a few years after 2.60.
  13750. ac_datarootdir_hack=; ac_datarootdir_seen=
  13751. ac_sed_dataroot='
  13752. /datarootdir/ {
  13753. p
  13754. q
  13755. }
  13756. /@datadir@/p
  13757. /@docdir@/p
  13758. /@infodir@/p
  13759. /@localedir@/p
  13760. /@mandir@/p'
  13761. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  13762. *datarootdir*) ac_datarootdir_seen=yes;;
  13763. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13765. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13766. _ACEOF
  13767. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13768. ac_datarootdir_hack='
  13769. s&@datadir@&$datadir&g
  13770. s&@docdir@&$docdir&g
  13771. s&@infodir@&$infodir&g
  13772. s&@localedir@&$localedir&g
  13773. s&@mandir@&$mandir&g
  13774. s&\\\${datarootdir}&$datarootdir&g' ;;
  13775. esac
  13776. _ACEOF
  13777. # Neutralize VPATH when `$srcdir' = `.'.
  13778. # Shell code in configure.ac might set extrasub.
  13779. # FIXME: do we really want to maintain this feature?
  13780. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13781. ac_sed_extra="$ac_vpsub
  13782. $extrasub
  13783. _ACEOF
  13784. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13785. :t
  13786. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13787. s|@configure_input@|$ac_sed_conf_input|;t t
  13788. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13789. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  13790. s&@srcdir@&$ac_srcdir&;t t
  13791. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13792. s&@top_srcdir@&$ac_top_srcdir&;t t
  13793. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13794. s&@builddir@&$ac_builddir&;t t
  13795. s&@abs_builddir@&$ac_abs_builddir&;t t
  13796. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13797. s&@INSTALL@&$ac_INSTALL&;t t
  13798. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  13799. $ac_datarootdir_hack
  13800. "
  13801. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  13802. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13803. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13804. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  13805. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  13806. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  13807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13808. which seems to be undefined. Please make sure it is defined" >&5
  13809. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13810. which seems to be undefined. Please make sure it is defined" >&2;}
  13811. rm -f "$ac_tmp/stdin"
  13812. case $ac_file in
  13813. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  13814. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  13815. esac \
  13816. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13817. ;;
  13818. :H)
  13819. #
  13820. # CONFIG_HEADER
  13821. #
  13822. if test x"$ac_file" != x-; then
  13823. {
  13824. $as_echo "/* $configure_input */" \
  13825. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  13826. } >"$ac_tmp/config.h" \
  13827. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13828. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  13829. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  13830. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  13831. else
  13832. rm -f "$ac_file"
  13833. mv "$ac_tmp/config.h" "$ac_file" \
  13834. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  13835. fi
  13836. else
  13837. $as_echo "/* $configure_input */" \
  13838. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  13839. || as_fn_error $? "could not create -" "$LINENO" 5
  13840. fi
  13841. # Compute "$ac_file"'s index in $config_headers.
  13842. _am_arg="$ac_file"
  13843. _am_stamp_count=1
  13844. for _am_header in $config_headers :; do
  13845. case $_am_header in
  13846. $_am_arg | $_am_arg:* )
  13847. break ;;
  13848. * )
  13849. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13850. esac
  13851. done
  13852. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  13853. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13854. X"$_am_arg" : 'X\(//\)[^/]' \| \
  13855. X"$_am_arg" : 'X\(//\)$' \| \
  13856. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  13857. $as_echo X"$_am_arg" |
  13858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13859. s//\1/
  13860. q
  13861. }
  13862. /^X\(\/\/\)[^/].*/{
  13863. s//\1/
  13864. q
  13865. }
  13866. /^X\(\/\/\)$/{
  13867. s//\1/
  13868. q
  13869. }
  13870. /^X\(\/\).*/{
  13871. s//\1/
  13872. q
  13873. }
  13874. s/.*/./; q'`/stamp-h$_am_stamp_count
  13875. ;;
  13876. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  13877. $as_echo "$as_me: executing $ac_file commands" >&6;}
  13878. ;;
  13879. esac
  13880. case $ac_file$ac_mode in
  13881. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  13882. # Older Autoconf quotes --file arguments for eval, but not when files
  13883. # are listed without --file. Let's play safe and only enable the eval
  13884. # if we detect the quoting.
  13885. case $CONFIG_FILES in
  13886. *\'*) eval set x "$CONFIG_FILES" ;;
  13887. *) set x $CONFIG_FILES ;;
  13888. esac
  13889. shift
  13890. for mf
  13891. do
  13892. # Strip MF so we end up with the name of the file.
  13893. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13894. # Check whether this is an Automake generated Makefile or not.
  13895. # We used to match only the files named 'Makefile.in', but
  13896. # some people rename them; so instead we look at the file content.
  13897. # Grep'ing the first line is not enough: some people post-process
  13898. # each Makefile.in and add a new line on top of each file to say so.
  13899. # Grep'ing the whole file is not good either: AIX grep has a line
  13900. # limit of 2048, but all sed's we know have understand at least 4000.
  13901. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13902. dirpart=`$as_dirname -- "$mf" ||
  13903. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13904. X"$mf" : 'X\(//\)[^/]' \| \
  13905. X"$mf" : 'X\(//\)$' \| \
  13906. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13907. $as_echo X"$mf" |
  13908. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13909. s//\1/
  13910. q
  13911. }
  13912. /^X\(\/\/\)[^/].*/{
  13913. s//\1/
  13914. q
  13915. }
  13916. /^X\(\/\/\)$/{
  13917. s//\1/
  13918. q
  13919. }
  13920. /^X\(\/\).*/{
  13921. s//\1/
  13922. q
  13923. }
  13924. s/.*/./; q'`
  13925. else
  13926. continue
  13927. fi
  13928. # Extract the definition of DEPDIR, am__include, and am__quote
  13929. # from the Makefile without running 'make'.
  13930. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13931. test -z "$DEPDIR" && continue
  13932. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13933. test -z "$am__include" && continue
  13934. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13935. # Find all dependency output files, they are included files with
  13936. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13937. # simplest approach to changing $(DEPDIR) to its actual value in the
  13938. # expansion.
  13939. for file in `sed -n "
  13940. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13941. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  13942. # Make sure the directory exists.
  13943. test -f "$dirpart/$file" && continue
  13944. fdir=`$as_dirname -- "$file" ||
  13945. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13946. X"$file" : 'X\(//\)[^/]' \| \
  13947. X"$file" : 'X\(//\)$' \| \
  13948. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13949. $as_echo X"$file" |
  13950. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13951. s//\1/
  13952. q
  13953. }
  13954. /^X\(\/\/\)[^/].*/{
  13955. s//\1/
  13956. q
  13957. }
  13958. /^X\(\/\/\)$/{
  13959. s//\1/
  13960. q
  13961. }
  13962. /^X\(\/\).*/{
  13963. s//\1/
  13964. q
  13965. }
  13966. s/.*/./; q'`
  13967. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  13968. # echo "creating $dirpart/$file"
  13969. echo '# dummy' > "$dirpart/$file"
  13970. done
  13971. done
  13972. }
  13973. ;;
  13974. "libtool":C)
  13975. # See if we are running on zsh, and set the options which allow our
  13976. # commands through without removal of \ escapes.
  13977. if test -n "${ZSH_VERSION+set}" ; then
  13978. setopt NO_GLOB_SUBST
  13979. fi
  13980. cfgfile="${ofile}T"
  13981. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13982. $RM "$cfgfile"
  13983. cat <<_LT_EOF >> "$cfgfile"
  13984. #! $SHELL
  13985. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13986. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13987. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13988. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13989. #
  13990. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  13991. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  13992. # Foundation, Inc.
  13993. # Written by Gordon Matzigkeit, 1996
  13994. #
  13995. # This file is part of GNU Libtool.
  13996. #
  13997. # GNU Libtool is free software; you can redistribute it and/or
  13998. # modify it under the terms of the GNU General Public License as
  13999. # published by the Free Software Foundation; either version 2 of
  14000. # the License, or (at your option) any later version.
  14001. #
  14002. # As a special exception to the GNU General Public License,
  14003. # if you distribute this file as part of a program or library that
  14004. # is built using GNU Libtool, you may include this file under the
  14005. # same distribution terms that you use for the rest of that program.
  14006. #
  14007. # GNU Libtool is distributed in the hope that it will be useful,
  14008. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14009. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14010. # GNU General Public License for more details.
  14011. #
  14012. # You should have received a copy of the GNU General Public License
  14013. # along with GNU Libtool; see the file COPYING. If not, a copy
  14014. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14015. # obtained by writing to the Free Software Foundation, Inc.,
  14016. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14017. # The names of the tagged configurations supported by this script.
  14018. available_tags=""
  14019. # ### BEGIN LIBTOOL CONFIG
  14020. # Which release of libtool.m4 was used?
  14021. macro_version=$macro_version
  14022. macro_revision=$macro_revision
  14023. # Whether or not to build static libraries.
  14024. build_old_libs=$enable_static
  14025. # What type of objects to build.
  14026. pic_mode=$pic_mode
  14027. # Whether or not to build shared libraries.
  14028. build_libtool_libs=$enable_shared
  14029. # Whether or not to optimize for fast installation.
  14030. fast_install=$enable_fast_install
  14031. # Shell to use when invoking shell scripts.
  14032. SHELL=$lt_SHELL
  14033. # An echo program that protects backslashes.
  14034. ECHO=$lt_ECHO
  14035. # The PATH separator for the build system.
  14036. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  14037. # The host system.
  14038. host_alias=$host_alias
  14039. host=$host
  14040. host_os=$host_os
  14041. # The build system.
  14042. build_alias=$build_alias
  14043. build=$build
  14044. build_os=$build_os
  14045. # A sed program that does not truncate output.
  14046. SED=$lt_SED
  14047. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14048. Xsed="\$SED -e 1s/^X//"
  14049. # A grep program that handles long lines.
  14050. GREP=$lt_GREP
  14051. # An ERE matcher.
  14052. EGREP=$lt_EGREP
  14053. # A literal string matcher.
  14054. FGREP=$lt_FGREP
  14055. # A BSD- or MS-compatible name lister.
  14056. NM=$lt_NM
  14057. # Whether we need soft or hard links.
  14058. LN_S=$lt_LN_S
  14059. # What is the maximum length of a command?
  14060. max_cmd_len=$max_cmd_len
  14061. # Object file suffix (normally "o").
  14062. objext=$ac_objext
  14063. # Executable file suffix (normally "").
  14064. exeext=$exeext
  14065. # whether the shell understands "unset".
  14066. lt_unset=$lt_unset
  14067. # turn spaces into newlines.
  14068. SP2NL=$lt_lt_SP2NL
  14069. # turn newlines into spaces.
  14070. NL2SP=$lt_lt_NL2SP
  14071. # convert \$build file names to \$host format.
  14072. to_host_file_cmd=$lt_cv_to_host_file_cmd
  14073. # convert \$build files to toolchain format.
  14074. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  14075. # An object symbol dumper.
  14076. OBJDUMP=$lt_OBJDUMP
  14077. # Method to check whether dependent libraries are shared objects.
  14078. deplibs_check_method=$lt_deplibs_check_method
  14079. # Command to use when deplibs_check_method = "file_magic".
  14080. file_magic_cmd=$lt_file_magic_cmd
  14081. # How to find potential files when deplibs_check_method = "file_magic".
  14082. file_magic_glob=$lt_file_magic_glob
  14083. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  14084. want_nocaseglob=$lt_want_nocaseglob
  14085. # DLL creation program.
  14086. DLLTOOL=$lt_DLLTOOL
  14087. # Command to associate shared and link libraries.
  14088. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  14089. # The archiver.
  14090. AR=$lt_AR
  14091. # Flags to create an archive.
  14092. AR_FLAGS=$lt_AR_FLAGS
  14093. # How to feed a file listing to the archiver.
  14094. archiver_list_spec=$lt_archiver_list_spec
  14095. # A symbol stripping program.
  14096. STRIP=$lt_STRIP
  14097. # Commands used to install an old-style archive.
  14098. RANLIB=$lt_RANLIB
  14099. old_postinstall_cmds=$lt_old_postinstall_cmds
  14100. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14101. # Whether to use a lock for old archive extraction.
  14102. lock_old_archive_extraction=$lock_old_archive_extraction
  14103. # A C compiler.
  14104. LTCC=$lt_CC
  14105. # LTCC compiler flags.
  14106. LTCFLAGS=$lt_CFLAGS
  14107. # Take the output of nm and produce a listing of raw symbols and C names.
  14108. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14109. # Transform the output of nm in a proper C declaration.
  14110. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14111. # Transform the output of nm in a C name address pair.
  14112. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14113. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14114. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14115. # Specify filename containing input files for \$NM.
  14116. nm_file_list_spec=$lt_nm_file_list_spec
  14117. # The root where to search for dependent libraries,and in which our libraries should be installed.
  14118. lt_sysroot=$lt_sysroot
  14119. # The name of the directory that contains temporary libtool files.
  14120. objdir=$objdir
  14121. # Used to examine libraries when file_magic_cmd begins with "file".
  14122. MAGIC_CMD=$MAGIC_CMD
  14123. # Must we lock files when doing compilation?
  14124. need_locks=$lt_need_locks
  14125. # Manifest tool.
  14126. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  14127. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14128. DSYMUTIL=$lt_DSYMUTIL
  14129. # Tool to change global to local symbols on Mac OS X.
  14130. NMEDIT=$lt_NMEDIT
  14131. # Tool to manipulate fat objects and archives on Mac OS X.
  14132. LIPO=$lt_LIPO
  14133. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14134. OTOOL=$lt_OTOOL
  14135. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14136. OTOOL64=$lt_OTOOL64
  14137. # Old archive suffix (normally "a").
  14138. libext=$libext
  14139. # Shared library suffix (normally ".so").
  14140. shrext_cmds=$lt_shrext_cmds
  14141. # The commands to extract the exported symbol list from a shared archive.
  14142. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14143. # Variables whose values should be saved in libtool wrapper scripts and
  14144. # restored at link time.
  14145. variables_saved_for_relink=$lt_variables_saved_for_relink
  14146. # Do we need the "lib" prefix for modules?
  14147. need_lib_prefix=$need_lib_prefix
  14148. # Do we need a version for libraries?
  14149. need_version=$need_version
  14150. # Library versioning type.
  14151. version_type=$version_type
  14152. # Shared library runtime path variable.
  14153. runpath_var=$runpath_var
  14154. # Shared library path variable.
  14155. shlibpath_var=$shlibpath_var
  14156. # Is shlibpath searched before the hard-coded library search path?
  14157. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14158. # Format of library name prefix.
  14159. libname_spec=$lt_libname_spec
  14160. # List of archive names. First name is the real one, the rest are links.
  14161. # The last name is the one that the linker finds with -lNAME
  14162. library_names_spec=$lt_library_names_spec
  14163. # The coded name of the library, if different from the real name.
  14164. soname_spec=$lt_soname_spec
  14165. # Permission mode override for installation of shared libraries.
  14166. install_override_mode=$lt_install_override_mode
  14167. # Command to use after installation of a shared archive.
  14168. postinstall_cmds=$lt_postinstall_cmds
  14169. # Command to use after uninstallation of a shared archive.
  14170. postuninstall_cmds=$lt_postuninstall_cmds
  14171. # Commands used to finish a libtool library installation in a directory.
  14172. finish_cmds=$lt_finish_cmds
  14173. # As "finish_cmds", except a single script fragment to be evaled but
  14174. # not shown.
  14175. finish_eval=$lt_finish_eval
  14176. # Whether we should hardcode library paths into libraries.
  14177. hardcode_into_libs=$hardcode_into_libs
  14178. # Compile-time system search path for libraries.
  14179. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14180. # Run-time system search path for libraries.
  14181. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14182. # Whether dlopen is supported.
  14183. dlopen_support=$enable_dlopen
  14184. # Whether dlopen of programs is supported.
  14185. dlopen_self=$enable_dlopen_self
  14186. # Whether dlopen of statically linked programs is supported.
  14187. dlopen_self_static=$enable_dlopen_self_static
  14188. # Commands to strip libraries.
  14189. old_striplib=$lt_old_striplib
  14190. striplib=$lt_striplib
  14191. # The linker used to build libraries.
  14192. LD=$lt_LD
  14193. # How to create reloadable object files.
  14194. reload_flag=$lt_reload_flag
  14195. reload_cmds=$lt_reload_cmds
  14196. # Commands used to build an old-style archive.
  14197. old_archive_cmds=$lt_old_archive_cmds
  14198. # A language specific compiler.
  14199. CC=$lt_compiler
  14200. # Is the compiler the GNU compiler?
  14201. with_gcc=$GCC
  14202. # Compiler flag to turn off builtin functions.
  14203. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14204. # Additional compiler flags for building library objects.
  14205. pic_flag=$lt_lt_prog_compiler_pic
  14206. # How to pass a linker flag through the compiler.
  14207. wl=$lt_lt_prog_compiler_wl
  14208. # Compiler flag to prevent dynamic linking.
  14209. link_static_flag=$lt_lt_prog_compiler_static
  14210. # Does compiler simultaneously support -c and -o options?
  14211. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14212. # Whether or not to add -lc for building shared libraries.
  14213. build_libtool_need_lc=$archive_cmds_need_lc
  14214. # Whether or not to disallow shared libs when runtime libs are static.
  14215. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14216. # Compiler flag to allow reflexive dlopens.
  14217. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14218. # Compiler flag to generate shared objects directly from archives.
  14219. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14220. # Whether the compiler copes with passing no objects directly.
  14221. compiler_needs_object=$lt_compiler_needs_object
  14222. # Create an old-style archive from a shared archive.
  14223. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14224. # Create a temporary old-style archive to link instead of a shared archive.
  14225. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14226. # Commands used to build a shared archive.
  14227. archive_cmds=$lt_archive_cmds
  14228. archive_expsym_cmds=$lt_archive_expsym_cmds
  14229. # Commands used to build a loadable module if different from building
  14230. # a shared archive.
  14231. module_cmds=$lt_module_cmds
  14232. module_expsym_cmds=$lt_module_expsym_cmds
  14233. # Whether we are building with GNU ld or not.
  14234. with_gnu_ld=$lt_with_gnu_ld
  14235. # Flag that allows shared libraries with undefined symbols to be built.
  14236. allow_undefined_flag=$lt_allow_undefined_flag
  14237. # Flag that enforces no undefined symbols.
  14238. no_undefined_flag=$lt_no_undefined_flag
  14239. # Flag to hardcode \$libdir into a binary during linking.
  14240. # This must work even if \$libdir does not exist
  14241. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14242. # Whether we need a single "-rpath" flag with a separated argument.
  14243. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14244. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14245. # DIR into the resulting binary.
  14246. hardcode_direct=$hardcode_direct
  14247. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14248. # DIR into the resulting binary and the resulting library dependency is
  14249. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14250. # library is relocated.
  14251. hardcode_direct_absolute=$hardcode_direct_absolute
  14252. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14253. # into the resulting binary.
  14254. hardcode_minus_L=$hardcode_minus_L
  14255. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14256. # into the resulting binary.
  14257. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14258. # Set to "yes" if building a shared library automatically hardcodes DIR
  14259. # into the library and all subsequent libraries and executables linked
  14260. # against it.
  14261. hardcode_automatic=$hardcode_automatic
  14262. # Set to yes if linker adds runtime paths of dependent libraries
  14263. # to runtime path list.
  14264. inherit_rpath=$inherit_rpath
  14265. # Whether libtool must link a program against all its dependency libraries.
  14266. link_all_deplibs=$link_all_deplibs
  14267. # Set to "yes" if exported symbols are required.
  14268. always_export_symbols=$always_export_symbols
  14269. # The commands to list exported symbols.
  14270. export_symbols_cmds=$lt_export_symbols_cmds
  14271. # Symbols that should not be listed in the preloaded symbols.
  14272. exclude_expsyms=$lt_exclude_expsyms
  14273. # Symbols that must always be exported.
  14274. include_expsyms=$lt_include_expsyms
  14275. # Commands necessary for linking programs (against libraries) with templates.
  14276. prelink_cmds=$lt_prelink_cmds
  14277. # Commands necessary for finishing linking programs.
  14278. postlink_cmds=$lt_postlink_cmds
  14279. # Specify filename containing input files.
  14280. file_list_spec=$lt_file_list_spec
  14281. # How to hardcode a shared library path into an executable.
  14282. hardcode_action=$hardcode_action
  14283. # ### END LIBTOOL CONFIG
  14284. _LT_EOF
  14285. case $host_os in
  14286. aix3*)
  14287. cat <<\_LT_EOF >> "$cfgfile"
  14288. # AIX sometimes has problems with the GCC collect2 program. For some
  14289. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14290. # vanish in a puff of smoke.
  14291. if test "X${COLLECT_NAMES+set}" != Xset; then
  14292. COLLECT_NAMES=
  14293. export COLLECT_NAMES
  14294. fi
  14295. _LT_EOF
  14296. ;;
  14297. esac
  14298. ltmain="$ac_aux_dir/ltmain.sh"
  14299. # We use sed instead of cat because bash on DJGPP gets confused if
  14300. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14301. # text mode, it properly converts lines to CR/LF. This bash problem
  14302. # is reportedly fixed, but why not run on old versions too?
  14303. sed '$q' "$ltmain" >> "$cfgfile" \
  14304. || (rm -f "$cfgfile"; exit 1)
  14305. if test x"$xsi_shell" = xyes; then
  14306. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  14307. func_dirname ()\
  14308. {\
  14309. \ case ${1} in\
  14310. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14311. \ * ) func_dirname_result="${3}" ;;\
  14312. \ esac\
  14313. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  14314. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14315. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14316. test 0 -eq $? || _lt_function_replace_fail=:
  14317. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  14318. func_basename ()\
  14319. {\
  14320. \ func_basename_result="${1##*/}"\
  14321. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14322. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14323. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14324. test 0 -eq $? || _lt_function_replace_fail=:
  14325. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  14326. func_dirname_and_basename ()\
  14327. {\
  14328. \ case ${1} in\
  14329. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  14330. \ * ) func_dirname_result="${3}" ;;\
  14331. \ esac\
  14332. \ func_basename_result="${1##*/}"\
  14333. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  14334. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14335. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14336. test 0 -eq $? || _lt_function_replace_fail=:
  14337. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  14338. func_stripname ()\
  14339. {\
  14340. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  14341. \ # positional parameters, so assign one to ordinary parameter first.\
  14342. \ func_stripname_result=${3}\
  14343. \ func_stripname_result=${func_stripname_result#"${1}"}\
  14344. \ func_stripname_result=${func_stripname_result%"${2}"}\
  14345. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  14346. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14347. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14348. test 0 -eq $? || _lt_function_replace_fail=:
  14349. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  14350. func_split_long_opt ()\
  14351. {\
  14352. \ func_split_long_opt_name=${1%%=*}\
  14353. \ func_split_long_opt_arg=${1#*=}\
  14354. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14355. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14356. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14357. test 0 -eq $? || _lt_function_replace_fail=:
  14358. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  14359. func_split_short_opt ()\
  14360. {\
  14361. \ func_split_short_opt_arg=${1#??}\
  14362. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  14363. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  14364. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14365. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14366. test 0 -eq $? || _lt_function_replace_fail=:
  14367. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  14368. func_lo2o ()\
  14369. {\
  14370. \ case ${1} in\
  14371. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  14372. \ *) func_lo2o_result=${1} ;;\
  14373. \ esac\
  14374. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  14375. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14376. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14377. test 0 -eq $? || _lt_function_replace_fail=:
  14378. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  14379. func_xform ()\
  14380. {\
  14381. func_xform_result=${1%.*}.lo\
  14382. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  14383. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14384. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14385. test 0 -eq $? || _lt_function_replace_fail=:
  14386. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  14387. func_arith ()\
  14388. {\
  14389. func_arith_result=$(( $* ))\
  14390. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  14391. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14392. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14393. test 0 -eq $? || _lt_function_replace_fail=:
  14394. sed -e '/^func_len ()$/,/^} # func_len /c\
  14395. func_len ()\
  14396. {\
  14397. func_len_result=${#1}\
  14398. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  14399. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14400. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14401. test 0 -eq $? || _lt_function_replace_fail=:
  14402. fi
  14403. if test x"$lt_shell_append" = xyes; then
  14404. sed -e '/^func_append ()$/,/^} # func_append /c\
  14405. func_append ()\
  14406. {\
  14407. eval "${1}+=\\${2}"\
  14408. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  14409. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14410. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14411. test 0 -eq $? || _lt_function_replace_fail=:
  14412. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  14413. func_append_quoted ()\
  14414. {\
  14415. \ func_quote_for_eval "${2}"\
  14416. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  14417. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  14418. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14419. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14420. test 0 -eq $? || _lt_function_replace_fail=:
  14421. # Save a `func_append' function call where possible by direct use of '+='
  14422. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  14423. && mv -f "$cfgfile.tmp" "$cfgfile" \
  14424. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  14425. test 0 -eq $? || _lt_function_replace_fail=:
  14426. else
  14427. # Save a `func_append' function call even when '+=' is not available
  14428. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $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. fi
  14433. if test x"$_lt_function_replace_fail" = x":"; then
  14434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  14435. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  14436. fi
  14437. mv -f "$cfgfile" "$ofile" ||
  14438. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14439. chmod +x "$ofile"
  14440. ;;
  14441. esac
  14442. done # for ac_tag
  14443. as_fn_exit 0
  14444. _ACEOF
  14445. ac_clean_files=$ac_clean_files_save
  14446. test $ac_write_fail = 0 ||
  14447. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14448. # configure is writing to config.log, and then calls config.status.
  14449. # config.status does its own redirection, appending to config.log.
  14450. # Unfortunately, on DOS this fails, as config.log is still kept open
  14451. # by configure, so config.status won't be able to write to it; its
  14452. # output is simply discarded. So we exec the FD to /dev/null,
  14453. # effectively closing config.log, so it can be properly (re)opened and
  14454. # appended to by config.status. When coming back to configure, we
  14455. # need to make the FD available again.
  14456. if test "$no_create" != yes; then
  14457. ac_cs_success=:
  14458. ac_config_status_args=
  14459. test "$silent" = yes &&
  14460. ac_config_status_args="$ac_config_status_args --quiet"
  14461. exec 5>/dev/null
  14462. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14463. exec 5>>config.log
  14464. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14465. # would make configure fail if this is the last instruction.
  14466. $ac_cs_success || as_fn_exit 1
  14467. fi
  14468. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14469. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14470. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14471. fi